Depguard

•
15
•

Defend against npm supply-chain attacks by scanning lockfiles, global installs, and download caches for malicious packages and auditing dependencies before installation.

Depguard brings industrial-grade auditability and supply-chain defense to JavaScript and TypeScript workflows. With zero runtime dependencies, it scans every project lockfile, global package, and the local npm cache against thousands of known-malicious packages to verify if a machine was compromised. It provides an automated MCP server with 15 specialized tools that enable AI coding agents like Claude Code, Cursor, and Windsurf to guard against typosquatting, evaluate package health, audit untrusted workspaces before opening them, and generate CycloneDX 1.6 SBOMs.

主な機能

01Full-machine exposure scanning across npm, pnpm, yarn, and bun lockfiles, global installs, and the npm cache
02Pre-install guardian to detect typosquatting, non-existent packages, and AI hallucinations before package installation
03Pre-open workspace auditing to detect malicious auto-executing tasks, lifecycle scripts, and environment configs
04Static code analysis of package tarballs and install scripts without executing untrusted code
05CycloneDX 1.6 SBOM and SARIF report generation for CI/CD gates and security compliance
0615 GitHub stars

ユースケース

01Incident response to immediately identify if a developer environment or build server was reached by an npm supply-chain attack
02AI agent security enforcement to verify dependencies and evaluate risks before automated tool calls install packages
03Pre-open repository vetting to safely inspect untrusted or newly cloned repositories before opening them in IDEs