Claude Code Security Scan
/install claude-code-security-scan
Security Scan
Audit Claude Code configuration for security issues using AgentShield.
When to Activate
- Setting up a new Claude Code project
- After modifying settings.json, CLAUDE.md, or MCP configs
- Before committing configuration changes
- Onboarding to repo with existing configs
- Periodic security hygiene checks
What It Scans
CLAUDE.md— Hardcoded secrets, auto-run instructions, injection patternssettings.json— Overly permissive allow lists, missing deny listsmcp.json— Risky MCP servers, hardcoded env secretshooks/— Command injection via interpolation, data exfiltrationagents/— Unrestricted tool access, missing model specs
Setup & Usage
# Install globally (recommended)
npm install -g ecc-agentshield
# Or run via npx (no install needed)
npx ecc-agentshield scan
Commands
# Basic scan
npx ecc-agentshield scan
# Scan specific path
npx ecc-agentshield scan --path /path/to/.claude
# Filter by severity
npx ecc-agentshield scan --min-severity medium
# Output formats
npx ecc-agentshield scan --format json
npx ecc-agentshield scan --format markdown
npx ecc-agentshield scan --format html > report.html
# Auto-fix safe issues
npx ecc-agentshield scan --fix
# Deep analysis (requires ANTHROPIC_API_KEY)
npx ecc-agentshield scan --opus --stream
# Initialize secure config
npx ecc-agentshield init
Severity Grades
| Grade | Score | Meaning |
|---|---|---|
| A | 90-100 | Secure |
| B | 75-89 | Minor issues |
| C | 60-74 | Needs attention |
| D | 40-59 | Significant risks |
| F | 0-39 | Critical |
Critical Findings (Fix Immediately)
- Hardcoded API keys in config
Bash(*)unrestricted shell access- Command injection via
${file}interpolation - Shell-running MCP servers
High Findings (Fix Before Production)
- Auto-run instructions in CLAUDE.md
- Missing deny lists
- Unnecessary Bash access in agents
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claude-code-security-scan - After installation, invoke the skill by name or use
/claude-code-security-scan - Provide required inputs per the skill's parameter spec and get structured output
What is Claude Code Security Scan?
Audit Claude Code configuration for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Scans settings, MCP servers, hooks, a... It is an AI Agent Skill for Claude Code / OpenClaw, with 139 downloads so far.
How do I install Claude Code Security Scan?
Run "/install claude-code-security-scan" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Claude Code Security Scan free?
Yes, Claude Code Security Scan is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Claude Code Security Scan support?
Claude Code Security Scan is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Claude Code Security Scan?
It is built and maintained by Deonte Cooper (@djc00p); the current version is v1.0.0.