Install
openclaw skills install agentshield-scannerScan 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...
openclaw skills install agentshield-scannerScan any directory for security issues in AI agent skills, MCP servers, and plugins.
# 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
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 issuesMedium 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 patternsLow Risk:
excessive-perms — too many permissions declaredhidden-files — .env with secrets committedtyposquatting — suspicious npm package namesnpx @elliotllliu/agent-shield install-check <url>--fail-under 70