explaingit

cellebrite-labs/ghidra-rpc

Analysis updated 2026-05-18

162PythonAudience · developerComplexity · 4/5LicenseSetup · hard

TLDR

A Python bridge that lets AI coding assistants like Claude Code drive Ghidra to reverse engineer software binaries on their own.

Mindmap

mindmap
  root((ghidra-rpc))
    What it does
      Connects Ghidra to AI assistants
      Runs Ghidra as background process
    Tech stack
      Python
      Ghidra
      Java
    Use cases
      Decompile functions
      Rename symbols
      Diff binary versions
    Audience
      Security researchers
      Reverse engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Let an AI assistant decompile a binary and rename functions and variables for clarity.

USE CASE 2

Automatically trace which functions call which inside a compiled program.

USE CASE 3

Compare two versions of a binary to find what changed.

USE CASE 4

Search a binary for specific strings or byte patterns from the command line.

What is it built with?

PythonGhidraJava

How does it compare?

cellebrite-labs/ghidra-rpcresonancegnatassess/lossless-scalingaffaan-m/jarvis
Stars162163158
LanguagePythonPythonPython
Setup difficultyhardeasyhard
Complexity4/52/55/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Requires Ghidra 11+, Python 3.11+, and Java 17+ installed and configured together.

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

In plain English

Ghidra is a free reverse engineering tool released by the US National Security Agency. Reverse engineering means examining compiled software binaries to understand what they do, often because you do not have access to the original source code. It is commonly used in security research, vulnerability analysis, and malware investigation. Ghidra-rpc, built by Cellebrite Labs, is a Python project that connects Ghidra to AI coding assistants so those assistants can perform reverse engineering work on their own. The way it works is that ghidra-rpc runs Ghidra as a persistent background process on your machine and exposes everything Ghidra can do through a command-line tool that speaks structured data. An AI assistant that can run shell commands, such as Claude Code or Cursor, can then issue commands and reason over the results without a human guiding each step. Because Ghidra stays running between commands rather than restarting each time, the session is fast and retains context. The AI can do a wide range of tasks through this setup: decompile functions into readable pseudo-code, trace which functions call which, search for specific strings or byte patterns inside a binary, rename functions and variables to make them easier to understand, define data structures, and compare two versions of a binary to find what changed. Any annotations, renames, or comments the AI adds are saved back to the Ghidra project file, so they show up if you later open that project in the regular Ghidra graphical interface. You can also use the command-line tool manually for debugging or to inspect binaries yourself without involving an AI. The README includes a short example showing how to load a binary, decompile a function, look up cross-references, and rename a function, all from the terminal. The project requires Ghidra 11 or later, Python 3.11 or later, and Java 17 or later. It is licensed under the MIT license and was developed at Cellebrite Labs. Documentation covers installation, a quickstart guide, and workflow guides for tasks like binary auditing, vulnerability research, and patch analysis.

Copy-paste prompts

Prompt 1
Use ghidra-rpc to load this binary, decompile the main function, and explain what it does.
Prompt 2
Rename the functions and variables in this decompiled binary to something readable and save the changes.
Prompt 3
Compare these two binary versions with ghidra-rpc and summarize what changed between them.
Prompt 4
Walk me through installing ghidra-rpc with Ghidra 11, Python 3.11, and Java 17.

Frequently asked questions

What is ghidra-rpc?

A Python bridge that lets AI coding assistants like Claude Code drive Ghidra to reverse engineer software binaries on their own.

What language is ghidra-rpc written in?

Mainly Python. The stack also includes Python, Ghidra, Java.

What license does ghidra-rpc use?

MIT license: use, modify, and distribute freely, including commercially, as long as you keep the copyright notice.

How hard is ghidra-rpc to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is ghidra-rpc for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.