scanner-overview
できること
このスキルは、大きなコードフォルダを素早く一次スキャンし、セキュリティバグがありそうな場所を見つけるよう導きます。レビュー用の短いリストが必要なDecepticonパイプラインのセキュリティチーム向けです。
使う場面
- ✓コードベースが大きすぎて手作業で確認できず、疑わしい箇所の短いリストが必要なとき。
- ✓スキャンを並列のシャードに分けて、より速く終えたいとき。
- ✓後の確認者のために、最大50か所の候補を順位付けしたリストが必要なとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“当社のリポジトリには10万を超えるファイルがあります。スキャンして、確認すべき疑わしい箇所の短いリストをください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントはコードベースの規模を見積もり、スキャンをシャードに分けます。各シャードで決定的なスキャナーを実行し、結果を後の確認者のための候補箇所に順位付けします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Scanner Skill
You are the cheapest, fastest stage of the vulnresearch pipeline. Your
job is volume, not judgment: triage 10^4 – 10^6 files into a ranked list
of ~20–50 suspicious code locations, promote those to CANDIDATE nodes,
and hand back to the orchestrator.
Operating principles
- Scan through
scan_shard, never raw grep.scan_shardis deterministic, sharded, and cheap. Hand-rolled ripgrep through bash burns tokens and context. The only exception:ls,du,wc -lfor sizing decisions. - Parallelize shards aggressively. 20k files → 4 shards in one tool turn. 100k → 8. 500k → 16 across multiple turns.
- Promote no more than 50 candidates per sweep. The Detector's token budget is precious. More candidates = more FP work.
- Never read more than 40 lines of any file. If you want to actually understand code, you're in the wrong stage.
Decision: shard_total
| Files in root | shard_total |
|---|---|
| < 2,000 | 1 |
| 2,000 – 20,000 | 4 |
| 20,000 – 100,000 | 8 |
| > 100,000 | 16+ |
Workflow
1. ls -la /workspace/target # sanity-check scope
2. find /workspace/target -type f | wc -l # size estimate
3. scan_shard(root, 0, N), ..., scan_shard(root, N-1, N) # parallel
4. rank_candidates(concat_of_shard_outputs, top_k=50)
5. kg_add_candidate(...) for each top-ranked hit
6. "scanned X files, promoted Y candidates, top sinks: ..."
Sink kinds (reference)
code_exec, os_exec, sql, ssrf, deserialize, xss, path,
ssti, crypto, auth, secret_hardcode. See
decepticon/research/scanner_tools.py for the exact regex table.
What NOT to do
- Do NOT call
validate_finding,plan_attack_chains,cve_lookup, or any research tool beyond scanner/KG helpers. Those are for later stages. - Do NOT write
VULNERABILITY,FINDING, orHYPOTHESISnodes. OnlyCANDIDATE. - Do NOT speculate about exploitability. State facts: sink kind, path, line, score.
- Do NOT load other skills. This playbook is the only one you need.
よくある質問
どの発見が本物のバグかも判断しますか?
いいえ。候補を出すだけで、本物かどうかは後の段階で判断されます。
いくつの候補を渡しますか?
一回のスキャンにつき最大50件です。次の段階で扱える量に保つためです。
ファイル全体を読みますか?
いいえ。どのファイルでも最大40行しか読みません。深い読解は後の段階の仕事だからです。
詳細
作者による元の説明
Stage 1 broad-spectrum scanner playbook. Sharded sweep over very large codebases producing CANDIDATE nodes for the Detector to reason about. Load at scanner-agent startup.
人気
- GitHubのスター
- 6.5k
- ランキング
- #13901
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
detector-overview
6.5kエージェントが、スキャナーが指摘したコードを読み、本物のセキュリティバグと誤検知を見分けられるよう支援します。
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。