---
title: What Is Reverse Engineering? A Plain-English Guide — REA
url: https://rea.tools/guides/what-is-reverse-engineering/
---

[Home](https://rea.tools/) / [Guides](https://rea.tools/guides/) / What is reverse
engineering?

# What is reverse engineering?

Reverse engineering means working out how something works by studying
the finished thing, without the original plans.

## The idea

Normal engineering goes from a plan to a product. Reverse
engineering goes the other way: you start with the product and
work back to how it was made.

You have probably done it already. Tasting a dish and guessing the
recipe is reverse engineering. So is opening a broken clock to see
which part stopped, or watching a magic trick again and again
until you spot the move.

## Reverse engineering software

Apps, games and websites are built from source code that people
can read. What reaches your computer is usually something else: a
packaged app, a program translated into instructions for the
processor, or scripts squeezed to load quickly. The readable
source code stays with the company that made it.

Software reverse engineering answers questions about the program
you actually have. Where does this app save my notes? What does
this website send when I press the button? Why does this game get
faster? The answer is in the program; reverse engineering is how
you read it.

## Why people do it

- **To understand an app they rely on.** What it
  stores, what it sends, and why it behaves the way it does.
- **To keep old software alive.** Games and tools
  from the 1990s are rebuilt so they run on modern computers.
  [DX-Ball](https://rea.tools/showcase/dx-ball/) and
  [TH04](https://rea.tools/showcase/th04/) are two examples.
- **To make programs work together.** Reading a file
  format or a message between programs so another tool can use it.
- **To check security.** Researchers study how a
  login code is made or how a suspicious program behaves.
- **To learn and to play.** Puzzle competitions
  (CTFs), game mods and plain curiosity about how something was
  built.

## How it works

There are three main ways to look at a program:

1. **Watch what it does.** Use it while recording what
   happens: which files change, which requests a website sends. The
   [browser guide](https://rea.tools/guides/browser/) shows this with one
   click.
2. **Read its files.** Many desktop apps and websites
   ship their scripts with them. Following a feature through those
   files often answers the question, as in the
   [first-try exercise](https://rea.tools/first-investigation/).
3. **Read its machine instructions.** Programs built
   for the processor can be turned back into readable steps with
   tools called disassemblers and decompilers. The
   [native guide](https://rea.tools/guides/native/) walks through one
   calculation.

Each step gives clues, not certainty. Good reverse engineering
checks its explanation, for example by predicting what the program
will do and then running it.

## Is it legal?

Often, yes, but it depends on where you live, what you do with
what you learn and what you agreed to when you got the software.
Many countries allow reverse engineering to make programs work
together, to fix problems, for security research or to learn.
Breaking copy protection, copying someone else's code into your
own product or ignoring a licence you signed can be a different
matter.

This page is not legal advice. If you plan to publish or sell what
you build, check the licence and the law where you live first.

## Where AI comes in

Reverse engineering used to mean hours of reading low-level code
by hand. An AI agent can now do much of that reading for you: you
ask a question in plain words, and it follows the program and
explains what it finds.
[Read how reverse engineering with AI works](https://rea.tools/guides/reverse-engineering-with-ai/).

- [Try it on a small app](https://rea.tools/first-investigation/)Ask your AI where exported notes go, then check its
  answer.
- [See why the Chrome dinosaur game speeds up](https://rea.tools/examples/dino-lab/)Find the rule, rebuild it and play with the speed.
- [Browse case studies](https://rea.tools/showcase/)Android, games, desktop apps and a CTF puzzle.
