replay-regression
它能做什么
该技能让一个独立的智能体检查对疑似缺陷保存的测试是否真的显示了问题。适用于希望在报告前获得第二次独立确认的审查人员。
适用场景
- ✓有人编写了一个显示回归的测试,并且你希望由新的审查人员检查的时候。
- ✓你需要证明旧版本正常、同样输入下新版本失败的时候。
- ✓在缺陷进入报告之前,你必须验证该发现的时候。
技能链接
https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/replay-regression/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我需要你独立检查,这个已保存的测试是否真的在我代码的旧版本和新版本中显示了该缺陷。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在自己的文件夹中从头构建并运行两个版本,使用相同的输入。它记录旧版本是否行为正确、新版本是否出现失败,并注明任何不一致之处。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Independently replay a PoC
When to Use
Input: candidate, frozen source records, complete sealed reproduction package and registry assignment. Use a fresh context distinct from the reproducer. Follow project guidance before target work.
When NOT to Use
Authoring or repairing the PoC. Return changes to the caller for reproduction; changed PoCs require new reproduction and replay.
Replay
- Read the standard and file contract. Verify the package; read setup and security guidance. Stop execution if prerequisites fail.
- Independently build and run actual S0/S1 only inside your attempt directory; never reuse another attempt's build output. List every build directory in
build_dirs. Execute the unchanged PoC with the same input against both. Record whether S0 behaves correctly and S1 exhibits the claimed failure. - Check real interface reachability using only the claimed user's/attacker's access. Save setup, versions, commands, observations and separate logs.
- Write and seal
replay.json, referencing the reproduction record and original PoC/input. Record divergence or blockers; uncertainty stays unresolved. Release temporary resources without deleting evidence.
Report Back
Keep detailed evidence in the sealed package. Return only:
- Status:
completeorblocked, matching the record. - Record: sealed
replay.jsonpath, or why none was produced. - Result: one sentence describing observed agreement or divergence.
- Blocker: missing prerequisite or required caller action, if blocked.
Completion means the replay attempt finished, not that the regression is confirmed.
Rationalizations to Reject
- “The previous logs look right”: replay requires your own execution.
常见问题
为什么要为此使用单独的智能体?
全新的检查能降低原始作者的设置掩盖错误的可能性。
如果测试无法运行,它会修复测试吗?
不会。对测试的修改会交还给编写者,并且必须重新检查。
它需要与原始测试相同的机器吗?
不需要。它会在自己的文件夹中重新构建并运行所有内容。
详情
作者的原始描述
Use when independently verifying a supplied PoC against fresh live before/after deployments.
repo: trailofbits/skills
热度
- GitHub 星标
- 8.0k
- 排名
- #12699
- 许可证
- 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 类严重问题,包括算术溢出、有风险的跨层消息和签名重放。