REA binary layout notes (unofficial)
REA’s inspect-binary-layout path answers what an explicit file contains — sections/segments, original symbols/relocations, static linkage names and mitigation indicators — without an active Hopper/Ghidra/IDA target. Prefer binary-diagnostics.md.
Minimal path
export REA_PWNTOOLS_PYTHON=/absolute/isolated-env/bin/python
rea inspect-binary-layout /absolute/path/selected.elf --json
MCP inspect_binary_layout needs an absolute path.
Mental model
- Bring your own verified Python env; REA isolates the process and does not mutate your init files.
- Parsing reads an owned stable snapshot — the original file is unchanged.
- Duplicate symbol names stay separate entries; unresolved cases stay explicit unknowns.
- CTF is one use; crash triage and ordinary inspection share the same capability.
Legal note
Layout facts are not permission to exploit a binary. Inspect only files you are authorized to examine; do not ask RepoRead for exploit PoCs.
RepoRead is unofficial. Prefer binary-diagnostics.md.
FAQ
Does REA install pwntools or GDB?
No. Upstream states REA never installs Python, packages or GDB. You point REA_PWNTOOLS_PYTHON at an absolute interpreter whose env already has unchanged pwntools 4.15.0, pyelftools 0.33 and Unicorn 2.1.2.
What was initially verified?
Docs say initial real verification covers Linux x64, ELF64 x86-64 little-endian EXEC/DYN/REL.
CLI example?
REA_PWNTOOLS_PYTHON=/absolute/env/bin/python rea inspect-binary-layout ./selected.elf --json
Are reported addresses runtime addresses?
No. Docs emphasize linked addresses/offsets are not runtime addresses; runtime load base remains null in this path.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).