
Reverse Engineer Anything (Docker)
io.github.psyb0t由 GitHub 帳號 psyb0t 發布v0.1.1更新於 Oct 26, 2026
REA reverse-engineering MCP server in Docker, with JADX, Apktool and adb for APKs.
概覽
封裝 REA 的 Docker 映像,讓助理反編譯 Android APK、檢查二進位檔、資源與裝置。
- 可以做什麼
- 檢查與反編譯 Android 套件:列出套件、搜尋並檢視類別與方法、追蹤參照、解碼資源
- 靜態分析 JavaScript/Electron 打包檔、.NET 組件、Go、Rust、WASM 與 SQLite
- 透過 adb 操作裝置並擷取流量
- 啟用 Ghidra 後反編譯原生二進位檔(ELF、PE、Mach-O)
- 以命令列執行相同分析並輸出 JSON
- 適用情境
- 當助理需要檢視沒有原始碼的軟體時適用,例如反編譯 APK 以追蹤登入流程或找出權杖存放位置,同時不想自行安裝 JDK、JADX 與 Apktool。
- 執行需求
- 主機需安裝 Docker;映像以本機容器執行,於 8080 埠的 /mcp 提供 Streamable HTTP,或使用 REA 的 stdio 模式。需要環境變數 REA_BRIDGE_TOKEN(至少 32 個字元),用戶端須送出相符的 Authorization bearer 標頭。目標檔案須掛載到容器的 /work。選用的 Ghidra 首次啟動需連網,並在 /opt/rea-tools 掛載可寫入的磁碟區;Ghidra 僅支援 amd64。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Reverse Engineer Anything (Docker),將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
docker-reverse-engineer-anything
[CI] [version] [license] [Docker Pulls]
REA (Reverse Engineer Anything) in a Docker image, with everything it needs to tear apart Android APKs already inside, and a Streamable HTTP MCP endpoint in front of it.
REA is morluto's MCP server and CLI that lets an AI agent inspect software it
has no source for: decompile APKs, trace references, read resources, poke at
devices over adb, dig through Electron bundles, .NET assemblies, Go and Rust
binaries. Upstream ships it as the rea-agents
npm package that talks MCP over stdio and expects you to install a JDK, JADX
and Apktool yourself. This image does that part for you.
This is an unofficial packaging. REA itself lives at morluto/rea and is MIT-licensed. Bugs in REA's tools go there; bugs in the image or the HTTP bridge go here.
Table of Contents
- What's in the image
- Quick start
- Ways to run it
- Opt-in tools
- Configuration
- Security
- Agent integrations
- Versions and updates
- Development
- License
What's in the image
APK analysis needs no extra setup: inspect_android_package,
search_android_classes, inspect_android_class, inspect_android_method,
trace_android_references and decode_android_resources work out of the box,
and so do REA's static JavaScript/Electron, .NET, Go, Rust, WASM, SQLite and
capture tools.
Native-binary decompilation (the .so libraries inside an APK, or any other
ELF, PE or Mach-O) needs Ghidra. It is free but adds about 900 MB, so it is not
baked in: set REA_INSTALL=ghidra and the container fetches it on first start.
See Opt-in tools.
Images are built for linux/amd64 and linux/arm64. CI runs the APK tests on
both architectures. Ghidra is amd64 only.
Quick start
Then ask your agent something like "decompile the login flow in
/work/app.apk and show me where the token gets stored". Paths are container
paths: whatever you mount at /work is what REA sees.
Ways to run it
The entrypoint takes one argument:
Streamable HTTP bridge
The bridge is a small Node service in front of rea mcp. Each MCP session gets
its own REA process, because REA keeps analysis state per process. Messages
pass through untouched, progress notifications included. Sessions end on
DELETE, after the idle timeout, or when the container stops, and their REA
process goes with them.
stdio MCP
For clients that only launch local commands:
CLI
Output is JSON. --help lists every command.
Opt-in tools
Some tools REA can drive are free to redistribute but too big to put in every
image. Name them in REA_INSTALL and mount a volume at /opt/rea-tools:
On start, before REA runs, the entrypoint installs each listed tool that is not
already in the volume. It downloads the version pinned in the image, refuses
it unless the SHA-256 matches, unpacks it, and points REA at it. Later starts
find it in the volume and skip the download. It works in every mode, mcp and
the CLI included, and logs to stderr only.
The first start needs network access to GitHub. Without a volume, a
--read-only container has nowhere to put the tool and exits with a message
saying so; a writable one installs into its own layer and downloads again for
every new container. Ghidra's
official release has no arm64 decompiler, so on arm64 REA_INSTALL=ghidra
refuses with that reason instead of half-working.
Bring your own
Paid or login-gated tools are never downloaded. Install them yourself and point REA at them:
- Ghidra builds of your own (an arm64 build, a newer version): mount it and
set
GHIDRA_INSTALL_DIR. A setGHIDRA_INSTALL_DIRwins overREA_INSTALL=ghidra. - IDA: mount your installation and set
REA_IDA_MCP_CONFIG, per REA's IDA guide. - JEB: run its MCP server where REA can reach it on loopback (a sidecar
sharing the container's network namespace) and set
REA_JEB_MCP_URL. - Hopper is a desktop app and is not supported here.
Configuration
REA's own variables pass straight through, for example REA_JADX_HEAP_MIB and
REA_JADX_OPERATION_TIMEOUT_MS for big APKs, REA_LOG_LEVEL, or
REA_MCP_MAX_RESPONSE_BYTES. See REA's
documentation. The image
presets JAVA_HOME, REA_JADX_MCP_JAR, REA_APKTOOL_COMMAND and
REA_ADB_PATH.
GET /healthz answers without a token: {"status":"ok","sessions":N}.
Security
REA can run, drive and instrument the software it looks at, and it does no permission checks of its own. The container is the boundary, so keep it tight:
- The bridge won't start without a token, compares it in constant time, checks
the
Hostheader, and never hands the token to REA. - The image runs as an unprivileged
reauser. Run it the way the examples do: read-only root, tmpfs for/tmpand/home/rea, all capabilities dropped,no-new-privileges, targets mounted read-only, port bound to 127.0.0.1. /tmpcan't benoexec: the JVM loads native libraries from it.- Exposing it beyond localhost? Put TLS in front and add the hostname to
REA_BRIDGE_ALLOWED_HOSTS. - Only analyze software you own or are authorized to examine. REA's disclaimer applies.
Agent integrations
- Skill for Claude Code, Codex and OpenClaw:
claude plugin install reverse-engineer-anything@psyb0t,codex plugin add reverse-engineer-anything@psyb0t, or from ClawHub. It teaches the agent the APK workflow and ships a locked-down CLI wrapper. Add the marketplace first withclaude plugin marketplace add psyb0t/agents. - OpenClaw plugin
@psyb0t/reverse-engineer-anything: a stdio bridge to a running container. SetREA_URLandREA_BRIDGE_TOKEN. - MCP registry:
io.github.psyb0t/reverse-engineer-anything.
Versions and updates
The image version is this repository's own (VERSION); REA's version is in the
table above and in package.json. REA ships releases almost daily. This image
only takes a REA release, or any other npm package, once it is at least seven
days old, installs with lifecycle scripts disabled from a frozen lockfile, and
checks every downloaded jar against a pinned SHA-256. The opt-in tools follow
the same rule: one version per image release, at least seven days old, checked
against its SHA-256. Base images are pinned by digest.
Development
The host needs Docker, Make, Git and a shell. Everything else runs in containers.
The integration test starts the hardened container, checks that a missing
token gets a 401, then drives REA's Android tools through the bridge against
Appium's ApiDemos APK. It also starts a container with REA_INSTALL=ghidra
and has Ghidra analyze a binary through the bridge (on arm64 it checks for the
refusal instead). The Ghidra download is cached in the rea-integration-tools
volume; make clean removes it.
License
WTFPL for this repository's code. REA is MIT, and the bundled tools keep their own licenses: see THIRD_PARTY_NOTICES.md.
來源:README.md,提交 2c3ec3f
工具
0版本歷史
1- v0.1.1最新Oct 18, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分