Audit
Run one command or let your MCP-connected AI agent call depguard automatically during code generation.
npx depguard-cli audit express
AI agents install packages 100x faster than humans can review. depguard is the security layer for the vibe coding era — audit every dependency before it enters your project, while saving up to 99% of AI tokens compared to manual research.
$ depguard-cli audit depguard-cli Package depguard-cli@1.3.1 Score 95/100 Vulnerabilities None found License Apache-2.0 (compatible) Dependencies 0 (zero runtime deps) Scripts Clean $ depguard-cli should-use "http client" Action use-native API globalThis.fetch() Built into Node 18+. No package needed.
In the vibe coding era, AI agents install packages faster than anyone can review. npm audit only checks known CVEs — it doesn't score maintenance, scan install scripts, check licenses, or tell you when to write your own. That gap is where attacks live.
Run a command or let your AI agent call the MCP tool. Same audit, same score, same protection.
Run one command or let your MCP-connected AI agent call depguard automatically during code generation.
npx depguard-cli audit express
depguard queries 2 advisory databases, analyzes install scripts for 9 attack patterns, and scores across 5 weighted dimensions.
npm + GitHub Advisory DB
Get a clear, data-driven recommendation: install, caution, write-from-scratch, or use a native Node.js alternative.
Score 85/100 → install
Six integrated tools. Zero dependencies. One clear answer.
Combines npm Registry and GitHub Advisory Database. Deduplicates results, filters by installed version, and suggests specific upgrade paths.
Fix SuggestionsStatic analysis of install scripts catches reverse shells, credential exfiltration, obfuscated payloads, and remote code execution. No code is ever executed.
9 Attack PatternsEvery package scored 0–100 across security, maintenance, popularity, license, and dependency count. Transparent, reproducible, configurable weights.
ConfigurableChecks 20+ native Node.js alternatives before recommending npm packages. Saves bloat, reduces attack surface, eliminates unnecessary dependencies.
20+ AlternativesBuilt-in MCP server with 6 tools. Your AI agent audits packages during code generation. Token savings tracked per response to quantify ROI.
6 MCP Tools15+ SPDX licenses ranked by permissiveness. Instantly know if a dependency's license is compatible with your project. No legal review needed.
15+ LicensesThis is a limited demo with pre-loaded data for 6 popular packages. For live audits on any package, install depguard-cli locally.
// Select a package above or type one to see the audit report $ depguard-cli audit ___
Every package scored 0–100 across five weighted dimensions. You can configure the weights to match your risk profile.
Major npm supply chain incidents and how depguard detects the patterns that made them possible.
| Package | Year | Severity | What Happened | depguard Detection |
|---|---|---|---|---|
| event-stream | 2018 | Critical | Malicious dependency stole cryptocurrency wallet keys. 8M weekly downloads compromised. | Script analysis flags obfuscated code + credential access patterns in flatmap-stream. |
| ua-parser-js | 2021 | Critical | Hijacked account published cryptominers and password stealers via postinstall. | Install script analysis catches process spawning, external network calls, credential file access. |
| node-ipc | 2022 | Critical | Maintainer added code to wipe files based on geolocation. Dependency of vue-cli. | Advisory database flags GHSA. Script analysis detects file system writes + network conditionals. |
| colors + faker | 2022 | High | Maintainer sabotaged packages with infinite loops. Broke thousands of projects. | Maintenance score drops. Advisory database flags incident. Score falls below threshold. |
| eslint-scope | 2018 | Critical | Compromised token published version stealing npm tokens from ~/.npmrc. | Script analysis detects credential file access (~/.npmrc) and env var exfiltration. |
| coa + rc | 2021 | Critical | Hijacked accounts. Obfuscated malware in preinstall scripts. | Base64 decoding + dynamic code execution detected. Process spawning flagged. |
| crossenv (typosquat) | Ongoing | High | Names mimicking popular packages. Steal environment variables on install. | Low popularity + script analysis flags env var exfiltration. Score far below threshold. |
Built-in MCP server for the vibe coding workflow. One command to connect. Your AI agent audits packages before every install.
// One command — zero install needed $ claude mcp add depguard -- npx -y depguard-cli --mcp // Or add to mcp.json / claude_desktop_config.json { "mcpServers": { "depguard": { "command": "npx", "args": ["-y", "depguard-cli", "--mcp"] } } }
Without depguard, you need to check multiple sources, analyze scripts by hand, and make gut-feel decisions. Here's what one command replaces.
| Task | depguard | Manual Approach |
|---|---|---|
| Check known CVEs | ✓ Automated | Search npm + GitHub advisories manually |
| GitHub Advisory Database | ✓ Included | Visit github.com/advisories, search, cross-reference |
| Inspect install scripts | ✓ 9 patterns | Read package source code line by line |
| Check maintenance health | ✓ Scored | Check npm page, GitHub commits, last publish date |
| Verify license compatibility | ✓ 15+ SPDX | Read LICENSE file, understand copyleft hierarchy |
| Evaluate package quality | ✓ 0–100 | Subjective judgement, no consistent scoring |
| Get fix version | ✓ Exact version | Read advisory, find patched version, verify semver |
| Find native alternatives | ✓ 20+ mapped | Know Node.js APIs by heart or search docs |
| Install vs write decision | ✓ Data-driven | Gut feeling, team discussion, hope for the best |
| AI agent integration | ✓ 6 MCP tools | Not possible — agents install blindly |
| Audit entire project | ✓ One command | Check each dependency individually |
| Time per package | ~2 seconds | 15–30 minutes of research |
depguard checks 20+ native alternatives before recommending npm packages. Less bloat, smaller attack surface.
No configuration. No account. No dependencies to install.
$ npx depguard-cli audit express $ npx depguard-cli should-use "date formatting" $ npx depguard-cli score react
Questions, partnerships, security reports, or feedback — reach out through any of these channels.