# nationalsecurityagency/ghidra — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `dev`
- Overall score: `4.3/5`
- Implementation check: `verified`
- Maturity: `mature`
- Audited commit: `f2824cfd9e01` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-11-30T12:43:25Z
- Repository: https://github.com/nationalsecurityagency/ghidra
- Radar entry: https://radar.alplab.co/#repo/nationalsecurityagency/ghidra
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `reverse-engineering`, `decompiler`, `disassembler`, `java`, `binary-analysis`, `framework`

## Summary

NSA's open-source software reverse engineering framework: Java application + native C++ decompiler, disassembly/analysis for dozens of processor formats, scripting and extension APIs

## Implementation Check

README's claims are implemented: entry point Ghidra/Framework/Utility/src/main/java/ghidra/Ghidra.java launches the app, decompiler pipe protocol fully implemented in Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java with the C++ decompiler sources in Ghidra/Features/Decompiler/src/decompile/cpp, plus large Framework/Features/Processors/Debug module trees and test sources

## When to Use

Default choice for interactive or headless reverse engineering of compiled binaries and malware analysis; not ideal when you need a tiny dependency-free library — it requires JDK 25, Gradle 9.1+, Python and native toolchains to build

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 5.0/5 |

## Code Evidence

Real decompiler IPC with timeouts, 50MB result cap and callback protocol (DecompileProcess.java:151 runtime.exec of a fixed, locally built path); supply chain is sha256-pinned per artifact in gradle/support/fetchDependencies.gradle (z3, postgresql, python wheels, fidbs); zip handling hardened against zip-slip and zip bombs in Ghidra/Framework/Generic/src/main/java/ghidra/util/SecureZipExtractor.java (100MB/file, 1GB total, ratio limits); CI builds on every push (.github/workflows/build-ghidra.yml) plus multi-platform artifact workflow; extensive test.gradle/test source trees

## Issues Found

runtime.exec calls of locally installed helper binaries (Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java:554, Ghidra/Features/FileFormats/src/main/java/ghidra/file/jad/JadProcessController.java:92) — fixed install paths, not user-input shellouts; fetchDependencies.gradle pulls from third-party hosts (sourceforge.net, storage.googleapis.com, archive.eclipse.org) but every artifact is sha256-pinned; by design it parses hostile binaries in-process, which is the inherent attack surface

## Key Risks

Nothing was executed, so no test run or build is verified — CI and tests exist in code but pass status is unproven here; building from source is heavy (JDK 25, native GCC/MSVC, Gradle); README itself warns of known vulnerabilities in older Ghidra versions (README.md Security Warning); the X post is unrelated to functionality — just a link in a resource list

## Reviewed Files

- `README.md`
- `Ghidra/application.properties`
- `.github/workflows/build-ghidra.yml`
- `Ghidra/Framework/Utility/src/main/java/ghidra/Ghidra.java`
- `Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java`
- `gradle/support/fetchDependencies.gradle`
- `Ghidra/Framework/Generic/src/main/java/ghidra/util/SecureZipExtractor.java`
- `DISCLAIMER.md`
