跳到正文
Skillpedia
安全8.0k · #12696

hunt-regressions

它能做什么

该技能让智能体读取一份冻结的代码改动,追踪它对其他代码的影响,并列出可能的回归。适用于检查某项改动是否破坏了早先行为的安全研究人员。

适用场景

  • ✓你想找出拉取请求或提交引入的可能缺陷的时候。
  • ✓你有一份代码改动列表,需要先做初步的可疑位置筛查的时候。
  • ✓你需要一份书面线索清单,并注明仍需证明的内容的时候。

技能链接

https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/hunt-regressions/SKILL.md

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

使用方法

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

可直接粘贴的消息

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

可以这样问 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

  1. Read the standard and file contract. Verify preparation; read frozen change messages, PR discussion and security documentation for intent and supported use.
  2. 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.
  3. 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.
  4. Reserve each lead's ID through registry.py candidate using its stable hypothesis key and assigned agent handle. Reuse the key on retry. Write candidate files and hunt.json with 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: complete or blocked, matching the record.
  • Record: sealed hunt.json path, 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能