← Lab /Security & privacy

APFuzz automatically infers state models and uses LLM-aware field mutations to boost protocol fuzzing

APFuzz achieves better fuzzing effectiveness than AFLNET and other greybox protocol fuzzers

Security & privacy arXiv 25 Feb 2026 Method Prototype evidence

Published as “APFuzz: Towards Automatic Greybox Protocol Fuzzing”

Why it matters

APFuzz can more efficiently uncover memory-safety bugs in both text and binary network protocol implementations, reducing manual effort for state and format modeling.

Summary

APFuzz outperforms existing fuzzers, achieving 10.03% and 8.42% improvements over the baseline fuzzer on branch coverage and line coverage, respectively, with 5.19× and 6.20× execution and message-sending throughput in a fully automatic manner. It automatically learns state variables from source code and uses LLMs to infer binary message structures, enabling field-based mutations. Across 13 protocol servers, APFuzz found the most unique crashes (13) and reduced detection time for several memory-safety bugs. However, on some targets (e.g., Bftpd) it achieved slightly lower coverage than AFLNET.

What they found 2

  1. APFuzz improves branch and line coverage over AFLNET while increasing throughput

    “APFuzz outperforms existing fuzzers, achieving 10.03% and 8.42% improvements over the baseline fuzzer on branch coverage and line coverage, respectively, with 5.19× and 6.20× execution and message-sending throughput in a fully automatic manner.”

  2. APFuzz discovers the most unique crashes among compared fuzzers

    “APFuzz achieved the best performance with 13 unique crashes, followed by NSFuzz and StateAFL (12 each), while AFLNET and HNPFuzzer found 8 each.”

Caveats 2

  • On the Bftpd target, APFuzz’s branch coverage was -1.16% relative to AFLNET and line coverage was -0.37%, indicating a regression on that service.
  • For several other services (e.g., LightFTP line coverage -5.39%, Live555 branch coverage -0.56%) APFuzz did not improve over the baseline.

What’s new here 3

  • Automatic identification of state variables via combined static and lightweight dynamic analysis, removing manual annotation.
  • LLM-driven parsing of binary protocol seeds to enable field-level, structure-aware mutations for binary protocols.
  • Integration of both state representation learning and input structure learning in a single greybox fuzzer.