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 集成