security-scan

Scan Claude Code configuration directories for security vulnerabilities and misconfigurations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually reviewing Claude Code configuration files for security gaps is time-consuming and error-prone, leaving projects vulnerable to prompt injection, hardcoded secret leaks, and overly permissive access controls that can be exploited by attackers.

Core Features & Use Cases

  • Multi-file Security Scanning: Audits CLAUDE.md, settings.json, MCP server configs, hooks, and agent definitions for common vulnerability patterns.
  • Severity-graded Reporting: Categorizes findings by criticality (from critical hardcoded secrets to minor missing deny lists) with clear remediation steps.
  • Use Case: Before committing changes to your project's .claude/ directory or onboarding to a new repository, run this scan to catch risks like unrestricted Bash access or command injection in hooks before they are exploited.

Quick Start

Use the security-scan skill to scan your project's .claude/ directory for security misconfigurations and get a prioritized list of fixes.

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 configs for prompt injection risks?

To scan Claude Code configs for prompt injection risks, use a security-scan tool to audit your .claude/ directory. It parses configuration files, detects hardcoded secrets, and generates severity-graded security reports with remediation steps.

What security vulnerabilities should I check before committing Claude Code settings?

When checking Claude Code settings for security vulnerabilities before committing, scan for hardcoded secrets, overly permissive access controls, unrestricted Bash access, and command injection in hooks to prevent exploitation.

Does security scanning for Claude Code require any specific tools?

Security scanning for Claude Code requires the AgentShield tool to parse configuration files. It audits CLAUDE.md, settings.json, MCP server configs, hooks, and agent definitions to detect hardcoded secrets and misconfigurations.

How do I audit MCP server configs and hooks for command injection?

To audit MCP server configs and hooks for command injection, run a multi-file security scan on your project's .claude/ directory. The scan identifies common vulnerability patterns and categorizes findings by criticality with clear fixes.

When should I run a security scan on my Claude Code configuration directory?

You should run a security scan on your Claude Code configuration directory during new project setup, before committing changes, or when onboarding to repositories with existing Claude Code configs to catch risks like unrestricted Bash access early.

What is the best way to review CLAUDE.md and settings.json for security misconfigurations?

The best way to review CLAUDE.md and settings.json for security misconfigurations is an automated scan that categorizes findings by criticality, from critical hardcoded secrets to minor missing deny lists, providing prioritized remediation steps.