Reverse engineering with AI.

An AI agent can now do much of the slow work of reverse engineering: reading files, following code and explaining what it finds. Here is what it can do, how to check it and how to start.

What changes

Reverse engineering means working out how a program works when you only have the finished app, not its source code. Traditionally that took an expert reading low-level code by hand for hours.

With an AI agent, you start with a question in plain words, such as “Where does this app save my notes?” The agent looks inside the program, follows the relevant code and comes back with an explanation and the places it found it. You can then ask a follow-up, just as you would with a colleague.

What the AI needs

  • An AI agent that can use tools on your computer, such as Claude Code, Codex or Cursor.
  • The program: an app, game or file on your computer, or a website open in your browser.
  • Tools to look inside it. A chat model alone can only guess. REA gives your agent free tools to read app files, read a program's machine instructions and record what a website does, all on your own computer.

What it can work out

Each of these started with one plain question:

Checking its answers

An AI can sound sure and still be wrong, so treat its first answer as a good guess. Three habits keep it honest:

  • Ask where it found the answer. A useful answer points to files and lines you can open yourself.
  • Ask what is still unknown. REA reports what it could not work out, and a good answer says so too.
  • Test a prediction. Ask what the program will do in a specific case, then run it. The first-try exercise ends with exactly this kind of check.

Limits

  • REA reads and observes programs. It does not change them or break copy protection.
  • Large or deliberately scrambled programs take longer, and some questions stay open until you find another way to check them.
  • REA runs on your computer. What your agent sends to its AI model is covered by that model provider's data policy.
  • Respect the licence of the software you study. Is reverse engineering legal?

Start

REA is free and open source for macOS, Windows and Linux. Run this in a terminal, or ask your agent to run it for you:

Terminal · set up REA
npx rea-agents@latest setup

Top