Skip to content

weirdmachine64/GhidraGPT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GhidraGPT

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

About

Integrate LLM models directly into Ghidra for automated code refactoring and analysis.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages