security-scan

Audit Claude Code configurations for security issues and misconfigurations.

2|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/Throokie/claude-code-skills --skill security-scan-throokie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan
Source: https://github.com/Throokie/claude-code-skills/tree/main/skills/security-scan
Command: npx skills add https://github.com/Throokie/claude-code-skills --skill security-scan-throokie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit Claude Code configurations for security issues using AgentShield to identify secrets, misconfigurations, and risky agent/MC settings.

Core Features & Use Cases

  • Scans CLAUDE.md for prompt-injection patterns and hardcoded secrets.
  • Scans settings.json, mcp.json, hooks, and agents/*.md for risky permissions and exposure.
  • Provides auto-fix opportunities and output formats for CI/CD integration.

Quick Start

Run a security scan of your Claude Code project with npx ecc-agentshield scan from the project root.

Frequently Asked Questions about security-scan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Claude Code configurations for security issues and hardcoded secrets?

To scan Claude Code configurations for security issues, run npx ecc-agentshield scan from your project root. This audits CLAUDE.md, settings.json, and mcp.json to identify hardcoded secrets, risky permissions, and prompt-injection patterns.

What security risks exist in Claude Code agents and MCP settings?

Security risks in Claude Code agents and MCP settings include prompt-injection patterns in CLAUDE.md, hardcoded secrets, and risky permissions or exposure in settings.json, mcp.json, hooks, and agent definitions. AgentShield detects these misconfigurations during audits.

Can I integrate Claude Code security audits into CI/CD pipelines?

You can integrate Claude Code security audits into CI/CD pipelines by configuring AgentShield scan outputs. The tool supports terminal, JSON, Markdown, and HTML report formats, enabling automated pre-commit checks and continuous configuration enforcement.

Does AgentShield require a specific environment to audit Claude Code projects?

AgentShield requires Node.js to audit Claude Code projects. You must install the tooling via npx ecc-agentshield or npm install -g ecc-agentshield before scanning project configurations for misconfigurations and security vulnerabilities.

Can AgentShield automatically fix security misconfigurations in Claude Code settings?

AgentShield offers an optional auto-fix feature to remediate security misconfigurations in Claude Code settings. Alongside generating JSON, Markdown, or HTML audit reports, it can automatically correct risky permissions and exposure found during the scan.

When should I run a security audit on my Claude Code project?

You should run a security audit on your Claude Code project during initial project setup, as part of ongoing maintenance, and during pre-commit checks. This ensures continuous enforcement of secure configurations and early detection of prompt risks.