Agent Security

io.github.mdfifty50-boop由 GitHub 帳號 mdfifty50-boop 發布v0.1.3更新於 Oct 24, 2026

Security scanning and threat detection for AI agents

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

概覽

AI 產生的概覽

讓助理掃描 MCP 設定與代理設定,檢查安全性問題、提示注入、外洩的密鑰和權限問題。

可以做什麼
為 AI 代理工作流程提供安全分析工具:scan_mcp_config 檢查 MCP 伺服器設定中的危險指令、暴露的密鑰、網路暴露和容器設定錯誤;detect_prompt_injection 依七類攻擊分析文字;scan_secrets 找出 API 金鑰、權杖、私鑰、資料庫 URI 和憑證;validate_scope_contract 檢查動作是否符合工具允許清單和檔案存取邊界;audit_agent_permissions 將設定與角色設定檔比對;detect_tool_poisoning 找出工具定義中的隱藏指令;generate_security_report 產生依優先順序排列的修復報告。另提供 OWASP LLM Top 10 和 MCP 安全檢查清單資源。
適用情境
適合在檢視或強化 MCP 伺服器設定、稽核代理被允許執行的動作,或在代理處理不受信任的文字和工具定義前檢查注入或投毒指令時使用。
執行需求
以 npm 套件形式透過 stdio 在本機執行;需要 Node.js 18 或更新版本以及 Model Context Protocol SDK。未宣告帳號、API 金鑰或環境變數。
安裝前請注意
README 列出付費方案(Free、Starter、Pro、Enterprise)及月費,部分功能可能需要付費。這些工具會分析可能包含有效憑證的設定和文字,傳入的密鑰應視為敏感資訊。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

Agent Security MCP Server

Security scanning, prompt injection detection, secret leak detection, and agent permission auditing for AI agent workflows. Built on the Model Context Protocol (MCP).

Tools

ToolDescription
scan_mcp_configScan MCP server configurations for security issues (dangerous commands, exposed secrets, network exposure, container misconfigs)
detect_prompt_injectionAnalyze text for prompt injection attempts across 7 attack categories with context-aware risk scoring
validate_scope_contractCheck if agent actions comply with scope contracts (tool allowlists, file access, boundary constraints)
scan_secretsDetect leaked API keys, tokens, private keys, database URIs, and credentials in text or code
audit_agent_permissionsAudit agent configurations against role-based expectations and flag principle of least privilege violations
generate_security_reportGenerate comprehensive security assessment reports with prioritized remediation plans
detect_tool_poisoningAnalyze MCP tool definitions for hidden instructions that could manipulate agent behavior (OWASP Agentic Top 10)

Resources

ResourceURIDescription
OWASP LLM Top 10security://owasp-llm-top10OWASP Top 10 for LLM Applications (2025)
MCP Security Checklistsecurity://mcp-security-checklistSecurity checklist for MCP server deployments

Installation

bash
cd agent-security-mcpnpm install

Usage

As a standalone server

bash
npm start

In Claude Desktop / MCP client configuration

json
{  "mcpServers": {    "agent-security": {      "command": "node",      "args": ["/path/to/agent-security-mcp/src/index.js"]    }  }}

With npx (after publishing)

json
{  "mcpServers": {    "agent-security": {      "command": "npx",      "args": ["@asl-throne/agent-security-mcp"]    }  }}

Detection Coverage

Prompt Injection (7 categories, 20+ patterns)

  • Instruction Override -- "ignore previous instructions", "disregard all rules", "new instructions:"
  • Identity Manipulation -- "you are now", "pretend you are", "act as", DAN/jailbreak
  • System Prompt Extraction -- "repeat your system prompt", "show your instructions"
  • Data Exfiltration -- "send this to", "post to webhook", "email everything to"
  • Delimiter Attacks -- ```system, [INST], <|im_start|>system, XML tag injection
  • Encoded Injection -- Base64 payloads, unicode zero-width characters, hex escapes
  • Privilege Escalation -- "sudo mode", "disable safety", "bypass filters"

Secret Detection (25+ patterns)

  • AI Provider Keys -- OpenAI (sk-), Anthropic (sk-ant-)
  • Cloud Credentials -- AWS (AKIA*), GCP (AIza*), Azure connection strings
  • Source Control -- GitHub PATs (ghp_, github_pat_), OAuth tokens (gho_*)
  • Payment -- Stripe live/test keys (sk_live_, sk_test_)
  • Communication -- Slack tokens/webhooks, Telegram bot tokens
  • Database -- PostgreSQL, MongoDB, MySQL, Redis connection URIs
  • Cryptographic -- RSA/EC/OpenSSH private keys, generic PEM blocks
  • JWT -- JSON Web Tokens
  • Generic -- api_key=, secret=, password=, .env file patterns

Permission Audit (6 role profiles)

  • Researcher -- Read + search + web only
  • Analyst -- Read + search only
  • Developer -- Read + write + execute
  • Reviewer -- Read only, no network
  • Orchestrator -- Read + write + task spawning
  • Monitor -- Read only, no network, no write

Pricing

PlanPriceServersFeatures
Free$01 serverSingle scan, basic report
Starter$49/month3 serversContinuous scanning, weekly reports
Pro$199/month20 serversReal-time alerts, CI/CD integration, Slack notifications
Enterprise$799/monthUnlimitedCustom policies, EU AI Act compliance reporting, SSO, dedicated support

Requirements

  • Node.js >= 18.0.0
  • @modelcontextprotocol/sdk >= 1.12.0

License

MIT

來源:README.md,提交 c160878

工具

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

版本歷史

1
  1. v0.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。