agent-shield
Scan AI agent skills, MCP servers, and plugins for security vulnerabilities. Use when: user asks to check a skill/plugin for safety, audit security, scan for backdoors/data exfiltration/credential leaks, or evaluate trust of a third-party skill. Triggers: "is this skill safe", "scan for security issues", "audit this plugin", "check for backdoors", "安全扫描", "扫一下安不安全".
- License 许可
- MIT
- 最近更新
- 2026-06-10
- Stars
- ★ 3
- Forks
- 0
01 前言 Front Matter
- name
- agent-shield
- description
- Scan AI agent skills, MCP servers, and plugins for security vulnerabilities. Use when: user asks to check a skill/plugin for safety, audit security, scan for backdoors/data exfiltration/credential leaks, or evaluate trust of a third-party skill. Triggers: "is this skill safe", "scan for security issues", "audit this plugin", "check for backdoors", "安全扫描", "扫一下安不安全".
03 SKILL.md 正文
AgentShield — Security Scanner
Scan any directory for security issues in AI agent skills, MCP servers, and plugins.
Usage
# Basic scan
npx @elliotllliu/agent-shield scan ./path/to/skill/
# Pre-install check (GitHub URL, npm package, or local path)
npx @elliotllliu/agent-shield install-check https://github.com/user/repo
# JSON output for programmatic use
npx @elliotllliu/agent-shield scan ./path/to/skill/ --json
# Fail if score is below threshold
npx @elliotllliu/agent-shield scan ./path/to/skill/ --fail-under 70
# Scan .difypkg plugin archives
npx @elliotllliu/agent-shield scan ./plugin.difypkg
What It Detects (30 rules)
High Risk:
data-exfil— reads sensitive files + sends HTTP requestsbackdoor— eval(), exec(), dynamic code executionreverse-shell— outbound socket to shellcrypto-mining— mining pool connectionscredential-hardcode— hardcoded API keys/tokensobfuscation— base64+eval, hex stringsprompt-injection— 55+ patterns, 12 categories, 8 languagestool-shadowing— tool name/description manipulationattack-chain— multi-step kill chain (5 stages)cross-file— cross-file data flow and code injectionast-*— Python AST taint tracking (eval, pickle, SQL injection, SSTI)multilang-injection— 8-language prompt injectiondescription-integrity— semantic mismatch between description and codemcp-runtime— MCP server runtime security issues
Medium Risk:
env-leak— process.env exfiltrationnetwork-ssrf— user-controlled URLs, SSRFprivilege— SKILL.md permission vs code mismatchsupply-chain— known CVEs in dependenciessensitive-read— SSH keys, AWS creds accessphone-home— periodic beacon/heartbeat patternpython-security— 35 Python-specific patterns
Low Risk:
excessive-perms— too many permissions declaredhidden-files— .env with secrets committedtyposquatting— suspicious npm package names
Interpreting Results
- Score 90-100: Low risk ✅
- Score 70-89: Moderate risk — review warnings
- Score 40-69: High risk — investigate before using
- Score 0-39: Critical risk — do not install
When to Use
- Before installing a third-party skill:
npx @elliotllliu/agent-shield install-check <url> - Auditing your own skills before publishing
- CI/CD pipeline gate:
--fail-under 70 - Reviewing skills from untrusted sources
04 同仓库更多 Skills
youtube-content
YouTube transcripts to summaries, threads, blogs.
xurl
X/Twitter via xurl CLI: post, search, DM, media, v2 API.
touchdesigner-mcp
Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.
test-driven-development
TDD: enforce RED-GREEN-REFACTOR, tests before code.
teams-meeting-pipeline
Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.
systematic-debugging
4-phase root cause debugging: understand bugs before fixing.