The security-scan skill audits Claude Code project configurations for vulnerabilities, misconfigurations, and injection risks by scanning the `.claude/` directory using AgentShield, checking files like CLAUDE.md, settings.json, MCP servers, hooks, and agent definitions. It's designed for developers and teams setting up new Claude Code projects or modifying existing configurations who need to identify and remediate security issues before deployment. This skill solves the problem of detecting hardcoded secrets, overly permissive access controls, prompt injection vectors, and command injection risks that could compromise Claude Code agent security.

skills.sh installs
5.9K
GitHub stars
229.1K
last updated
Jul 14, 2026

Install

$ npx -y skills add affaan-m/everything-claude-code --skill security-scan --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/everything-claude-code
Category
Security

More from affaan-m/everything-claude-code

All 256

Recommended

More Security
1affaan-m avatarsecurity-scanaffaan-m/eccScan your Claude Code configuration (.claude/ directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.m5.8Kskills.sh installs
2trailofbits avataralgorand-vulnerability-scannertrailofbits/skillsScans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access contr5.6Kskills.sh installs
3yaklang avatarai-ml-securityyaklang/hack-skillsAI/ML security playbook. Use when assessing model supply chain attacks (pickle RCE, poisoned weights), adversarial examples, model poisoning, model stealing, da3.8Kskills.sh installs
4affaan-m avatarllm-trading-agent-securityaffaan-m/everything-claude-codellm trading agent security3.6Kskills.sh installs
5affaan-m avatardefi-amm-securityaffaan-m/everything-claude-codedefi amm security3.5Kskills.sh installs
6boshu2 avatarsecurityboshu2/agentopsRun authorized repository security scans for1.4Kskills.sh installs