Skip to content
affaan-m avatar

Security Scan

Read-only audit tool that scans a .claude/ directory for security vulnerabilities, misconfigurations, and injection risks.

CCM score
69 of 100
skills.sh installs
13.4K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers CLAUDE.md, settings.json, MCP server configs, hooks, and agent definitions, each checked for distinct risk categories
  • Grades results A through F and reports in terminal, JSON, Markdown, or HTML, with --fix applying only auto-fixable changes
  • Flags critical issues such as hardcoded secrets, Bash(*) allow entries, and hook command injection via ${file} interpolation
  • Designed for auditing configs before commits and in CI through a GitHub Action with a fail-on-findings option

Install

$ npx -y skills add affaan-m/ecc --skill security-scan -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Security Scan Skill

Audit your Claude Code configuration for security issues using AgentShield.

When to Activate

  • Setting up a new Claude Code project
  • After modifying .claude/settings.json, CLAUDE.md, or MCP configs
  • Before committing configuration changes
  • When onboarding to a new repository with existing Claude Code configs
  • Periodic security hygiene checks

What It Scans

FileChecks
CLAUDE.mdHardcoded secrets, auto-run instructions, prompt injection patterns
settings.jsonOverly permissive allow lists, missing deny lists, dangerous bypass flags
mcp.jsonRisky MCP servers, hardcoded env secrets, npx supply chain risks
hooks/Command injection via interpolation, data exfiltration, silent error suppression
agents/*.mdUnrestricted tool access, prompt injection surface, missing model specs

Prerequisites

AgentShield must be installed. Check and install if needed:

# Check if installed
npx ecc-agentshield --version

# Install globally (recommended)
npm install -g ecc-agentshield

Details

Repository
github.com/affaan-m/ecc
Categories
Security, Code Review & Quality, Skill & Plugin Building
First seen
Jul 14, 2026

Questions

What does the security-scan skill check in Claude Code?

The security-scan skill audits your .claude/ directory for vulnerabilities, misconfigurations and injection risks using AgentShield. It checks CLAUDE.md, settings.json, MCP servers, hooks and agent definitions.

How do I install the security-scan skill?

Run npx -y skills add affaan-m/ecc --skill security-scan -y in your project. The skill then lets the agent scan your Claude Code configuration for security issues and can auto-fix safe findings.

Does security-scan need AgentShield or an API key?

AgentShield must be installed, which you can do globally with npm install -g ecc-agentshield or run directly through npx. The optional Opus 4.6 deep analysis requires an ANTHROPIC_API_KEY, while the basic scan does not.

Where does security-scan rank among Security skills?

On the Claude Marketplaces Security category page it ranks in the top 50. It sits alongside skills such as security-audit and firebase-security-rules-auditor, and it focuses on auditing Claude Code configuration files.

More from affaan-m/ecc

All 257

Similar to Security Scan

More Security