When should you use it?
- You run security research in a controlled environment
- You want to gauge how exploitable a new advisory is
- You can isolate the work from anything real
Not for: Anything outside a lab you fully control; Systems you are not authorized to test
What do you need, and what do you get?
You need
- A public advisory and the released patches
- An isolated lab with the affected software
- An agent with shell and browser tools in that lab
You get
- A patch diff and identified root cause
- A reproducible exploit covering the whole chain
- Notes you can hand to a vendor report
How does it work, step by step?
- Isolate everythingDeploy the target and the agent inside a sandbox with no path to real systems.
- Hand over the advisoryGive it the report and the patches and ask it to find and prove the issue.
- Let it diff and probeAllow it to decompile, diff versions and trace code paths on its own.
- Require a clean scriptAsk for a readable proof of concept with a verify flag, not a throwaway hack.
- Validate before you trustRe-run the exploit yourself; the agent corrected a false success once by re-testing.
The prompt
Our own prompt, inspired by Kev Breen and written to work in Claude Code and Custom agent. Values in lime are placeholders.
Target: [software and version] running in this isolated lab. Here is the public advisory [paste] and the released patches. Diff the patch, identify the root cause, and trace whether an unauthenticated attacker can reach it. If exploitable, build a clean proof-of-concept script with a verify option. Re-run it to confirm it reproduces before reporting success, and show the evidence at each step.
Inspired by Kev Breen: From Patch to Exploit; Using Claude Code to reverse engineer a zero-day in Papercut NG. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.
What can go wrong?
- An apparent success was wrong until re-tested; always confirm the exploit reproduces.
- Running this outside an isolated lab would be dangerous and likely illegal.
Our take
Kev Breen's write-up is a capability demonstration for defenders, not a how-to. The lesson is about speed: if an agent can turn a public advisory into a working proof of concept inside a couple of hours, the comfortable feeling that patches have days of breathing room is outdated. Treat newly disclosed issues in software you run as urgent, especially internet-facing ones, and verify that patches actually apply and that known bypasses are tracked. Every experiment of this kind belongs in a fully isolated lab with no path to production systems or customer data. The most instructive moment in the piece is the agent catching its own false positive and correcting course, which is the verification discipline to demand in any security-related prompt: require evidence, a clean reproducible script and a human review before trusting a finding. Share results through responsible disclosure channels, never against systems you do not own or have written permission to test. For most readers, the actionable step is faster patching and monitoring, not attempting to reproduce the research.
Where the time goes back: A judgment that used to need days of expert effort, how exploitable is this really, arrives in hours inside a safe lab.
FAQ
How long did it take?
Did it work on the first try?
Source and credit
Inspired by Kev Breen. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.
- Inspired by
- From Patch to Exploit; Using Claude Code to reverse engineer a zero-day in Papercut NG
- Creator
- Kev Breen
- Published on
- techanarchy.net
- Original date
- Aug 30, 2026
- License
- Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
- Originally for
- Claude Code
- AI dry run
- Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails. - Verified
- Oct 23, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.
Are you the creator? Claim or correct this page.