跳到正文
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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/detector/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能