REA firmware analysis notes (unofficial)
REA can inspect firmware regions and extract nested files using caller-supplied Binwalk and Unblob. Use this only on firmware images you are authorized to analyze (your product, vendor-supplied research images, or explicit written permission).
Setup sketch (Linux x64)
export REA_BINWALK_COMMAND=/absolute/path/to/binwalk
export REA_UNBLOB_COMMAND=/absolute/path/to/unblob
# Linux owned processes also need a procps-compatible ps on PATH
rea inspect-firmware-regions /path/to/firmware.bin
rea extract-firmware /path/to/firmware.bin /path/to/new-output
Upstream requires util-linux prlimit (override with REA_FIRMWARE_PRLIMIT_COMMAND if needed). Unblob keeps its Landlock sandbox enabled; REA does not retry with --no-sandbox.
CLI / MCP intent
| Intent | CLI | MCP tool |
|---|---|---|
| Region map | rea inspect-firmware-regions PATH | inspect_firmware_regions |
| Extract | rea extract-firmware PATH OUT | extract_firmware |
Optional range extraction uses --offset / --length / --max-depth (depth default 3, allowed 1–10 per docs).
Limits worth remembering
- Input firmware: at most 128 MiB (copied/hashed into a private workspace).
- Staging budget defaults: 256 MiB / 10,000 entries (configurable).
- Analysis and publication each default to 120-second budgets with documented overrides.
- Destination directories must be absent; REA will not overwrite existing output trees.
Legal framing
- Authorized images only — do not pull random vendor firmware to crack devices you do not own.
- Extraction ≠ permission to redistribute proprietary blobs.
- Follow REA DISCLAIMER.md.
RepoRead is unofficial. When this page and docs/firmware-analysis.md disagree, trust upstream.
FAQ
Does REA flash or boot devices?
No. The documented milestone inspects/extracts firmware files locally. No device, root, mount, emulation or execution of extracted programs is required.
Which host is verified?
Upstream states the first firmware milestone is verified on Linux x64.
Which tool versions?
Docs accept Binwalk 3.1.x (parsers verified with 3.1.0) and Unblob 26.6.x (verified with 26.6.4). Other builds on those lines are accepted with a limitation note.
Does REA install Binwalk/Unblob?
No. Export absolute REA_BINWALK_COMMAND and REA_UNBLOB_COMMAND to tools you already installed.
Can extracted blobs be opened in Ghidra via REA?
Select a returned ELF (or other admitted native child) separately for supported Ghidra analysis — arbitrary firmware bytes do not auto-admit as native executables.