Cited by 246Software Testing and Debugging TechniquesNetwork Security and Intrusion DetectionAdversarial Robustness in Machine Learning

Large Language Model guided Protocol Fuzzing

Open access
Meng, Ruijie, Mirchev, Martin, Böhme, Marcel, Roychoudhury, Abhik·2024·Proceedings 2024 Network and Distributed System Security Symposium

Abstract

How to find security flaws in a protocol implementation without a machine-readable specification of the protocol?Facing the internet, protocol implementations are particularly security-critical software systems where inputs must adhere to a specific structure and order that is often informally specified in hundreds of pages in natural language (RFC).Without some machine-readable version of that protocol, it is difficult to automatically generate valid test inputs for its implementation that follow the required structure and order.It is possible to partially alleviate this challenge using mutational fuzzing on a set of recorded message sequences as seed inputs.However, the set of available seeds is often quite limited and will hardly cover the great diversity of protocol states and input structures.In this paper, we explore the opportunities of systematic interaction with pre-trained large language models (LLMs), which have ingested millions of pages of human-readable protocol specifications, to draw out machine-readable information about the protocol that can be used during protocol fuzzing.We use the knowledge of the LLMs about protocol message types for well-known protocols.We also checked the LLM's capability in detecting "states" for stateful protocol implementations by generating sequences of messages and predicting response codes.Based on these observations, we have developed an LLM-guided protocol implementation fuzzing engine.Our protocol fuzzer CHATAFL constructs grammars for each message type in a protocol, and then mutates messages or predicts the next messages in a message sequence via interactions with LLMs.Experiments on a wide range of real-world protocols from PROFUZZBENCH show significant efficacy in state and code coverage.Our LLMguided stateful fuzzer was compared with state-of-the-art fuzzers AFLNET and NSFUZZ.CHATAFL covers 47.60% and 42.69% more state transitions, 29.55% and 25.75% more states, and 5.81% and 6.74% more code, respectively.Apart from enhanced coverage, CHATAFL discovered nine distinct and previously unknown vulnerabilities in widely-used and extensively-tested protocol implementations while AFLNET and NSFUZZ only discovered three and four of them, respectively.

Integrity signals

Registry

Crossref · 10.14722/ndss.2024.24556

Cites

6 of 6 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Meng et al. (2024) discusses how to find security vulnerabilities in protocol implementations in the absence of a machine-readable protocol specification, training LLMs with massive human-readable protocol documents and asking LLMs to mutate interactive messages for protocol fuzz.

    “Meng et al. (2024) discusses how to find security vulnerabilities in protocol implementations in the absence of a machine-readable protocol specification. They train LLMs with massive human-readable protocol documents and ask LLMs to mutate interactive messages for protocol fuzz (e.g., HTTP).”

    From When LLMs meet cybersecurity: a systematic literature review (2025) · cites this paper as Meng et al. (2024)

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Meng, R., Mirchev, M., Böhme, M., & Roychoudhury, A.
Affiliations
  • National University of Singapore (SG)
  • Max Planck Institute for Security and Privacy (DE)
Venue
Proceedings 2024 Network and Distributed System Security Symposium
Published
2024
OpenAlex
W4391724785
Cited by
246
References
6
Citations by year
2026: 83 · 2025: 117 · 2024: 45 · 2023: 1
FWCI
66.66
Type
conference paper
Language
en
Open access
Locations
Network and Distributed System Security Symposium (publishedVersion)
Funders
  • National Research Foundation
  • National Research Foundation Singapore (NRF-NCR25-Fuzz-0001)
Topics
  • Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
  • Physical Sciences › Computer Science › Computer Networks and Communications › Network Security and Intrusion Detection
  • Physical Sciences › Computer Science › Artificial Intelligence › Adversarial Robustness in Machine Learning
Keywords
protocol fuzzing, large language models, protocol vulnerabilities, code coverage, state transitions

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review