Computer Police – block malicious NPM/pip installs locally
Local proxy blocking malware installs before they touch disk.
PMG protects developers, AI agents from malicious open source packages using proxy, sandbox and SafeDep's threat intelligence feed.
Local proxy blocking malicious installs before execution beats post-install scanning tools.
Developers and DevSecOps teams protecting local environments
Socket · Snyk · OSV Scanner
I am the founder of SafeDep. We have been detecting malicious packages for a while. Coming from DevSecOps background, I always considered malicious package detection & protection to be a build stage problem. But I was wrong since the S1ngularity and early Shai-Hulud days.
In 2026, we pretty much started worrying more about our own dev machines than CI/CD environment. Depending only on threat intelligence data (OSV / SafeDep / Socket / any other source) to protect our own dev machines did not feel right. We wanted to build a multi-layered protection that can get 100% visibility of OSS packages coming in, and can protect against known and “hopefully” unknown threats. That’s how Package Manager Guard (PMG) started. Core idea was simple:
- Start a local proxy (localhost)
- Make sure supported package managers like npm, pnpm, pip etc. goes through it
- Use threat intelligence data to fail fast on known malicious packages
- Apply policies like dependency cooldown as additional guardrails
- Adopt a policy language like CEL to support custom policies (roadmap)
- Everything stays local with stackable policies and audit log
- Threat model - Protect “willing” developers against malicious open source packages
Note: PMG does not consider a malicious developer as part of its threat model. So no real effort has been put to “enforce”, rather the goal is reduced friction while being effective.
Then came across Anthropic’s SRT and suddenly realized that in-process OS-native sandboxing is a good solution for limiting blast radius against unknown threats, especially since package managers have predictable runtime behaviour that can be allowed via. a sandbox while denying larger user permissions. Adopted seatbealt on MacOS and Landlock + Seccomp BPF for Linux. Seccomp BPF with Go was a battle of its own due to lack of control on OS threads, but finally managed to get it working without major performance cost.
To summarize, PMG does not only depend’s on SafeDep’s ability to find malicious packages. It enforces dependency cooldown (useful if you are stuck with older npm/pnpm), sandbox to protect against malicious packages. Our near term goal is to support CEL as a policy language and improve tooling around sandbox rules to make adoption easier.
Any feedback is welcome.
Local proxy blocking malware installs before they touch disk.
Soak time quarantines new packages for 48 hours to catch malicious releases before production.
Blocks malicious packages at install-time before AI agents execute them on your machine.
Dockerizes pip builds to stop credential theft during install.
One proxy for 25 registries when Snyk and Dependabot already scan dependencies.
Yet another package proxy when Sonatype, Verdaccio, and Cloudsmith already own this space.