- Reverse Engineer Anything (REA) is an open-source toolkit that lets AI coding agents analyze apps, websites, JavaScript, Electron packages, and native binaries through CLI + MCP Server workflows.
- Local-first design: all analysis runs on your machine, with an evidence chain instead of guessing.
- Beginner path: install → run setup → connect an agent → pick a target → analyze → validate evidence.
- Supported agents include Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin.
- Safety rule: never run unknown binaries outside an isolated environment.
What Reverse Engineer Anything Means for Beginners
Reverse Engineer Anything (REA) is an open-source reverse engineering toolkit built for AI coding agents. Instead of manually grinding through disassembly, you connect a coding agent such as Claude Code or Cursor to REA through its CLI or an MCP Server, and the agent performs structured analysis: identifying file types, extracting strings, tracing call relationships, and recording evidence you can verify.
The official project emphasizes three principles that matter for beginners: local analysis (nothing leaves your machine), evidence chains (every conclusion links to a concrete artifact such as an address, hash, or trace), and reproducible investigation workflows. REA is not a tool for recovering original source code or cloning commercial software — it is a structured analysis and learning environment.
CLI Workflow
- Terminal-driven commands: analyze, inspect, search, function, xrefs, trace
- Ideal for repeatable scripted analysis
- Works without a full agent setup
MCP Server Workflow
- Exposes analysis tools to AI agents
- Agents request narrow, scoped operations
- Configurable for Claude Desktop, Cursor, and more
Evidence-Based Reports
- Every finding links to addresses, hashes, or traces
- Separates observed facts from interpretation
- Produces reproducible analysis packages
Start with harmless, well-documented targets. The official showcases use Chrome Dino and the Windows Calculator — small programs whose behavior you can verify independently while learning the workflow.
Beginner Setup: From Install to First Run
REA's fast-start path is a single command: npx rea-agents@latest setup. This initializes the toolkit, checks your environment, and prepares agent configuration.
You need Node.js and npm installed, a supported operating system, and a coding agent such as Claude Code, Cursor, Codex, Gemini CLI, Windsurf, or Devin. Run rea doctor if anything fails during initialization to diagnose missing dependencies or path errors.
| Setup Stage | What Happens | Common Issue |
|---|---|---|
| Environment check | Verifies Node.js, npm, system paths | Node.js missing or outdated |
npx rea-agents@latest setup | Installs CLI and prepares config | Permission errors, retry as needed |
rea doctor | Diagnoses dependencies and tool paths | Hopper/Node.js version mismatch |
| Agent connection | Registers MCP tools with your agent | Tools not discovered — restart host |
| First analysis | Run a harmless target like a local HTML page | Oversized context — narrow your request |
Prepare an isolated environment
Use a disposable virtual machine or container for any unknown binary. Keep the original target read-only, record its SHA-256 hash, and separate analysis output from source files.
Install REA and run setup
Run npx rea-agents@latest setup and follow the installation plan. Confirm the CLI launches and that rea doctor reports no missing dependencies.
Connect your coding agent
Register the MCP Server in your agent's configuration (stdio for local setups). Restart the host and confirm the REA tools appear in the agent's tool list.
Pick a beginner-friendly target
Choose something safe and verifiable: a local website, a JavaScript bundle, an Electron app's ASAR package, or an official showcase target like Chrome Dino.
Run and review your first analysis
Ask the agent narrow questions — file type, strings, function list — then verify key findings yourself before accepting conclusions.
Core Analysis Workflow Step by Step
A reliable investigation moves from low-risk observation to focused analysis and controlled validation. The agent coordinates tools and summarizes output; you remain responsible for validating behavior.
| Phase | Goal | Typical Tools | Deliverable |
|---|---|---|---|
| Identify target | Understand format and architecture | file, sha256sum, metadata tools | Target profile with hash |
| Static analysis | Map code and data without running | disassembler, strings, symbol tools | Candidate functions and strings |
| Trace relationships | Narrow to relevant functions | cross-references, call graphs | Focused call relationship map |
| Dynamic analysis | Confirm runtime behavior | debugger, breakpoints | Runtime evidence per function |
| Validate and report | Confirm conclusions | context export, hash check | Reproducible report |
Instead of "analyze this whole binary," ask: list the imported functions, find references to this error string, or trace callers of this address. Narrow requests produce context you can actually validate.
Useful baseline commands every beginner should know:
| Command | Purpose |
|---|---|
file <target> | Identify format, type, and architecture |
sha256sum <target> | Record a digest proving the file never changed |
strings -a -n 6 <target> | Extract printable strings for clues |
objdump -d -M intel <target> | Quick command-line disassembly |
gdb -q <target> | Interactive debugging session |
Safety, Ethics, and Evidence Rules
Only analyze software you own or have explicit permission to study. Never distribute reconstructed proprietary code. Run unknown binaries only in isolated environments with network access disabled unless a workflow requires it.
| Practice | Why It Matters |
|---|---|
| Keep targets read-only | Preserves evidence integrity |
| Record hashes before and after | Proves the original file was untouched |
| Separate reports from targets | Prevents accidental contamination |
| Minimal permissions for servers | Blocks path traversal and over-broad access |
| Human approval for execution | No unreviewed runs of unknown code |
Before Every Analysis Session:
- Confirm legal right to analyze the target
- Record the SHA-256 hash of the original file
- Work inside an isolated VM or container
- Grant the MCP server only the workspace paths it needs
- Save tool logs and reports in a separate output directory
First Targets and Learning Milestones
Local Website
- Easiest start
- Analyze HTML, JS bundles, network behavior
- No binary skills required
Chrome Dino
- Official showcase target
- Study speed growth rules and parameters
- Rebuild a modified version
Windows Calculator
- Official showcase target
- Trace the percent-button logic
- Great native-binary practice
Electron App
- Unpack ASAR files
- Inspect package.json, main, renderer, IPC
- Bridges web and native skills
You have graduated from beginner status when you can trace one behavior from string → cross-reference → function → runtime observation → verified conclusion, with every step documented in a report another person can reproduce.
FAQ
Q: Do I need assembly knowledge to reverse engineer anything as a beginner?
Not to start. REA's agent-driven workflow lets you begin with JavaScript, websites, and Electron targets where high-level reasoning suffices. Native binary analysis benefits from assembly basics, but you can build that knowledge gradually while the agent handles disassembly mechanics.
Q: Which coding agents work with Reverse Engineer Anything?
REA supports connection through CLI and MCP for agents including Claude, Cursor, Codex, Gemini CLI, Windsurf, and Devin. Configuration details for each host are documented on the official site and GitHub repository.
Q: Can REA recover the original source code of a program?
No. The project explicitly focuses on analysis, evidence recording, and reproducible investigation rather than recovering original source or copying software. Outputs are behavioral understanding, decompiled approximations, and documented evidence.
Q: What should I do if my MCP server tools are not discovered by the agent?
Check that the server registers tools during initialization, restart the host after configuration changes, and test with the smallest possible tool call. Use `rea doctor` to diagnose dependency and path problems before deeper debugging.