validate-bug
它能做什么
独立重新运行缺陷复现,并判断该说法是已确认、未确认还是不确定。适用于在修补前希望进行第二次独立检查的审查人员。
适用场景
- ✓复现包在修补前需要独立重新运行的时候。
- ✓审查人员希望在不依赖复现者说法的情况下判断缺陷说法的时候。
- ✓团队在开始修复前需要确认或未确认结果的时候。
技能链接
https://github.com/trailofbits/skills/blob/main/plugins/patching-bugs/skills/validate-bug/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请在基线上重新运行这个概念验证,并告诉我该缺陷是否已确认。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能读取发现和已保存的证明,但不读取复现者的叙述。它会重新运行相同的命令或程序,保存输出,并记录一个附有简短理由的结论。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Validate Bug
When to Use
Use after reproduce-bug has supplied a finding and PoC package. Read the
record contract.
Before target commands, follow its project guidance.
When NOT to Use
Do not use to repair a PoC, develop a patch, or infer reproduction from the reproducer's narrative.
Procedure
Read
finding.json, the reproduction's proof type, commands, any PoC, and raw receipts. Do not read the reproducer's transcript.Rerun the same baseline compiler command for compile failures, or rebuild and rerun the unchanged runtime PoC and planned scoped inputs. Save stdout, stderr, exit status and timing in
validate/receipts/. If an observation is unreliable, returninconclusiveinstead of inferring either presence or absence.Decide whether the target diagnostic or runtime assertion demonstrates the exact claim and violates the stated invariant. Write
validate.jsonasconfirmed,not_confirmed, orinconclusivewith a short reason and agent identity.
{
"schema_version": 1,
"outcome": "confirmed",
"agent": "validator-1",
"reason": "The unchanged PoC reached the assertion and demonstrated the claim."
}
- Manifest the complete
validate/directory withuv run --no-project <script> manifest <validate-step-dir>, then run the record checker. Return the package without editing the PoC or finding.
Rationalizations to Reject
| Shortcut | Required action |
|---|---|
| Fix the PoC to make the claim work. | Mark it inconclusive and explain why. |
| Trust the reproducer's conclusion. | Rerun the unchanged package independently. |
常见问题
它会读取复现者的笔记吗?
不会。它只依据发现和原始凭证工作,而不依据复现者的过程记录。
如果输出不明确怎么办?
它会返回不确定,而不是猜测缺陷存在或不存在。
它会修复证明吗?
不会。它不修复概念验证,也不编写修补。
详情
作者的原始描述
Use when a bug PoC package needs an independent rerun and judgment before patching.
repo: trailofbits/skills
热度
- GitHub 星标
- 8.0k
- 排名
- #12692
- 许可证
- CC-BY-SA-4.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
audit-context-building
8.0k帮你的智能体在安全审查之前熟悉一个陌生的代码库,梳理每个函数的假设、保证和依赖关系。
algorand-vulnerability-scanner
8.0k帮你的智能体扫描 TEAL 或 PyTeal 编写的 Algorand 智能合约,检查 11 类常见安全问题,如重新密钥攻击和未校验费用。
audit-prep-assistant
8.0k帮你的智能体为外部安全审查做好代码准备,包括静态分析、测试覆盖、死代码清理和清晰的文档。
cairo-vulnerability-scanner
8.0k帮你的智能体扫描 StarkNet 上的 Cairo 智能合约,检查 6 类严重问题,包括算术溢出、有风险的跨层消息和签名重放。