How to Reverse Engineer Any App with AI (REA + Ghidra MCP)
Use when someone wants to reverse engineer an app or binary they own or are authorized to examine, using an AI agent (Claude Code, Codex, Cursor or a local model) with REA or Ghidra over MCP. Gives the scope check, setup, the question-driven workflow, how to demand evidence, verification, and what to do when the agent gets stuck.
by skillstore33 · MIT
The skill
Use when someone wants to reverse engineer an app or binary they own or are authorized to examine, using an AI agent (Claude Code, Codex, Cursor or a local model) with REA or Ghidra over MCP. Gives the scope check, setup, the question-driven workflow, how to demand evidence, verification, and what to do when the agent gets stuck.
How to Reverse Engineer Any App with AI (REA + Ghidra MCP)
Rule for using this skill: Before any analysis, confirm the target is software the user owns, has written authorization to examine, or is analyzing for a lawful purpose (security research, malware defense, interoperability, preservation, a CTF). Decline DRM or license-check bypass, anti-cheat circumvention, piracy, and copying proprietary code or assets. Then work question by question, and never accept a conclusion without the evidence behind it.
1. Scope it in one paragraph first
Write down, before touching a tool:
- The target: file name, version, platform, and where it came from (your build, the vendor's installer, a malware sample from a feed).
- Your authorization: "my own app", "client engagement, SOW #", "malware sample for defense", "CTF challenge".
- The question: one feature or behavior. "How does the app sync settings?" is good; "reverse engineer everything" isn't.
- The output: an explanation, a protocol spec, a patch analysis, or a clean-room reimplementation spec.
2. Pick the tool
| Situation | Tool |
|---|---|
| One MCP across native, Electron/JS, .NET, Android, firmware, websites and recorded runtime activity | REA (Reverse Engineer Anything, morluto/rea, MIT). It hands native analysis to Ghidra, IDA, Hopper or Kuna, which you install and license |
| Native binaries only, free | Ghidra behind an MCP server (see the Ghidra MCP setup skill) |
| You own IDA Pro | IDA Pro MCP (mrexodia/ida-pro-mcp) |
| The binary can't leave your machine | A local model via Ollama with a Ghidra integration (see the local-LLM skill) |
REA setup
- Install only from the official sources: the
morluto/rearepo, rea.tools, or npmrea-agents. - Run setup from a trusted folder outside the project you're analyzing, and read the plan before accepting it:
npx rea-agents setup. - Check the client connection:
npx -y rea-agents@latest doctor --client codex --json(substituteclaude_code,cursorand so on). - Claude Code, Codex and Cursor can also install REA as a marketplace plugin.
- Hit a bug? Update first, then retry.
REA runs with your user permissions and has no built-in sandbox: analyze anything untrusted inside a virtual machine.
3. The question-driven loop
- Ask one narrow question: "Which function handles login, and what does it send?"
- The agent inspects and traces, then returns code, references (addresses, symbols, files) and unknowns.
- Read the module and IPC output yourself before accepting the explanation.
- Ask the next question, building on confirmed facts only.
- Keep a running notes file: confirmed facts with their addresses, open questions, and dead ends.
Prompts that work:
- "Answer with the function address and the decompiled lines that support each claim."
- "List what you could not determine, separately from what you found."
- "Don't rename anything you can't tie to a string, import, or cross-reference."
4. Verify before you trust
AI reverse engineering output is often plausible and wrong. Before relying on a finding:
- Check every rename against its cross-references and strings.
- Recompile and compare decompiled functions you intend to reuse or reimplement (see the verification skill).
- Confirm behavior dynamically in a VM where you can: run it, trace it, see it happen.
- Cross-check with a second tool (Ghidra plus radare2, or IDA) on anything important.
5. When the agent gets stuck
- It loops or gives up: narrow the question, or point it at a specific address or string.
- It drowns in decompiled code: ask the MCP for structured results (function list, call graph, strings) instead of whole files.
- A cloud model stops mid-analysis: see "When the AI Stops Mid-Analysis" for the legitimate options, including a local model.
6. Write it up
End with: the question, the answer, the evidence (addresses, traces, captures), the unknowns, how it was verified, and the authorization statement. Decompiled output gives you no rights to the code: if you're reimplementing, use a clean-room process (see the legal checklist skill).
Sources
- REA repository and README (setup, evidence, legal line): https://github.com/morluto/rea
- Developers Digest, REA MCP guide (2026): https://www.developersdigest.tech/blog/reverse-engineer-anything-rea-mcp-agents-guide-2026
- InfoQ, Reverse Engineer Anything (Oct 2026): https://infoq.com/news/2026/10/reverse-engineer-anything
- NHI Mgmt Group, AI-assisted reverse engineering for defenders: https://nhimg.org/ai-assisted-reverse-engineering-for-defenders-guide
Use this skill
Connect your agent to the Skill Store MCP server and ask for it by ref: skillstore33/how-to-reverse-engineer-any-app-with-ai-40525291830.
Details
- Publisher
- skillstore33
- Category
- Security › Application security
- License
- MIT
- Updated
- 2026-11-30
References
More from skillstore33
Acrylic Color Reference Cards on White and Black Know exactly how your colors mix before you paint
Stencils, Mouth Atomizer and Glue Gun Stencil Techniques Spray and sponge crisp patterns with homemade stencils
Staging Action and Reaction in Storyboards Show action, character reaction and pacing clearly across panels
Drawing Characters of Different Ages Make babies, kids, teens, adults and seniors read at a glance