depguard-cli
Find out in seconds whether an npm supply-chain attack reached your machine. When a worm or a hijacked maintainer account ships malicious versions, npx depguard-cli exposure checks every project, global install and the npm download cache on your machine against 100,000+ known-malicious npm packages. It tells you exactly where a bad version is, whether it was installed, and what to rotate. depguard also audits packages before you install them and repositories before you open them. Zero runtime dependencies. Runs in the terminal or as an MCP server for Claude, Cursor, Windsurf and any MCP client.
Was I hit?
npx depguard-cli exposuredepguard exposure scan
Scanned: 143 lock files, 816 global packages, 167 cached tarballs (14530 distinct versions)
Under: /Users/you
Advisory DB: 2026-10-15 (34952 known-malicious packages)
OK No known-malicious package versions found.When something is found, every location is listed with the evidence and the steps to take:
EXPOSED 1 known-malicious package version found
ua-parser-js@0.7.29
CVE-2021-4229 Maintainer account hijacked. Compromised versions contained XMRig cryptominer and credential stealer. (2021-10-22)
- lock file /Users/you/work/api/package-lock.json (node_modules/ua-parser-js) [installed on disk, runs install scripts]
- npm cache tarball downloaded on 2021-10-22
What to do now:
1. A malicious version was installed or downloaded on this machine. Treat the machine as compromised...
2. Rotate every credential reachable from this machine: npm tokens, GitHub tokens and SSH keys, cloud credentials...





