Skip to main content

Ghost through binaries โ€” parallel IDA analysis + AI function naming in your terminal

Project description

๐Ÿ‘ป spectrIDA

Ghost through binaries.

Parallel IDA Pro analysis + AI function naming + a terminal that doesn't suck.

spectrida analyze GameAssembly.dll --workers 16
โ—ˆ  spectrIDA  โ–ธ  GameAssembly.dll

  โœ“ 00  โœ“ 01  โœ“ 02  โœ“ 03  โ–ธ 04  ยท 05  ยท 06  ยท 07
  โœ“ 08  โœ“ 09  โœ“ 10  โœ“ 11  โœ“ 12  โœ“ 13  โ–ธ 14  ยท 15

  14/16 shards  โ”‚  141,203 functions found
  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘  89%  ~4s remaining

What it is

IDA Pro's auto-analysis is single-threaded. On a 34 MB il2cpp DLL that's minutes. spectrIDA splits the binary into N shards, runs them in parallel via idalib, merges into one .i64, then lets a fine-tuned 8B model name every function โ€” all from one terminal UI with a cyberpunk theme and exactly the right amount of sarcasm.

It is not Ghidra. It does one annoying thing (slow analysis + naming) fast, and it's genuinely fun to use. 199 downloads speak for themselves.

No cloud. No telemetry. Runs entirely on your machine.


Numbers

task time
Among Us DLL โ€” single-threaded IDA ~4 hours
Among Us DLL โ€” spectrIDA (16 workers) 67 seconds
153,649 function binary โ€” full naming pass overnight
Binary overview (what does this thing do?) ~30 seconds

Features

  • Parallel sharded analysis โ€” splits into address-space shards, runs N idalib instances, merges into one .i64. Workers configurable via flag, config, or env var.
  • AI function naming โ€” fine-tuned Qwen3-8B runs locally via Ollama, streams names token-by-token. Press N. Watch it think. Name appears.
  • Batch naming โ€” B to name every sub_* function in the list. Walk away. Come back.
  • Binary overview โ€” press O or run spectrida overview file.i64. Model reads 120 sampled function names and tells you what the binary does, what its subsystems are, and anything security-relevant. Correctly identified a 153k-function IL2CPP runtime in 30 seconds.
  • Call chain explorer โ€” C shows callers and callees. The model uses these as context when naming โ€” a function called by Player$$TakeDamage gets named better than one in isolation.
  • Decompiler view โ€” D toggles Hex-Rays pseudocode.
  • Export โ€” dump everything to JSON, CSV, IDA .idc script, or a symbols file. The .idc applies all AI-generated names back into any IDA install in one click.
  • Programmatic API โ€” from spectrida.api import open_i64. Drive everything from scripts, notebooks, or Claude Code without touching the TUI.
  • Demo mode (spectrida --demo) โ€” try the whole thing with zero setup. No IDA, no Ollama.
  • A first-run wizard โ€” helps you install Ollama + the model, detects your IDA install automatically, then never asks again.

Install

pip install spectrida

Requirements: IDA Pro 9.x with idalib ยท Python 3.10+ ยท Ollama

# install Ollama (Windows)
winget install Ollama.Ollama

# pull the model (8.7 GB โ€” go get coffee)
ollama pull hf.co/gdfhhjk/spectrida-re-gguf

# first run โ€” detects your IDA install and sets everything up
spectrida onboard

# or just try the demo right now
spectrida --demo

Commands

# analyze a binary from scratch
spectrida analyze GameAssembly.dll
spectrida analyze GameAssembly.dll --workers 8    # custom worker count

# open an existing .i64 in the browser
spectrida open file.i64

# ask the AI what this binary is
spectrida overview file.i64
spectrida overview file.i64 --addr 0x10001000 --addr 0x10353fd0  # include specific functions

# export function names
spectrida export file.i64 -f idc           # IDA script โ€” apply names to any install
spectrida export file.i64 -f json          # full dump with addresses + sizes
spectrida export file.i64 -f csv           # spreadsheet
spectrida export file.i64 -f symbols       # addr name pairs
spectrida export file.i64 --named-only     # skip sub_* functions

# check Ollama + model status
spectrida serve

# re-run the setup wizard
spectrida onboard

TUI keys

Key Action
N Name selected function โ€” AI streams the result live
R Rename โ€” pre-filled with the AI suggestion
D Toggle decompiled pseudocode (Hex-Rays)
C Call chain โ€” callers and callees
B Batch-name all sub_* functions in the current list
O Overview โ€” AI summary of the whole binary
/ Fuzzy search
? Help
Q Quit

Programmatic API

No TUI needed โ€” drive spectrIDA from scripts, Claude Code, notebooks, whatever:

import asyncio
from spectrida.api import open_i64

async def main():
    async with open_i64("GameAssembly.i64") as db:

        # list all 153k functions
        funcs = await db.list_functions()

        # name one function โ€” returns name + reasoning + confidence
        result = await db.name_function(0x10001000)
        print(result["new_name"])     # init_atexit_handler
        print(result["reasoning"])    # allocates array of 3 fn ptrs, calls _atexit...

        # batch name everything (with live progress)
        async def on_progress(done, total, r):
            print(f"  {done}/{total}  {r['old_name']} -> {r['new_name']}")

        await db.batch_name(limit=500, rename=True, progress_cb=on_progress)

        # ask what the binary does
        overview = await db.overview()
        print(overview)

        # export to IDA script
        await db.export("names.idc", fmt="idc", named_only=True)

asyncio.run(main())

The model

hf.co/gdfhhjk/spectrida-re-gguf โ€” Qwen3-8B fine-tuned for reverse engineering.

Trained on:

  • x86/x64 assembly โ†’ function name pairs with call-chain context
  • Tool call traces from jtsylve/ida-mcp โ€” headless IDA with idalib
  • Extended context reasoning traces from a codebase context server

Training approach: neuron-targeted SFT + GRPO. Only the RE-relevant neurons are tuned โ€” base Qwen3 knowledge stays intact, you just added a very specific skill on top.

Runs locally via Ollama. GGUF โ€” works on CPU, GPU, or both.


Who is this for

You're reversing something. You have a binary with 150,000 functions. Maybe 2,000 have names from metadata. The other 148,000 are sub_XXXXXXXX. You want to find the network code. You can't grep for it because nothing has a name yet.

A human RE can name ~50-100 functions per hour if they're fast. At that rate, 150k functions = 3 years.

spectrIDA names them overnight. Not perfectly โ€” maybe 70% accuracy on generic functions, much higher on patterns the model recognizes. But now instead of 148k sub_ functions you have network_send_packet, serialize_player_state, validate_checksum โ€” and you know where to look.

It doesn't replace a skilled reverse engineer. It does the boring 80% so you can focus on the interesting 20%. It's the orientation layer.

Real use cases:

  • Game modding โ€” find the physics system in a 150k-function binary in minutes, not days
  • Security research โ€” malware triage, understand a binary's architecture quickly
  • CTF โ€” time pressure, need to know what you're looking at immediately
  • Anyone who has stared at sub_140001234 for 20 minutes thinking there has to be a better way

Configuration

~/.spectrida/config.toml:

[ida]
idalib = "C:/Program Files/IDA Professional 9.1"
output_dir = "~/.spectrida/output"

[ollama]
base_url = "http://localhost:11434"
model = "spectrida-re"   # any ollama model name works

[pipeline]
workers = 16

Env var overrides: SPECTRIDA_IDALIB ยท SPECTRIDA_MODEL ยท SPECTRIDA_WORKERS ยท SPECTRIDA_OLLAMA_URL


What's coming (chapter 2)

  • Deep context naming โ€” follow call trees N levels deep, feed the full chain to the model. A function 3 hops from encrypt_block should know it's in the crypto path.
  • Deobfuscation โ€” TigressVM pattern detection and handler tracing
  • MCP server โ€” expose spectrIDA as an MCP tool so Claude Code can call it natively

License

MIT. Do whatever you want with it. If it works, cool. If it doesn't, blame the GGUF quantization.

Built with spite, coffee, and an RTX 4070. The model has 199 downloads with zero marketing. Each one adds 0.01% to development speed. (This is not true. But it's close.) ๐Ÿ‘ป

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spectrida-0.1.1.tar.gz (55.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spectrida-0.1.1-py3-none-any.whl (64.2 kB view details)

Uploaded Python 3

File details

Details for the file spectrida-0.1.1.tar.gz.

File metadata

  • Download URL: spectrida-0.1.1.tar.gz
  • Upload date:
  • Size: 55.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for spectrida-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8921cdc2399f1393d6fe2d2e7c1e18c482a5608646d0ab76c30d712b0b76dd29
MD5 1fc5b0bb989d7682b75e99952ebefb9f
BLAKE2b-256 319837a9d8458222b6e62f7db04251ecfd31da6b5fcbd6437575c42bf75f717f

See more details on using hashes here.

File details

Details for the file spectrida-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: spectrida-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 64.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for spectrida-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dc35ff0515722950550582c88f2f37209aa3818e54209aceb30c6e0a86303c61
MD5 18301082ed5d7062838ae85a37257b9f
BLAKE2b-256 6aec9cc788af9d2700e61579870787068caaa8e7871c2c13d6e9800bd7b60df3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page