detector-overview
できること
このスキルは、フラグが立てられたコードの箇所を確認し、本物のセキュリティバグと誤検知を分けるエージェントを導きます。Decepticonスキャンパイプラインを使うセキュリティチーム向けです。
使う場面
- ✓スキャナーが、慎重な確認が必要な不審なコードの場所を一覧にしたとき。
- ✓指摘された各箇所の周辺のソースコードを読んで確認したいとき。
- ✓本物のバグは記録し、誤検知は除外したいとき。
スキルのリンク
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/detector/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“スキャナーがアプリ内の20か所を指摘しました。その周辺のコードを読んで、どれが本物のバグか教えてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは各指摘箇所の近くのコードを読み、データがどこから入りどこで使われるかをたどります。その後、確認されたバグは記録し、誤検知は除外します。コードは読むだけで、変更しません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Detector Skill
You promote scanner candidates into real VULNERABILITY nodes — or
reject them as false positives — by reading the surrounding source.
You have no bash and no scanner tools. Only graph CRUD and source reads.
Per-candidate decision flow
- Pull candidate:
kg_query(kind="candidate", limit=20). - For each candidate (highest score first):
a. Read ±30 lines around
path:line. Prefer function boundaries. b. Identify: source? sink? taint path? sanitizer? c. Load the relevant playbook:/skills/standard/analyst/<vuln-class>/SKILL.md. Available classes: sql-injection, ssrf, deserialization, idor, ssti, xss, xxe, path-traversal, command-injection, prototype-pollution, prompt-injection, auth-bypass. d. Decide: promote, reject, or hypothesis-only. - Emit.
Promotion template
vuln = kg_add_node(
"vulnerability",
"SQLi in product search",
props='{"key":"app.py:search_products:sqli","severity":"high",'
'"file":"/workspace/target/app.py","line":142,"cwe":["CWE-89"],'
'"source":"request.args.get(\\"q\\")","sink":"cursor.execute",'
'"evidence":"cursor.execute(f\\"SELECT * FROM products WHERE name LIKE \'%{q}%\'\\")"}',
)
hyp = kg_add_node(
"hypothesis",
"Unsanitized query param flows into f-string SQL",
props='{"key":"app.py:search_products:sqli:hyp"}',
)
kg_add_edge(vuln_id, candidate_id, "derived_from")
kg_add_edge(hyp_id, vuln_id, "mapped_to")
Rejection template
Same kg_add_node call with the SAME key, plus status="rejected"
and reason="sanitized via html.escape before sink". Idempotent — the
graph upsert merges the rejection on top of the original candidate.
Severity calibration
| Signal | Severity |
|---|---|
| Unauth + external input + dangerous sink + no sanitizer | critical |
| Authed + dangerous sink, or unauth + partial sanitization | high |
| Requires specific input shape or edge case | medium |
| Theoretically reachable, requires multiple prereqs | low |
Anti-patterns
- Reading entire files. 30–200 lines is the ceiling.
- Emitting more than one
VULNERABILITYper (file, function, sink). - Running scanner tools ("let me re-scan this area"). Not your job.
- Writing bash commands. You do not have bash.
よくある質問
私のコードを変更しますか?
いいえ。読み取り専用で、指摘箇所の周辺のソースコードを読むだけです。
誤検知はどうなりますか?
除外されるため、パイプラインの後の段階で時間を無駄にしません。
どの種類のバグを確認しますか?
SQLインジェクション、パストラバーサル、コマンドインジェクション、クロスサイトスクリプティングなど、よくある種類を対象にしています。
詳細
作者による元の説明
Stage 2 vulnerability detector playbook. Reads source around CANDIDATE nodes and promotes real bugs to VULNERABILITY + HYPOTHESIS. Read-only. Load at detector-agent startup.
人気
- GitHubのスター
- 6.5k
- ランキング
- #13882
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
exploiter-overview
6.5kエージェントが、確認済みの複数のセキュリティ上の弱点を一つのテストの連鎖にまとめ、その影響がどこまで及ぶかを確認できるよう支援します。
llm-redteam-overview
6.5kエージェントが、プロンプトインジェクションからモデルの悪用まで、15の戦術グループの中から適切なAIレッドチーム用ガイドを見つけられるよう支援します。
aatmf-t01-prompt-injection
6.5kプロンプトインジェクションを説明します。隠された指示でAIシステムを乗っ取ろうとする手口を、セキュリティテスターが確認できるようにします。
aatmf-t02-linguistic-evasion
6.5k翻訳や符号化で依頼を偽装する方法を説明します。AIの安全フィルターが機能しているかをテストできるようにします。
似ているスキル
reverse-engineer-anything
422kREAツールを使って、出荷済みのアプリやパッケージの中身を調べ、機能の説明、版の比較、再構築の手順をエージェントが支援します。
1password
394k1Password CLIをセットアップし、サインインして、秘密情報の値を会話に表示せずに読み取ったり注入したりするようエージェントを支援します。
healthcheck
394kOpenClawを動かすコンピューターやサーバーを、SSH、ファイアウォール、更新、バックアップなどのセキュリティリスクについて監査し、安全な修正案を提案するようエージェントを支援します。