From RFCs to Seeds: LLM-Driven Seed Generation for Network Protocol Fuzzing
Fuzzing network protocols often runs straight into a wall. Mutation fuzzers such as AFL++ for example blindly break the rigid grammar these protocols demand, so the target parser rejects the input at the surface long before any deeper logic is reached. To build a valid input (aka seeds) which a mutation fuzzer can work with, a seed corpus is needed. Building a valid, diverse seed collection by hand is tedious, because the protocol rules might be scattered across more than a hundred related RFCs. Security researchers typically do this manually or need to build complex grammars or rely on existing corpora. Recent work to ease the work was throwing an LLM at the problem, but zero-shot prompting creates a new set of problems like hallucinations for example.
In this talk, I present an open-source pipeline as part of my completed Bachelor's Thesis that grounds seed generation in the specification itself. A single LangGraph-based agent retrieves exact Grammar rules of text-based network protocols and data from a vector database of complete RFCs, then generates seeds and validates them against a deterministic Wireshark-based validator. To measure seed quality, we replay each corpus deterministically against SIP protocol parsers and compare code coverage against zero-shot prompting the LLM seeds and real captured traffic. The result is a clear map rather than another 'LLMs fix fuzzing' headline. Our evaluation shows that this Retrieval Augmented Generation (RAG) based approach discovers deeper code paths in syntax-heavy parsers than both zero-shot LLM prompting and corpora built from real-world traffic captures.
The main thing attendees will leave with, is a modular, open-source framework ready to be plugged into their existing AFL++ workflows. The audience will learn how to build high-coverage, syntactically valid seed corpora for complex text-based protocols using RAG and LangGraph. This will let them bypass the manual labor of reading RFCs. The talk will help to understand the limitations of zero-/few-shot LLM seed generation and see proof how grounding generation in actual relevant data produces better results
Saifeldin Mandour is a security researcher with strong interest in protocol analysis and fuzzing. He works as security analyst at Germany-based ERNW GmbH where he specializes on offensive techniques in complex environments. Saifeldin regularly gives talks at academic conferences like ACM SIGIR 2025 and at company-internal research workshops.