mirror of
https://github.com/morluto/rea.git
synced 2026-12-06 23:09:34 +00:00
Put the star history chart back below the contributor avatars in every README, as in the Orca README, without the hard-coded star count.
233 lines
13 KiB
Markdown
233 lines
13 KiB
Markdown
<div align="center">
|
|
|
|
<img src="docs/assets/rea-logo.png" alt="REA: Reverse Engineer Anything logo" width="200">
|
|
|
|
# REA: Reverse Engineer Anything
|
|
|
|
**See a feature you like. Understand how it works, down to the binary level.**
|
|
|
|
Ask your coding agent about an app, a game or a website. REA lets it look inside,<br />
|
|
explain how a feature works, show the evidence, and build a version for your project.
|
|
|
|
[](https://github.com/morluto/rea/stargazers)
|
|
[](https://www.npmjs.com/package/rea-agents)
|
|
[](LICENSE)
|
|
[](https://skills.sh/morluto/rea/reverse-engineer-anything)
|
|
|
|
<sub>**English** · [简体中文](docs/readme/README_zh.md) · [繁體中文](docs/readme/README_zh-TW.md) · [日本語](docs/readme/README_ja.md) · [한국어](docs/readme/README_ko.md) · [Türkçe](docs/readme/README_tr.md) · [Русский](docs/readme/README_ru.md) · [Tiếng Việt](docs/readme/README_vi.md) · [ไทย](docs/readme/README_th.md) · [Deutsch](docs/readme/README_de.md) · [Español](docs/readme/README_es.md) · [Français](docs/readme/README_fr.md) · [Українська](docs/readme/README_uk.md) · [Polski](docs/readme/README_pl.md) · [Português (Brasil)](docs/readme/README_pt-BR.md) · [العربية](docs/readme/README_ar.md) · [فارسی](docs/readme/README_fa.md) · [Bahasa Indonesia](docs/readme/README_id.md) · [Italiano](docs/readme/README_it.md) · [Ελληνικά](docs/readme/README_el.md) · [മലയാളം](docs/readme/README_ml.md) · [Roman Urdu](docs/readme/README_ur-Latn.md) · [Română](docs/readme/README_ro.md) · [Български](docs/readme/README_bg.md) · [हिन्दी](docs/readme/README_hi.md) · [Nederlands](docs/readme/README_nl.md) · [বাংলা](docs/readme/README_bn.md)</sub>
|
|
|
|
<a href="https://rea.tools/get-started/"><img alt="Get started" src="https://img.shields.io/badge/Get%20started-4493F8?style=for-the-badge" height="40"></a> <a href="https://discord.gg/GkcryMnJDM"><img alt="Join us on Discord" src="https://img.shields.io/badge/Join%20us%20on%20Discord-5865F2?style=for-the-badge&logo=discord&logoColor=white" height="40"></a> <a href="https://x.com/intent/follow?screen_name=reatools"><img alt="Follow REA on X" src="https://img.shields.io/badge/Follow%20us%20on%20X-000000?style=for-the-badge&logo=x&logoColor=white" height="40"></a>
|
|
|
|
<br />
|
|
|
|
<img src="docs/assets/readme/hero.jpg" alt="Your coding agent asks REA what /usr/bin/true does. REA opens it in Hopper, finds the entry point at 0x100000368, and shows the two instructions: mov w0, #0x0 and ret. The program reports success and exits." width="1000" />
|
|
|
|
<sub>REA opening a real program in Hopper for an agent. The answer comes with the instructions behind it.</sub>
|
|
|
|
</div>
|
|
|
|
## What REA does
|
|
|
|
See a feature in an app that you want in your own product? Ask your agent to
|
|
investigate it with REA. It can inspect the app without its source code,
|
|
explain how the feature works, show the evidence, and build a version for your
|
|
project.
|
|
|
|
REA connects your agent to tools for inspecting native binaries, JavaScript and
|
|
Electron apps, .NET assemblies, and websites. You can also use the same tools
|
|
from your terminal. Analysis runs on your computer, and results include the
|
|
evidence and limitations behind each conclusion.
|
|
|
|
## Get started
|
|
|
|
**[Follow the setup guide at rea.tools](https://rea.tools/get-started/)**. It
|
|
walks through each step for your computer and agent, and gives you a prompt
|
|
you can paste so your agent sets REA up for you.
|
|
|
|
With [Node.js](https://rea.tools/get-started/#install-node) installed, run this
|
|
from a trusted folder outside the project you plan to analyze:
|
|
|
|
```bash
|
|
npx rea-agents setup
|
|
```
|
|
|
|
Choose your agent, approve the setup plan, then restart your agent. Setup
|
|
backs up your existing configuration first. Native analysis can use Hopper,
|
|
Ghidra, IDA or Kuna if you have one; setup can install Hopper for you after
|
|
asking. Then try [your first investigation](https://rea.tools/first-investigation/).
|
|
|
|
To update later, run `npx rea-agents@latest setup` again, or ask your agent to
|
|
update REA. Get REA only from this repository, [rea.tools](https://rea.tools/)
|
|
or the [rea-agents npm package](https://www.npmjs.com/package/rea-agents).
|
|
|
|
Setup works with the [supported agents](docs/getting-started/installation.md#supported-agents);
|
|
other agents that support local MCP servers can use
|
|
[manual registration](docs/getting-started/installation.md#mcp-registry). The
|
|
[installation guide](docs/getting-started/installation.md) also covers updates
|
|
and troubleshooting.
|
|
|
|
## Showcases
|
|
|
|
Each example starts with one question to an agent. Read the case study to see
|
|
the evidence REA returned and how the result was checked.
|
|
|
|
### Dinosaur game: change how fast it runs
|
|
|
|
<a href="https://rea.tools/examples/dino-lab/"><img src="docs/assets/readme/dino.jpg" alt="The rebuilt dinosaur game mid-jump with a speed slider, next to the agent's answer: the speed starts at 6 and grows by 0.001 each update while it is below 13." width="800" /></a>
|
|
|
|
Find the rule that makes the game speed up, then rebuild it with a speed slider.
|
|
[Play the rebuilt game](https://rea.tools/examples/dino-lab/)
|
|
|
|
### Notion: follow a copy from the page to the clipboard
|
|
|
|
<a href="https://rea.tools/showcase/notion/"><img src="docs/assets/readme/notion.jpg" alt="The path of Notion's copy action, from the page through the preload and main process to Electron's clipboard, joined by the notion:clipboard:write channel." width="800" /></a>
|
|
|
|
Trace how Notion's desktop app copies text and HTML, step by step, with the
|
|
code at each step. [Read the case study](https://rea.tools/showcase/notion/)
|
|
|
|
### Aegis: rebuild an Android app's login codes
|
|
|
|
<a href="https://rea.tools/showcase/aegis/"><img src="docs/assets/readme/aegis.jpg" alt="A demo that turns a clock time into a 30-second block and a six-digit code, next to the agent's answer: the app mixes the block number with the account key." width="800" /></a>
|
|
|
|
Find how the Aegis authenticator makes its six-digit login codes, then rebuild
|
|
the calculation with a clock you can move. [Read the case study](https://rea.tools/showcase/aegis/)
|
|
|
|
### DX-Ball: recover a game's sound panning
|
|
|
|
<a href="https://rea.tools/showcase/dx-ball/"><img src="docs/assets/readme/dx-ball.jpg" alt="The DX-Ball sound-pan calculation, from the function at 0x00406400 to maintained C code checked against 3,205 original cases." width="800" /></a>
|
|
|
|
Recover how a brick's position sets where you hear the hit, and check the
|
|
rebuilt C against the original in 3,205 cases.
|
|
[Read the case study](https://rea.tools/showcase/dx-ball/) ·
|
|
[Reconstruction repository](https://github.com/N0zoM1z0/dx-ball)
|
|
|
|
### CTF: solve a flag checker
|
|
|
|
<a href="https://rea.tools/showcase/ctf/"><img src="docs/assets/readme/ctf.jpg" alt="One of the flag checker's masks selecting a single position, next to the agent's answer: 26 masks give 26 equations, and solving them gives the flag." width="800" /></a>
|
|
|
|
Find the checks in DownUnderCTF's masked squares challenge, turn them into
|
|
equations, and confirm the flag with the original program.
|
|
[Read the case study](https://rea.tools/showcase/ctf/)
|
|
|
|
### TH04: recover a DOS game's bullet rings
|
|
|
|
<a href="https://rea.tools/showcase/th04/"><img src="docs/assets/readme/th04.jpg" alt="Two 16-bullet rings, one fixed and one aimed at the player, spaced 16 angle units apart." width="800" /></a>
|
|
|
|
Find how the PC-98 game spaces a ring of bullets and aims it at the player.
|
|
[Read the case study](https://rea.tools/showcase/th04/) ·
|
|
[Reconstruction repository](https://github.com/N0zoM1z0/th04)
|
|
|
|
Used REA on something interesting? Share it in an
|
|
[issue](https://github.com/morluto/rea/issues) or a
|
|
[pull request](https://github.com/morluto/rea/pulls) with the target, your
|
|
question, and what you found.
|
|
|
|
## How REA works
|
|
|
|
1. **You ask** your agent about an app, a game or a website on your computer.
|
|
2. **REA looks inside** it for your agent, using tools such as Hopper, Ghidra
|
|
or IDA, and finds the code behind the feature.
|
|
3. **Your agent reads the evidence**: the code, where it is used, and what is
|
|
still unknown. It can ask REA follow-up questions.
|
|
4. **Your agent uses what it learned** to explain the feature, or to build and
|
|
test a version for your project.
|
|
|
|
Agents connect to REA through MCP, and the command-line tool runs the same steps.
|
|
|
|
<a id="current-status"></a>
|
|
|
|
## What you can analyze
|
|
|
|
REA covers native binaries, JavaScript and Electron apps, websites, .NET
|
|
assemblies, Android apps, firmware, and recorded runtime and network activity.
|
|
See [supported targets and requirements](docs/reference/supported-targets.md)
|
|
and the [guides](https://rea.tools/guides/).
|
|
|
|
<a id="choosing-a-deep-analysis-provider"></a>
|
|
|
|
For native decompilation, choose a provider that supports your target format
|
|
and host OS. See [choosing a deep analysis provider](docs/reference/supported-targets.md#choosing-a-deep-analysis-provider).
|
|
|
|
## Also in the box
|
|
|
|
- **A command-line tool.** Run the same analysis from your terminal, for
|
|
example `npx -y rea-agents@latest analyze-javascript-application /path/to/app --json`.
|
|
See the [CLI and Evidence guide](docs/getting-started/cli.md).
|
|
- **Practice environments for agents.** Build a local copy of a recorded web
|
|
session or a Linux desktop app so an agent can practice a task and check its
|
|
result. See [Build an RL environment](https://rea.tools/guides/rl-environments/).
|
|
|
|
## Questions
|
|
|
|
Wondering whether you need Hopper, whether your app gets uploaded, or what to
|
|
do when something breaks? The [FAQ](https://rea.tools/faq/) has answers, and
|
|
you're always welcome to ask on [Discord](https://discord.gg/GkcryMnJDM).
|
|
|
|
## Documentation
|
|
|
|
Start with the website's [worked guides](https://rea.tools/guides/).
|
|
For exact options, prerequisites and result contracts:
|
|
|
|
- [Installation and setup](docs/getting-started/installation.md): agent registration, provider configuration, updates and uninstall.
|
|
- [Readiness and troubleshooting](docs/getting-started/installation.md#check-readiness-for-your-task): diagnose one agent or analysis engine.
|
|
- [CLI and Evidence](docs/getting-started/cli.md): commands, provider selection, snapshots, import/export and exit statuses.
|
|
- [MCP contracts](docs/reference/mcp-contracts.md) and [agent prompts](docs/getting-started/mcp-prompts.md): tool results, sessions and guided investigations.
|
|
- [Tool catalog](docs/reference/mcp-contracts.md#generated-catalog): generated inventory of tools, providers and CLI commands.
|
|
|
|
Report vulnerabilities through [SECURITY.md](SECURITY.md).
|
|
|
|
## Community
|
|
|
|
- **[Discord](https://discord.gg/GkcryMnJDM)**: ask questions and share what you're investigating.
|
|
- **[X (@reatools)](https://x.com/reatools)**: releases and new showcases.
|
|
- **[GitHub issues](https://github.com/morluto/rea/issues)**: report a bug or ask for a feature or file format.
|
|
|
|
## Contributing
|
|
|
|
We'd love your help with REA! [Open an issue](https://github.com/morluto/rea/issues) to
|
|
report a bug or suggest a feature, or [send a pull request](https://github.com/morluto/rea/pulls)
|
|
to improve the code or docs. See [CONTRIBUTING.md](CONTRIBUTING.md) for
|
|
development setup and checks, and the [testing guide](docs/development/testing.md)
|
|
for verification lanes.
|
|
|
|
Thanks to everyone using REA, reporting bugs, testing builds, and contributing fixes.
|
|
|
|
<a href="https://rea.tools/contributors/">
|
|
<img src="website/public/contributors/avatars.png" alt="REA contributors" />
|
|
</a>
|
|
|
|
<a href="https://www.star-history.com/?repos=morluto%2Frea&type=date">
|
|
<picture>
|
|
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date&theme=dark&legend=top-left" />
|
|
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
|
<img alt="REA GitHub star history" src="https://api.star-history.com/chart?repos=morluto/rea&type=date" />
|
|
</picture>
|
|
</a>
|
|
|
|
## Disclaimer
|
|
|
|
See [DISCLAIMER.md](DISCLAIMER.md) for responsible-use guidance.
|
|
|
|
The project's position on illegal or unauthorized use covers all REA versions,
|
|
distribution channels, and platforms; each copy retains its applicable licenses.
|
|
|
|
REA is for lawful research, education, interoperability, software preservation,
|
|
and analysis of software you own or are authorized to examine.
|
|
|
|
## License
|
|
|
|
[MIT](LICENSE)
|
|
|
|
REA-authored code is licensed under MIT. Third-party material retains its own
|
|
licenses and copyright notices; see
|
|
[Third-party notices](THIRD_PARTY_NOTICES.md) for the dependency inventory,
|
|
preserved license texts, and external-tool terms.
|
|
|
|
**You must legally obtain and be authorized to use commercial tools**, including
|
|
IDA Pro / Hex-Rays decompilers, Hopper, and JEB, under their applicable
|
|
licenses. REA grants no tool license, key, or activation entitlement. Trials and
|
|
demos remain subject to vendor terms, including user, feature, automation, and
|
|
output sharing restrictions. Cracked copies, stolen keys, unauthorized key
|
|
sharing, and bypassing license restrictions are not authorized. This guidance
|
|
does not amend MIT or third-party licenses.
|