affaan-m avatar

Security Scan Skill

Installs
13.9k
Repo stars
316k
Repo updated
Dec 1, 2026

TL;DR

security-scan is a Claude Code skill that automatically audits Claude Code configuration for hardcoded secrets, prompt injection risks, overly permissive settings, and dangerous MCP server references for developers who n

Install if

Teams using Claude Code who change `.claude/settings.json`, MCP servers, or CLAUDE.md and want automated pre-commit security review.

Skip if

Developers who need application OWASP scanning, container image audits, or runtime penetration testing instead of agent configuration review.

npx skills add https://github.com/affaan-m/ECC --skill security-scan
On this page
  1. What security-scan covers
  2. security-scan by the numbers
  3. What does the Security Scan skill produce?
  4. What files ship with security-scan?
  5. Which skills are related to security-scan?
  6. What are the Security Scan skill forks?
  7. How does security-scan compare?
  8. Security Scan skill FAQ
  9. More in this repo

What security-scan covers

  • Scans CLAUDE.md, settings.json, mcp.json, hooks, and agents/*.md files
  • Detects hardcoded secrets, prompt injection patterns, and command injection risks
  • Identifies risky MCP servers and npx supply-chain issues
  • Checks for missing deny lists and dangerous bypass flags
  • Runs before commits and during project onboarding

security-scan by the numbers

All-time installs13,906 (13.9k)skills.sh registry
Repo stars★ 316kGitHub
Repo last updatedDecember 1, 2026GitHub
Repositoryaffaan-m/ECC ↗

Data as of Dec 4, 2026 (Skillselion catalog sync)

  • Scans 5 Claude Code configuration surfaces: CLAUDE.md, settings.json, mcp.json, hooks, and agent definitions

What does the Security Scan skill produce?

Security audit findings for CLAUDE.md, settings.json, MCP config, hooks, and agent definition files.

  • Configuration security findings
  • MCP and permissions risk report

What files ship with security-scan?

SKILL.mdMarkdownGitHub ↗

Security Scan Skill

AgentShield を使用して、Claude Code の設定のセキュリティ問題を監査します。

起動タイミング

  • 新しい Claude Code プロジェクトのセットアップ時
  • .claude/settings.json、CLAUDE.md、または MCP 設定の変更後
  • 設定変更をコミットする前
  • 既存の Claude Code 設定を持つ新しいリポジトリにオンボーディングする際
  • 定期的なセキュリティ衛生チェック

スキャン対象

ファイルチェック内容
CLAUDE.mdハードコードされたシークレット、自動実行命令、プロンプトインジェクションパターン
settings.json過度に寛容な許可リスト、欠落した拒否リスト、危険なバイパスフラグ
mcp.jsonリスクのある MCP サーバー、ハードコードされた環境シークレット、npx サプライチェーンリスク
hooks/補間によるコマンドインジェクション、データ流出、サイレントエラー抑制
agents/*.md無制限のツールアクセス、プロンプトインジェクション表面、欠落したモデル仕様

前提条件

AgentShield がインストールされている必要があります。確認し、必要に応じてインストールします:

# インストール済みか確認
npx ecc-agentshield --version

# グローバルにインストール(推奨)
npm install -g ecc-agentshield

# または npx 経由で直接実行(インストール不要)
npx ecc-agentshield scan .

使用方法

基本スキャン

現在のプロジェクトの .claude/ ディレクトリに対して実行します:

# 現在のプロジェクトをスキャン
npx ecc-agentshield scan

# 特定のパスをスキャン
npx ecc-agentshield scan --path /path/to/.claude

# 最小深刻度フィルタでスキャン
npx ecc-agentshield scan --min-severity medium
出力フォーマット
# ターミナル出力(デフォルト) — グレード付きのカラーレポート
npx ecc-agentshield scan

# JSON — CI/CD 統合用
npx ecc-agentshield scan --format json

# Markdown — ドキュメント用
npx ecc-agentshield scan --format markdown

# HTML — 自己完結型のダークテーマレポート
npx ecc-agentshield scan --format html > security-report.html
自動修正

安全な修正を自動的に適用します(自動修正可能とマークされた修正のみ):

npx ecc-agentshield scan --fix

これにより以下が実行されます:

  • ハードコードされたシークレットを環境変数参照に置き換え
  • ワイルドカード権限をスコープ付き代替に厳格化
  • 手動のみの提案は変更しない
Opus 4.6 ディープ分析

より深い分析のために敵対的な3エージェントパイプラインを実行します:

# ANTHROPIC_API_KEY が必要
export ANTHROPIC_API_KEY=your-key
npx ecc-agentshield scan --opus --stream

これにより以下が実行されます:

  1. 攻撃者(レッドチーム) — 攻撃ベクトルを発見
  2. 防御者(ブルーチーム) — 強化を推奨
  3. 監査人(最終判定) — 両方の観点を統合
安全な設定の初期化

新しい安全な .claude/ 設定をゼロから構築します:

npx ecc-agentshield init

作成されるもの:

  • スコープ付き権限と拒否リストを持つ settings.json
  • セキュリティベストプラクティスを含む CLAUDE.md
  • mcp.json プレースホルダー
GitHub Action

CI パイプラインに追加します:

- uses: affaan-m/agentshield@v1
  with:
    path: '.'
    min-severity: 'medium'
    fail-on-findings: true

深刻度レベル

グレードスコア意味
A90-100安全な設定
B75-89軽微な問題
C60-74注意が必要
D40-59重大なリスク
F0-39クリティカルな脆弱性

結果の解釈

クリティカルな発見(即座に修正)
  • 設定ファイル内のハードコードされた API キーまたはトークン
  • 許可リスト内の Bash(*)(無制限のシェルアクセス)
  • ${file} 補間によるフック内のコマンドインジェクション
  • シェルを実行する MCP サーバー
高い発見(本番前に修正)
  • CLAUDE.md 内の自動実行命令(プロンプトインジェクションベクトル)
  • 権限内の欠落した拒否リスト
  • 不要な Bash アクセスを持つエージェント
中程度の発見(推奨)
  • フック内のサイレントエラー抑制(2>/dev/null、|| true)
  • 欠落した PreToolUse セキュリティフック
  • MCP サーバー設定内の npx -y 自動インストール
情報の発見(認識)
  • MCP サーバーの欠落した説明
  • 正しくフラグ付けされた禁止命令(グッドプラクティス)

リンク

Which skills are related to security-scan?

What are the Security Scan skill forks?

Security Scan has 1 known copy in the catalog totaling 6.6k installs. They canonicalize to this original listing.

How does security-scan compare?

Pick security-scan over generic secret scanners when the goal is Claude Code agent configuration review rather than source-code dependency auditing.

Security Scan skill FAQ

Who is the Security Scan skill for?

Teams using Claude Code who change .claude/settings.json, MCP servers, or CLAUDE.md and want automated pre-commit security review. Skip if: Developers who need application OWASP scanning, container image audits, or runtime penetration testing instead of agent configuration review.

When should I use security-scan?

Claude Code settings, CLAUDE.md, MCP config, hooks, or agent definitions change, or when onboarding a repo with existing Claude configuration.

What files does security-scan check?

security-scan checks CLAUDE.md, settings.json, mcp.json, hooks, and agent definitions in the Claude Code configuration. AgentShield flags secrets, injection patterns, permissive permissions, and risky MCP references.

When should I run security-scan?

Run security-scan after changing .claude/settings.json, CLAUDE.md, or MCP configuration and before committing those changes. Also use it when onboarding repositories that already contain Claude Code setup.

What tool powers security-scan?

security-scan uses AgentShield to audit Claude Code configuration for security vulnerabilities, misconfigurations, and injection risks across project agent files and MCP server definitions.

Add a security-scan badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Get the embed code

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.