On this page
REA turns reverse engineering into a workflow an AI coding agent can call. It exposes local inspection tools through MCP and a CLI, then returns code references, pseudocode, assembly, runtime observations and explicit limitations. The useful idea is not that an agent magically understands any binary. It is that the agent can gather evidence from specialized tools, ask narrower follow-up questions and preserve the path from conclusion back to artifact.
REA (Reverse Engineer Anything) is an MIT-licensed toolkit, primarily written in TypeScript. Evaluate it by the evidence it recovers for your target and the analysis engines available on your machine. Popularity does not establish whether a particular operation is supported.
What is REA?
REA stands for Reverse Engineer Anything. It is an MCP server, command-line toolkit and set of agent workflow instructions for examining software artifacts. Setup can register REA with Codex, Claude Code, Cursor, Gemini CLI, Grok Build and other MCP-capable clients.
The three interfaces serve different jobs: the CLI runs explicit commands, the MCP server lets an agent call tools, and the bundled workflow instructions guide the investigation. Hopper or Ghidra remains the native analysis engine; your model remains responsible for interpreting its output.
A developer asks a concrete question such as “Where does this Electron application send a clipboard payload?” or “Which function calculates this value in the native binary?” The agent calls REA tools to inventory the target, trace imports or calls, inspect relevant instructions and return evidence. The same workflows are available from the terminal for scripting or CI use.
The distinction matters. A generic language model can speculate from filenames or strings. REA gives it tools that can point to a module, byte offset, symbol, request or runtime observation.
How the workflow operates
REA separates the agent from the analysis provider. The agent plans the investigation and chooses follow-up questions. A provider such as Hopper, Ghidra or IDA performs native inspection. Specialized static analyzers handle JavaScript, Electron and .NET artifacts. Browser and capture tooling can inspect web behavior and recorded network traffic.

Results are designed to include evidence and uncertainty. For example, a recovered function may include pseudocode, assembly, referenced strings and call sites. A runtime observation can include terminal output, exit state and filesystem changes. The agent can use those results to explain behavior or implement an equivalent feature, while a reviewer can check the cited locations.
This structure does not eliminate mistakes. Decompilers lose types and names, optimized code can obscure intent, and dynamic behavior may not appear in a static snapshot. The evidence makes those limits visible enough to investigate.
Write an acceptance test before the first prompt
For an Electron clipboard investigation, identify the exact packaged version and ask for the renderer entry point, preload bridge, IPC channel and main-process handler. Accept the explanation only when those references connect. If static code shows a possible path but no execution was observed, label it as a static finding. The next step is a controlled test of that path, rather than a stronger claim about every user action.
Targets REA can inspect
Native binaries. With Hopper, Ghidra or IDA, REA can retrieve pseudocode, assembly, symbols, strings, calls and references. Provider and platform support vary, so check readiness before starting a large investigation.
| Target and question | Provider or prerequisite | Evidence and execution boundary |
|---|---|---|
| Native function behavior | Hopper, Ghidra, IDA or Kuna; support varies | Instructions, pseudocode and references; execution is a separate operation |
| Packaged JavaScript or Electron | Built-in static analysis; extracted directory or ASAR | Modules, imports and IPC paths without launching the target |
| .NET assembly structure | Static managed-code inspection | Metadata, CIL and native dependencies without starting the application |
| Website or saved traffic | Browser tools, HAR or supported capture format | Live navigation contacts the site; saved-capture inspection uses the artifact |
| APK or firmware | JADX, Binwalk or Unblob for relevant workflows | Package or filesystem evidence; external tooling has its own prerequisites |
| Process behavior | Supported runtime/PTY tooling | Output and runtime effects; this executes or interacts with a target |
This is a selection guide, not a promise that every format works on every host. Consult the current MCP contracts and the selected provider's availability report before committing to an investigation.
JavaScript and Electron applications. Static inspection maps modules, imports, source maps, routes, IPC boundaries and native add-ons. An extracted application directory or ASAR can be analyzed without running it.
.NET assemblies. REA can inspect metadata, CIL instructions and declared native dependencies. This is useful for tracing application structure before deciding where deeper runtime analysis is necessary.
Websites and captures. Browser analysis can record page structure, scripts, requested screenshots and network behavior. Saved HAR files and supported mitmproxy captures can be examined as artifacts.
Firmware, Android packages and process behavior. The project documents handoffs to tools such as Binwalk, Unblob and JADX, plus PTY-based process capture on supported systems.
That range places REA between the application security and developer tools categories. It orchestrates existing analysis capabilities rather than replacing every underlying engine.
Quick start for an agent workflow
At the November 21, 2026 source check, the reviewed upstream revision requires Node.js 22.x from 22.23.4, 24.x from 24.22.1, or 26.12.1 and newer, plus npm. These are the project's published requirements; check the release you install. On Linux, relevant supervised workflows also need a procps-compatible system ps.
npx rea-agents setup
The setup process asks which agents to configure, shows the proposed changes and creates backups before editing agent configuration. Restart the agent after registration. A first prompt can be narrow:
Inspect this extracted Electron app. Find the renderer-to-main IPC path used for clipboard writes, show the evidence, and list what remains uncertain.
For a one-off static JavaScript inspection, the CLI exposes a direct command:
npx -y rea-agents@latest analyze-javascript-application /absolute/path/to/app --json
Native analysis requires a configured provider. Do not begin with “reverse engineer everything.” Start with one behavior, one target version and one acceptance test.
Check the client and provider separately
For a Codex registration, the documented scoped check is npx rea-agents doctor --client codex --json. For Ghidra, use npx rea-agents doctor --provider ghidra --json. A broad doctor report can include unavailable optional engines even when your chosen workflow works. Follow the failed check's remediation and inspect the running session's tool availability. The readiness guide explains that scope. Run setup from a trusted directory and retain the recorded package-runner cache entry.
What evidence-first reverse engineering changes
Agent output is most useful when each conclusion can be tied to a source location or experiment. The official DX-Ball sound-pan case study provides a concrete example. Its first decompiler result omitted an input, so the investigator checked the instructions, followed a caller and read constants from the executable before reconstructing the calculation.
The case reports 3,205 comparisons with the original function and a 63-byte compiler match for the sound-pan function in a pinned DX-Ball 1.07 target. Those are the reconstruction project's reported checks, not an iThub benchmark or proof that a whole game was recovered. The case links its maintained code and investigation notes. The Notion clipboard case applies the same evidence trail to Electron boundaries.
The pattern is reusable:
- Hash and preserve the original artifact.
- State the exact behavior or data path to recover.
- Run the least invasive static inspection first.
- Record code references, offsets, strings and provider versions.
- Use runtime capture only when static evidence is insufficient.
- Implement a small reconstruction and compare it against known cases.
An agent can accelerate navigation and hypothesis testing. It cannot substitute for provenance, authorization or a reproducible test.
Security and data boundaries
REA analyzes targets locally, according to its documentation. That does not mean every part of an agent workflow remains local. Tool results sent back to an AI model are governed by the model provider, client configuration and organizational policy. Treat binaries, strings, captures and decompiled code as potentially confidential.
Use a disposable analysis environment for untrusted files, restrict network access when it is not required and avoid executing an artifact merely because an agent requests it. Static JavaScript and .NET analysis do not require launching the target. Runtime tools, browser capture and process interaction have different effects and should be approved separately.
Native providers also carry their own installation and licensing conditions. REA can use an existing Hopper or Ghidra installation; its setup may offer to install Hopper only with approval.
Classify a finding by what produced it: a string suggests a hypothesis, a call path supports a static explanation, and a recorded execution establishes what happened under the tested conditions. Keeping those labels in the report helps the next reviewer choose an appropriate follow-up.
Legal and operational limits
Reverse engineering rules vary by jurisdiction, license and purpose. Interoperability, security research and analysis of software you own can be legitimate use cases, but REA does not grant permission to inspect a third party’s application. The project’s own disclaimer requires users to obtain authorization and comply with applicable law.
Technical limits remain as well. Packed or obfuscated binaries, anti-debugging, dynamically generated code and encrypted traffic can block or distort analysis. A decompiler’s pseudocode is an interpretation, not source code. Model explanations should be reviewed against the evidence before they guide a patch or security conclusion.
Who should use REA?
REA is a strong fit for application security engineers, malware analysts working in controlled environments, compatibility developers, software archaeologists and teams investigating their own legacy applications. It is also useful for developers studying a behavior before building an interoperable implementation.
It is a poor fit for broad, unsupervised “analyze this unknown executable” tasks on a production workstation. The operator must understand the target, choose safe tools and decide what evidence may leave the machine.
Verdict
Choose the first task by the layer that can answer it. For a packaged Electron feature, start with static JavaScript inspection. For a native calculation, configure one supported engine and preserve a known input/output case. A useful trial ends with a reviewer following the references and reproducing the conclusion. Record the time spent if you want to compare workflows; this article does not establish a speed advantage.
Official sources and review
References checked on November 21, 2026. Original article by Emanuel DE ALMEIDA. Sources: the official repository, installation and readiness guide, CLI and evidence guide, MCP contracts and security policy. Provider support and runtime requirements are version-specific.
Frequently asked questions
What does REA do?
REA connects an AI agent or CLI to local tools for inspecting native binaries, JavaScript and Electron apps, .NET assemblies, websites, firmware and other artifacts. It returns findings with evidence and limitations so the result can be reviewed.
Does REA require Ghidra, Hopper or IDA?
Deep native-binary analysis requires a supported provider such as Hopper, Ghidra or IDA. Static JavaScript and .NET inspection can work without those native analysis engines.
Is reverse engineering with REA legal?
The tool can support legitimate interoperability, security research and analysis, but authorization and applicable law depend on the target and jurisdiction. Obtain permission and review licenses or contracts before inspecting software you do not own.
Tools in this article
Facts link to their official sources. Product details can change after publication: report an error or read the editorial methodology.




