GhidraGPT

December 16, 2025 ยท View on GitHub

GhidraGPT Logo

Author: Mohamed Benchikh

GitHub Stars GitHub Forks GitHub Issues License

A powerful Ghidra plugin that integrates Large Language Models (LLMs) directly into Ghidra to enhance reverse engineering workflows with code analysis and enhancement capabilities.

๐ŸŽฅ Demo

Demo

๐Ÿš€ Features

Core Functionality

  • Function Rewrite: Improve code readability through function renaming, variable renaming, type inference, function prototype updating, and adding contextual comments to make decompiled code more human-readable
  • Code Explanation: Detailed explanations of function logic and behavior
  • Code Analysis: Vulnerability detection and security analysis

Integration Features

  • Context Menu Integration: Right-click functions for instant model analysis
  • Console Interface: Dedicated console for viewing model responses and results
  • Flexible Configuration: Easy setup through configuration panel
  • Stream Processing: Real-time model response streaming for better user experience

๐Ÿ› ๏ธ Installation

  1. Clone the Repository:

    git clone https://github.com/ZeroDaysBroker/GhidraGPT.git
    cd GhidraGPT
    
  2. Build the Plugin:

    GHIDRA_INSTALL_DIR=/path/to/ghidra mvn clean package
    

    The built extension will be at target/GhidraGPT-x.y.z.zip

  3. Install in Ghidra:

    • Open Ghidra
    • Go to File โ†’ Install Extensions
    • Click the + button and select target/GhidraGPT-x.y.z.zip
    • Restart Ghidra
    • Enable the plugin via File โ†’ Configure โ†’ Analysis โ†’ GhidraGPTPlugin
  4. Configure API Keys:

    • Open Ghidra and navigate to the GhidraGPT configuration panel
    • Enter your preferred model service API key
    • API keys are automatically encrypted and stored securely

๐Ÿ“‹ Supported AI Providers

  • OpenAI: GPT models
  • Anthropic: Claude models
  • Google Gemini: Gemini models
  • Cohere: Command models
  • Mistral AI: Mistral models
  • DeepSeek: DeepSeek models
  • Grok (xAI): Grok models
  • Ollama: Bring your own model
  • OpenAI Compatible: Bring your own compatible OpenAI compatible API

๐Ÿค Contributing

Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.

๐Ÿ“„ License

This project is licensed under the terms specified in the LICENSE file.

๐Ÿ”— Dependencies

  • Ghidra: Compatible with Ghidra 10.0+
  • Java: Java 11+
  • Maven: Build system

GhidraGPT - Enhancing reverse engineering with the power of AI