There is a particular kind of question a senior engineer eventually runs into: “how does the offline search in this Notes app actually work?” You open it, you don’t have the source, the vendor doesn’t publish a protocol spec, and the only path to a real answer is to crack the binary. Until recently, the only tools for that were a Hopper or Ghidra license, a quiet afternoon, and a willingness to read disassembly for hours. morluto/rea shortens the loop to one prompt. You tell your agent which feature you want to understand, and the agent opens the binary, follows the references, decompiles the routines, and shows you the evidence — all through a single MCP server with 137 tools behind it.
REA — “Reverse Engineer Anything” — is on the trending list at the moment because it just shipped 4.1.0 with experimental Windows x64 Ghidra support, the second release in two days (4.0.0 and 4.0.1 on Oct 5, 3.2.1 and 3.2.0 on Oct 3), and nine releases in the last 60 days. It’s MIT-licensed, runs locally, and the headline readme claim is concrete: you can go from a question about a closed-source feature to a working TypeScript implementation in the same coding session.
The bet, in one sentence
Most “AI for reverse engineering” tools stop at decompilation. REA goes further: the public MCP surface is organized around investigation workflows (app overviews, function dossiers, feature traces, call graphs) so the agent can move from “open this binary” to “I understand how offline search works” without hand-holding. Setup registers REA with Claude Code, Codex, Cursor, Gemini CLI, Windsurf, Devin, OpenCode, Antigravity, GitHub Copilot CLI, VS Code, or any MCP-compatible agent; the same tool set is also exposed at the terminal via npx rea-agents@latest analyze-javascript-application /path --json or rea <verb>.
The thing that makes the bet interesting is the provider abstraction. Hopper, Ghidra, and IDA all get wrapped behind the same MCP interface, with a deterministic registry deciding which provider answers a given query. An agent that has only ever seen a Hopper decompilation can ask the same question against a Ghidra project and get back a result in the same JSON shape. The decoupling means the agent’s prompt is portable across the analysis engines — you don’t write a Hopper-specific workflow and a separate Ghidra-specific one.
The trade-off is right there in the FAQ: “Can REA recover the original source code?” The answer is no. No decompiler can. What REA gives the agent is pseudocode, assembly, symbols, strings, metadata, and cross-references, with the evidence and the limitations spelled out. The agent then uses that to explain a feature or compatibly recreate it in your stack. The distinction between “recover” and “recreate” is the line REA doesn’t cross.
What’s actually hard about this kind of tool
Three things make the engineering genuinely difficult, and they’re all visible in the README’s “Current status” section.
The first is provider lifecycle. Hopper, Ghidra, and IDA all have wildly different assumptions about session state. Hopper runs as a GUI app with its own license; Ghidra is a headless Java service that takes minutes to import a large binary; IDA Pro has an upstream MCP server with its own database lifecycle. REA’s “owned provider runtime” wraps all three with a deadline, bounded diagnostics, and cleanup so the agent can hand off a long-running analysis without losing the session or leaking temporary projects. The first-query deadline for Ghidra is the only case the docs flag as user-visible: a large import can exceed the default MCP request deadline, and the SDK example shows how to recover from cancellation.
The second is local-only operation with strict boundaries. REA communicates with Hopper and Ghidra over authenticated private local sockets and with IDA through its configured local MCP registration. The Windows Ghidra P0 build uses native Job Objects, private DACLs, and handle-based admission so the read-only native x86-64 PE boundary actually means read-only. The model provider has its own data policy (REA doesn’t upload the app anywhere), but that’s a boundary the project has to spell out because in 2026 the default assumption about any “AI analysis” tool is that something is phoning home.
The third is the honesty contract. Every investigation result includes a confidence level and a list of limitations. The “open questions” tool tracks unresolved findings and contradictions; “reconstruction checks” return pass, fail, or unknown — the unknown branch is treated as a first-class outcome, not silently collapsed into a pass. Process capture runs with your user permissions and is explicitly not a security sandbox; if you point it at a malicious binary, you get the binary’s behavior with your privileges. The docs call this out by name rather than burying it.
The mechanism: one prompt, a full investigation
The README’s “One prompt, a full investigation” section is the cleanest worked example of what the tool actually does. The user’s prompt is:
Reverse engineer the Notes app. Find how offline search works, explain it,
and build a version for my project using TypeScript and SQLite.
REA maps that prompt to a six-step recipe. The first five steps are REA’s job; step 6 is the agent’s normal file-editing tools producing the final implementation.
| Step | What the agent does | REA tools |
|---|---|---|
| 1 | Opens and identifies the binary | open_binary, binary_overview |
| 2 | Finds likely offline-search clues | search_strings, search_procedures, list_names |
| 3 | Connects clues to executable code | find_xrefs_to_name, xrefs, procedure_callers |
| 4 | Reconstructs the relevant control flow | get_call_graph, procedure_callees, procedure_info |
| 5 | Decompiles the relevant routines | procedure_pseudo_code, procedure_assembly, batch_decompile |
| 6 | Builds the feature in your project | code adapted to your stack |
The thing that distinguishes this from “dump the binary through Ghidra” is that the prompt names the target feature (offline search) and the tool catalog has verbs that map to that abstraction (feature_trace, call_paths, call_graphs). The agent doesn’t have to know whether the relevant code lives in a Swift metadata table, an Objective-C dispatch function, or a C++ template instantiation — it asks for a feature trace and the provider returns whatever decompilation result best explains the chain.
The provider architecture diagram in the README makes the layering explicit. CLI and MCP are the same surface. Both go through a “target-bound session router” that picks the right provider from a “deterministic registry” (Hopper, Ghidra, IDA, plus native macOS utilities, an artifact graph, browser-CDP, headless JADX for Android, Binwalk/Unblob for firmware, and a process capture harness). The provider declares which capabilities it supports; the registry picks the one that can answer the question.
What the tool catalog actually contains
The README’s “Tool catalog for investigation” table is the single most useful summary of what REA can do, and it’s worth quoting the full shape because the family breakdown tells you where the project is investing.
| Tool family | Count | Examples |
|---|---|---|
| Native inspection | 41 | functions, pseudocode, assembly, strings, symbols, calls, references, annotations, byte reads, file offsets |
| Investigation workflows | 14 | app overviews, function dossiers, native APIs and dispatch, batch decompilation, feature traces, call paths, call graphs, Swift/Objective-C discovery |
| Native macOS utilities | 7 | Mach-O metadata, code signatures, plists, architectures, Swift demangling without launching Hopper |
| Artifact graph | 5 | directory and package inventories, compiled Interface Builder files, Apple asset catalogs, extraction |
| Managed PE/CLI (.NET) | 7 | .NET identity, metadata, CIL instructions, native dependencies, reconstruction imports, build comparisons |
| Firmware | 2 | Linux firmware region inspection and explicit extraction |
| Android APK | 5 | package and manifest declarations, class search, member inventories, method decompilation, incoming static references |
| Browser observation | 9 | page structure, network metadata, scripts, source maps, WebMCP discovery, screenshots, capture comparisons |
| Electron analysis | 5 | renderer observation, static app mapping, static/runtime reconciliation |
| JavaScript runtime | 2 | Node/Electron Inspector target discovery, script locations, execution-context events |
| Application workflows | 8 | captured website script export, cross-layer feature traces, build comparisons, historical source mapping, static return-shape comparison, reconstruction checks |
| Workspace and observation | 21 | sessions, evidence bundles, navigation context, process/artifact/function comparisons, open-question tracking |
The total is 137 tools, and the source-of-truth catalog is docs/product-catalog.json (17 KB JSON, regenerated by npm run evidence:generate, with PR CI checking that narrative documentation and generated schemas haven’t drifted out of sync). The split tells a story. Native inspection and investigation workflows together are 55 of the 137, which is the spine. But Electron (5), JavaScript runtime (2), browser observation (9), and Android (5) add 21 more — that’s a deliberate cross-platform surface, not a Hopper wrapper with stickers. The 8 application workflows and 21 workspace/observation tools are the honest tooling around the analysis: evidence bundles, comparison reports, and “open question” tracking that the README keeps promising and the tool surface actually delivers.
The browser observation tools are interesting in their own right. They work through a literal loopback CDP endpoint:
rea list-browser-targets http://127.0.0.1:9222 --json
rea inspect-web-page http://127.0.0.1:9222 TARGET_ID --json
The eight passive tools inspect the page without navigating, clicking, or evaluating its JavaScript. Credentials, cookies, authorization headers, and raw payload values are explicitly not retained. The contrast with the active browser scenario tool (capture_browser_scenario) is sharp: scenarios can interact with the page through Playwright and record screenshots, page structure, navigation, and network activity, but the request has to declare the actions and lifecycle up front. There’s a separate Node/Electron V8 Inspector path with the same split — passive observation vs scenario capture, each with its own evidence contract.
Trade-offs and what it doesn’t fix
The first honest limit is that REA does not recover original source. No decompiler does. The README is direct: “REA gives an agent pseudocode, assembly, symbols, strings, metadata, and relationships that it can use to explain or compatibly recreate observed behavior.” The agent’s output is a recreation built from recovered evidence, not a copy of the original code. For a real product this distinction matters because the recreation will diverge from the original in ways that depend on which decompiler produced the pseudocode and how much semantic info the original binary still carried (Swift metadata is rich, C++ template instantiations are not).
The second limit is platform coverage. Native binary analysis requires a deep provider — Hopper (bring-your-own license, REA can install it with approval), Ghidra 12.1.4 plus a 64-bit JDK 21 (bring-your-own), or IDA Pro through the upstream MCP adapter. Static JavaScript inspection needs only Node/npm. Static Android APK analysis needs a separately supplied headless JADX JAR and Java. Windows x64 Ghidra support is experimental and limited to non-managed, non-DLL x86-64 PE applications on local NTFS — REA ships bundled Job Object, private-DACL, and path-admission controls for that surface, but the 25 operations are read-only and the scope is narrower than the Linux/macOS Ghidra adapter. Process capture is a Linux/macOS-only feature (with a working native PTY backend) — “native Windows capture remains unavailable until the PTY adapter can verify descendant cleanup.” For a Windows shop that wants to capture behavior, the answer today is WSL.
The third limit is that process capture is not a security sandbox. The README says it plainly: “Process Capture records behavior and is not a security sandbox.” If you point it at a malicious binary, the binary runs with your user permissions and you get the result. The mitigation is the evidence contract (declared target, declared actions, declared lifecycle), not isolation. Anyone using REA to investigate suspicious binaries needs to do it in a VM or a throwaway account — REA itself doesn’t enforce that boundary.
The model provider is also on the trust boundary, even though REA’s design is local-only. Your agent or model provider has its own data policy, and the README defers to it: “review that separately.” If the agent is hosted, the analysis result is leaving the local host; the binary does not, but the conclusions about it do. For a security research workflow this is the difference between “the tool is local” and “your investigation is confidential.”
Why this matters for an agent-driven workflow
The deeper point is what REA does to the cost of investigating closed-source software. The pre-rea cost is half a day: open Hopper, import the binary, navigate to a string, find the xref, read the disassembly, write down the control flow, and produce a writeup. With REA the same investigation is a prompt, and the agent does the boring navigation while the human reviews the evidence bundle at the end. The verify:agent script in the development section makes this concrete: it evaluates native, JavaScript, managed, and browser investigation tasks through a real local Codex CLI and reports on tool selection, repeated calls, token use, completion quality, and handling of permissions and unknowns. The point of the script is to measure how much of the loop REA actually closes.
The other thing worth flagging is the cadence. Nine releases in the last 60 days is a lot, and four of them landed in the last week (4.1.0 on Oct 6, 4.0.1 and 4.0.0 on Oct 5, 3.2.1 and 3.2.0 on Oct 3). The 4.1.0 release added the experimental Windows Ghidra P0 scope, the 4.0 line added the Ghidra provider’s atomic function-name and entry-comment edits, and the 3.2 line added the IDA Pro bring-your-own adapter and the compare-process-captures CLI. The shape of the change log — providers, atomic-edit authority, cross-platform capture — is the shape of a project that’s working through the same set of problems every reverse-engineering team runs into, just at a higher release frequency.
Whether the 137 tools are the right number is an open question. The agent-driven investigation model assumes the agent can pick the right tool from a long list without exhaustive enumeration, and the verify:agent script is the project’s own measurement of whether that assumption holds. A tool catalog that’s easy to scan and hard to misuse is more valuable than a short one, but a catalog where the agent routinely calls the wrong tool on the first try isn’t really an MCP — it’s a guessing game. The next few releases will probably tell us which side REA is on; the evidence:check rerun is the project’s own way of asking the same question.
The unresolved thing, and the one I keep coming back to, is what happens when the feature you want to understand is gated by an authentication or licensing boundary. The static tools can still find the code; the runtime tools can still capture the behavior. But the recreation step — building a “compatible” version in your project — runs into the same legal questions that have always existed around clean-room reimplementation. REA’s job stops at “here’s how it works, with evidence.” The next question — “are you allowed to ship that” — is the agent’s, and the answer there depends on the jurisdiction, the license of the original app, and whether the recreation is a behavioral clone or just an inspired-by rebuild. The tool doesn’t decide that, and it shouldn’t.
References and where to dig further
- REA on GitHub:
github.com/morluto/rea— MIT, Node.js 22+ runtime rea-agentson npm:npmjs.com/package/rea-agents— current release 4.1.0- Hopper Disassembler (bring-your-own):
hopperapp.com - Ghidra 12.1.4 (bring-your-own):
github.com/NationalSecurityAgency/ghidra - Generated source-of-truth catalog:
docs/product-catalog.json(regenerated bynpm run evidence:generate, drift-checked bynpm run evidence:check) - Native investigation guide:
docs/native-investigation.md(keyed archives, instruction/call/type primitives, typed dispatch metadata, value traces, native desktop observation) - Browser observation contract:
docs/browser-observation.md(CDP attach, capture options, evidence limits) - Process capture contract:
docs/process-capture.md(scenario fields, evidence boundaries, native PTY backend) - Security policy:
SECURITY.md(private disclosure for REA-specific issues)
Comments
Powered by GitHub Discussions via Giscus. Sign in with GitHub to leave a comment.