Reverse Engineer Anything: How to Reverse Engineer - 가이드

Reverse Engineer Anything: How to Reverse Engineer

Learn how to reverse engineer apps, JavaScript, Electron packages, and native binaries using AI coding agents with CLI and MCP workflows.

2026-10-18
reverse engineer anything Wiki Team
Quick Guide
  • 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.

AudienceWhy They Use REATypical Target
Security researchersEvidence-chain driven investigationNative binaries, packed executables
Web developersUnderstanding bundled JS behaviorWebsites, JavaScript bundles
App developersDebugging third-party dependenciesElectron apps, ASAR packages
AI power usersAgent-driven, reproducible analysisMixed targets via MCP
HobbyistsLearning how software worksChrome Dino, Windows Calculator
Know the Boundary

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.

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

Never Skip Isolation

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.

CategoryCommandPurpose
Setupnpx rea-agents@latest setupInitialize REA and configure agent integrations
Diagnosticsrea doctorDetect missing dependencies, path errors, environment issues
Target IDfile <target>Identify format, executable type, and architecture
Evidencesha256sum <target>Record a digest proving the target is unmodified
Stringsstrings -a -n 6 <target>Extract printable strings for paths, URLs, messages
Disassemblyobjdump -d -M intel <target>Generate command-line disassembly for quick review
Debugginggdb -q <target>Breakpoints, registers, memory inspection
Exporttee <report-file>Save output for reports and AI context
MCP vs CLI

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.

TierToolPrimary RoleAutomationLearning Cost
SGhidraIntegrated static analysis and decompilationHighMedium-high
SGDBInteractive runtime debuggingHighMedium
ALLVM toolchainDisassembly, object-file inspection, custom pipelinesVery highHigh
AGNU binutilsCommand-line symbols, sections, stringsVery highLow-medium
BPython scriptsTask-specific parsing and correlationVery highVaries
BAI-assisted analysisExplanation, planning, report draftingHighLow-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
AI as Assistant, Not Authority

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.

ControlRecommended SettingReason
Filesystem readApproved target root onlyPrevents leaking unrelated files
Filesystem writeReports directory onlyKeeps targets unmodified
Process executionApproved tools, human approval for unknown binariesBlocks accidental malware runs
NetworkDisabled unless requiredLimits exfiltration and callbacks
SecretsOutside analysis workspace entirelyAvoids 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
Avoid the Guessing Trap

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.

Related Articles