REA
Inspects Electron apps and ASAR archives, mapping modules, imports, Electron process boundaries, and supporting evidence.
Analyzes extracted JavaScript application directories, returning modules, imports, references, unknowns, and supporting evidence for understanding how app features work.
Inspects .NET assemblies to recover code structure and references for feature-level reverse engineering, with evidence and stated limitations.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
REA Sandbox Edition
A disposable, headless-agent-friendly fork of REA — reverse engineering across binaries, applications, and runtime behavior.
node scripts/sandbox.mjs install
Credit
REA is created and maintained by morluto and the REA contributors at morluto/rea.
The analysis engines, CLI/MCP tool catalog, Evidence model, workflow skill, documentation, and the original README are their work — see CREDITS.md. This fork only adapts REA to run inside a disposable, headless agent sandbox, and trims the checkout to what an agent actually needs (~3.2k files instead of ~7.2k).
If you are not specifically working in that sandbox, use upstream instead: morluto/rea · rea.tools.
Related MCP server: REA
What this fork changes
One command for the whole lifecycle.
scripts/sandbox.mjsreplacesbootstrap.sh,verify-sandbox.mjsandslim-repo.shwithstatus,install,verify,run,batch,slim,envandreport. One file, no dependencies, no shell glue.Sandbox-first provisioning.
installfetches Node.js, JDK 25, Apktool,jadx-headless-mcpandpwntoolsinto/opt/rea-engines(with allowed-registry fallbacks over npm, PyPI and GitHub when OS mirrors are blocked), writes a gitignored.rea-sandbox.env, and verifies what actually works on the host.No export step.
scripts/rea.mjsandsandbox runload.rea-sandbox.envautomatically, soset -a; . ./.rea-sandbox.env; set +ais optional.Faster feedback loops.
statusis a single dependency-free process that answers in well under 100 ms with no npm and no network;verifyprobes concurrently instead of one CLI start per row; a warm re-provision skipsnpm ciwhilenode_modulesstill matches the lockfile;batchruns a sweep of analyses in one call.CLI-driven, no MCP client required. The host drives REA through
node scripts/rea.mjs, not a registered MCP server.Trimmed checkout. Development material removed for the file budget can be restored with
node scripts/sandbox.mjs slim --restore.Honest limits. Hopper, IDA, JEB, ADB, browsers, Frida, firmware, and WASM are not available in the default sandbox; the verified capability matrix lives in docs/sandbox-environment.md.
Nothing in the analysis engines or Evidence model has been forked or reimplemented — it is all upstream code.
Sandbox quick start
node scripts/sandbox.mjs status # is this container ready? (no npm, no network)
node scripts/sandbox.mjs install # provision + build (~40 s warm, 42 s cold)
node scripts/sandbox.mjs install --profile native # add JDK 25 + Ghidra decompilation
node scripts/sandbox.mjs verify --quick # prove what works here
node scripts/sandbox.mjs run analyze-javascript-application /abs/path/to/app --json
node scripts/sandbox.mjs run analyze /abs/path/to/binary --json # --profile nativeEverything above is idempotent, writes only /opt/rea-engines plus the gitignored .rea-sandbox.env, and needs no MCP client. The environment file is picked up automatically — sourcing it is no longer required.
Sandbox commands
Command | What it does | Typical cost |
| Per-check readiness report: node, deps, runtime, JDK, Ghidra, JADX, apktool, pwntools, host tools, RAM, disk. | < 100 ms |
| Provision what is missing and build. | 2 s warm, ~42 s cold |
| Re-derive the capability matrix against generated fixtures. | seconds |
| Run the REA CLI with the sandbox environment loaded and the exit status forwarded. | one CLI call |
| Run many REA commands in one call; JSONL per-command status, timing and Evidence ids. Native commands stay serial. | one sweep |
| Trim the checkout to the agent file budget, or | seconds |
| Print, | < 100 ms |
| Write the combined status + capability report to | seconds |
| Print bash/zsh completion for the CLI. | instant |
npm run sandbox:status, sandbox:install, sandbox:verify, sandbox:slim, sandbox:run, sandbox:batch, sandbox:env and sandbox:report wrap the same commands (sandbox:bootstrap and sandbox:provision are kept as aliases). The old script files are gone; their replacements are listed in the migration table.
Agents should read AGENTS.md first — it is the runbook — then docs/sandbox-environment.md for the verified capability matrix, honest limits, and the troubleshooting ladder.
Requirements
Node.js 22.x (≥22.23.4), 24.x (≥24.22.1), or 26.12.1+, plus npm.
On Linux, Ghidra, JADX, firmware tool launches, and static JavaScript/Electron analysis require a procps-compatible
psonPATHfor process-ownership checks. Recovery steps are in docs/installation.md under "Linux owned-process prerequisite".
What works in this sandbox
The default sandbox covers static inspection and a subset of the upstream catalog. Confirmed capabilities include:
Android APKs & React Native / Hermes — APK inventory & application-graph projection (
project-android-application-graph), v1/v2/v3 signing inspection (inspect-apk-signature), pure-TS Hermes bytecode bundle inspection (inspect-hermes-bytecode), Apktool resource/manifest decoding (decode-android-resources), and JADX DEX/manifest/JNI/xref decompilation (inspect-android-package,search-android-classes,inspect-android-class,inspect-android-method,inspect-android-jni-bindings,trace-android-references).JavaScript / Electron — modules, imports, source maps, routes, IPC and native add-on relationships (static, no native engine).
.NET assemblies — metadata, CIL instructions, declared native dependencies, build comparisons (static).
Native binaries — pseudocode, assembly, strings, symbols, calls and references via Ghidra headless, only with
--with-native.Go, Rust, ELF notes, PE imports, PE certificates, kernel modules, Erlang BEAM, SQLite (
node:sqlite), model artifacts, Flutter/AOT, IL2CPP metadata, Godot PCK, Apple IPS — built-in static inspection, no external engine.Desktop installations and packages — bounded directory/header inspection, digests, plists, Apple bundle anatomy.
Not available in the default sandbox: Hopper, IDA, JEB, ADB devices, browser observation, Frida, firmware, WASM, packet captures (when tshark cannot be installed), and recorded logic signals. See docs/sandbox-environment.md for the authoritative matrix and how to add each one.
For the full upstream feature list — Android, iOS, firmware, WASM, network captures, RL environments, and everything else — see the upstream README.
Upstream references
Repository: morluto/rea
npm package:
rea-agents— used by both upstream and this forkDocumentation: installation · CLI and Evidence · MCP contracts · tool catalog · roadmap
Documentation in this fork
AGENTS.md — the sandbox runbook
docs/sandbox-environment.md — the sandbox CLI, capability matrix and honest limits
CREDITS.md — upstream attribution
docs/installation.md — upstream setup reference
docs/cli.md — upstream CLI reference
Run node scripts/sandbox.mjs help (or help <command>) for the full option list.
Report vulnerabilities through SECURITY.md.
License and third-party notices
MIT. REA-authored code is MIT-licensed; third-party material retains its own licenses and copyright notices — see 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.
See DISCLAIMER.md for responsible-use guidance. REA is for lawful research, education, interoperability, software preservation, and analysis of software you own or are authorized to examine.
Contributing
Improvements to the sandbox adaptation belong in this fork's issue tracker and pull requests. Everything else — engines, tool catalog, Evidence model, guides — belongs upstream: morluto/rea issues · morluto/rea pull requests. See CONTRIBUTING.md for development setup and checks.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Hunt zero-days by talking to binaries. 40+ tools. Hosted, OAuth + SSO, invite: hi@byteray.ai
Read-only release evidence for coding agents: findings, deliveries, source and runtime data.
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect and reverse engineer native binaries, JavaScript/Electron applications, .NET assemblies, websites, and runtime behavior, returning evidence-backed findings that can be explained, implemented, or tested.4MIT
- AlicenseNot gradedqualityCmaintenanceLets agents inspect native binaries, JavaScript/Electron applications, .NET assemblies, websites, and runtime behavior, returning evidence-backed findings and limitations for understanding and reimplementing features.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect native binaries, JavaScript/Electron apps, .NET assemblies, and websites without source code, trace runtime behavior, and return evidence-backed findings for explaining features or building similar implementations.MIT
- AlicenseNot gradedqualityBmaintenanceEnables agents to inspect and reverse-engineer native binaries, JavaScript and Electron apps, .NET assemblies, websites, and runtime behavior without source code, returning evidence-backed findings and limitations.MIT