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 and 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:
- Watch what it does. Use it while recording what happens: which files change, which requests a website sends. The browser guide shows this with one click.
- 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.
- 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 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.
- Try it on a small appAsk your AI where exported notes go, then check its answer.
- See why the Chrome dinosaur game speeds upFind the rule, rebuild it and play with the speed.
- Browse case studiesAndroid, games, desktop apps and a CTF puzzle.