reproduce-regression
它能做什么
该技能让智能体部署程序改动前后的版本,并运行一个通过真实用户路径触发缺陷的测试。适用于需要对疑似回归提供实时证明的安全研究人员。
适用场景
- ✓你有一个疑似缺陷,并希望在运行中的软件版本上证明它的时候。
- ✓你需要表明旧版本正常、同样输入下新版本失败的时候。
- ✓你希望为缺陷报告保存一份书面的设置、命令和结果记录的时候。
技能链接
https://github.com/trailofbits/skills/blob/main/plugins/regression-hunt/skills/reproduce-regression/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我想搭建我应用的旧版本和新版本,并测试新版本中是否真的出现了这个疑似缺陷。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体在各自的文件夹中构建每个版本,运行所需的服务,并将相同的输入发送给两者。它保存设置细节、命令和日志,并记录可能导致误报的任何检查。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Reproduce a candidate
When to Use
Input: sealed preparation/discovery packages, candidate and registry assignment. Follow project guidance before target work.
When NOT to Use
Independent verification of an existing PoC; use replay.
Reproduce
- Read the standard and file contract. Verify inputs; read security guidance. Stop execution if prerequisites fail.
- Build and run actual S0/S1 with required services. Trace the candidate to a real user/attacker entry point. Build/install CLIs and libraries; exercise supported interfaces. For build findings, execute the supported build workflow.
- Create and execute a portable PoC against both live deployments with identical input and comparable configuration. Record whether S0 behaves correctly and S1 exhibits the claimed failure. No mocks, extracted functions or simulated systems.
- Save setup, tool/dependency versions, sanitized configuration, input, PoC,
revisions, commands and separate logs. Record observations and false-positive
checks in
reproduce.json. If blocked, retain attempted setup and exact prerequisites. Build and deploy only inside your attempt directory, and list every build directory inbuild_dirs. - Release temporary resources without deleting evidence. Record their disposition, then seal the package.
Report Back
Keep detailed evidence in the sealed package. Return only:
- Status:
completeorblocked, matching the record. - Record: sealed
reproduce.jsonpath, or why none was produced. - Result: one sentence describing observed S0/S1 behavior.
- Blocker: missing prerequisite or required caller action, if blocked.
Completion means the experiment finished, not that the regression is confirmed.
Rationalizations to Reject
- “The unit test proves it”: synthetic tests cannot establish a regression.
常见问题
智能体会使用虚假组件或模拟系统吗?
不会。该技能说明,它应使用真实运行的软件和受支持的接口。
如果软件无法构建或启动怎么办?
该技能会停止,保存它尝试过的内容,并列出缺少的前提条件。
构建输出存放在哪里?
每次尝试都在自己的文件夹中构建,因此构建不会与其他尝试混杂。
详情
作者的原始描述
Use when deploying before/after systems and building a live-system PoC for a regression candidate.
repo: trailofbits/skills
热度
- GitHub 星标
- 8.0k
- 排名
- #12701
- 许可证
- 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 类严重问题,包括算术溢出、有风险的跨层消息和签名重放。