← Back to library

Turn a public advisory into a tested exploit in a lab

Kev Breen, a security researcher, gave an agent a newly public advisory and the released patches for a commercial print-management product, inside an isolated lab. In roughly two hours it compared the patch, identified the root cause, chained several weaknesses into remote code execution and produced a clean proof-of-concept script, later even finding a way around the patch overnight.

  • OutcomeSee how fast an agent can go from a patched vulnerability to a working proof of concept inside an isolated lab, so you can judge real patch urgency.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditKev Breen
View original
Works with
Claude CodeCustom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 23, 2026

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?

  1. Isolate everythingDeploy the target and the agent inside a sandbox with no path to real systems.
  2. Hand over the advisoryGive it the report and the patches and ask it to find and prove the issue.
  3. Let it diff and probeAllow it to decompile, diff versions and trace code paths on its own.
  4. Require a clean scriptAsk for a readable proof of concept with a verify flag, not a throwaway hack.
  5. 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.

Prompt0 variables
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?
About two hours from advisory to a full chain, with a patch bypass found later overnight.
Did it work on the first try?
No. One run planted nothing; the agent diagnosed why and fixed it before claiming success.

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.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityWorkflow✓ AI dry run

Get consent first, then audit with a second agent

Have a different coding agent review your work in an isolated copy with editing turned off, and require it to ask before using any account or login.

Credit: u/Bulldagshunter on r/ClaudeCode

Under an hour
IT & SecurityWorkflow✓ AI dry run

Have the agent port your hooks when you switch tools

When moving from one coding agent to another, point the new agent at your old hooks folder and have it rebuild them as extensions.

Credit: esperent on Hacker News

Minutes
IT & SecurityWorkflow✓ AI dry run

Put a reviewer AI between your agent and anything it sends

Let a long-running personal agent act on your behalf while a separate model checks every outgoing message, post or code push, and dangerous commands are blocked.

Credit: Justin Headley

An afternoon+