--provider ghidraREA vs NSA Ghidra• AI Reverse Engineering Guide
NSA's open-source multi-architecture decompiler suite with headless Java bridge.
In AI-assisted reverse engineering with REA (rea-agents), NSA Ghidra is bridged via --provider ghidra to allow Claude Code, Cursor, and Windsurf to extract symbol graphs, trace control flow, and decompile binaries headlessly via Model Context Protocol.
How REA Enhances NSA Ghidra with Autonomous AI Agents
Traditional reverse engineering in NSA Ghidra requires manual CFG graph navigation, manual symbol naming, and isolated local scripts without LLM code intelligence.
AI coding agents (Claude Code, Cursor) invoke NSA Ghidra headlessly via REA's Model Context Protocol (MCP), generating clean-room specifications and reconstructive code in seconds.
Multi-Platform Installation Recipes
brew install --cask ghidrawinget install NationalSecurityAgency.Ghidrasudo apt install openjdk-21-jdk -yrea doctor --provider ghidraSupported Platforms & Targets
Tool Overview & Role
NSA Ghidra is an open-source reverse engineering framework built on the Sleigh processor modeling language. It lifts machine instructions into P-Code (a register transfer intermediate language), constructs High-P-Code representations in Static Single Assignment (SSA) form, performs control-flow graph simplification, and emits structured C pseudocode. REA integrates with Ghidra via ReaGhidraBridge.java executed by Ghidra's headless launcher (analyzeHeadless), binding directly to FlatProgramAPI and DecompInterface to compute xrefs, extract symbol inventories, and recover type signatures.
REA Bridge Mechanism
Key Capabilities
CLI Usage Examples
Execute direct terminal analysis with --provider ghidra:
rea function ./program main --provider ghidra --json
rea decompile ./program 0x1000 --provider ghidra --json