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 分

    请在仓库或注册中心条目中声明许可证。