NSFuzz: Towards Efficient and State-Aware Network Service Fuzzing
Top Cited Papers
Open Access
- 28 September 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 32 (6) , 1-26
Abstract
As an essential component responsible for communication, network services are security critical, thus, it is vital to find their vulnerabilities. Fuzzing is currently one of the most popular software vulnerability discovery techniques, widely adopted due to its high efficiency and low false positives. However, existing coverage-guided fuzzers mainly aim at stateless local applications, leaving stateful network services underexplored. Recently, some fuzzers targeting network services have been proposed but have certain limitations, for example, insufficient or inaccurate state representation and low testing efficiency. In this article, we propose a new fuzzing solution NSFuzz for stateful network services. We studied typical implementations of network service programs to determine how they represent states and interact with clients. Accordingly, we propose (1) a program variable–based state representation scheme and (2) an efficient interaction synchronization mechanism to improve fuzzing efficiency. We implemented a prototype of NSFuzz, which uses static analysis and annotation application programming interfaces (APIs) to identify synchronization points and state variables within the services. It then achieves fast I/O synchronization and accurate service state tracing to carry out efficient state-aware fuzzing via lightweight compile-time instrumentation. The evaluation results show that compared with other network service fuzzers, including AFL net and S tate AFL, our solution NSFuzz could infer a more accurate state model during fuzzing and improve fuzzing throughput by up to 200×. In addition, NSFuzz could improve code coverage by up to 25% and trigger more crashes in less time. We also performed a fuzzing campaign to find new bugs in the latest version of the target services; 8 zero-day vulnerabilities have been found by NSFuzz.Keywords
Funding Information
- National Key Research and Development Program of China (2021YFB2701000)
- National Natural Science Foundation of China (61972224)
This publication has 16 references indexed in Scilit:
- Poster2019
- FuzzFactory: domain-specific fuzzing with waypointsProceedings of the ACM on Programming Languages, 2019
- SPFuzz: A Hierarchical Scheduling Framework for Stateful Network Protocol FuzzingIEEE Access, 2019
- Pulsar: Stateful Black-Box Fuzzing of Proprietary Network Protocols2015
- AspFuzz: A state-aware protocol fuzzer based on application-layer protocols2010
- Prospex: Protocol Specification Extraction2009
- KiF2007
- SNOOZE: Toward a Stateful NetwOrk prOtocol fuzZEr2006
- Software Security Assessment through Specification Mutations and Fault Injection2001
- Learning regular sets from queries and counterexamplesInformation and Computation, 1987