← Back to library

Hack an 8 kB Atari ROM by talking to Ghidra through Claude

Rafał Strzaliński at Quesma hooked Claude up to the Ghidra disassembler with a community MCP bridge, aiming for infinite lives in River Raid. With the file renamed, Claude spotted the wrong load address, recognized Atari hardware addresses and identified the game. Replacing one decrement instruction with a no-op worked in an emulator. Setup was fiddly and tool calls slow.

  • OutcomeUse an AI assistant to drive a reverse-engineering suite you do not know, identify an unlabelled binary and find the one-byte patch that changes its behavior.
  • SetupAn afternoon+
  • LevelAdvanced
  • CreditRafał Strzaliński
View original
Works with
Claude

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 need to analyze a binary but do not know Ghidra well
  • You can run an MCP bridge locally
  • You will verify any patch in a safe environment

Not for: Software you are not authorized to modify; Real-time interactive debugging

What do you need, and what do you get?

You need

  • Ghidra with an MCP extension
  • Claude connected to the MCP server
  • The binary and an emulator or sandbox

You get

  • Corrected memory mapping
  • Identified routines and platform
  • A tested patch

How does it work, step by step?

  1. Install the bridgeDownload the community bridge and Ghidra plugin and confirm they talk to each other.
  2. Hide the hintsGive the binary a neutral name to test the analysis honestly.
  3. Fix the mappingFollow the assistant's advice on where the image should be loaded and rebase.
  4. Identify and locateLet it use hardware addresses and code patterns to find the relevant routine.
  5. Patch and testApply the smallest change and confirm it in an emulator.

The prompt

Our own prompt, inspired by Rafał Strzaliński and written to work in Claude. Values in lime are placeholders.

Prompt0 variables
You are connected to Ghidra via MCP. The loaded file is [name], architecture [CPU]. First, tell me if the memory mapping looks wrong and where it should be loaded. Then identify the platform from hardware addresses, find the routine that handles [behavior] and propose the smallest patch. Explain each step; do not write to the file until I confirm.

Inspired by Rafał Strzaliński: Reverse engineering River Raid with Claude, Ghidra, and MCP - Quesma Blog. The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Four linked components mean four places to break; budget time for setup.
  • Batches of slow tool calls make interactive work painful.

Our take

Rafał Strzaliński at Quesma hooked Claude to Ghidra through a community MCP bridge and, aiming for infinite lives in River Raid, got the assistant to spot a wrong load address, recognize Atari hardware addresses, identify the game and replace one decrement with a no-op that worked in an emulator. Setup was fiddly and tool calls slow. It is a fun example with serious implications: an assistant can make complex analysis tools usable by non-specialists. Use it only on software you own or are authorized to analyze. His honest notes on slowness and fragile setup are a good reality check. For real investigations, keep a written log of each step the assistant took so findings can be reproduced without the chat. Hide filename hints if you want a fair test of identification. Patch only in an emulator or disposable environment. Never apply game or binary patches to systems you do not control. Prefer community bridges you can audit before pointing them at sensitive binaries.

Where the time goes back: The steep learning curve of a professional disassembler is largely bypassed by describing the goal.

FAQ

What was the patch?
Swapping a single decrement instruction for a no-op so the lives counter never drops.
Did the AI get the address right first time?
It flagged the wrong load address; the author had to rebase more than once.

Source and credit

Inspired by Rafał Strzaliński. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Reverse engineering River Raid with Claude, Ghidra, and MCP - Quesma Blog
Creator
Rafał Strzaliński
Published on
quesma.com
Original date
Jan 23, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Claude
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

Distill agent sessions into shared memory every night

Save each completed agent session to its own transcript file, have one analyzer agent per transcript verify, enrich and organize small linked memory files, run an organizer once to merge duplicates and keep an index current, then attach the store to the agent's next session with read access only and repeat the pass nightly on new sessions.

Credit: Anthropic

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Let coding agents fetch docs into local Markdown

Stop manually fetching docs for an agent by giving it a tool that crawls a documentation section into clean Markdown it can search later.

Credit: Jessica Doering

Under an hour
IT & SecurityWorkflow✓ AI dry run

Review code continuously before a human looks

Keep up with the volume of agent-written code by running review continuously, so a person only spends time on what automation cannot catch.

Credit: Addy Osmani

An afternoon+