Suggestions to run npm/pip/cargo in sandboxes using bwrap, Docker, Apple containers, or Qubes OS to limit blast radius of malicious code
← Back to Axios compromised on NPM – Malicious versions drop remote access trojan
The discussion highlights a growing consensus that allowing package managers full system access is increasingly dangerous, prompting a shift toward "personal protective equipment" for code, such as `bwrap`, Docker, and Qubes OS, to contain potential malware. While Linux offers powerful native isolation tools, many users advocate for a more intuitive, "secure-by-default" model—similar to Android’s granular permissions—to replace the current opt-in approach that often leaves sensitive credentials exposed. Participants emphasize that effective sandboxing must extend beyond blocking post-install scripts to include entire development environments, as malicious code can just as easily be triggered during runtime execution. Ultimately, these precautions are viewed as essential survival strategies for managing modern supply chain risks and the influx of AI-generated code produced by non-specialists.
44 comments tagged with this topic