AIDebug
June 18, 2026 ยท View on GitHub
AI-assisted malware reverse-engineering debugger that turns function behavior into ATT&CK mappings, YARA rules, IOC exports, and analyst reports.
Project Maturity Evidence
| Area | Evidence |
|---|---|
| Install and package | PyPI package, pyproject.toml, Debian/Kali files in debian/ |
| Usage documentation | Quick start, analyst workflow, safe examples |
| Safety and scope | Safety model, security policy, limitations |
| Quality checks | CI workflow, unit tests in tests/, package build job |
| Reviewer evidence | sample evidence index, screenshots in assets/screenshots/, mock outputs in examples/mock-output/ |
| Validation | validation plan, deterministic tests for pattern detection and JSON export |
| Maintenance | maintainers, roadmap, changelog, contributing |
| Positioning | comparison, 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.

| Behavioral patterns | Control flow graph |
|---|---|
![]() | ![]() |
| Pattern detection output | 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
| Output | Use |
|---|---|
| HTML report | Analyst review and case notes |
| JSON report | SIEM/SOAR/OpenCTI ingest |
| YARA rules | Detection engineering seed |
| IOC list | Pivoting and enrichment |
| CFG visualization | Function-level behavior review |
| ATT&CK mapping | Technique-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:
examples/toy_xor_config.py- a benign toy XOR loop for documentation.examples/mock-output/aidebug-session.json- representative JSON export.
examples/mock-output/aidebug-candidate.yar- representative analyst-review YARA seed.
examples/mock-output/aidebug-report.html- compact mock HTML report.
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
| Area | Coverage |
|---|---|
| Malware patterns | XOR loops, stack strings, API hashing, RDTSC timing, direct syscalls, NOP sleds, null-safe XOR, Base64 tables |
| Formats | PE32, PE64, ELF |
| Architectures | x86, x86-64, ARM, AArch64, RISC-V |
| Dynamic mode | Frida, remote frida-server, INetSim sandbox support |
| Reports | HTML, 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
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.



