flagship · built at Sber, summer 2026
AI agent for malware C2 reverse engineering llm_ida_c2_analysis
An LLM agent that reverse-engineers the command-and-control (C2) protocol of a malware binary. It drives a headless IDA Pro over the Model Context Protocol (MCP) and works in stages, refusing to finish while any stage is left unexplained.
- Hard part: an LLM must not be trusted on its own word. The agent checks its claims. Layout, struct and dispatch-table findings are cross-checked against an independent Capstone disassembly; crypto findings are verified by running the binary’s real function in a Unicorn emulator.
- Output: a technical report, a working protocol client with an executed self-test, and an annotated IDA database.
Cut reverse-engineering time by 20–60% on real malware samples, validated with my supervisor.
Python · IDA Pro (idalib, headless) · MCP · Capstone · Unicorn
Code on GitHubopen-sourced with my supervisor’s permission, no internal data
malware binary
|
v
IDA Pro, headless (idalib)
^
| MCP
v
staged LLM loop <---------------+
| |
| claims |
v |
checks |
Capstone: layouts, structs, |
dispatch tables |
Unicorn: run the real crypto |
function |
| |
| any stage unexplained? --+
| no
v
report.md
client.py --selftest [executed]
annotated IDA database