🛡️ 用于AI代理工具和MCP服务器的安全防火墙(Claude 5、GPT-5.6、Gemini 3.8、Antigravity、Cursor、Codex、Hermes)。捕获指令注入、秘密盗窃和有毒流,时间为<50毫秒。
概览
AgentShield 是一款离线高性能 Rust 安全引擎,面向团队在现代 AI 堆栈中发布支持工具的 AI 代理。原生适配器涵盖 MCP 服务器、OpenClaw 技能、Hermes 代理配置、CrewAI、LangChain/LangGraph、GPT Actions 和光标规则;同样的检查帮助加固围绕 OpenAI Agents SDK、Claude Code、Claude 桌面 MCP 设置、浏览器使用、FastMCP、GitHub MCP 服务器、Playwright MCP 及其他工具密集型工作流构建的仓库。 它能在代理调用这些工具之前,捕捉命令注入、凭证泄露、SSRF、不安全文件访问、运行时包安装、提示注入表面以及依赖性卫生问题。 AgentShield 可作为 CLI、GitHub Action、VS Code 扩展或 Rust 库运行。它完全离线运行,源代码存储在你的机器上,并发布控制台、JSON、用于 GitHub 代码扫描的 SARIF 以及独立的 HTML 报告。当前版本是 1.0.2(正式发布)。
概述(AI 翻译)
在MCP和AI代理扩展发货前发现风险行为。
- 网站与互动游乐场
- 贡献
- 行为准则
- 安全政策
- 许可证
AgentShield 是一款离线高性能 Rust 安全引擎,面向团队在现代 AI 堆栈中发布支持工具的 AI 代理。原生适配器涵盖 MCP 服务器、OpenClaw 技能、Hermes 代理配置、CrewAI、LangChain/LangGraph、GPT Actions 和光标规则;同样的检查帮助加固围绕 OpenAI Agents SDK、Claude Code、Claude 桌面 MCP 设置、浏览器使用、FastMCP、GitHub MCP 服务器、Playwright MCP 及其他工具密集型工作流构建的仓库。
它能在代理调用这些工具之前,捕捉命令注入、凭证泄露、SSRF、不安全文件访问、运行时包安装、提示注入表面以及依赖性卫生问题。
AgentShield 可作为 CLI、GitHub Action、VS Code 扩展或 Rust 库运行。它完全离线运行,源代码保存在你的机器上,并发布控制台、JSON、用于 GitHub 代码扫描的 SARIF 文件以及独立的 HTML 报告。当前版本为 1.0.2(正式发布状态)。
一览
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
AgentShield
Find risky behavior in MCP and AI agent extensions before they ship.
AgentShield is an offline, high-performance Rust security engine for teams shipping tool-enabled AI agents across the modern AI stack. Native adapters cover MCP servers, OpenClaw skills, Hermes Agent configs, CrewAI, LangChain/LangGraph, GPT Actions, and Cursor Rules; the same checks help harden repositories built around OpenAI Agents SDK, Claude Code, Claude Desktop MCP setups, Browser Use, FastMCP, GitHub MCP Server, Playwright MCP, and other tool-heavy workflows.
It catches command injection, credential exfiltration, SSRF, unsafe file access, runtime package installs, prompt-injection surfaces, and dependency hygiene issues before an agent can call those tools.
AgentShield runs as a CLI, GitHub Action, VS Code extension, or Rust library. It operates 100% offline, keeping source code on your machine, and emits console, JSON, SARIF for GitHub Code Scanning, and standalone HTML reports. The current release line is 1.0.2 (General Availability).
At a glance
| Area | What AgentShield does |
|---|---|
| Scanner surface | Normalizes 11 framework/client families into one IR: MCP, OpenClaw, Hermes Agent, CrewAI, LangChain/LangGraph, GPT Actions, Cursor Rules, Vercel AI SDK, AutoGen, LlamaIndex, and Semantic Kernel. |
| Interprocedural Taint | Deep cross-function & cross-method call-graph analysis tracking untrusted inputs through utility wrappers to execution sinks in Python and TypeScript. |
| Detection | 37 built-in contextual rules plus a declarative YAML custom rule engine (.agentshield/rules/*.yaml). |
安装
docker run --rm -v "$PWD:/scan" ghcr.io/aiconnai/agentshield:1.0.2 scan .