Abstract
V-Fuzz is a hybrid fuzzing framework that combines deep learning-based vulnerability prediction with evolutionary fuzzing. By utilizing a neural network to identify "hotspots" likely to contain bugs, V-Fuzz guides its mutation engine toward vulnerable code regions. This approach allows V-Fuzz to discover significantly more crashes and CVEs than traditional coverage-based fuzzers like AFL or VUzzer, which treat all code paths with equal priority.
Introduction
Fuzzing is a cornerstone of automated security testing, involving the delivery of mutated inputs to a program to trigger crashes. However, modern coverage-based fuzzers (e.g., AFL) are often "blind," aiming to explore as much of the program as possible without regard for the likelihood of finding a bug in a specific path. In large-scale software, such as Mozilla Firefox, research suggests that only a small fraction (around 3%) of the code contains vulnerabilities. Spending massive computational resources to reach the remaining 97% is inefficient.
While "whitebox" fuzzers use symbolic execution to reach specific locations, they often struggle to scale to complex, real-world programs. V-Fuzz bridges this gap by making fuzzing "vulnerability-oriented," prioritizing high-risk code areas—the "needles"—instead of searching the entire "haystack."
Methodology
V-Fuzz consists of two primary components: a vulnerability prediction model and a vulnerability-oriented evolutionary fuzzer. The interaction between these components allows the system to focus its exploration on code segments most likely to harbor security flaws.
Vulnerability Prediction Model
The prediction model is a deep learning architecture based on a Graph Embedding Network (GEN).
- Data Representation: The model transforms binary functions into Attributed Control Flow Graphs (ACFG). Each basic block in the graph is represented by a 255-dimensional vector capturing statistical features, such as the number of instructions, function calls, or specific string constants (e.g.,
malloc). - Learning: The GEN learns the structural and semantic features of these graphs to output a "vulnerable probability" ($p$) for each function. This allows the system to capture the "shape" of vulnerable code, such as complex nested logic leading to sensitive function calls.
Vulnerability-Oriented Evolutionary Fuzzer
The fuzzer utilizes the prediction model's output to guide its mutation engine:
- Scoring: Every basic block is assigned a Static Vulnerable Score (SVS) based on the prediction model's output.
- Guided Evolution: When an input is executed, the fuzzer calculates a "fitness score" based on the sum of the SVS of all blocks it touched. Inputs that reach "high-risk" areas are prioritized for further mutation.
- Crash Window Jump Algorithm: To prevent the fuzzer from getting "stuck" in a specific path, V-Fuzz dynamically switches between "slight" and "heavy" mutation strategies based on whether it has recently discovered new paths or crashes.
Experimental Setup
The authors evaluated V-Fuzz using the following datasets:
- Prediction Training: The Juliet Test Suite v1.3 from NIST was used, providing 111,540 labeled function samples (C/C++) focusing on memory-related flaws like buffer overflows.
- Fuzzing Evaluation: V-Fuzz was tested on 10 popular Linux applications (e.g.,
MP3Gain,pdftotext) and 3 programs from the LAVA-M benchmark (uniq,base64,who), designed specifically for evaluating bug-finding tools.
Results and Discussion
V-Fuzz demonstrated superior performance in both prediction accuracy and bug discovery:
- Prediction Performance: The neural network achieved over 80% accuracy in predicting vulnerable functions.
- Bug Discovery: In a 24-hour test across 13 applications, V-Fuzz found an average of 1,114 unique crashes per program, significantly outperforming VUzzer (820), AFLFast (21), and AFL (16).
- Real-World Impact: V-Fuzz discovered 10 CVEs in well-known libraries like
libgxpsandlibpoppler. Notably, three of these were previously unknown zero-days, which were subsequently confirmed and fixed by developers.
Key Insights
The core innovation of V-Fuzz is the prioritization of high-risk code over pure coverage. The results show that a fuzzer can find more bugs even if its total code coverage is slightly lower than its competitors, provided it spends its time in high-risk functions. To mitigate potential model errors, V-Fuzz assigns a small, non-zero score to all blocks, ensuring it can still explore the entire program if necessary.
Conclusion and Future Work
While V-Fuzz is highly effective, its performance is currently tied to the quality of the training dataset (Juliet). If a real-world vulnerability differs significantly from the training examples, the model may miss it. Future work includes incorporating source-code-level information to improve prediction accuracy and refining the model to reduce false negatives, which can lead to the deprioritization of vulnerable paths.
Summary updated