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

replay-regression

它能做什么

该技能让一个独立的智能体检查对疑似缺陷保存的测试是否真的显示了问题。适用于希望在报告前获得第二次独立确认的审查人员。

适用场景

  • ✓有人编写了一个显示回归的测试,并且你希望由新的审查人员检查的时候。
  • ✓你需要证明旧版本正常、同样输入下新版本失败的时候。
  • ✓在缺陷进入报告之前,你必须验证该发现的时候。

技能链接

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

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

使用方法

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

可直接粘贴的消息

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

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

  1. Read the standard and file contract. Verify the package; read setup and security guidance. Stop execution if prerequisites fail.
  2. 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.
  3. Check real interface reachability using only the claimed user's/attacker's access. Save setup, versions, commands, observations and separate logs.
  4. 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: complete or blocked, matching the record.
  • Record: sealed replay.json path, 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能