Featured image AI-generated, editorially reviewed (EU AI Act Art. 50).
TL;DR
Ghidra is a software reverse engineering framework that the NSA develops and provides as open source. The current version 12.2 of October 22, 2026, requires at least JDK 25 and enforces TLS server authentication for connections to the Ghidra Server. Analyses run in the user interface or with analyzeHeadless on the command line, for example for entire directories.
Table of Contents (8 sections)
Ghidra is a free open-source software reverse engineering (SRE) framework that the National Security Agency (NSA) develops and maintains through its Research Directorate. It runs on Windows, macOS and Linux and offers disassembly, decompilation, graphing and scripting for compiled code, among other things. Ghidra works interactively or in automated mode, and custom extensions and scripts are written in Java or Python.
What is reverse engineering?
Software is written in a programming language that people can read. A compiler translates this source code into machine code. Reverse engineering goes the other way: it reconstructs from the finished program how it works. A disassembler outputs the machine instructions as assembly code, and a decompiler turns that back into code in a high-level language.
According to the NSA, it uses Ghidra to analyze malicious code and to give analysts a better understanding of potential vulnerabilities in networks and systems. Uncovering vulnerabilities is also the goal of a penetration test. The framework was developed to solve scaling and teaming problems in complex reverse engineering projects.
Ghidra download and installation
The current version 12.2 was released on October 22, 2026. The NSA provides it as a ZIP file with a SHA-256 checksum on the release page of the GitHub project. The Getting Started guide lists these minimum requirements:
| Component | Requirement for Ghidra 12.2 |
|---|---|
| Operating system | Windows 10 (build 1809 or later), Linux, macOS 10.13 or later |
| Java | JDK 25, 64-bit |
| Memory | 4 GB |
| Disk space | 1 GB for the program files |
| Python 3 | for the debugger and PyGhidra |
The installation takes four steps:
- Install JDK 25, for example as the free LTS version from Adoptium Temurin or Amazon Corretto.
- Download the file ghidra_12.2_PUBLIC_20261016.zip and compare its checksum with the value on the release page.
- Extract the archive with any extraction tool to the location of your choice, not over an existing installation.
- Start Ghidra in the installation directory with ghidraRun.bat (Windows) or ghidraRun (Linux, macOS).
sha256sum ghidra_12.2_PUBLIC_20261016.zip
unzip ghidra_12.2_PUBLIC_20261016.zip -d ~/tools
<GhidraInstallDir>/ghidraRun
The release page lists this checksum:
2c2cd776db3c1f6a097ba418922378ac3649cadd5e844a6f5f088ae628a7be67
There is no classic installer. Installing Ghidra for your own use therefore does not require administrator rights. They can be needed for certain target folders, for example directly under drive C, and for running the Ghidra Server as a service. Because the installation does not change any operating system settings such as the Windows registry, deleting the installation directory is enough to remove it.
Ghidra cannot find Java: install the JDK and add it to the PATH
Ghidra looks for a supported JDK via the JAVA_HOME environment variable or the PATH, with JAVA_HOME taking precedence. If Ghidra only finds an older Java version from 1.8 onwards, it uses that version for the further search. If that does not work, the program asks for the Java home directory, which is the folder above the Java bin directory.
If Ghidra does not start at all because no Java version is on the PATH, the guide recommends a supported JDK. You can install it with a Linux package manager, with an installer for Windows or macOS, or by hand: extract the archive and add the bin directory to the PATH. On Linux and macOS, the entry looks roughly like this:
export PATH=<path to the extracted JDK>/bin:$PATH
Ghidra tutorial: first analysis in the user interface
The NSA's introduction (Introduction to Ghidra Student Guide) describes the first steps like this:
- Create a project via File > New Project. A non-shared project is meant for individuals, a shared project for teams.
- Import the program via File > Import File or drag and drop it into the project folder. Ghidra reads PE, ELF, raw binaries, Intel Hex and GZF, among other formats.
- When the program is first opened in the tool, Ghidra starts the auto-analysis and asks whether to analyze. If you decline at first, you can start it later via Analysis > Auto Analyze.
- The CodeBrowser, the default tool, provides a listing and a decompiler, among other things; selection and navigation are synchronized between the two. The decompiler translates assembly into C code via the intermediate language P-code, and assembly and C code do not correspond one to one.
Ghidra headless: analysis without a user interface
The Headless Analyzer is a command-line version of Ghidra without a graphical user interface. It creates projects, imports and analyzes programs and runs scripts that do not require a user interface. This can help with recurring tasks, for example to import and analyze an entire directory. It is started with the analyzeHeadless script in the support folder:
<GhidraInstallDir>/support/analyzeHeadless /path/to/projects Project1 -import /binaries/program.exe
With -postScript, custom scripts run after the analysis, and -scriptPath sets the search paths for scripts. The option -deleteProject deletes a project created with -import in this run as soon as the analysis and the scripts are finished. With -log, the analysis log goes to a separate file instead of application.log. The Headless Analyzer README explains all options.
What changes with Ghidra 12.2?
For operations, the release notes list:
- Ghidra 12.2 requires at least JDK 25.
- Clients now enforce server authentication on all TLS connections to the Ghidra Server and the BSim PostgreSQL server, including over localhost.
- For the Ghidra Server and the BSim PostgreSQL server, the developers strongly recommend a CA-signed certificate. The new tool server/certTool helps with requesting a certificate and creating the keystore.
- For testing purposes, the check for local connections can be disabled in support/launch.properties.
- Project data from earlier versions can still be used. Programs and data type archives created or modified in 12.2 may not be usable in older versions.
- Ghidra Server 12.2 is compatible with clients from version 11.3.2. Because of security fixes, the developers strongly advise updating older installations to 12.2. Older clients should also be updated so that they stay compatible.
The project's README also warns of known security vulnerabilities in certain Ghidra versions and refers to the security advisories.
When did the NSA release Ghidra?
The NSA presented Ghidra at the RSA Conference in 2019 and released it as a free open-source tool. Rob Joyce, then cybersecurity advisor to the NSA director, gave the talk "Come Get Your Free NSA Reverse Engineering Tool!". He described Ghidra as a Java application with more than 1.2 million lines of code that was developed for internal use at the NSA. Ghidra contains no backdoor, Joyce said. The project's change history lists version 9.0.1 for March 2019 and version 12.2 for October 2026.
Ghidra in malware analysis and in teams
After a security incident, Ghidra complements the forensic toolset. The wiki entry on malware analysis describes how an investigation works. Teams that share a Ghidra Server should plan the update to 12.2 together with the certificates, because clients enforce server authentication from this version on.
Sources
- National Security Agency: Ghidra 12.2, release on GitHub, October 22, 2026
- National Security Agency: What's New in Ghidra 12.2, October 2026
- National Security Agency: Ghidra Getting Started, Ghidra 12.2
- National Security Agency: Headless Analyzer README, Ghidra 12.2
- National Security Agency: Ghidra Software Reverse Engineering Framework, README
- National Security Agency: Introduction to Ghidra Student Guide, GhidraClass Beginner
- National Security Agency: Ghidra Change History, up to Ghidra 12.2
- National Security Agency: Ghidra LICENSE, Apache License 2.0
- RSAC Cybersecurity: Come Get Your Free NSA Reverse Engineering Tool!, talk by Rob Joyce, recording of the RSA Conference 2019
Initial consultation on this topic
Talk to our certified security experts for 30 minutes, free and without obligation.
