[Paper Review] NEUZZ: Efficient Fuzzing with Neural Program Smoothing
NEUZZ proposes a novel fuzzer that uses neural network-based program smoothing to create differentiable approximations of program branching behavior, enabling gradient-guided input generation for more efficient fuzzing. It outperforms 10 state-of-the-art graybox fuzzers by finding 31 previously unknown bugs (including two CVEs) and achieving 3X higher edge coverage in 24-hour runs on real-world programs.
Fuzzing has become the de facto standard technique for finding software vulnerabilities. However, even state-of-the-art fuzzers are not very efficient at finding hard-to-trigger software bugs. Most popular fuzzers use evolutionary guidance to generate inputs that can trigger different bugs. Such evolutionary algorithms, while fast and simple to implement, often get stuck in fruitless sequences of random mutations. Gradient-guided optimization presents a promising alternative to evolutionary guidance. Gradient-guided techniques have been shown to significantly outperform evolutionary algorithms at solving high-dimensional structured optimization problems in domains like machine learning by efficiently utilizing gradients or higher-order derivatives of the underlying function. However, gradient-guided approaches are not directly applicable to fuzzing as real-world program behaviors contain many discontinuities, plateaus, and ridges where the gradient-based methods often get stuck. We observe that this problem can be addressed by creating a smooth surrogate function approximating the discrete branching behavior of target program. In this paper, we propose a novel program smoothing technique using surrogate neural network models that can incrementally learn smooth approximations of a complex, real-world program's branching behaviors. We further demonstrate that such neural network models can be used together with gradient-guided input generation schemes to significantly improve the fuzzing efficiency. Our extensive evaluations demonstrate that NEUZZ significantly outperforms 10 state-of-the-art graybox fuzzers on 10 real-world programs both at finding new bugs and achieving higher edge coverage. NEUZZ found 31 unknown bugs that other fuzzers failed to find in 10 real world programs and achieved 3X more edge coverage than all of the tested graybox fuzzers for 24 hours running.
Motivation & Objective
- To address the inefficiency of evolutionary fuzzing in discovering deep, hard-to-trigger vulnerabilities.
- To overcome the limitations of gradient-guided optimization in real-world programs with discontinuous, non-differentiable behaviors.
- To design a scalable, low-overhead method for approximating program branching behavior using neural networks.
- To integrate neural smoothing with gradient-guided input generation to enhance fuzzing efficiency and coverage.
- To demonstrate superior performance over existing fuzzers in both vulnerability discovery and code coverage.
Proposed method
- Train a feed-forward neural network to learn a smooth, differentiable approximation of a program’s control flow branching behavior based on input inputs.
- Use the trained neural model to compute gradients that guide mutation operations toward inputs likely to trigger new code paths.
- Incrementally retrain the neural model using mispredicted behaviors to correct learning errors and improve accuracy over time.
- Apply gradient-guided optimization (e.g., gradient descent) on the smooth surrogate model to generate new test inputs that maximize code coverage.
- Integrate the neural smoothing and gradient-guided generation into a full fuzzer pipeline, Neuzz, for end-to-end fuzzing.
- Use a hybrid approach that combines neural smoothing with traditional fuzzing corpus management and coverage feedback.
Experimental results
Research questions
- RQ1Can neural network-based smoothing effectively approximate the discontinuous branching behavior of real-world programs?
- RQ2Can gradient-guided input generation on a smooth surrogate model significantly improve fuzzing efficiency compared to evolutionary mutation?
- RQ3Does the proposed method scale to large, real-world programs with complex file formats and high code complexity?
- RQ4Can the approach discover previously unknown vulnerabilities that existing fuzzers miss?
- RQ5How does the performance of Neuzz compare to state-of-the-art fuzzers in terms of edge coverage and vulnerability detection?
Key findings
- Neuzz discovered 31 previously unknown bugs in 10 real-world programs, including two CVEs (CVE-2018-19931 and CVE-2018-19932), which were undetected by other fuzzers.
- Neuzz achieved 3X higher edge coverage than all tested graybox fuzzers over 24-hour runs on the same set of real-world programs.
- The fuzzer outperformed 10 state-of-the-art graybox fuzzers on both the LAVA-M and DARPA CGC bug datasets in terms of both bug discovery and coverage.
- The neural smoothing technique enabled effective gradient-based optimization in programs with discontinuous behaviors, overcoming a key limitation of prior gradient-guided approaches.
- The incremental retraining of the neural model improved prediction accuracy over time, making the approach robust to initial learning errors.
- Neuzz demonstrated superior scalability and performance compared to taint-based and symbolic execution-based fuzzers, which suffer from high overhead or path explosion.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.