Skip to content
agentusehub

Reverse engineer a patch into a full exploit chain

A researcher used Claude Opus in Claude Code with Playwright MCP to decompile code, find vulnerabilities, and build a working exploit.

Time saved
Not reported
Setup time
Not reported
Running cost
Not reported
Cost range
Not reported

Use case overview

A researcher used Claude Opus in Claude Code with Playwright MCP to decompile code, find vulnerabilities, and build a working exploit.

Reported experience

  1. What they did

    Kev Breen gave Claude Opus in Claude Code (with Ghidra/ilspy, semgrep, Playwright and Proxmox tools, root on an isolated code-server harness) a single prompt to investigate a newly reported PaperCut NG zero-day, build a lab VM, and patch-diff the vendor fix. The agent autonomously decompiled jars, traced IoCs, found an auth-bypass and SQLi, used Playwright to drive the admin UI, and iteratively built and self-tested PoC scripts, with the human mainly steering direction and challenging weak conclusions.

  2. How it went

    Within 90 minutes it produced a working unauthenticated RCE chain (auth bypass, SQLi, arbitrary file write, code execution), later finding a third bypass that defeated the emergency patch too; total run used 10 prompts, 293 tool calls, 224M tokens over about two hours, though it initially hit a dead-end chain and made a false 'validated' claim the researcher had to catch.

  3. Worth knowing

    Hit an Opus 5 safety guardrail when checking exploitation logs, forcing a fallback to Opus 4.8 mid-session.

Example prompts

Try with Claude Code
Given this [software patch or diff], analyze what changed, decompile or inspect the relevant binaries, and identify the security vulnerability it fixes. Build a proof-of-concept exploit demonstrating the issue in a safe, isolated test environment, and stop before using it against anything outside that environment.
Coding · Advanced
  1. Write migration plan
  2. Agent edits in batches
  3. Tests per batch

Ship a 40-file refactor with a coding agent

Plan, execute and review a cross-cutting refactor in small batches, with Claude Code making the edits and GitHub Copilot reviewing each PR.

Claude Code · GitHub Copilot
Coding · Advanced
  1. Run coverage
  2. Pick 3 riskiest files
  3. Write + run tests

Generate missing unit tests for untested modules

Claude Code reads your coverage report, picks the riskiest untested modules and writes unit tests that pass, one small PR at a time.

Claude Code · GitHub Copilot · Slack