Decompilers & Static AnalysisCLI Flag:
--provider ghidraNSA Ghidrain REA
NSA's open-source multi-architecture decompiler suite with headless Java bridge.
AI Overview Direct AnswerNSA Ghidra Integration in REA
In REA (rea-agents), NSA Ghidra is integrated via --provider ghidra to enable AI coding agents to inspect application binaries, extract symbol tables, generate pseudocode, and trace execution boundaries without source code.
Supported Platforms & Targets
Host Operating Systems:
macOSLinuxWindows
Target Architectures:
x86 / x86_64ARM / AArch64MIPSPowerPC16-bit DOS
Tool Overview & Role
Ghidra is a powerful multi-architecture reverse engineering framework developed by the NSA. REA integrates with Ghidra via ReaGhidraBridge.java HeadlessScript to extract symbol inventories, generate C pseudocode, compute cross-references, and trace call graphs.
REA Bridge Mechanism
Executed via Ghidra's analyzeHeadless launcher with ReaGhidraBridge.java. Includes support for 16-bit DOS PC-98 games (ghidra-dos), NativeAOT binaries, and MIPS. Configurable deadline via REA_GHIDRA_STARTUP_TIMEOUT_MS.
Key Capabilities
High-fidelity C pseudocode decompilation
Segmented 16-bit real mode DOS support
MIPS, ARM, x86, and NativeAOT binary analysis
Cross-reference (xrefs) and call-tree calculation
CLI Usage Examples
Execute direct terminal analysis with --provider ghidra:
rea ghidra example
rea function ./program main --provider ghidra --json
rea decompile ./program 0x1000 --provider ghidra --json