LLM extracts full Mirai C2 specs and reproduces 7 of 10 attack vectors
The system extracts all 20 core protocol elements with 100% accuracy and generates a pseudo-C2 that reproduces seven of ten DDoS attacks.
Security & privacy arXiv 19 Jun 2026 Method Prototype evidence
Published as “LLM-assisted Generation of Pseudo-C2 Servers for IoT Malware Dynamic Analysis”
Why it matters
Analysts can automatically construct a functional C2 environment for dormant IoT malware, reducing manual reverse-engineering effort and enabling dynamic analysis without live infrastructure.
Summary
The system automatically extracts full communication specifications from IoT malware binaries and generates a pseudo-C2 server, achieving 100% specification extraction accuracy and fully reproducing 7 of 10 DDoS attack vectors. Experiments on Mirai and a customized variant show the LLM can infer protocol details from binary structures without relying on pre-trained knowledge. Evidence is limited to two binaries in a closed lab network, and three attack types failed due to environmental constraints.
What they found 2
- Specification extraction achieved 100% accuracy on all 20 core protocol elements.
“extracts all 20 core protocol elements in agreement with the ground truth (100% specification extraction accuracy).”
- The generated pseudo-C2 server fully reproduces seven of ten DDoS attack vectors.
“The generated pseudo-C2 server fully reproduces seven of ten DDoS attack vectors”
Caveats 6
- DNS Flood Observation failed (no DNS server)
- HTTP Flood Observation failed (no web server)
- TCP STOMP Flood Partially reproduced (connection attempts only)
- For DNS Flood and HTTP Flood, no attack packets were observed; this is not a control failure of the proposed method but stems from constraints of the experimental environment.
- there is the limited scope of applicability. While we demonstrated that the proposed method is effective for analyzing Mirai and its derivative variants, the applicability to other IoT malware families (Gafgyt/BASHLITE, etc.) and to samples with more sophisticated encrypted communication or custom protocols remains unverified.
- the quantitative evaluation of long-term stability and cost-effectiveness is insufficient.
What’s new here 3
- Automates full pseudo-C2 server generation from static analysis using an LLM, not just analysis assistance.
- Demonstrates LLM inference of protocol specifications directly from binary structures, avoiding reliance on pre-trained data.
- Integrates tool extensions (GhidraMCP) to provide low-level binary context to the LLM.