Skip to content

o1y/AIDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIDA

AI-powered analysis plugin for IDA Pro. AIDA uses cloud LLMs (Anthropic Claude, OpenAI GPT) to automatically rename functions and variables, generate comments, and analyze data references in Hex-Rays pseudocode.

Python 3 IDA Pro License

Features

  • Rename Function: Suggest meaningful names for functions and variables based on pseudocode analysis
  • Generate Comment: Create detailed function descriptions suitable for C-style block comments
  • Rename & Comment: Combined rename + comment in a single action
  • Rename Call Graph: Batch rename related functions using call graph context for consistent naming
  • Analyze Data Reference: Analyze and rename data variables based on their cross-references
  • Export for Agent Analysis: Export decompiled functions, types, globals, strings, and call graph for external AI agent workflows
  • Project Context: Set project-specific context that gets prepended to every prompt

Installation

Using hcli (recommended)

hcli plugin install aida

This installs the plugin and its Python dependencies automatically.

Manual

Copy the plugin directory into your IDA Pro plugins folder ($IDAUSR/plugins/) and install the Python dependencies:

pip install anthropic openai

Requirements

  • IDA Pro >= 9.0 with Hex-Rays decompiler
  • Python 3

Setup

  1. Open IDA Pro and load a binary
  2. Go to Edit > Plugins > AIDA to open the settings dialog
  3. Select your provider (OpenAI or Anthropic)
  4. Enter your API key
  5. Choose a model from the dropdown

Usage

Right-click in the Hex-Rays pseudocode view to access the AIDA/ context menu:

  • Rename & Comment - Full analysis: renames function/variables and generates a comment
  • Rename Function - Suggest new function and variable names
  • Generate Comment - Generate a descriptive function comment
  • Rename Call Graph - Analyze a cluster of related functions together for consistent naming
  • Export for Agent Analysis - Export the entire binary's analysis state for use in AI agent workflows

In the disassembly view, right-click a data item:

  • Analyze Data Reference - Analyze a data variable based on its cross-references

Analyze Data Reference

Rename & Comment

Function Rename

Call Graph Batch Rename

The call graph batch rename walks callers and callees from the current function (configurable depth and max functions in settings), then sends the entire cluster to the model for consistent naming across function boundaries.

Call Graph Rename

Project Context

In the settings dialog, you can set a free-text project context that gets prepended to every prompt. Use the Generate Context button to auto-generate a summary from the binary's strings and names. Project context is stored in the IDA database, so it persists per-project.

Generate Context

Supported Models

Anthropic

  • Claude Opus 4.6 (default)
  • Claude Sonnet 4.6
  • Claude Haiku 4.5

OpenAI

  • GPT-5.4 (default)
  • GPT-5.4 mini

Credits

This project was originally inspired from aiDAPal, which used a locally fine-tuned LLM for Hex-Rays analysis.

About

AI-powered analysis plugin for IDA Pro. AIDA uses cloud LLMs (Anthropic Claude, OpenAI GPT) to automatically rename functions and variables, generate comments, and analyze data references in Hex-Rays pseudocode.

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Contributors

Languages