Audit npm dependencies for security risks
A comprehensive security report of the project's dependency tree, highlighting vulnerabilities, license issues, and supply-chain risks with remediation steps.
How it works
Read-onlySoftware development
The agent uses the npmscan-mcp server to perform a whole-tree scan of the project's package.json or lockfile. It analyzes the dependencies for known vulnerabilities, maintainer takeovers, and suspicious install scripts. The agent then compiles the findings into a risk assessment, referencing the auto-score and flags provided by the server to prioritize critical issues.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Audit npm dependencies for security risks
Scan the current project's dependencies for security vulnerabilities and supply-chain risks. Use the npmscan-mcp server to analyze the package.json and lockfile. Identify any packages with high-risk scores, known CVEs, or suspicious behaviors like unauthorized install scripts. Provide a summary of the findings with links to detailed reports.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
npmscan-dependency-audit — whole-tree scans of a package.json, lockfile, or dependency listMCP Server for AI Agents | NPMSCan Docs