When the Source Code Is Missing

Key Takeaways
- •A coding agent can inspect a binary, an Android package or a router firmware image and report what it finds. Interpreting that evidence is still skilled work.
- •Examines why the source is often unavailable, analyzing the structural bottlenecks and trade-offs in real-world deployments.
- •Provides engineering benchmarks and verification criteria for static and dynamic analysis.
REA, a project by morluto, was among the most visible AI repositories in trend scans during the first week of November 2026. It exposes inspection tooling through MCP and a command line interface, covering desktop applications, native binaries, Android packages, firmware images, websites, model artefacts and network captures.
What it does is worth stating precisely, because the name suggests more. REA is not a decompiler and it does not reconstruct source. It produces structured observations about a target and hands them to a model that reasons over them. The interesting question is what those observations support and where the reasoning stops.
Why the source is often unavailable
Plenty of software arrives without source. A vendor ships a compiled application and keeps the code. A device runs firmware whose build system is proprietary. An Android package is compiled to bytecode that was optimised for size rather than readability. A library from a decade ago has lost its repository.
The usual responses are slow. A security researcher decompiles and reads. A compatibility engineer probes the program with inputs and records behaviour. A maintenance team reimplements from documentation that may be wrong.
Each of those is skilled work with a long ramp, and the ramp is where most of the cost sits. Someone has to learn the tooling, form hypotheses and test them. An agent does not remove the skill, and it can shorten the part where a person stares at a function list deciding what to look at first.
Static and dynamic analysis
Static analysis reads the artefact without running it. Symbols, imports, strings, section layout, disassembly, decompiled pseudocode and call graphs all come from the file itself.
Dynamic analysis runs the target and observes. System calls, network traffic, file access, registry or plist changes and memory state come from execution.
The two answer different questions. Static evidence tells you what code exists. Dynamic evidence tells you what happened, which is often narrower and more reliable, because a large program exercises a small fraction of its code on any given path.
An agent is useful for both and for the same reason. It can hold a long list of observations without losing track, and it can form a hypothesis and choose the next probe based on what the last one returned.
What MCP adds to the picture
The Model Context Protocol is a standard way for a model to discover and call tools. REA uses it to expose inspection operations the agent can invoke by name, with typed arguments and structured results.
The practical effect is that the agent does not need to know how to run Ghidra or JADX. It needs to know that an operation exists and what it returns, and the protocol carries that description.
That separation is what makes the workflow tractable for a model. A command line tool returns text formatted for a human, which a model has to parse. A protocol-wrapped tool returns a structure, which a model can reason over without guessing at formatting.
The project delegates to established tools rather than reimplementing them. Ghidra and IDA handle native disassembly, JADX handles Android bytecode, TShark handles network captures, and pwntools handles exploitation scripting. REA orchestrates them and normalises their output.
That delegation is a design choice with a consequence. The quality of the analysis depends on which external tools the user has installed, so two people running the same agent on the same target can get different evidence.
A plausible walkthrough
Take a compiled desktop application with no documentation and a task: find out how it authenticates.
The first probes are cheap and settle scope. What strings are present, and does any resemble a URL or an authentication header. What libraries does it link, and is there a known authentication client among them. What is the file layout, and does it look like a packaged runtime.
Those answers narrow the second round. If strings reveal an endpoint, dynamic analysis with a proxy in the path will show the request. If the binary links a TLS library, the traffic will be opaque and the path is to look for where credentials are assembled before encryption.
Each round produces evidence and eliminates branches. A human does this too, and the difference is throughput rather than method. The agent tries more branches in an hour and runs out of obvious probes later.
Where the reasoning stops
Three limits are structural rather than temporary.
Decompiled output is not source. Compilers optimise away structure, inlining functions and reusing variables, so the pseudocode an agent reasons over describes what the machine does rather than what the programmer wrote. Inferred intent is a guess with a plausible shape.
Coverage is unknown. An agent that has read four hundred functions has no way to know whether the interesting one is among them. Static tools can report which functions are reachable from an entry point, and that helps, and it does not settle which code matters.
Runtime capture runs under the user's permissions. On a workstation that means the agent can reach the user's files and network, so inspecting an untrusted binary is itself a risk. The sandbox question from agent security applies directly here, and it is the reason some teams run inspection inside a disposable container.
The output is evidence, and evidence supports a conclusion rather than proving one. An agent that says a program authenticates with a bearer token has found a code path that constructs one. Whether that path is the one production uses is a different claim.
What this changes about compatibility work
The clearest benefit is not security research. It is reconstructing behaviour that a client needs to match.
An integration that has to speak a proprietary protocol needs the message format, the sequencing and the error handling. Those are recoverable from a client binary using static and dynamic analysis together, and the work is tedious in a way an agent tolerates well.
Digital preservation has the same shape. Software whose source has been lost can be documented from its binaries, and the documentation is more valuable than a runnable copy because it survives the hardware.
Legacy modernisation is the third case. A system being replaced needs its actual behaviour described, not its intended behaviour, and the difference between those two is often the reason the replacement fails.
The honest summary
An agent with inspection tools shortens the first phase of reverse engineering, which is working out what to look at. It does not remove the last phase, which is deciding whether the evidence supports a claim strong enough to act on.
REA is a reasonable implementation of the first phase, and its reliance on external toolchains is a sign it is not overselling. The parts that still require an expert are the parts that always did: recognising which code path is load-bearing, and knowing when the absence of evidence means something.



