Ghidra, an open-source reverse engineering framework created by the NSA, is widely used for vulnerability research. It analyzes compiled binaries through disassembly and decompilation, allowing researchers to audit code, find security flaws, and perform patch diffing without original source code.

Core Ghidra Features for Vulnerability Hunting

  • Decompiler View: Translates complex assembly instructions into readable pseudo-C code to speed up logic and control-flow analysis.
  • Cross-References (Xrefs): Tracks where specific functions, global variables, or dangerous API sinks (like strcpy or sprintf) are called across an entire binary.
  • Defined String Searches: Locates hardcoded credentials, URL paths, or format strings that might expose logic weaknesses or injection points.
  • Scripting and Automation: Supports custom Python and Java scripts or integrations with static analysis tools like Semgrep to flag insecure patterns automatically.
  • Patch Diffing: Compares patched and unpatched binary variants (via extensions like Ghidriff) to isolate root causes of fixed CVEs.