跳到正文
Skillpedia
安全6.5k · #13901

scanner-overview

它能做什么

该技能指导对大型代码目录进行快速的初次扫描,找出可能存在安全漏洞的位置。适合需要简短列表进行审查的 Decepticon 流程安全团队。

适用场景

  • ✓当代码库太大,无法人工逐一审查,而你需要一份简短的可疑位置列表时。
  • ✓当你希望将扫描拆分成并行分片以加快完成速度时。
  • ✓当你需要为之后的审查人员提供一份最多 50 个候选位置的排序列表时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/plugins/scanner/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我们的代码仓库有超过 100,000 个文件。你能扫描它并给我一份需要检查的可疑位置简短列表吗?”

每周 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

  1. Scan through scan_shard, never raw grep. scan_shard is deterministic, sharded, and cheap. Hand-rolled ripgrep through bash burns tokens and context. The only exception: ls, du, wc -l for sizing decisions.
  2. Parallelize shards aggressively. 20k files → 4 shards in one tool turn. 100k → 8. 500k → 16 across multiple turns.
  3. Promote no more than 50 candidates per sweep. The Detector's token budget is precious. More candidates = more FP work.
  4. 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, or HYPOTHESIS nodes. Only CANDIDATE.
  • 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.

repo: BitterSecurity/Decepticon

热度

GitHub 星标
6.5k
排名
#13901
许可证
Apache-2.0
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能