- Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents analyze software through CLI + MCP Server.
- Dual interfaces: Use the terminal CLI for direct analysis, or connect agents like Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin via MCP.
- Local-first analysis: REA runs locally and emphasizes evidence chains and reproducible investigations, not source recovery.
- Supported targets: Native binaries, Electron apps, JavaScript, websites, browser runtimes, and Android APKs.
- Quick start: Run
npx rea-agents@latest setupto begin your first investigation.
What Is Reverse Engineer Anything Software?
Reverse Engineer Anything software, commonly shortened to REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. Rather than replacing tools like Ghidra or GDB, REA acts as a bridge: it exposes analysis capabilities through a CLI and an MCP Server, so an agent such as Claude Code or Cursor can request targeted operations — symbol searches, function decompilation, call tracing — while the researcher stays in control of every step.
The official project, available on GitHub and rea.tools, stresses three principles: local analysis, evidence chains, and reproducible investigation workflows. REA is not designed to recover original source code or clone proprietary software — it helps you understand how software behaves by documenting what you observe.
| Concept | What It Means in Practice |
|---|---|
| Local analysis | Targets are inspected on your machine; no cloud upload of binaries |
| Evidence chain | Every conclusion links to a tool output, address, or runtime trace |
| Reproducibility | Commands, logs, and configs are saved so others can rerun the investigation |
| Agent-friendly | Tools are exposed with narrow schemas agents can call safely |
Reverse engineering is subject to licenses, contracts, and local law. Only analyze software you own or are authorized to investigate, and keep REA workflows focused on interoperability, security research, and learning.
CLI and MCP: The Two Entry Points
REA offers two complementary interfaces, and choosing between them depends on how you like to work.
CLI Workflow
- Terminal-driven commands: analyze, inspect, search, function, xrefs, trace
- Deterministic and scriptable
- Best for repeatable batch analysis
- Ideal when you want exact control over each step
MCP Workflow
- Exposes tools to AI coding agents via the MCP Server
- Agents discover and call analysis tools themselves
- Supports Claude Code, Cursor, Codex, Gemini CLI, Windsurf, Devin
- Best for interactive, question-driven investigations
For MCP connections, the server is typically registered over stdio — the agent host launches it as a child process and communicates through standard input and output. A typical configuration points at the server command, sets a working directory, and passes only the environment variables the analysis needs.
| Interface | Best For | Output Style | Automation Level |
|---|---|---|---|
| CLI | Triage, scripting, batch jobs | Terminal output and report files | ★★★★★ |
| MCP + Agent | Exploratory analysis, explanation | Structured agent reasoning with tool calls | ★★★★☆ |
The strongest REA workflows use the CLI to gather raw evidence (strings, symbols, disassembly) and the MCP agent to summarize, correlate, and draft reports from that evidence.
Step-by-Step: Your First Investigation
Follow this six-step workflow to go from an unknown target to a validated, reproducible report.
Prepare an isolated environment
Use a disposable VM or container for unknown binaries. Keep the original target read-only, record its SHA-256 hash, and store analysis output separately from the source file.
Install and diagnose
Run npx rea-agents@latest setup, then use diagnostics to verify Node.js, dependencies, and paths. Resolve any missing toolchain components before connecting an agent.
Connect your agent
Register the MCP Server in your agent's configuration, restrict it to an approved analysis directory, restart the host, and confirm the tools appear.
Identify the target
Before deep analysis, determine file type, architecture, executable format, imports, symbols, and obvious strings. This non-invasive profile guides everything that follows.
Ask focused questions
Make narrow requests — list symbols in a range, find references to a string, decompile one function, trace a call path. Focused requests produce context you can actually validate.
Validate and preserve
Reproduce important observations with the underlying tool, separate confirmed facts from open questions, and save the report with the target hash for reproducibility.
REA's core discipline is preventing the agent from guessing. Every conclusion should cite an address, a tool output, or a runtime trace — otherwise it belongs in the "open questions" list, not the findings.
Targets and Recommended Tools
Different targets demand different techniques. REA organizes analysis around target types rather than one universal method.
| Target Type | Key Analysis Focus | Typical Artifacts |
|---|---|---|
| Native binaries | Functions, strings, cross-references, disassembly | Symbol tables, call graphs, decompiled pseudocode |
| Electron apps | ASAR files, package.json, Main/Preload/Renderer processes, IPC | Extracted JS, IPC channel maps |
| JavaScript / websites | Bundles, source maps, runtime behavior | Reconstructed module structure |
| Android APKs | Manifest, dex classes, resources | Decompiled app logic |
For deeper work, REA workflows pair naturally with established tools. Ghidra handles integrated static analysis and decompilation, GDB covers runtime validation with breakpoints and memory inspection, and GNU binutils (objdump, strings, readelf) delivers fast command-line triage that pipelines easily into agent context.
Ghidra — Static Core
- Decompilation and cross-references
- Project-based repeatability
- Best for initial binary triage
GDB — Dynamic Validation
- Breakpoints, registers, memory
- Verifies static hypotheses at runtime
- Scriptable sessions
binutils — Fast Triage
strings,objdump,readelf- Shell-pipeline friendly
- Lowest learning cost
Never paste an entire disassembly into an agent prompt. Pass artifact paths and request only relevant excerpts — oversized context is the most common cause of unreliable agent conclusions.
Troubleshooting and Investigation Checklist
Common problems cluster into a few groups, and each has a narrow fix.
| Symptom | Likely Cause | First Fix |
|---|---|---|
| MCP server exits immediately | Wrong path, missing dependency, stdout log pollution | Run the server command manually; redirect logs to stderr |
| Tools not discovered by agent | Registration after init, bad schema, stale client cache | Restart the client; validate the tool schema |
| Decompilation unreadable | Stripped/optimized binary, wrong architecture | Confirm format with file; load symbols; define code regions manually |
| Analysis times out | Whole-file analysis for a narrow question | Add range and result limits; split into bounded jobs |
| Permission denied | Target outside approved workspace | Move inputs inside the analysis root; use least privilege |
Before You Conclude an Investigation:
- Target SHA-256 hash recorded before and after analysis
- Every key finding linked to an address, tool output, or trace
- Confirmed behavior separated from open questions
- Commands, tool versions, and configs saved with the report
- Agent interpretations rechecked in the disassembler or debugger
If behavior differs between Linux, macOS, and Windows, record tool versions, architecture, and environment variables in every report — path separators, quoting rules, and debugger capabilities vary across systems.
FAQ
Q: What is Reverse Engineer Anything software used for?
Reverse Engineer Anything (REA) is an open-source toolkit that connects AI coding agents to reverse engineering capabilities through a CLI and an MCP Server. It helps you analyze native binaries, Electron apps, JavaScript, websites, and APKs with documented, reproducible evidence chains.
Q: Which AI coding agents work with REA?
REA supports agent integrations including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin through its MCP Server, giving agents controlled access to analysis tools with narrow, typed schemas.
Q: Can REA recover the original source code of a program?
No. REA is designed for analysis, evidence recording, and reproducible investigation — not automatic source recovery or software copying. It helps you understand and document behavior, such as how a calculation or game mechanic works.
Q: How do I start using REA?
Run `npx rea-agents@latest setup` to install and initialize the environment, then configure the MCP Server for your coding agent. The official GitHub repository and rea.tools provide setup guides, Discord community access, and issue tracking.