NAFuzzer: Augmenting Network Protocol Fuzzers via Automatic Template and Seed Generation
Authors:
- 1 July 2022
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 391-398
Abstract
Fuzzing is one of the most popular software analysis techniques for discovering vulnerabilities. Different from common terminal software, servers should be interacted with well-formed message that conforms to protocol specifications to exercise more functions. However, without protocol specifications, random bit flipping is unlikely to generate valid messages, making fuzzing struggle to traverse the deeper branches of the program. What’s more, manually extracting specifications is typically labor-intensive. In this paper, we present NAFuzzer, a format-aware fuzzing framework for network protocol software. Based on the key insight that similar message fields being parsed at similar locations in the program, NAFuzzer collects constraints of message handling process using replay-based concolic execution, then runs Loop Mapping algorithm to infer the protocol format, and finally uses the format information to generate seeds and perform fuzzing. We implemented and evaluated NAFuzzer on 6 real-world protocol software (LightFTP, Exim, Live555, NetSNMP, Dnsmasq, TinyHTTPd). The results show that NAFuzzer can extract the message formats of six protocol software with a field recognition accuracy of close to 90%. In fuzzing, it achieves higher branch coverage (up to 27.3%) and discovers more paths (up to 38.2%) compared to state-of-the-art fuzzers without any manual involvement.Keywords
Funding Information
- Natural Science Foundation of Hunan Province
This publication has 18 references indexed in Scilit:
- AFLNET: A Greybox Fuzzer for Network Protocols2020
- SGPFuzzer: A State-Driven Smart Graybox Protocol Fuzzer for Network Protocol ImplementationsIEEE Access, 2020
- LearnAFL: Greybox Fuzzing With Knowledge EnhancementIEEE Access, 2019
- Superion: Grammar-Aware Greybox Fuzzing2019
- SeqFuzzer: An Industrial Protocol Fuzzing Framework from a Deep Learning Perspective2019
- SPFuzz: A Hierarchical Scheduling Framework for Stateful Network Protocol FuzzingIEEE Access, 2019
- Learn&Fuzz: Machine learning for input fuzzing2017
- Testing Network Protocol Binary Software with Selective Symbolic Execution2016
- Pulsar: Stateful Black-Box Fuzzing of Proprietary Network Protocols2015
- Towards revealing the functions of all genes in plantsTrends in Plant Science, 2014