REA: AI reverse engineering that decompiles apps. How it works and what is legal to replicate.

Digital,TO THE,

A robot uses a magnifying glass to examine mechanical gears inside a nested spherical container, as part of reverse engineering software.

Give an AI agent an application already installed on your computer, ask it to understand how it works, and in half an hour, it gives you back a rewritten version of itself. It's not science fiction: it's what's been sparking discussion online these past few weeks... REA (Reverse Engineer Anything), the open source project that brings the reverse engineering AI Accessible to anyone who uses Claude Code, Codex, or similar tools. Let's see what it is, how it works, what a practical test shows, and, above all, what Italian law says about what can be copied from someone else's software.

Index

  • What is REA, open-source AI reverse engineering?
  • Reverse engineering: meaning in simple words
  • How REA Works: The AI That Drives the Decompiler
  • Hands-on: A paid app rebuilt in half an hour
  • Can you really clone any software? Hype and limitations
  • Legal Reverse Engineering: What You Can Replicate Under Italian Law
  • What changes for those who develop and sell software
  • Legitimate uses, even for an SME
  • Conclusion

What is REA, open-source AI reverse engineering?

REA is an open source, MIT-licensed project that connects programming AI agents to professional reverse engineering tools, allowing the agent to analyze a program without having the source code. It installs with a single command from the npm package rea-agents and works as an MCP server, the protocol with which AI assistants use external tools, as well as from the command line.

Reverse engineering: meaning in simple words

Software reverse engineering is the process of taking a compiled program and tracing how it works, ultimately reconstructing a readable form of the code. To understand this, just retrace the birth of an application:

  1. The developer writes the source code in a programming language.
  2. A compiler translates it into low-level instructions.
  3. The result is a executable file binary, the one we install and the one the processor executes.

The decompiler It does the reverse: it takes the executable and tries to derive understandable pseudocode from it. Tools like Ghidra, released as open source by the US agency NSA, IDA And Hopper They've been around for years and are the daily bread of cybersecurity professionals. The problem has always been this: using them requires years of experience.

How REA Works: The AI That Drives the Decompiler

REA is not a new decompiler: it is the “translator” that allows an AI agent to use existing ones, read the results and decide the next step. You ask the agent to understand how a certain app function works; the agent calls REA, which opens the program with the appropriate tool, extracts pseudocode, strings, and connections between functions, and returns the results with the relevant proofs and constraints. The agent can then explain the behavior, write a similar version, and test it.

What can it analyze?What it gives backUsed tool
Native programs (Windows, Mac, Linux)Pseudocode, assembly, strings, function callsGhidra, Hopper or IDA
JavaScript and Electron AppsModules, dependencies, internal communicationsIntegrated static analysis
.NET ProgramsMetadata and intermediate instructionsIntegrated static analysis
Android AppDecompiled manifests, classes, and methodsJADX
WebsitesStructure, scripts and network trafficA browser from the Chrome family
Firmware and devicesExtracted content and subsequent analysisBinwalk, Unblob

The analysis takes place locally, on the launcher's computer, although the results are then passed on to the AI model used by the agent. Here's a practical demonstration demonstrating installation and operation:

ATTENTION: Using REA to avoid paying a license is exactly what the bill prohibits. The official disclaimer excludes circumvention of license controls and technical protections and copying proprietary software, and reminds that obtaining a “similar to source” code does not give you any rights to the original program. Knowing how to rebuild an app doesn't mean you have the right to use it.

Can you really clone any software?

No, not yet: REA drastically lowers the competence threshold, but the results remain partial and need to be verified. Initial independent tests confirm this. In a test on an Electron app, cited by multiple sources, the tool failed to identify some code entry points because they were hidden behind a helper function; REA's own documentation warns that static analysis cannot demonstrate the program's actual behavior and that reconstructions may be incomplete or incorrect.

The story that "with REA they remade the entire Adobe suite" also needs to be put into perspective. Free apps that imitate Photoshop and other Adobe programs include the ArtCraft project, which presents itself as a "clean-room" re-implementation, without using the original code, and which today achieves an estimated coverage of between 25 and 35% of the functions: we discussed it in the article on ArtCraft and open source Photoshop. The two stories overlap on social media, but they are not the same thing.

REA analyzing a native program with the Hopper decompiler
Source: GitHub, morluto/rea

Legal Reverse Engineering: What You Can Replicate Under Italian Law

In short: you can replicate the functionality of a software, even very faithfully, but you cannot copy its code. The Italian law on copyright (law 633 of 1941, which implements the European directive on computer programs) protects the program in its expressive form, i.e. the source code and the executable code, but expressly excludes from protection the ideas and principles which underlie any element of the program, including its interfaces (Article 2, number 8).

The Court of Justice of the European Union clarified this in 2012 with the ruling SAS Institute v. World Programming (Case C-406/10): The functionality of a program, the programming language, and the format of data files are not protected by copyright. A company that developed a properly licensed software program, without access to the source code, and recreated its functions in its own program did not infringe copyright. The function is free, the code is not.

Is your software exposing more than you think?

With AI, analyzing an app has become accessible to many. We help you understand what to protect and design secure, custom AI and software solutions.

So what can be done and what cannot:

  • Observe, study and test the functioning Anyone who has the right to use a copy of a program, during the normal loading and execution of the program, is permitted to do so even without the owner's authorization (Article 64-ter). License clauses prohibiting this are null and void.
  • Rewrite the same features from scratch Using your own code is in principle legal, as long as you do not copy its code, its expressive structure, or other protected elements.
  • Decompile Decompiling is permitted only in limited cases: when it is essential to make a program created independently by the person entitled to use the software interoperable, and limited to the necessary parts (Article 64-quater). The Court of Justice has also recognized the possibility of decompiling to correct errors that prevent the program from being used (Case C-13/20, Top System, 2021).
  • Use information obtained by decompiling to develop or sell a program substantially similar in expressive form is prohibited by the same article 64-quater.
  • Bypass license keys, activations, or technical protections it is never covered by these exceptions and may even have criminal consequences.

There are then safeguards that do not concern the code: trademarks and trade names, graphics, icons and interface texts, which may be protected works, any patents hey trade secrets. The problem with tools like REA is that the line between "studying how it works" and "decompiling" becomes extremely thin: an agent that reads the pseudocode and rewrites it risks reproducing the very form of expression the law protects. Currently, there are no rulings on reverse engineering with AI agents, so caution is warranted.

What changes for those who develop and sell software

The code installed on the user's device is no longer a protection: those who sell software must move the value where it cannot be copied. Until yesterday, decompiling and understanding a program required rare skills and months of work; today, a prompt is enough. For developers, this means rethinking some choices:

  • Server-side sensitive logicCalculations, pricing rules, and license controls should be kept on the server, not in the installed app. This is one of the reasons why web application are more defensible today than downloadable programs.
  • The value in data and service: an app can be replicated, but the customer base, data, support, and community cannot.
  • Analyze your apps with the same tools, to find out what they expose before someone else does.
  • Clear licenses and contracts, knowing however that some clauses prohibiting the study of the software are void by law.

For companies that buy software, the situation is reversed: if replicating a functionality costs less and less, it becomes more convenient to have their own tools built, as we explain in relation to custom software in the AI era.

Reverse engineering AI: an agent that decompiles an application and reconstructs how it works

Legitimate uses, even for an SME

Reverse engineering with AI has a multitude of legitimate uses, and that's where an SME can see value. The project itself specifies as its intended recipients security research, malware analysis, interoperability, historical software preservation, and debugging of programs owned by the organization or authorized to examine. In a company's practice:

  • Legacy software with no longer a vendor: understand how an old management system, regularly licensed, saves data, in order to migrate it or make it communicate with new systems.
  • Interoperability: make a closed machine or program communicate with your CRM or e-commerce.
  • Safety: Verify what an app actually does before installing it on all company computers, or analyze a suspicious file.
  • Audit your applications, including those created hastily with AI: exposed keys and hidden logic are exactly the risks of vibe coding that a tool like REA brings to the surface.

In all these cases, one rule applies: before using these tools on third-party software, check the license and purpose, and trust someone who knows both AI and development. If you already use agents like Claude Code, in our Claude Code's guide find out how to set them up safely, while for a corporate project you can start from our Artificial intelligence consulting for companies.

Conclusion

REA didn't invent reverse engineering, but it made it accessible to anyone who knows how to write a request to an AI agent. It's a powerful tool for security, interoperability, and legacy software recovery, and a wake-up call for those who base their business on a locally installed program. Italian and European law draws a clear line, even when challenged by AI: features can be replicated, but code and protections cannot.

Copying has never been easier. That's why knowing what's allowed matters more than ever.

Want to leverage AI in development without legal or security risks?

Contact us: we design custom software, web apps, and AI solutions, with a focus on security, licensing, and protecting your work.