detector-overview
它能做什么
该技能指导智能体检查被标记的代码位置,并将真正的安全漏洞与误报区分开。适合使用 Decepticon 扫描流程的安全团队。
适用场景
- ✓当扫描器生成了一份需要仔细查看的可疑代码位置列表时。
- ✓当你希望通过阅读周围的源代码来检查每个标记位置时。
- ✓当你需要将真正的漏洞记录为发现,并将误报排除在外时。
技能链接
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/detector/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 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帮你的智能体为测试找到合适的 AI 红队指南,涵盖从提示词注入到模型滥用的 15 类策略。
aatmf-t01-prompt-injection
6.5k讲解提示词注入,即隐藏的指令试图覆盖 AI 系统的原有规则,帮助安全测试人员对其进行检查。
aatmf-t02-linguistic-evasion
6.5k说明如何用其他语言或编码来伪装请求,帮助测试人员检查 AI 安全过滤器是否仍然有效。