
sinewaveai/agent-security-scanner-mcp 是从 https://github.com/sinewaveai/agent-security-scanner-mcp. 导入的 MCP 服务器候选
概览
sinewaveai/agent-security-scanner-mcp 是从 https://github.com/sinewaveai/agent-security-scanner-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
用于AI编码代理、MCP服务器、提示符和AI推荐包的安全扫描器。
在 Claude Code、Cursor、Windsurf、Cline、OpenCode 或其他代理信任新代码、工具、提示或依赖之前运行它。
复制粘贴 开始
扫描任何仓库,获得A-F代理安全等级:
将扫描仪安装到你的AI编码客户端中:
将claude-code替换为cursor、claude-desktop、windsurf、cline、kilo-code、opencode或cody。
在将MCP服务器添加到代理之前,先对其进行审计:
检查AI生成的导入是否有包裹幻觉:
它捕捉到了什么
| 风险 | 特工为什么需要它 | 指挥 |
|---|---|---|
| 易受攻击生成代码 | 代理可以引入SQL注入、XSS、命令注入、不安全加密和秘密 | scan-project、scan-security、scan-diff |
| MCP服务器攻击 | MCP工具可以毒化描述、伪造名称、窃取环境变量或执行命令 | scan-mcp |
| 提示注入 | 代理经常处理不受信任的文档、工单、页面和工具输出 | scan-prompt |
| 不安全代理动作 | 执行前捕捉危险的shell/file/网络操作 | scan-action |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Copy-Paste Start
Scan any repo and get an A-F agent security grade:
npx agent-security-scanner-mcp scan-project . --verbosity compact
Install the scanner into your AI coding client:
npx agent-security-scanner-mcp init claude-code
Replace claude-code with cursor, claude-desktop, windsurf, cline, kilo-code, opencode, or cody.
Audit an MCP server before adding it to an agent:
npx agent-security-scanner-mcp scan-mcp ./path/to/mcp-server --verbosity compact
Check AI-generated imports for package hallucinations:
npx agent-security-scanner-mcp scan-packages ./src/app.ts npm --verbosity compact
What It Catches
| Risk | Why agents need it | Command |
|---|---|---|
| Vulnerable generated code | Agents can introduce SQL injection, XSS, command injection, unsafe crypto, and secrets | scan-project, scan-security, scan-diff |
| MCP server attacks | MCP tools can poison descriptions, spoof names, exfiltrate env vars, or execute commands | scan-mcp |
| Prompt injection | Agents often process untrusted docs, tickets, pages, and tool output | scan-prompt |
| Unsafe agent actions | Catch dangerous shell/file/network actions before execution | scan-action |
| Hallucinated packages | AI often invents dependency names that attackers can later squat | check-package, scan-packages |
| SBOM and CVEs | Generate CycloneDX SBOMs and scan dependencies with OSV.dev | sbom-generate, sbom-vulnerabilities |
| Semantic review | LLM-powered review that uses project intent to find context-aware issues | cr-agent |
Screenshots
Project Scan
MCP Server Audit
Package Hallucination Detection
Demos
Run a safe local demo that creates intentionally vulnerable fixtures, scans them, and cleans them up.
# MCP audit demo: tool poisoning, spoofed tool name, command execution, secret exposure
安装
npx agent-security-scanner-mcp scan-project . --verbosity compact