arXiv Science⌕ Search

arXiv subjects

Pengda Li

Publications and source records attributed to Pengda Li.

1 recordsLinked to original sources

Enhancing Protocol Fuzzing via LLM-Generated Semantic-Aware Mutators

Network protocol implementations are critical to system security but vulnerable due to their complexity. Mutation-based protocol fuzzing is widely used to find such flaws, but its general-purpose mutators often violate field semantics and cross-field constraints, producing invalid messages rejected early. This paper introduces a novel system design that enhances mutation-based protocol fuzzing with protocol-specific, semantic-aware mutators. These mutators generate more valid messages reaching deep protocol states, which general-purpose mutators could exploit to cover more edge cases. To this end, we use large language models (LLMs) to generate four protocol-specific components: message templates, parsers/reassemblers, semantic-aware field-level mutators, and constraint fixers, enabling raw-byte parsing, semantic field mutation, cross-field constraint repair, and message reassembly. To ensure the quality of these four LLM-generated components, we design three automated quality checkers: a metamorphic checker for parsers/reassemblers, a parseability checker for mutators, and a constraint-violation checker for fixers. We implement LEMUR-Fuzz on vanilla AFLNet and evaluate twelve implementations across ten protocols, covering all ProFuzzBench protocols with publicly available RFCs. Results show that LEMUR-Fuzz improves the average branch coverage by 6.93% and 5.28% over AFLNet and ChatAFL, respectively. LEMUR-Fuzz also discovers a previously unknown vulnerability in the latest Mosquitto, which has been confirmed and fixed by developers.

cs.CR↗