本文へスキップ
Skillpedia
セキュリティ6.5k · #13882

detector-overview

できること

このスキルは、フラグが立てられたコードの箇所を確認し、本物のセキュリティバグと誤検知を分けるエージェントを導きます。Decepticonスキャンパイプラインを使うセキュリティチーム向けです。

使う場面

  • ✓スキャナーが、慎重な確認が必要な不審なコードの場所を一覧にしたとき。
  • ✓指摘された各箇所の周辺のソースコードを読んで確認したいとき。
  • ✓本物のバグは記録し、誤検知は除外したいとき。

スキルのリンク

https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/detector/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/detector/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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

  1. Pull candidate: kg_query(kind="candidate", limit=20).
  2. 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.
  3. 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 VULNERABILITY per (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.

repo: BitterSecurity/Decepticon

人気

GitHubのスター
6.5k
ランキング
#13882
ライセンス
Apache-2.0
更新日
2026/11/1

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル