npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

agent-secret-guard

v0.2.3

Published

Dangerous config and secret scanner for AI coding agents, MCP, and local automation projects.

Readme

agent-secret-guard

閱讀語言:English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Español | Français | Deutsch | Português | Русский | العربية | हिन्दी | Bahasa Indonesia

面向 AI coding agent、MCP 與本地自動化專案的危險設定與 secret 掃描器。

agent-secret-guard 是一個 5 分鐘安全檢查工具,用來掃描一般 secret scanner 容易漏掉的位置:MCP 命令參數、AI coding 規則、本地自動化說明、瀏覽器 profile 路徑、credential store 參照,以及權限過寬的 GitHub Actions workflow。

為什麼需要它

AI coding agent 和 MCP server 讓本地自動化更快,但也把 secret 帶到了新的位置:

  • MCP 設定可能把 token 直接寫進 args,然後洩漏到行程列表、日誌或 shell 歷史裡。
  • Agent 指令檔可能包含危險 shell 命令、本機私有路徑或臨時除錯資訊。
  • 瀏覽器 profile 和 credential store 可能解鎖專案之外的帳號工作階段。
  • GitHub Actions 可能給發布任務過大的寫入權限。

快速開始

npx agent-secret-guard scan

在 CI 裡遇到 high 或 critical 風險時失敗:

npx agent-secret-guard scan . --fail-on high

產生 GitHub Code Scanning 可用的 SARIF:

npx agent-secret-guard scan . --format sarif --output agent-secret-guard.sarif --fail-on high

能發現什麼

  • MCP args 裡的 token 或 API key。
  • 硬編碼的 npm、PyPI、GitHub、GitLab、Hugging Face、Stripe、OpenAI、Anthropic 等 token。
  • /C:\/UsersC:\Users 這類過寬檔案系統存取。
  • 危險 shell 命令,例如遠端腳本直接 pipe 到 shell、遞迴刪除、chmod 777、Docker socket 暴露。
  • 瀏覽器 profile、cookie、credential store 路徑。
  • GitHub Actions 的 permissions: write-all@main@latest 等可變 action 參照。

和其他工具的關係

它不是 GitHub Secret Scanning、gitleaks、TruffleHog、detect-secrets 或 secretlint 的替代品。建議一起使用。

agent-secret-guard 的重點是 AI agent / MCP / 本地自動化設定層,特別是 MCP 參數、瀏覽器 profile、credential store、本機規則檔和 GitHub Actions 權限。

隱私

CLI 在本地掃描檔案,不上傳程式碼、不上傳報告,也不遠端驗證 token。報告仍可能包含私有路徑或上下文,所以請把 SARIF、JSON 和文字報告當作敏感工件處理。

更多文件