security-scan

Scan Claude Code configuration directories for security vulnerabilities and misconfigurations.

2|Updated May 11, 2026
One-click install
npx skills add https://github.com/himanshu231204/AI_Research_agent --skill security-scan-himanshu231204
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan
Source: https://github.com/himanshu231204/AI_Research_agent/tree/main/.opencode/skills/security-scan
Command: npx skills add https://github.com/himanshu231204/AI_Research_agent --skill security-scan-himanshu231204

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manually reviewing Claude Code configuration files for security issues is time-consuming and error-prone, leaving projects vulnerable to hardcoded secrets, prompt injection attacks, and overly permissive access controls that could lead to data breaches or unauthorized system access.

Core Features & Use Cases

  • Multi-file Security Scanning: Audits CLAUDE.md, settings.json, MCP server configs, hooks, and agent definition files for common security flaws.
  • Actionable Severity Grading: Rates findings from A (secure) to F (critical vulnerabilities) with clear remediation guidance.
  • Use Case: Before pushing your project's Claude Code configuration to a shared repository, run this scan to catch hardcoded API keys or unrestricted Bash access rules that could expose your development environment.

Quick Start

Use the security-scan skill to audit your project's .claude directory for security vulnerabilities and misconfigurations.

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 configuration files for security vulnerabilities?

To scan Claude Code configuration files for security vulnerabilities, audit the .claude directory to analyze CLAUDE.md, settings.json, and MCP server configs. This process detects hardcoded secrets, prompt injection patterns, and overly permissive access controls, assigning a severity grade from A to F with remediation guidance.

What is a prompt injection risk in Claude Code agent definitions?

A prompt injection risk in Claude Code agent definitions occurs when malicious instructions manipulate agent behavior. Configuration auditing detects these injection patterns alongside hardcoded secrets and misconfigurations in agent files, preventing unauthorized system access and potential data breaches in your development environment.

Can I audit MCP server configs and hooks for overly permissive access controls?

Yes, you can audit MCP server configs and hooks for overly permissive access controls. The security scan analyzes these configuration files to identify unrestricted Bash access rules and misconfigurations, providing actionable severity grading to secure your Claude Code development environment.

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

You should run a security audit on your Claude Code development environment during pre-commit configuration reviews, new project onboarding, and periodic security hygiene checks. This catches hardcoded API keys and unrestricted access rules before pushing configurations to a shared repository.

Does the Claude Code config audit require external dependencies or components?

No, the Claude Code config audit requires no external dependencies or components. It leverages AgentShield internally to analyze configuration directories and evaluate security risks, making it straightforward to run without additional environment setup.