AIDebug

June 18, 2026 ยท View on GitHub

PyPI Python CI Publish License: MIT External submissions Accepted upstream REMnux proposal BlackArch proposal

AI-assisted malware reverse-engineering debugger that turns function behavior into ATT&CK mappings, YARA rules, IOC exports, and analyst reports.

Project Maturity Evidence

AreaEvidence
Install and packagePyPI package, pyproject.toml, Debian/Kali files in debian/
Usage documentationQuick start, analyst workflow, safe examples
Safety and scopeSafety model, security policy, limitations
Quality checksCI workflow, unit tests in tests/, package build job
Reviewer evidencesample evidence index, screenshots in assets/screenshots/, mock outputs in examples/mock-output/
Validationvalidation plan, deterministic tests for pattern detection and JSON export
Maintenancemaintainers, roadmap, changelog, contributing
Positioningcomparison, curated-list resubmission plan

Curated-list resubmission should wait for additional release history and public usage evidence. This repository now documents the quality bar, but age and adoption still require time.

Screenshots

Screenshots are taken from the companion walkthrough article: AI-Powered Malware Debugger That Explains Every Function It Sees.

AIDebug TUI function analysis

Behavioral patternsControl flow graph
AIDebug behavioral patterns tabAIDebug CFG visualization
Pattern detection outputFour-panel TUI
AIDebug pattern detection outputAIDebug four-panel TUI

What This Is For

A malware analyst runs AIDebug when a sample needs fast triage before deeper reverse engineering. The goal is not magic attribution. The goal is structured behavior, technique mapping, and detection-ready output.

What It Produces

OutputUse
HTML reportAnalyst review and case notes
JSON reportSIEM/SOAR/OpenCTI ingest
YARA rulesDetection engineering seed
IOC listPivoting and enrichment
CFG visualizationFunction-level behavior review
ATT&CK mappingTechnique-level reporting

Quick Start

PyPI install

pip install 1200km-aidebug
aidebug --help

The PyPI distribution is named 1200km-aidebug; the installed command is aidebug.

Dynamic Frida instrumentation is optional:

pip install "1200km-aidebug[dynamic]"

From source

git clone https://github.com/anpa1200/AIDebug.git
cd AIDebug
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dynamic]"
aidebug --binary samples/example.exe --no-tui --report --json-export --out-dir reports/

Set ANTHROPIC_API_KEY before AI-backed function analysis or YARA generation:

export ANTHROPIC_API_KEY=sk-ant-...

Safe Examples

The examples/ directory contains safe, non-malicious demo material:

These examples are not live malware and are intended for README previews, parser tests, and integration demos.

How It Works

flowchart LR
  Sample[Binary sample] --> Parse[PE/ELF parsing]
  Parse --> Disasm[Capstone disassembly]
  Disasm --> Patterns[Malware pattern detection]
  Patterns --> Attack[ATT&CK mapping]
  Attack --> IOC[IOC export]
  IOC --> Report[HTML/JSON/YARA report]

How AIDebug Feeds Detection Engineering

AIDebug extracts function-level behavior, maps suspicious logic to ATT&CK technique IDs, emits YARA candidates, and exports IOC lists suitable for enrichment or OpenCTI ingest. Treat the output as analyst-reviewed detection seed material, not final truth.

Coverage

AreaCoverage
Malware patternsXOR loops, stack strings, API hashing, RDTSC timing, direct syscalls, NOP sleds, null-safe XOR, Base64 tables
FormatsPE32, PE64, ELF
Architecturesx86, x86-64, ARM, AArch64, RISC-V
Dynamic modeFrida, remote frida-server, INetSim sandbox support
ReportsHTML, JSON, YARA

Safety

Use AIDebug only in an isolated malware-analysis VM or lab. Do not run unknown samples on your host OS. Static analysis can inspect PE/ELF files directly; dynamic mode attaches Frida to a running process or sandbox and should be used only with authorization and isolation.

Limitations And Honesty

AIDebug accelerates triage. It does not replace manual reverse engineering, sandbox validation, or analyst judgment. ATT&CK mappings and YARA output must be reviewed before operational use.

Companion Article

https://medium.com/bugbountywriteup/ai-powered-malware-debugger-that-explains-every-function-it-sees-2a28ef75df8a

Community

  • Use GitHub Issues for reproducible bugs and feature requests.
  • Use GitHub Discussions for workflow questions, integration ideas, and analyst usage patterns.
  • Do not upload live malware samples to issues or discussions.

Discovery And Launch Material

Use DISCOVERY.md for canonical links, platform-specific launch copy, newsletter pitch text, and current external submission tracking.

Citation

See CITATION.cff.

License

MIT.

Security Policy

See SECURITY.md.

1200km Ecosystem

This project is part of the 1200km security research ecosystem. Use AdversaryGraph for CTI-to-detection workflows, ATT&CK/ATLAS mapping, actor relevance, IOC enrichment, and analyst-ready reporting.