safedep/pmg
PMG protects developers, AI agents from malicious open source packages using proxy, sandbox and SafeDep's threat intelligence feed.
What it solves
Package Manager Guard (PMG) addresses the risk of malicious code execution during software development. Developers and AI coding agents frequently install thousands of lines of code via package managers like npm or pip without manual review. PMG prevents supply chain attacks by intercepting these installs and blocking malicious packages before they execute on your system.
How it works
PMG acts as a transparent security layer that wraps your existing package manager commands. It employs a defense-in-depth strategy:
- Threat Intelligence: It checks every package against a real-time database of known malicious threats.
- Dependency Cooldown: It blocks recently published package versions to mitigate risks from newly compromised software.
- Sandboxing: It can optionally run installation scripts within OS-native sandboxes (such as macOS Seatbelt or Linux Landlock) to restrict system access.
- Audit Logging: It maintains a local log of all package installation activity for security visibility.
Who it’s for
It is designed for individual developers, security-conscious teams, and AI coding agents that need to safely automate dependency management without changing their existing workflows.
Highlights
- Zero-config integration: Works seamlessly with common package managers like npm, pip, poetry, uv, and cargo.
- Transparent protection: No changes required to your existing terminal commands or AI agent workflows.
- No account required: Free, open-source, and does not require API keys or registration.
- Advanced security: Includes optional kernel-level enforcement and OS-native sandboxing for high-security environments.
Related
- Dispatch
- Project
- Project
- Project
- Project