kimi-ida is a Rust-based plugin for IDA Pro that integrates the Moonshot AI (KIMI) API to provide automated reverse engineering analysis. The plugin decompiles functions using Hex-Rays, sends the pseudocode to the KIMI AI for analysis, and applies the results (renamed variables, comments, function names) back to the IDA database.
- Single Function Analysis: Analyze the current function under the cursor (Ctrl+Shift+K)
- Batch Analysis: Analyze all functions in the binary automatically
- Smart Variable Renaming: AI-suggested meaningful variable names
- Automatic Commenting: Adds explanatory comments to complex code sections
- Function Renaming: Suggests descriptive function names based on heuristic analysis
- Rust nightly toolchain (required for unstable features):
rustup default nightly
rustup target add x86_64-pc-windows-msvc
rustup component add rust-src # Required for build-std- IDA SDK (automatically cloned as submodule or set via env var):
git submodule update --init --recursiveor
set IDASDK=path-to-ida-sdk- Static Library:
Ensure
ida.libis in the project root for linking
# Debug build
cargo build
# Release build (optimized, recommended)
cargo build --release
# The plugin DLL will be at:
target/release/kimi_ida.dll-
Copy
target/release/kimi_ida.dllto IDA's plugins directory:C:\Program Files\IDA Pro 9.x\plugins\kimi_ida.dll -
Set environment variable before launching IDA:
set KIMI_API_KEY=sk-kimi-your-api-key-here
- Analyze Current Function: Press
Ctrl+Shift+Kin pseudocode view, or right-click → "KIMI: Analyze function" - Analyze All Functions: Right-click in pseudocode view → "KIMI: Analyze all functions"
- View Output: Check IDA's Output window for
[KIMI]prefixed messages
MIT License - See LICENSE file for details.
Copyright (c) 2026 Alex Mizumori