Owasp Scan

io.github.GuardBee由 GitHub 账号 GuardBee 发布v0.5.2更新于 Nov 3, 2026

Unified OWASP MCP Top 10 scan — path or live tools/list, A–F grade, SARIF

发布方自己的服务:scan.mx Email Diagnostics

已验证STDIO仅桌面开发者工具安全与监控

概览

AI 生成的概览

对文件路径、运行中的 MCP 服务器或已保存的 tools/list 转储执行统一的 OWASP MCP Top 10 安全扫描,并给出 A–F 评级。

可以做什么
  • 用七个审计器扫描文件或目录,覆盖密钥泄露、服务器配置、OAuth、审计缺口、上下文过度共享、有毒数据流与工具投毒
  • 通过 HTTP 或 stdio 连接运行中的 MCP 服务器,调用 tools/list 并评级有毒数据流与工具投毒
  • 离线审计已保存的 tools/list JSON 转储,检查项与实时模式相同
  • 列出 OWASP MCP Top 10 类别及本扫描覆盖它们的扫描器
  • 可选地清点本机已配置的 MCP 服务器,发现影子服务器问题
适用场景
适合在信任某个 MCP 服务器之前审查其代码或工具列表,也适合为 MCP 项目在 CI 中加入自动化安全检查。它会给出评级,并可在出现高危或严重问题时让构建失败。
运行要求
以 npm 包形式通过 npx 在本机运行,需要 Node.js。未声明任何账号、API 密钥或请求头。实时模式需要访问目标服务器的网络或启动它的命令;影子服务器发现会读取本地客户端配置。
安装前请注意
实时模式会连接目标服务器并调用其 tools/list,只应对获准探测的服务器使用。遥测默认关闭;设置 GUARDBEE_TELEMETRY=1 会把服务器、工具、成功与否、耗时以及文件路径等短参数值发送给第三方。扫描会读取本地文件和客户端配置。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Owasp Scan,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

@guardbee/mcp-owasp-scan

🇬🇧 English | 🇹🇷 Türkçe | 🇨🇳 中文 | 🇯🇵 日本語 | 🇰🇷 한국어 | 🇧🇷 Português | 🇪🇸 Español | 🇩🇪 Deutsch

[npm version] [npm downloads] [License: MIT]

One CLI and MCP server for a unified OWASP MCP Top 10 check. It runs seven GuardBee auditors over a codebase in one pass, or grades a live MCP server's tool list, and reports every finding under its OWASP id with an A–F grade. Output as text, JSON or SARIF for GitHub code scanning.

Telemetry is off by default. With GUARDBEE_TELEMETRY=1 it sends the server, tool, success, duration and short parameter values such as a file path; longer strings and fields like content, token or password are replaced with a placeholder. See @guardbee/mcp-telemetry.

Quick start

bash
# Static scan of a repository, fail CI on high or critical findingsnpx @guardbee/mcp-owasp-scan scan ./src --format=sarif --fail-on=high > owasp.sarif
# Connect to a running MCP server and grade its toolsnpx @guardbee/mcp-owasp-scan live --url=https://mcp.example.com/mcpnpx @guardbee/mcp-owasp-scan live --stdio=npx --arg=-y --arg=@modelcontextprotocol/server-filesystem --arg=.
# Grade a saved tools/list responsenpx @guardbee/mcp-owasp-scan catalog ./tools.json --format=json

As an MCP server (Claude Desktop, Cursor, VS Code):

json
{  "mcpServers": {    "guardbee-owasp-scan": {      "command": "npx",      "args": ["-y", "@guardbee/mcp-owasp-scan"]    }  }}

Modes

ModeInputWhat runs
scan <path>A file or directorysecret-scanner, mcp-server-auditor, oauth-auditor, audit-gap-auditor, context-oversharing-auditor, toxic-flow-auditor, tool-poisoning-scanner
live--url=<streamable HTTP URL> or --stdio=<command> with --arg=…Connects, calls tools/list, then toxic-flow-auditor and tool-poisoning-scanner
catalog <tools.json>A tools/list dump ({ "tools": [...] } or a bare array)Same checks as live, offline

scan reads TypeScript/JavaScript, Python (FastMCP, official SDK, low-level server) and Go (official go-sdk, mark3labs/mcp-go) MCP servers in full: tool definitions, handler sinks and OAuth rules. Other languages (Rust, Java, Kotlin, C#, Ruby, PHP, Swift) get the language-neutral rules only (secrets, URLs, config). The report's coverage lists every source file with its language, that depth (full or patterns) and the number of tool definitions found, plus a per-language summary (languages: in text output), so a file the scan could not read deeply is visible rather than silently passing.

--discover-shadow adds an MCP09 check to scan: it inventories the MCP servers configured on this machine (Cursor, Claude Desktop, Windsurf, VS Code) through mcp-config-auditor, and --allowlist=<path> marks the approved ones.

OWASP MCP Top 10 coverage

IDRiskCovered by
MCP01Token / credential exposuresecret-scanner, mcp-server-auditor
MCP02Privilege / excessive agencymcp-server-auditor
MCP03Tool poisoning / rug pull surfacetool-poisoning-scanner (scan, live, catalog)
MCP04Supply chainNot in this meta-scan: use mcp-dependency-auditor and mcp-slopsquat-scanner, which need the network
MCP05Command / code injection via toolsmcp-server-auditor
MCP06Prompt / context injectionNot in this meta-scan: use mcp-prompt-injection-scanner on the content an agent reads
MCP07Auth / OAuth misconfigurationoauth-auditor
MCP08Lack of audit and telemetryaudit-gap-auditor
MCP09Shadow MCP serversmcp-config-auditor (--discover-shadow)
MCP10Toxic flows / context oversharingtoxic-flow-auditor, context-oversharing-auditor (scan, live, catalog)

Grade

GradeWhen
FA lethal trifecta: one agent can read untrusted content, reach sensitive data and send data out
DAny critical finding
CAny high finding
BOnly medium or low findings
ANo findings

CLI options

OptionDefaultMeaning
--format=text|json|sariftextReport format. SARIF uploads to GitHub code scanning
--fail-on=any|critical|high|medium|noneanyExit 1 when a finding at or above this severity exists
--max-files=<n>5000Stop a path scan after this many files
--discover-shadowoffAdd the MCP09 host inventory to scan
--allowlist=<path>–Approved servers for --discover-shadow

Exit codes: 0 clean (or below --fail-on), 1 findings at or above --fail-on, 2 usage error.

MCP tools

ToolWhat it does
owasp_scan_pathThe scan mode over a path (path, maxFiles, discoverShadow, allowlistPath)
owasp_scan_liveThe live mode (url, or command with args)
owasp_scan_catalogThe catalog mode on a JSON string
list_owasp_coverageThe coverage table above

GitHub Actions

yaml
- run: npx -y @guardbee/mcp-owasp-scan scan . --format=sarif --fail-on=high > owasp.sarif- uses: github/codeql-action/upload-sarif@v3  if: always()  with:    sarif_file: owasp.sarif

Related packages

Each auditor is also its own package with more options: mcp-secret-scanner, mcp-server-auditor, mcp-oauth-auditor, mcp-audit-gap-auditor, mcp-context-oversharing-auditor, mcp-toxic-flow-auditor, mcp-tool-poisoning-scanner, mcp-config-auditor. To enforce these rules at runtime instead of finding them in code, put mcp-security-proxy in front of your MCP servers.

Feedback

Questions, ideas, or a false positive? Start a thread in GitHub Discussions or open an issue. If GuardBee is useful to you, a ⭐ on the repository helps others find it.

来源:packages/owasp-scan/README.md,提交 82be7b9

工具

4

owasp_scan_path

Run a unified OWASP MCP Top 10 scan over a filesystem path — orchestrates secret, server, oauth, audit-gap, context-oversharing, toxic-flow, and tool-poisoning auditors; returns A–F grade.

输入参数path必填maxFilesallowlistPathdiscoverShadow

owasp_scan_live

Connect to a live MCP server (stdio or HTTP), call tools/list, then grade toxic-flow + tool-poisoning (MCP03/MCP10).

输入参数urlargscommand

owasp_scan_catalog

Audit a tools/list JSON dump for toxic flows and tool-description poisoning (MCP03/MCP10).

输入参数labelcatalog必填

list_owasp_coverage

List OWASP MCP Top 10 categories and which GuardBee scanners cover them in this meta-scan

无需输入参数。

版本历史

9
  1. v0.5.2最新Nov 1, 2026
  2. v0.5.1Oct 30, 2026
  3. v0.4.0Oct 29, 2026
  4. v0.3.3Oct 22, 2026
  5. v0.3.2Oct 22, 2026
  6. v0.2.7Oct 14, 2026
  7. v0.2.6Oct 13, 2026
  8. v0.2.5Oct 11, 2026
  9. v0.2.2Oct 9, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Scan 集成