* refactor(managed): read ManifestResource rows and the CLI Resources directory separately Split a ManifestResource row's columns from its data, so a caller that holds only the metadata can list resources, and let the CLI header prefix report its Resources directory when it is read that far. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): bound .NET assembly manifest resource admission Add the dotnet_assembly reader limit group: the resource count follows the session member count, and metadata bytes bound the CLI metadata read to list ManifestResource rows. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): locate a managed image's metadata and Resources directory Read only the PE headers, section table and CLI header to find where a managed image keeps its metadata and embedded manifest resources, so recognition does not load the image. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): list the manifest resources a .NET assembly embeds Add the dotnet-assembly reader. It reads the ManifestResource rows from the CLI metadata and lists each resource embedded in the Resources directory as its stored bytes. Linked resources are named in the root metadata, since their bytes live in other files. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): open managed assemblies with embedded resources as containers A PE whose CLI header declares a Resources directory, and that carries no other package, now inventories as dotnet-assembly, so a WPF assembly's .g.resources can be extracted and inspected as a resource set. Managed inspection still leads its next probes; extraction follows. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(managed): describe resources embedded in a .NET assembly Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(skill): route assemblies with embedded resources to extraction Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * ci: scope the .NET assembly resource reader with the managed formats Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): keep located managed directories inside the file A section can declare raw data past the end of the file. A metadata or Resources directory mapped there is now malformed at location, instead of failing the later exact read. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): report invalid manifest resource rows once Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): require a complete CLI header before locating managed directories Check the declared header size against the 72-byte header and the CLI directory, and that the whole header lies in the file, as the managed PE reader does. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * test(managed): build fixtures that embed several manifest resources Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): inventory manifest resource names as flat keys Names such as `a` and `a/b` are distinct resources. Inventory keeps both, as it does for resource set names; extraction still refuses to write conflicting paths together. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * feat(artifacts): add decode and retained-name controls for .NET assemblies Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): bound assembly resource names and keep readable rows The metadata decode budget is now the group's representation_bytes control, so a refusal names a field the caller can raise. Every listed name counts against retained_name_bytes before output is built, since rows can share one stored name. A row whose name cannot be read is skipped and counted instead of refusing the whole assembly. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * docs(managed): list the .NET assembly reader controls Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * refactor(artifacts): pass the classified managed location to the assembly reader Classification carries the located metadata and Resources directory in a typed admission for the same descriptor, so the reader does not locate them again. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): explain a damaged CLI Resources directory on extraction Extraction now refuses such a PE with the location's reason instead of reporting that the format has no reader. Inspection keeps the PE root, where managed inspection reports the CLI header. Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> * fix(artifacts): require the CLI header's declared size inside the file Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com> --------- Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
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,
explain how a feature works, show the evidence, and build a version for your project.
English · 简体中文 · 繁體中文 · 日本語 · 한국어 · Türkçe · Русский · Tiếng Việt · ไทย · Deutsch · Español · Français · Українська · Polski · Português (Brasil) · العربية · فارسی · Bahasa Indonesia · Italiano · Ελληνικά · മലയാളം · Roman Urdu · Română · Български · हिन्दी · Nederlands · বাংলা
REA opening a real program in Hopper for an agent. The answer comes with the instructions behind it.
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. 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.
Never used an AI agent? Start with the beginner's guide. New to the term? Read what reverse engineering is.
With Node.js installed, run this from a trusted folder outside the project you plan to analyze:
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.
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
or the rea-agents npm package.
Setup works with the supported agents; other agents that support local MCP servers can use manual registration. The installation guide 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
Find the rule that makes the game speed up, then rebuild it with a speed slider. Play the rebuilt game
Notion: follow a copy from the page to the clipboard
Trace how Notion's desktop app copies text and HTML, step by step, with the code at each step. Read the case study
Aegis: rebuild an Android app's login codes
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
DX-Ball: recover a game's sound panning
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 · Reconstruction repository
CTF: solve a flag checker
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
TH04: recover a DOS game's bullet rings
Find how the PC-98 game spaces a ring of bullets and aims it at the player. Read the case study · Reconstruction repository
Used REA on something interesting? Share it in an issue or a pull request with the target, your question, and what you found.
How REA works
- You ask your agent about an app, a game or a website on your computer.
- REA looks inside it for your agent, using tools such as Hopper, Ghidra or IDA, and finds the code behind the feature.
- Your agent reads the evidence: the code, where it is used, and what is still unknown. It can ask REA follow-up questions.
- 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.
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 and the guides.
For native decompilation, choose a provider that supports your target format and host OS. See choosing a deep analysis provider. Already use Ghidra or IDA? See use Ghidra or IDA with an AI agent.
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. - 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.
Questions
Wondering whether you need Hopper, whether your app gets uploaded, or what to do when something breaks? The FAQ has answers, and you're always welcome to ask on Discord.
Documentation
Start with the website's worked guides. For exact options, prerequisites and result contracts:
- Installation and setup: agent registration, provider configuration, updates and uninstall.
- Readiness and troubleshooting: diagnose one agent or analysis engine.
- CLI and Evidence: commands, provider selection, snapshots, import/export and exit statuses.
- MCP contracts and agent prompts: tool results, sessions and guided investigations.
- Tool catalog: generated inventory of tools, providers and CLI commands.
Report vulnerabilities through SECURITY.md.
Community
- Discord: ask questions and share what you're investigating.
- X (@reatools): releases and new showcases.
- GitHub issues: report a bug or ask for a feature or file format.
Contributing
We'd love your help with REA! Open an issue to report a bug or suggest a feature, or send a pull request to improve the code or docs. See CONTRIBUTING.md for development setup and checks, and the testing guide for verification lanes.
Thanks to everyone using REA, reporting bugs, testing builds, and contributing fixes.
Disclaimer
See 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
REA-authored code is licensed under MIT. Third-party material retains its own licenses and copyright notices; see Third-party notices 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.





