security-scan

Scan Claude project configuration files for security vulnerabilities.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/xxih/ai-harness-zh --skill security-scan-xxih
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan
Source: https://github.com/xxih/ai-harness-zh/tree/main/references/translations/everything-claude-code/docs/zh-CN/skills/security-scan
Command: npx skills add https://github.com/xxih/ai-harness-zh --skill security-scan-xxih

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Insecure or misconfigured Claude project files can expose hard‑coded secrets, unsafe permissions, and injection points, risking breaches and execution attacks.

Core Features & Use Cases

  • Comprehensive scanning of CLAUDE.md, settings.json, mcp.json, hooks, and agent definitions for common security issues.
  • Automatic remediation options to fix easily correctable problems such as replacing hard‑coded keys with environment variables.
  • CI/CD integration via GitHub Action to enforce security gates before merges.
  • Use case: Before committing changes to a Claude repository, run the skill to ensure no new vulnerabilities are introduced.

Quick Start

Ask the security‑scan skill to analyze the current .claude directory and report any security findings.

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

To scan Claude project configuration files for security vulnerabilities, apply this skill to your codebase to detect hard-coded keys, unsafe permissions, and injection vectors using AgentShield during setup, changes, or CI pipeline execution.

What security issues can be found in Claude settings and agent definitions?

Security issues in Claude settings and agent definitions include hard-coded secrets, unsafe permissions, and injection points, which risk breaches and execution attacks if left misconfigured.

Can I run a Claude config security scan in a CI/CD pipeline?

You can run a Claude config security scan in a CI/CD pipeline via GitHub Action to enforce security gates before merges, ensuring no new vulnerabilities are introduced to the repository.

How do I fix hard-coded keys found in Claude configuration files?

To fix hard-coded keys found in Claude configuration files, use the skill's automatic remediation options to easily correct problems by replacing hard-coded keys with environment variables.

When should I scan a Claude repository for misconfigured settings and hooks?

You should scan a Claude repository for misconfigured settings and hooks before committing changes to ensure no new vulnerabilities are introduced, or during initial setup and CI pipeline execution.