Ghidra is a software reverse engineering (SRE) framework
Go to file
2024-12-20 13:33:57 -05:00
.github/ISSUE_TEMPLATE Update version example to latest 2022-05-31 19:58:56 +08:00
eclipse GP-0: Updating formatter and preferences 2024-06-11 13:16:25 -04:00
Ghidra GP-5018: Some updated PyGhidra docs 2024-12-20 13:33:57 -05:00
GhidraBuild Merge branch 'GP-5138_ryanmkurtz_ghidradev' 2024-12-20 09:41:10 -05:00
GhidraDocs GP-1978: Delete Framework-Debugging. Merge needed parts into 2024-12-18 14:05:38 -05:00
GPL Merge branch 'GP-0_ryanmkurtz_PR-7152_hippietrail_two-spellos' 2024-11-05 08:45:31 -05:00
gradle GP-5138: GhidraDev/PyDev/PyGhidra integration 2024-12-20 09:34:41 -05:00
licenses many doubled words in comments etc, plus some nearby typos 2024-11-26 13:18:05 +07:00
.gitattributes GP-0: Updating gitattributes 2021-03-30 10:21:45 -04:00
.gitignore Python3 support 2024-09-09 09:58:05 -04:00
build.gradle GP-5179: Improvements to pyghidra_launcher.py 2024-12-10 11:11:19 -05:00
certification.local.manifest GP-4486: Adding Gradle wrapper 2024-07-03 08:04:27 -04:00
CONTRIBUTING.md GP-0: Updating CONTRIBUTING.md 2022-06-28 01:51:22 -04:00
DevGuide.md GP-4978: Converting GhidraDev README to markdown 2024-10-01 08:31:13 -04:00
DISCLAIMER.md fix spelling of commercial (#14) 2019-03-05 22:44:38 -05:00
gradle.properties Fix failing build in tr_TR locale 2023-10-12 17:58:39 +02:00
gradlew GP-4486: Adding Gradle wrapper 2024-07-03 08:04:27 -04:00
gradlew.bat GP-4486: Adding Gradle wrapper 2024-07-03 08:04:27 -04:00
LICENSE Initial commit 2019-02-28 22:27:49 -05:00
NOTICE Candidate release of source code. 2019-03-26 13:46:51 -04:00
README.md GP-0: Converting InstallationGuide.html to Markdown 2024-10-24 13:26:52 -04:00
settings.gradle GP-4987: Generating HTML from Markdown 2024-10-04 11:13:44 -04:00

Ghidra Software Reverse Engineering Framework

Ghidra is a software reverse engineering (SRE) framework created and maintained by the National Security Agency Research Directorate. This framework includes a suite of full-featured, high-end software analysis tools that enable users to analyze compiled code on a variety of platforms including Windows, macOS, and Linux. Capabilities include disassembly, assembly, decompilation, graphing, and scripting, along with hundreds of other features. Ghidra supports a wide variety of processor instruction sets and executable formats and can be run in both user-interactive and automated modes. Users may also develop their own Ghidra extension components and/or scripts using Java or Python.

In support of NSA's Cybersecurity mission, Ghidra was built to solve scaling and teaming problems on complex SRE efforts, and to provide a customizable and extensible SRE research platform. NSA has applied Ghidra SRE capabilities to a variety of problems that involve analyzing malicious code and generating deep insights for SRE analysts who seek a better understanding of potential vulnerabilities in networks and systems.

If you are a U.S. citizen interested in projects like this, to develop Ghidra and other cybersecurity tools for NSA to help protect our nation and its allies, consider applying for a career with us.

Security Warning

WARNING: There are known security vulnerabilities within certain versions of Ghidra. Before proceeding, please read through Ghidra's Security Advisories for a better understanding of how you might be impacted.

Install

To install an official pre-built multi-platform Ghidra release:

  • Install JDK 21 64-bit
  • Download a Ghidra release file
    • NOTE: The official multi-platform release file is named ghidra_<version>_<release>_<date>.zip which can be found under the "Assets" drop-down. Downloading either of the files named "Source Code" is not correct for this step.
  • Extract the Ghidra release file
  • Launch Ghidra: ./ghidraRun (or ghidraRun.bat for Windows)

For additional information and troubleshooting tips about installing and running a Ghidra release, please refer to the Installation Guide which can be found in a Ghidra release at docs/InstallationGuide.html.

Build

To create the latest development build for your platform from this source repository:

Install build tools:
Download and extract the source:

Download from GitHub

unzip ghidra-master
cd ghidra-master

NOTE: Instead of downloading the compressed source, you may instead want to clone the GitHub repository: git clone https://github.com/NationalSecurityAgency/ghidra.git

Download additional build dependencies into source repository:

NOTE: If an Internet connection is available and you did not install Gradle, the following gradle commands may be replaced with ./gradle(.bat).

gradle -I gradle/support/fetchDependencies.gradle
Create development build:
gradle buildGhidra

The compressed development build will be located at build/dist/.

For more detailed information on building Ghidra, please read the Developer Guide.

For issues building, please check the Known Issues section for possible solutions.

Develop

User Scripts and Extensions

Ghidra installations support users writing custom scripts and extensions via the GhidraDev plugin for Eclipse. The plugin and its corresponding instructions can be found within a Ghidra release at Extensions/Eclipse/GhidraDev/ or at this link.

NOTE: The GhidraDev plugin for Eclipse only supports developing against fully built Ghidra installations which can be downloaded from the Releases page.

Advanced Development

To develop the Ghidra tool itself, it is highly recommended to use Eclipse, which the Ghidra development process has been highly customized for.

Install build and development tools:
Prepare the development environment:
gradle prepdev eclipse buildNatives
Import Ghidra projects into Eclipse:
  • File -> Import...
  • General | Existing Projects into Workspace
  • Select root directory to be your downloaded or cloned ghidra source repository
  • Check Search for nested projects
  • Click Finish

When Eclipse finishes building the projects, Ghidra can be launched and debugged with the provided Ghidra Eclipse run configuration.

For more detailed information on developing Ghidra, please read the Developer Guide.

Contribute

If you would like to contribute bug fixes, improvements, and new features back to Ghidra, please take a look at our Contributor Guide to see how you can participate in this open source project.