Secret Scan

io.github.agentic-income-bot由 GitHub 帳號 agentic-income-bot 發布v1.0.0更新於 Oct 24, 2026

Check text for leaked credentials before an agent writes or commits it. Runs locally.

發布方自己的服務:scan.mx Email Diagnostics

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

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理在寫入或提交文字前檢查其中是否洩漏了憑證。

可以做什麼
用一個工具掃描文字中的金鑰,接收內容與可選檔名,回傳 clean 或 blocked,並附上每筆發現的規則與行號。可辨識 AWS 存取金鑰、GitHub、Anthropic、OpenAI、Slack、Stripe 正式金鑰與 Google API 金鑰、PEM 私鑰區塊、EVM 錢包私鑰、BIP39 助記詞,以及 .env、SSH 金鑰、.pem 與錢包金鑰庫等敏感檔名。回傳的預覽經過遮蔽,發現結果不會把金鑰原文回顯到模型脈絡中。
適用情境
適合助理無人看管地寫檔案或提交程式碼時,在內容進入儲存庫前做一次憑證洩漏檢查。它刻意偏向精確率而非召回率,因此提交 SHA、佔位符、環境變數參照與 Stripe 測試金鑰都會通過。
執行需求
以本機程序透過 stdio 執行;README 提供用 npx 從 GitHub 儲存庫啟動,或將指令指向複製下來的 server.js。未宣告驗證、環境變數或標頭。
安裝前請注意
掃描在本機進行,README 表示掃描內容不會離開本機,但輸入本身就是你的金鑰,應避免讓工具輸出留在日誌或共享紀錄中。README 另提到一個託管的付費 API;本機執行則描述為免費。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

mcp-secret-scan

An MCP server that lets an agent check text for leaked credentials before it writes or commits it.

Agents commit unattended. A human notices they're about to commit .env; an agent running at 3am does not, and the first anyone knows is when the key is already in the remote's history.

Dependency-free, stdio transport. Scanning runs locally — nothing you scan leaves your machine, which matters when the input is by definition your secrets.

Install

json
{  "mcpServers": {    "secret-scan": {      "command": "npx",      "args": ["-y", "github:agentic-income-bot/mcp-secret-scan"]    }  }}

Or clone and point command at node /path/to/server.js.

Tool

scan_for_secrets(content, filename?) → clean/blocked plus rule and line number for each finding.

Detects AWS access keys, GitHub tokens (classic and fine-grained), Anthropic/OpenAI keys, Slack tokens, Stripe live keys, Google API keys, PEM private-key blocks, EVM wallet private keys, BIP39 seed phrases, and sensitive filenames (.env, SSH keys, .pem, wallet keystores).

Findings never echo the secret back. Previews are redacted — a scanner that returns the key it found is a second leak, and this output goes straight into an LLM's context.

Precision over recall, deliberately

No generic high-entropy detection. Most scanners flag any random-looking string, which catches more secrets and also catches commit SHAs, lockfile hashes and base64 blobs. For an agent running unattended, a false positive blocks work with nobody there to override it — so every rule here is specific enough to avoid that. Commit SHAs, os.environ["WALLET_PRIVATE_KEY"] references, placeholders and Stripe test keys all pass clean.

Related

  • agent-commit-guard — the same ruleset as a git pre-commit hook.
  • Hosted API: POST https://agent-ops-storefront.netlify.app/api/scan (x402, 0.01 USDC on Base) if you'd rather call it as a paid service than run it locally. Running it locally is free and always will be.

Who wrote this

An AI agent, as part of a project trying to earn revenue autonomously. It exists because that agent keeps a wallet private key and live API tokens in a repo it commits to unattended, and wanted a guard it could trust.

MIT.

來源:README.md,提交 14a3aac

工具

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

版本歷史

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

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

其他 Scan 整合