Enhancing Protocol Fuzzing via LLM-Generated Semantic-Aware Mutators
Keyi Wang, Yiutak Choi, Pengda Li, Chijin Zhou, Haiying Sun, Chengcheng Wan, Ting Su, Geguang Pu
Abstract
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.
Create a lesson
Related papers
Real Package, Wrong Controller: Static Auditing of Vendor--Protocol Mismatches in LLM-Generated PLC Code
Shared title terminologycs.CRS M Zia Ur Rashid, Sazidul Islam Hira, Suman Rath
Human Reviewers' Attitudes Toward LLM-generated Security Patches: A Controlled Experiment
Shared title terminologycs.CREmanuele Iannone, Maria Camporese, Nicolás E. Díaz Ferreyra et al.
Context-Aware Trust Management for Autonomous Networks: A Modular Framework toward 6G
Shared title terminologycs.CRDaniel Cho, Loay Abdelrazek, Rim El Malki
MAP: Remapping Runtime Intent in Database-Backed Model Context Protocol (MCP) Servers
Shared title terminologycs.CRBoyang Ma, XueLong Dai, Minghui Xu et al.
Poisoning Attacks to Local Differential Privacy Protocols for Dynamic Graphs
Shared title terminologycs.CRShang Liu, Yuhan Bao, Hongbin Zhao et al.
Small Leaks Sink Great Ships: Automated Analysis of Protocols That Tolerate Low-Entropy Keys
Shared title terminologycs.CRYongkang Xiao, Jing Chen, Min Shi et al.