UPDF AI

Learning from the Packet Sequences: Diffusion Model-Based Protocol Greybox Fuzzing

Xin Ren,Pengfei Wang,2 Authors,Wei Xie

2025 · DOI: 10.1109/IPCCC66453.2025.11304636
IEEE International Performance, Computing, and Communications Conference · 0 Citations

Abstract

Network protocol fuzzing is crucial for ensuring the security and stability of protocols. Traditional specification-based methods face severe challenges to generate test cases in scenarios where protocols are complex and specifications are unavailable. Furthermore, the statefulness of protocol implementations requires input packets to satisfy sequential dependencies, further complicates fuzzing. To address these challenges, we developed SPIREFuzz, a novel fuzzer that automatically learns protocol formats and temporal relationships directly from real traffic. SPIREFuzz uses reverse engineering to build a session pattern dataset and employs a Discrete Denoising Diffusion Probabilistic Model (D3PM) to generate packet sequences. Leveraging the model's strengths in stable training and mitigating mode collapse, the method achieves an optimal balance between the accuracy and diversity of generated sequences, which is crucial for generating high-fidelity and state-compliant patterns and simultaneously ensures enhanced state space exploration. Experimental results indicate that on 10 protocols SPIREFuzz's key field identification capability is superior to NetPlier. In fuzzing targeting 8 protocol implementations, compared to AFLNet, NSFuzz, and GANFuzz, its average state coverage, average state transitions, average bitmap coverage, and average unique crashes achieved improvements of up to 78.57 %,73.91 %,3.94 %\text{78.57 \%}, \text{73.91 \%}, \text{3.94 \%}, and 216.67 % respectively.