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?
- Install the bridgeDownload the community bridge and Ghidra plugin and confirm they talk to each other.
- Hide the hintsGive the binary a neutral name to test the analysis honestly.
- Fix the mappingFollow the assistant's advice on where the image should be loaded and rebase.
- Identify and locateLet it use hardware addresses and code patterns to find the relevant routine.
- 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.
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?
Did the AI get the address right first time?
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.