security-review
できること
このスキルは、コード、モジュール、機能のセキュリティの確認を、エージェントに案内します。攻撃者が実際に悪用できる弱点を探し、各々の修正方法を説明します。
使う場面
- ✓公開前に、新しいコードのセキュリティレビューを頼むとき。
- ✓機能が、ユーザーに本来見せるべきでないデータを見せたり、変えさせたりするかもしれないと疑うとき。
- ✓プロジェクト内の漏れたパスワード、鍵、安全でないコマンドを確認したいとき。
スキルのリンク
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/security-review/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ログイン機能にセキュリティの穴がないか確認して、危険なものがあれば修正方法を教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、外部の入力がコードのどこに入り、どこで害を及ぼすかを地図にします。そのデータを一歩ずつたどり、指摘できる問題だけを、ファイル名と修正方法を付けて報告します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Security Review
Produce findings a reviewer can verify, not a vibes pass. Every finding names the file, the reachable path that makes it real, and the fix.
Scope the review first
- What is under review: a diff, a module, a plugin bundle, a network surface. Say the boundary out loud before reading.
- Trust boundaries: where untrusted input enters (HTTP handlers, MCP tool args, file parsers, CLI flags, env vars, rendered content) and where authority is exercised (fs writes, network egress, process spawn, credential reads, signing).
- Prerequisites: a checked-out tree and the project's own test runner. Ask for credentials only if a live path genuinely needs them; never read secrets from the environment or keychain yourself.
Procedure
- Map entry points and sinks.
rgfor the handlers, deserializers, and exec/fs/net calls in scope. Follow data from entry to sink before judging it. - Authn/authz. Every mutating or sensitive handler checks identity and object-level authorization. Look for checks that exist on one path but not its sibling, and for checks done on the client only.
- Injection. Command lines, SQL, template eval, shell expansion, path joins under user influence, and markup that will render later — including generated HTML/markdown that carries repo content into a browser surface.
- Secrets.
rgfor token/key/secret patterns andgit log -pthe diff for credentials. Also check what gets logged or embedded in receipts, exports, or error messages. - Dependencies. Run the project's audit gate if it exists
(
cargo audit,npm audit,osv-scanner) — report versions and CVEs, not "deps look old". - Denial and abuse paths. Unbounded reads/allocations, missing timeouts on network calls, resource leaks in error paths, retry storms.
- Verify a finding before reporting it. Trace the real call path or write a minimal proof. A finding that "looks suspicious" but has no reachable path is a note, not a finding.
Findings format
For each: severity (exploitability × impact), file:line, the reachable path, a one-paragraph explanation, and the fix. Order by severity. Then a short "checked and clean" list naming what was audited and cleared — the scope statement means something only if the clear list is honest.
Recovery and limits
- If you cannot prove reachability, downgrade the claim and say what evidence is missing.
- Do not claim a formal audit, certification, or absence of vulnerabilities. This review finds defects; it does not prove none exist.
- Never fix-and-stay-quiet on a security finding in someone else's in-flight code — report it first.
Completion criteria
- Every entry point in scope was traced to its sinks.
- Findings carry file:line + reachability + fix; the clear list names what was actually checked.
- Severity ordering is defensible by exploitability, not by how loudly the code smells.
よくある質問
通常のコードレビューと同じですか?
いいえ。スキルは、一般的な品質、スタイル、コードの整理ではなく、悪用可能な弱点に焦点を当てます。
エージェントは私のパスワードや鍵を読みますか?
スキルは、エージェントが環境や鍵チェーンから秘密情報を自分で読むべきではないと定めています。ライブのテストで本当に必要なときだけ認証情報を求めます。
すべての指摘に修正方法が付きますか?
はい。各指摘には、ファイル、それを本当のリスクにする経路、そして提案される修正が挙げられています。
詳細
作者による元の説明
Review a change, module, or surface for exploitable defects — trust boundaries, authn/authz, injection, secret exposure, filesystem and network reach, dependency risk. Use when the user asks for a security review, audit, or vulnerability check of concrete code. Not for general code review, lint, or compliance paperwork.
repo: codewhale-hq/Codewhale
人気
- GitHubのスター
- 41k
- ランキング
- #6552
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
best-of-n
41k難しい問題に対して、独立した複数の答えを出し、同じ評価基準で採点し、チェックに合格したものだけを適用するのを、エージェントが助けます。
dataviz
41kデータに適したチャートやダッシュボードを選ぶのを、エージェントが助けます。ラベル、出典の注記、軸と欠損値の確認を含みます。
debug
41k問題を再現し、範囲を絞り込み、承認を得たときだけ修正することで、バグの本当の原因を見つけるのを、エージェントが助けます。推測はしません。
delegate
41k大きな作業を、同時に動く焦点の絞られた補助に分けつつ、計画、統合、最終確認を自分の手元に残す方法を教えます。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。