Secrets Audit Mcp

io.github.eltociear由 GitHub 帳號 eltociear 發布v1.0.1更新於 Oct 24, 2026

Detects leaked secrets & API keys: 32+ provider rules (AWS, GitHub, Stripe, OpenAI…), zero deps.

發布方自己的服務:audit.domains - Domain Valuation

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

一個本機 MCP 伺服器,掃描文字、檔案或目錄中外洩的 API 金鑰、權杖與私鑰,並回傳已去識別化的風險報告。

可以做什麼
掃描內嵌文字或內容中的外洩憑證,回傳風險分數、嚴重等級以及逐筆發現詳情,包含行號與已去識別化的比對內容。以相同方式掃描單一檔案。遞迴掃描目錄,並略過 .git、node_modules、pycache 等資料夾。依 32 條供應商規則進行比對,涵蓋雲端服務、原始碼與 CI、付款、通訊、AI/ML、Web3、PEM 私鑰與通用密鑰。
適用情境
適合在提交程式碼或開啟剛複製的儲存庫之前使用,也適合在由助理驅動的程式碼審查中檢查某次變更是否外洩憑證,或作為提交前與 CI 檢查。若希望由 AI 助理發起掃描,它是比大型密鑰掃描器更輕量的選擇。
執行需求
以本機 stdio 程序執行;README 建議以 python3 執行 Python 伺服器檔案,並提到 npm 封裝尚未提供。未宣告任何帳號、API 金鑰或環境變數。助理用戶端需設定為啟動該本機指令。
安裝前請注意
發現結果在回傳前已去識別化,但掃描結果仍會經過助理及其模型供應商。README 另宣傳付費訂閱、付費稽核服務以及另一個按次計費的 HTTP API;這些皆為選用,不屬於免費的本機伺服器。用於敏感儲存庫前,請先確認掃描器會將資料送往何處。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Secrets Audit Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

secrets-audit-mcp

[smithery badge] [MCP Registry]

MCP server that detects leaked credentials in source code. Zero dependencies. Single file.

[License: MIT] [Python 3.6+] [MCP] [Sister: skill-audit-mcp]

Detects API keys, OAuth tokens, private keys, webhooks, and crypto wallet secrets across 30+ providers (AWS, GCP, GitHub, Stripe, OpenAI, Anthropic, Slack, Discord, Telegram, Twilio, SendGrid, Heroku, DigitalOcean, npm, HuggingFace, Replicate, Cloudflare, and more).

Companion to skill-audit-mcp (behavioral patterns) — together they cover secrets + behaviors in one MCP toolchain.


Why

Most secret scanners are giant Go binaries (trufflehog, gitleaks). This is a 500-line Python file that runs as an MCP stdio server, so any LLM agent (Claude Desktop, Cursor, Windsurf, Cline) can ask it scan_directory and get a structured report in their tool-call response.

Use cases:

  • Pre-commit hook in CI
  • Agent-driven code review ("did this PR leak credentials?")
  • Audit a freshly-cloned repo before opening it in your shell
  • Inline scan during agent file edits

Install

bash
# Python (recommended)git clone https://github.com/eltociear/secrets-audit-mcp.gitpython3 secrets-audit-mcp/server.py  # stdio MCP server
# Or via npm wrapper (TBD)npm install -g @eltociear/secrets-audit-mcp

MCP client config

json
{  "mcpServers": {    "secrets-audit": {      "type": "stdio",      "command": "python3",      "args": ["/path/to/secrets-audit-mcp/server.py"]    }  }}

Tools

ToolUse case
scanScan inline text/content
scan_fileScan a single file
scan_directoryScan a directory recursively (skips .git, node_modules, __pycache__, etc.)

All return a risk score (0-100), severity bucket (CRITICAL/HIGH/MEDIUM/LOW/SAFE), and per-finding details with line numbers and redacted matches.


Coverage

Providers (32 rules total):

  • Cloud: AWS access/secret, GCP API key + service-account JSON, Heroku, DigitalOcean, Cloudflare
  • Source/CI: GitHub PAT/OAuth/App/Refresh/Fine-grained, npm tokens, Docker Hub PAT
  • Payments: Stripe secret + restricted
  • Comms: Slack bot/user/webhook, Discord bot/webhook, Telegram bot, Twilio, SendGrid, Mailgun
  • AI/ML: OpenAI, Anthropic, HuggingFace, Replicate
  • Web3: Ethereum private key (context-aware), Alchemy, Infura
  • Keys: RSA / EC / OpenSSH / PGP / generic PEM private keys
  • Generic: JWT, apikey="..." heuristic, generic secret assignments

Each match is redacted (AKIA***MPLE) before being returned, so the report itself doesn't leak the secret to the next LLM hop.


CI usage

yaml
- name: Secrets audit  run: |    python3 server.py <<EOF | jq -r '.result.content[0].text'    {"jsonrpc":"2.0","id":1,"method":"tools/call",     "params":{"name":"scan_directory","arguments":{"path":"."}}}    EOF

A first-class GitHub Action will ship as eltociear/secrets-audit-action@v1.


Sister project — skill-audit-mcp

skill-audit-mcp covers behavioral malware patterns (download-and-execute, prompt injection, credential exfiltration). Run both for full coverage:

LayerToolDetects
Static behaviorsskill-audit-mcpcurl-pipe-sh, exfiltration, prompt injection (68 patterns)
Static secretssecrets-audit-mcpleaked keys/tokens/PEMs (32 rules)

Subscribe — security pulse

Polar.sh — Security Pulse Monthly ships a monthly briefing on new MCP server vulnerabilities, secrets-audit-mcp rule updates, and mitigation playbooks. $5/mo.

Polar.sh — Pro Audit Stack adds 50 paid scan credits + Discord + custom rule submission. $20/mo.


License

MIT. See LICENSE.

Free MCP vs paid x402

This MCP server is free. For server-side / batch / no-install use, the same scanner is a pay-per-call x402 HTTP API: POST https://eltociear-secrets-audit.hf.space/audit ($0.01 USDC on Base) and /audit/url ($0.03). In the official MCP Registry as io.github.eltociear/secrets-audit-mcp.

Professional audit services

Maintained by the same author — paid services on Polar (Stripe checkout):

Full catalog: polar.sh/eltociear

Also live: clean-read ($0.005 / call)

Same operator, same x402 rails: clean-read turns any URL into clean Markdown for AI agents — fetches the page, strips nav/ads/boilerplate (trafilatura), returns the main content with title and word count. POST https://eltociear-skill-audit.hf.space/read — $0.005 USDC on Base, no signup.

來源:README.md,提交 300ba3c

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Audit 整合