Building in Public · Oct 24, 2026 · 5 min read
AI agents can reverse engineer your app now. Plan accordingly.
REA hands Claude Code and Cursor Ghidra and IDA Pro. Attackers get a shortcut. Blue teams get to do their own malware RE.
- #security
- #ai
- #reverse-engineering
- #blue-team
Building in PublicA new open-source project called REA, "Reverse Engineer Anything", connects AI coding agents like Claude Code and Cursor to Ghidra, IDA Pro, and Hopper. It doesn't add a new decompiler. It hands the decompilers we already have to an agent.
That's the part worth paying attention to.
What it actually is
REA is a local MCP server plus a CLI. The agent asks it to inspect a target, follows the relevant code, and gets back findings with evidence and stated limits. Then it can ask follow-up questions, or write and test an implementation based on what it found.
It covers more than native binaries:
- Native binaries: pseudocode, assembly, strings, symbols, calls, and references. This needs Ghidra, IDA, or Hopper installed.
- JavaScript and Electron: modules, imports, source maps, routes, and the traffic between app processes.
- .NET: metadata, IL, and declared native dependencies.
- Android packages, firmware, websites, and some runtime activity.
Setup is npx rea-agents setup. It supports Claude Code, Cursor, Codex, Gemini CLI, and Grok Build, and any client that speaks local MCP can be registered by hand.
The project's DX-Ball case study is the eye-catcher. A recovered sound positioning routine passed 3,205 tests against the original x86 code and reproduced all 63 compiled function bytes. Those are the project's own demos, not proof that every target gives up that cleanly.
Why this matters
Reverse engineering has always been gated by time and skill. Reading decompiler output is slow, tedious work, and most people quit before they understand anything. That barrier protected a lot of software that was never really protected.
An agent doesn't get bored. It can sit in a decompile-trace loop for hours, rename functions, follow call chains, and hand you a summary with the evidence attached. The skill floor just dropped, for everyone.
The blue team angle
This is where I get interested. Most security teams I've seen hand malware off to a dedicated RE team, or to a vendor, and then wait. The ticket sits in a queue while the incident clock runs.
With an agent wired into Ghidra, a detection engineer can do a lot of that first pass themselves:
Do your own malware triage. Point it at a sample in an isolated VM and ask the questions you actually need answered. What does it reach out to? How does it persist? What's the config format, and where are the C2 addresses stored? You won't replace a seasoned reverser on a nasty packed sample. But you can get from "unknown binary" to "here's what it does" without waiting days.
Turn findings into detections. This is the payoff. The strings, imports, and behaviors the agent surfaces are raw material for YARA rules, Sigma rules, and EDR queries. Ask it for the unique byte patterns and the API sequence, then write the rule and test it against the sample and a pile of known-good files. You still own the rule. The agent just did the digging.
Rebuild internal tooling you lost the source for. Every org has that one binary: the old agent, the log shipper, the internal CLI the person who wrote it took with them when they left. If you own it, REA can help you recover what it actually does and re-implement it in something maintainable. That's the "recreate the logic in your own stack" loop, aimed at your own legacy mess.
Audit what you're about to trust. Before a vendor agent or an Electron app gets installed across the fleet, trace what it sends and where.
The theme is the same throughout: you stop depending on another team's backlog to answer your own questions.
Detecting it on your side
The same tool is now in the hands of whoever wants to pick apart your product, or whoever is on your network. A few things worth hunting for:
- Reverse engineering tools running on hosts that have no business running them: Ghidra's
analyzeHeadless, IDA'sidat/idat64, Hopper. npx rea-agentsor new MCP server registrations showing up in AI agent configs on endpoints.- Agents spawning disassemblers against binaries pulled from your own build output or internal file shares.
Here's a rough hunting query to start from (adjust it to your EDR's schema):
process.name in ("analyzeHeadless", "idat", "idat64", "hopper")
OR process.command_line contains "rea-agents"
| where host.role not in ("malware-lab", "re-workstation")
None of that is malicious on its own. Your RE team will light it up on day one. It's a baseline, so you notice when it shows up somewhere new.
What I'd do about it
Assume your client-side code is readable. If a license check, an API key, or business logic lives in a binary or a JS bundle you ship, treat it as public. It probably always was. Now it's cheap to read, too.
Move secrets and decisions to the server. Obfuscation buys time, not safety.
Know which mode you're in. REA's static JavaScript and .NET inspection just reads files. Runtime capture launches the target with your permissions. For anything suspicious, that's the difference between analysis and infecting yourself. Use a disposable VM with no credentials and egress you can see. Future-me hates cleaning up avoidable messes.
Remember the results leave the box. REA runs locally, but the agent's model provider gets the findings. If you're analyzing internal tools or customer-related samples, check that data policy before you start.
Verify the output. An agent's explanation of decompiled code is a hypothesis, not a finding. Confirm it in a debugger before it goes into a report or a detection.
Stay authorized. "I can recreate it" and "I'm allowed to recreate it" are different questions. EULAs, copyright, and anti-circumvention laws still apply when an agent does the typing.
Next
I'm going to spin up REA in an isolated VM, point it at a sample I already understand, and see whether the YARA rule it helps me write actually holds up. I'll write up what it gets right and what it makes up.