AgentShield
Scans for and audits hidden .env files to ensure credentials and environment secrets are not accidentally committed or exposed.
Integrates with GitHub via dedicated Actions and Apps to perform automated security scans, report findings in PRs, and export SARIF data for GitHub Code Scanning.
Scans npm packages for supply chain risks, including known CVEs and typosquatting attacks.
Supports using local LLMs through Ollama for private, offline AI-driven security auditing of agent skills.
Leverages OpenAI models to conduct in-depth security analysis and detect complex vulnerabilities in AI agent implementations.
Performs advanced AST-based taint tracking and static analysis to detect 35+ security patterns in Python-based agents and tools.
Provides specialized security scanning to detect command injection, SQL injection, and unsafe code patterns in Rust implementations.
Identifies hardcoded Slack tokens and credentials within agent source code to prevent sensitive data exposure.
Detects hardcoded Stripe API keys and tokens during security audits of AI agent skills.
Audits YAML-based tool manifests and configurations for security risks, permission mismatches, and misconfigurations.
🛡️ AgentShield
Give your AI a health check.
One scan. Thirteen engines. One report.
You found an MCP Server / Skill / Plugin online and want to install it. But you're wondering:
Is this thing safe? Will it steal my API keys? Hijack my AI? Mine crypto?
AgentShield answers that in seconds. One command, 13 independent scanning engines, one clear report.
npx @elliotllliu/agent-shield scan ./that-thing-you-want-to-installThat's it. First run auto-installs all engines. After that, results come in seconds.
See It In Action
🛡️ 安全检测报告
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📁 检测对象: ./mcp-puppeteer
🔧 检测引擎: 13 个独立扫描器
⏱ 总耗时: 50.2s
──────────────────────────────────────────────────────
🔍 各方检测结论
──────────────────────────────────────────────────────
📋 AgentShield — 内置参考(AI Agent 基础检查)
结论: ⚠️ 发现 1 处需关注
• 代码混淆 📍 src/index.ts:1
🔍 Aguara — 通用代码安全
结论: ✅ 未发现风险
🔎 Semgrep — 代码质量与注入检测
结论: ✅ 未发现风险
🧪 Invariant — MCP Tool Poisoning 检测
结论: ✅ 未发现风险
🔬 Trivy — 漏洞扫描 + 密钥检测
结论: ✅ 未发现风险
🔑 Gitleaks — 密钥和 Token 泄露
结论: ✅ 未发现风险
🐍 Bandit — Python 代码安全
结论: ✅ 未发现风险
📡 Bearer — 数据流 + 隐私分析
结论: ✅ 未发现风险
──────────────────────────────────────────────────────
📊 综合结论
──────────────────────────────────────────────────────
✅ 所有引擎均未检出风险
(7/7 个外部引擎未检出风险)
✅ 后门/远程控制 — 7 个引擎均未检出
✅ 数据窃取 — 7 个引擎均未检出
✅ Prompt 注入 — 7 个引擎均未检出
✅ 挖矿行为 — 7 个引擎均未检出
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━One glance: 7 out of 7 external engines say it's clean. All major threats cleared. Safe to install.
Related MCP server: depguard
Why Trust It?
Because it's not one engine making the call. It's 13 independent scanning engines, each a specialist in their own domain. We bring them together:
Engine | What it's best at |
📋 AgentShield (reference) | AI Agent basics — skill hijack, prompt injection, MCP runtime |
🔍 Aguara | General security — 177 rules, data exfil, taint tracking |
🔎 Semgrep | Code quality — 2000+ rules, injection, XSS, hardcoded secrets |
MCP-specific — tool poisoning, cross-origin escalation, rug pull | |
🔬 Trivy | Vulnerability scan + secret detection + SBOM |
🔑 Gitleaks | Secret and token leak detection |
🐍 Bandit | Python code security |
📡 Bearer | Data flow + privacy analysis |
Secret detection + verification if active | |
Dependency vulnerabilities (Google OSV database) | |
🦑 Grype | Dependency vulnerability scanning |
🟢 njsscan | Node.js / JavaScript security |
Secret detection (Yelp) |
Each engine has its own strengths. We combine all of them into one report.
The built-in engine is reference-only — the overall conclusion is decided by the 7 external engines' consensus. The stronger they get, the stronger we get.
First Run
First time you run it, engines are auto-installed (to ~/.agentshield/, no sudo needed):
🔧 检查引擎...
✅ AgentShield — 已就绪
📦 Aguara — 正在安装... 完成
📦 Semgrep — 正在安装... 完成
📦 Invariant — 正在安装... 完成
📦 Trivy — 正在安装... 完成
📦 Gitleaks — 正在安装... 完成
📦 Bandit — 正在安装... 完成
📦 Bearer — 正在安装... 完成One-time setup. After that, it's instant.
What Can It Detect?
Risk | What it means |
🔴 Skill Hijack | It's secretly modifying your AI's config |
🔴 Backdoor | It can silently execute arbitrary code |
🔴 Remote Control | It's connecting to external servers + opening a shell |
⚠️ Data Theft | It reads your keys/files and sends them out |
⚠️ Prompt Injection | It's secretly adding instructions to your AI |
⚠️ Tool Poisoning | Hidden malicious instructions in tool descriptions |
⚠️ Obfuscated Code | Code is intentionally unreadable — might be hiding something |
⚠️ Vulnerabilities | Known CVEs in dependencies |
⚠️ Secret Leaks | API keys, tokens, passwords in source code |
ℹ️ Excessive Permissions | It asks for more than it needs |
More Options
# HTML report (shareable)
agent-shield scan ./dir --html -o report.html
# JSON (for CI/CD)
agent-shield scan ./dir --json
# Chinese report (default)
agent-shield scan ./dir --lang zh
# SARIF (GitHub Code Scanning)
agent-shield scan ./dir --sarif -o results.sarifInstall
# Recommended: use npx, nothing to install
npx @elliotllliu/agent-shield scan ./my-skill/
# Or install globally
npm install -g @elliotllliu/agent-shieldOur Philosophy
"We don't compete — we aggregate."
We bring every engine's strengths together, cross-validate their findings, and produce one unified report. The stronger each engine gets, the stronger AgentShield gets.
We're the X-ray machine, not the doctor. We show you what's inside — you decide whether to install it.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityCmaintenanceAdaptive security for AI agents: assess inputs for prompt injection, scan outputs for credential/PII leaks, teach new attack patterns to semantic memory, harden prompts, and monitor metrics. Runs locally via MCP stdio.Last updatedApache 2.0
- AlicenseAqualityAmaintenanceMCP security server for AI coding agents. 12 tools: pre-install guardian, vulnerability audit, supply-chain attack detection via static code analysis, and CycloneDX 1.6 SBOM generation. Zero runtime dependencies.Last updated145315Apache 2.0
- Alicense-qualityAmaintenanceReal security scanners for AI coding agents — SAST (441 rules), secret detection (419+ patterns), dependency CVEs (OSV.dev), MCP/skill vetting, MITRE ATT&CK. Open-source, Rust, freeLast updated17Apache 2.0
- Alicense-qualityAmaintenanceSecurity scanner for MCP servers — vet an MCP before you wire it into an agent. Detects prompt-injection, credential exfiltration (via taint analysis), RCE, and supply-chain risks, and catches cross-server exfil chains no single server reveals. Zero-dependency local CLI, SARIF output, CI-gateable, no account.Last updated609MIT
Related MCP Connectors
Zero-config MCP security scanner for AI-generated apps. 25K+ vulnerability patterns.
Zero-install security baseline for AI coding agents — OWASP/CWE-cited rules over MCP.
Security firewall for AI agents — scans MCP calls for injection, secrets, and risks.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/elliotllliu/agent-shield'
If you have feedback or need assistance with the MCP directory API, please join our Discord server