A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Claude Code security skills: /security-review, /full-scan, /security-scan — with test harness and fixtures
Claude Code 用セキュリティスキル3種と、それを評価するテストハーネスのセットです。
| タイミング | スキル | 対象 |
|---|---|---|
| PR 作成時 | /security-review | git diff のみ・静的解析 |
| リリース前 | /full-scan | 全ソースファイル + 依存関係 CVE |
| デプロイ後 | /security-scan | ランタイム挙動・HTTP 動的テスト |
3スキルを組み合わせることで、開発サイクル全体をカバーします。
gh skill で1コマンド)GitHub 公式の gh skill コマンドに対応しているので、1行で導入できます。
gh skill install sabakan0123/claude-security-skills
実行すると、対話プロンプトでインストール先のエージェント(Claude Code / Cursor / Codex 等)とスコープ(ユーザー全体 / プロジェクト単位)を聞かれます。Claude Code の場合は ~/.claude/skills/ 配下に3つのスキルが配置されます。
[!NOTE]
gh skillは GitHub CLI v2.90.0 以上 が必要です。 アップグレード:brew upgrade gh(macOS)または GitHub CLI releases から手動インストール。
セキュリティ系のスキルを「中身も見ずに」入れるのは正直オススメできないので、preview で先に確認するのを推奨します。
# SKILL.md の中身を表示するだけ(インストールはされない)
gh skill preview sabakan0123/claude-security-skills
CI/CD に組み込む場合は --pin でタグを固定してください。
gh skill install sabakan0123/claude-security-skills --pin v0.2.0
gh skill update でも勝手に更新されなくなります。
gh skill update --dry-run # 何が更新されるか先に確認
gh skill update # 実行
gh skill が使えない環境)cp commands/*.md ~/.claude/commands/
詳細な設定手順は templates/security-skills-setup.md を参照してください。
/security-review — 差分ベース静的解析PR・ブランチの git diff を対象に、変更されたコードのみをセキュリティ解析します。
検出対象:
dangerouslySetInnerHTML 等)特徴: 偽陽性フィルタリング(信頼度 0.8 以上のみ報告)、既存のセキュリティパターンとの比較分析
/full-scan — 全ファイル静的解析(言語・フレームワーク非依存)プロジェクト構造を自動検出し、全ソースファイルの静的解析と依存関係 CVE スキャンを並列実行します。
特徴:
npm audit / pip-audit / cargo audit 等の依存関係スキャンgitleaks によるシークレット漏洩チェック/security-scan — ランタイム検証ステージング環境にデプロイ済みのサーバーに対して HTTP 動的テストを実行します。
検証内容:
前提: security-agent.config.yml と STAGING_URL 環境変数が必要
| 領域 | カバレッジ |
|---|---|
| OWASP Top 10 ベース | 約 65〜70% |
| コードパターン系(injection, XSS, hardcoded key) | 約 90% |
| 依存関係 CVE | 約 85% |
| HTTP 設定ミス | 約 75% |
| ビジネスロジック・インフラ設定 | ペネトレーションテスト(人手)が必要 |
| 領域 | 推奨手段 |
|---|---|
| 変更差分以外の既存コードの脆弱性 | /full-scan |
| 依存関係の既知 CVE | /full-scan |
| デプロイ後のランタイム挙動 | /security-scan |
| ビジネスロジックの欠陥 | ペネトレーションテスト |
| インフラ・クラウド設定(IAM 等) | インフラ担当者レビュー |
| ゼロデイ脆弱性 | CVE データベース外のため検出不可 |
tests/security-skills/ にフィクスチャと採点基準(expected.json)が含まれます。
| ディレクトリ | 内容 |
|---|---|
fixtures/vuln/ | Easy: 基本的な脆弱性パターン |
fixtures/safe/ | Easy: 安全なパターン(偽陽性テスト) |
fixtures/hard-vuln/ | Hard: 一見安全に見える脆弱性 |
fixtures/hard-safe/ | Hard: 一見危険に見える安全なパターン |
fixtures/attacker/ | Attacker: 実攻撃者レベルのパターン |
fixtures/attacker-safe/ | Attacker: 難しい安全パターン |
fixtures/no-comment-vuln/ | No-Comment: コメントなし脆弱コード |
fixtures/no-comment-safe/ | No-Comment: コメントなし安全コード |
fixtures/deep-chain/ | 6ファイル深連鎖(JWT 署名検証なし) |
fixtures/framework-bypass/ | Next.js middleware + rewrite バイパス |
fixtures/infra-combo/ | CSP 設定 + XSS 組み合わせ |
/full-scan による評価)| 難易度 | Recall | FP Rate |
|---|---|---|
| Easy | 100% | 0% |
| Hard | 100% | 0% |
| Attacker-level | 100% | 0% |
| No-Comment | 100% | 0% |
| 深連鎖(6ファイル) | 100% | 0% |
| フレームワーク挙動依存 | 100% | 0% |
| インフラ設定組み合わせ | 100% | 0% |
Claude Code で以下を実行します:
/full-scan tests/security-skills/fixtures
expected.json の採点基準と照合して、検出漏れ・偽陽性を確認してください。
claude-security-skills/
├── skills/ # gh skill install で使用(推奨)
│ ├── security-review/
│ │ └── SKILL.md # /security-review スキル本体
│ ├── full-scan/
│ │ └── SKILL.md # /full-scan スキル本体
│ └── security-scan/
│ └── SKILL.md # /security-scan スキル本体
├── commands/ # 手動インストール用(legacy)
│ ├── security-review.md
│ ├── full-scan.md
│ └── security-scan.md
├── templates/
│ ├── security-agent.config.template.yml # /security-scan 設定テンプレート
│ └── security-skills-setup.md # 新プロジェクト導入手順
└── tests/
└── security-skills/
├── expected.json # 採点基準(模範解答)
└── fixtures/ # テスト用コードフィクスチャ
MIT
1000+ skills curated from Anthropic, Vercel, Stripe, and other engineering teams
Claude Code skill for YouTube creators — channel audits, video SEO, retention scripts, thumbnails, content strategy, Sho
Design enforcement with memory — keeps your UI consistent across a project
AI image generation skill for Claude Code -- Creative Director powered by Gemini