hunt-regressions
它能做什么
该技能让智能体读取一份冻结的代码改动,追踪它对其他代码的影响,并列出可能的回归。适用于检查某项改动是否破坏了早先行为的安全研究人员。
适用场景
- ✓你想找出拉取请求或提交引入的可能缺陷的时候。
- ✓你有一份代码改动列表,需要先做初步的可疑位置筛查的时候。
- ✓你需要一份书面线索清单,并注明仍需证明的内容的时候。
技能链接
https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/hunt-regressions/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请审查这个拉取请求,并告诉我哪些改动可能破坏了之前正常工作的行为。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体读取完整的改动,沿着被改动代码的调用路径追踪,并为每个可能的问题记录支持和反对的理由。证明工作留待之后的单独步骤。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Discover candidates
When to Use
Input: sealed preparation, frozen S0/S1, change context and registry assignment. On retry, include this assignment's prior candidate-ID mapping. The caller supplies these, including for independent use. Follow project guidance before target work.
When NOT to Use
Proving a known candidate; use reproduction. Discovery cannot confirm findings.
Hunt
- Read the standard and file contract. Verify preparation; read frozen change messages, PR discussion and security documentation for intent and supported use.
- Review the entire diff; trace changed behavior through callers to real interfaces. Use frozen sources and supplied context, not later fixes, advisories or other reviews.
- Record each lead's changed code, previously supported behavior, reachable trigger, proposed new defect, false-positive checks and required proof. Retain supplied leads suggesting old bugs or incomplete fixes for adjudication. Leave PoC construction to reproduction.
- Reserve each lead's ID through registry.py
candidateusing its stable hypothesis key and assigned agent handle. Reuse the key on retry. Write candidate files andhunt.jsonwith IDs, file mappings, coverage and limitations. An empty list is valid. If blocked, record partial coverage and uninspected areas. Seal the package.
Report Back
Keep detailed evidence in the sealed package. Return only:
- Status:
completeorblocked, matching the record. - Record: sealed
hunt.jsonpath, or why none was produced. - Result: candidate count and material coverage gaps.
- Blocker: missing prerequisite or required caller action, if blocked.
Rationalizations to Reject
- “A helper fails on invented input”: show a supported interface that reaches it.
常见问题
这个技能能证明回归确实存在吗?
不能。它只找出候选项,还需要另一个步骤来构建并运行测试以确认每一项。
开始时我应该给智能体什么?
改动的固定版本、它的早期版本,以及关于该改动本意的任何说明。
它能审查仍在进行中的改动吗?
需要先将改动固定到确切版本,以便审查针对固定的快照。
详情
作者的原始描述
Use when discovering possible regressions from a pinned change and its callers before reproduction.
repo: trailofbits/skills
热度
- GitHub 星标
- 8.0k
- 排名
- #12696
- 许可证
- 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 类严重问题,包括算术溢出、有风险的跨层消息和签名重放。