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

reproduce-regression

它能做什么

该技能让智能体部署程序改动前后的版本,并运行一个通过真实用户路径触发缺陷的测试。适用于需要对疑似回归提供实时证明的安全研究人员。

适用场景

  • ✓你有一个疑似缺陷,并希望在运行中的软件版本上证明它的时候。
  • ✓你需要表明旧版本正常、同样输入下新版本失败的时候。
  • ✓你希望为缺陷报告保存一份书面的设置、命令和结果记录的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

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

  1. Read the standard and file contract. Verify inputs; read security guidance. Stop execution if prerequisites fail.
  2. 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.
  3. 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.
  4. 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 in build_dirs.
  5. 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: complete or blocked, matching the record.
  • Record: sealed reproduce.json path, 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能