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 整合