- Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents analyze apps, websites, JavaScript, Electron packages, and native binaries locally.
- Two entry points: a CLI for terminal-driven analysis and an MCP Server that exposes tools to agents like Claude Code, Cursor, Codex, and Gemini CLI.
- Core workflow: identify the target, run static analysis, trace functions, validate with runtime evidence, and preserve a reproducible report.
- Evidence-first design: REA emphasizes evidence chains and reproducible investigation rather than automatic source recovery.
- Safety rule: always analyze unknown binaries in an isolated environment with the original file kept read-only.
What Reverse Engineer Anything Is and Who It Is For
Reverse Engineer Anything, or REA, is an open-source reverse engineering toolkit built specifically for AI coding agents. It ships as a CLI plus an MCP Server, so you can drive analysis from a terminal or let an agent call structured tools on your behalf. The project focuses on local analysis, evidence recording, and reproducible investigation workflows — not on recovering original source code or copying software.
The official project has gained significant traction, with the site snapshot showing roughly 129K GitHub stars, two interfaces (CLI and MCP), six or more coding agent integrations, and more than twenty official locales. You can find the project on GitHub and the official website.
| Audience | Why They Use REA | Typical Target |
|---|---|---|
| Security researchers | Evidence-chain driven investigation | Native binaries, packed executables |
| Web developers | Understanding bundled JS behavior | Websites, JavaScript bundles |
| App developers | Debugging third-party dependencies | Electron apps, ASAR packages |
| AI power users | Agent-driven, reproducible analysis | Mixed targets via MCP |
| Hobbyists | Learning how software works | Chrome Dino, Windows Calculator |
REA helps you understand, document, and reconstruct behavior. It is designed for legitimate analysis — learning, interoperability, and security research — not for piracy or bypassing licensing. Respect software licenses and local law before analyzing any target.
How to Reverse Engineer: The Six-Step Workflow
Learning how to reverse engineer becomes far more manageable when you break it into disciplined phases. The workflow below moves from low-risk observation to focused investigation and controlled validation — the same progression REA's official cases follow.
Identify the target and preserve a baseline
Before interpreting anything, establish what you are analyzing. Record the file type, architecture, executable format, size, and cryptographic hash. Keep the original target read-only and store reports separately so you can prove the file never changed during analysis.
Run static analysis
Map the code and data without executing the target. List symbols and imported functions, extract printable strings, inspect sections and entry points, and identify likely initialization, input handling, and error paths. This builds a target profile that guides every later step.
Locate functions and trace relationships
Reduce a large binary into a focused set of relevant functions. Search for references to selected strings or imports, find callers and callees of candidate functions, and record addresses with meaningful working names. A call-relationship map centered on the behavior under investigation emerges from this phase.
Run controlled dynamic analysis
Compare runtime behavior with your static hypotheses. Launch the target in an isolated debugger environment, set breakpoints at selected functions, inspect arguments, registers, and memory, and capture execution traces linking observations to specific instructions.
Test behavioral hypotheses
If you want to confirm how something works, apply the smallest controlled modification to a copy of the target and compare execution against the original. Define intended behavior before editing, and document every difference.
Validate and generate the report
Separate direct observations from interpretation. Link each conclusion to an address, artifact, or trace, save the tool inputs and outputs needed for reproduction, and generate a concise report with limitations and next actions.
Analyze unknown binaries only inside a disposable VM or container with network access disabled. Unknown executables can contain hostile code, and an AI agent should never have unrestricted access to your host system.
CLI Commands Every Analyst Should Know
REA does not replace your operating system toolchain — it coordinates it. These commands form a practical baseline for repeatable local analysis, whether you run them manually or let an agent invoke them through the MCP Server.
| Category | Command | Purpose |
|---|---|---|
| Setup | npx rea-agents@latest setup | Initialize REA and configure agent integrations |
| Diagnostics | rea doctor | Detect missing dependencies, path errors, environment issues |
| Target ID | file <target> | Identify format, executable type, and architecture |
| Evidence | sha256sum <target> | Record a digest proving the target is unmodified |
| Strings | strings -a -n 6 <target> | Extract printable strings for paths, URLs, messages |
| Disassembly | objdump -d -M intel <target> | Generate command-line disassembly for quick review |
| Debugging | gdb -q <target> | Breakpoints, registers, memory inspection |
| Export | tee <report-file> | Save output for reports and AI context |
Use the CLI when you want deterministic, scriptable stages. Use the MCP Server when you want an agent to request focused operations — symbol search, string lookup, decompilation summaries — without granting it unrestricted system access. Most serious investigations combine both.
Tool Comparison by Investigation Phase
No single tool wins every stage of reverse engineering. A decompiler excels at broad static analysis, a debugger at runtime behavior, and command-line utilities at fast triage. This tier comparison follows transparent criteria: platform coverage, automation capability, integration effort, output quality, and learning cost.
| Tier | Tool | Primary Role | Automation | Learning Cost |
|---|---|---|---|---|
| S | Ghidra | Integrated static analysis and decompilation | High | Medium-high |
| S | GDB | Interactive runtime debugging | High | Medium |
| A | LLVM toolchain | Disassembly, object-file inspection, custom pipelines | Very high | High |
| A | GNU binutils | Command-line symbols, sections, strings | Very high | Low-medium |
| B | Python scripts | Task-specific parsing and correlation | Very high | Varies |
| B | AI-assisted analysis | Explanation, planning, report drafting | High | Low-medium |
Static-First Workflows
- Best tools: Ghidra, binutils
- Start with strings and symbols
- Build a call map before debugging
Runtime-First Workflows
- Best tools: GDB, breakpoint managers
- Validate static hypotheses
- Capture trace evidence at instructions
Agent-Driven Workflows
- Best tools: REA MCP Server + coding agent
- Narrow, schema-validated tool calls
- Human approval for sensitive operations
Treat the agent as an analysis assistant. AI is excellent at summarizing large evidence collections, suggesting the next inspection step, and explaining decompiler output — but every important conclusion should be reproduced with the underlying tool before you trust it.
Safety, Permissions, and Evidence Discipline
Solid reverse engineering methodology is inseparable from safety practice. Whether a request comes from an agent, a test harness, or your own terminal, the boundaries should stay identical.
| Control | Recommended Setting | Reason |
|---|---|---|
| Filesystem read | Approved target root only | Prevents leaking unrelated files |
| Filesystem write | Reports directory only | Keeps targets unmodified |
| Process execution | Approved tools, human approval for unknown binaries | Blocks accidental malware runs |
| Network | Disabled unless required | Limits exfiltration and callbacks |
| Secrets | Outside analysis workspace entirely | Avoids credential exposure to agents |
Before Every Investigation:
- Verify the target hash before and after analysis
- Confirm the workspace is an isolated VM or container
- Restrict server access to approved directories only
- Require manual approval before executing the target
- Save commands, exit codes, and outputs in a manifest
The most common failure in AI-assisted analysis is letting an agent state conclusions without evidence. Require every inferred purpose to cite a code pattern, string reference, or API usage — and keep confirmed facts separated from open questions in your notes.
FAQ
Q: How do I reverse engineer anything with REA as a beginner?
Start with the one-line setup: npx rea-agents@latest setup. Then run rea doctor to verify your environment, connect your coding agent via MCP or use the CLI directly, and begin with a benign practice target such as Chrome Dino or Windows Calculator — both are official REA showcase cases.
Q: Which AI coding agents work with Reverse Engineer Anything?
REA supports integration with major coding agents including Claude Code, Cursor, Codex, Gemini CLI, Windsurf, and Devin. Each connects through MCP configuration files or the CLI workflow, with six or more integrations documented officially.
Q: Does REA recover the original source code?
No. REA is explicitly designed around analysis, evidence chains, and reproducible investigation rather than source recovery. It helps you understand behavior, document it, and optionally reconstruct equivalent functionality — it does not decompile software back into original source.
Q: Why do my MCP tools not appear in the agent?
Common causes include tool registration happening after initialization, an invalid input schema, or the client caching an earlier capability list. Register tools during normal server startup, use descriptive tool names, validate schemas, and restart the client after changing server capabilities.
Q: Is reverse engineering legal?
It depends on jurisdiction, the software's license, and your purpose. Legitimate uses include security research, interoperability, and learning. Always review the license terms and applicable law — such as DMCA exemptions in the US — before analyzing software you do not own.