Abstract
Fuzzing has emerged as a powerful technique for finding security bugs in complicated real-world applications. American fuzzy lop (AFL), a leading fuzzing tool, has demonstrated its powerful bug finding ability through a vast number of reported CVEs. However, its random mutation strategy is unable to generate test inputs that satisfy complicated branching conditions (e.g., magic-byte comparisons, checksum tests, and nested if-statements), which are commonly used in image decoders/encoders, XML parsers, and checksum tools. Existing approaches on addressing this problem assume unrealistic assumptions such as we can satisfy the branch condition byte-to-byte or we can identify and focus on the important bytes in the input (called hot-bytes) once and for all. In this work, we propose an approach called Finch which is designed based on the following principles. First, there is a complicated relation between inputs and branching conditions and thus we need not only an expressive model to capture such relationship but also an informative measure so that we can learn such relationship effectively. Second, different branching conditions demand different hot-bytes and we must adjust our fuzzing strategy adaptively depending on which branches are the current bottleneck. Our evaluation results on 10 real-world programs and LAVA-M dataset show that Finch achieves sustained increases in branch coverage and discovers more bugs than other fuzzers.
Introduction
Coverage-guided greybox fuzzing (CGF), exemplified by tools like American Fuzzy Lop (AFL), is highly effective at uncovering vulnerabilities. However, CGF often stalls when encountering "hard" branches, such as magic-byte comparisons (e.g., if (input == 0xDEADBEEE)) or checksum validations. In these cases, random mutations are statistically unlikely to satisfy the specific conditions required to explore deeper code paths.
Existing solutions like symbolic execution or taint analysis offer high accuracy but suffer from significant computational overhead. Conversely, lightweight taint analysis can identify influential bytes but fails to provide guidance on how to mutate them. Finch addresses these gaps by combining deep learning with a quantitative measure of branch satisfaction, providing an efficient and adaptive guidance system for high-speed fuzzing.
Methodology
Finch introduces three primary innovations to enhance the fuzzing process:
Quantitative Branch Distance
Rather than treating branch coverage as a binary outcome, Finch calculates a "branch distance." For a comparison like a == b, the distance is defined as $|a - b|$. This metric provides a continuous gradient, allowing a machine learning model to understand how close an input is to satisfying a condition.
The min-Pareto Seed Pool
Finch reframes fuzzing as a multi-objective optimization problem. The goal is to minimize distances to all uncovered branches simultaneously. Instead of maintaining a massive pool of redundant seeds, Finch identifies a "min-Pareto set"—a small, elite group of seeds that represent the current best attempts at reaching various target branches. This approach significantly reduces the seed pool size (averaging ~11% of a standard AFL pool) while maintaining high-quality candidates for mutation.
Adaptive Neural Network Guidance
Finch trains a feed-forward neural network on the min-Pareto set to learn the mapping between input bytes and branch distances. By analyzing the gradient of the network's output with respect to its input, Finch identifies "hot-bytes"—the specific parts of the input that most strongly influence branch outcomes. This guidance is updated continuously as the fuzzer discovers new program states, ensuring the model remains relevant.
Evaluation and Results
The researchers evaluated Finch against six state-of-the-art fuzzers (AFL, Angora, Neuzz, etc.) using 10 real-world programs (e.g., objdump, libpng, xmllint) and the LAVA-M synthetic bug benchmark.
Coverage and Bug Discovery
Finch demonstrated superior performance, achieving the highest edge coverage on 6 out of 10 real-world programs. On average, it outperformed Neuzz by a factor of 1.2x in terms of edge coverage.
In the LAVA-M benchmark, Finch found the most bugs in 3 out of 4 programs, including 61 bugs in md5sum that other fuzzers missed. Furthermore, Finch successfully identified two previously unknown vulnerabilities in tiffcp and strip.
Efficiency
Despite the inclusion of neural network training, the overhead remained low. Training averaged only 0.54 hours over a 24-hour run. This efficiency is largely due to training exclusively on the compact min-Pareto set, which filters out noisy and redundant data.
Conclusion
Finch demonstrates that quantitative branch distance and adaptive neural network guidance can significantly improve the effectiveness of greybox fuzzing on complex programs. By focusing on a high-quality min-Pareto seed pool, Finch achieves better coverage and bug discovery with manageable overhead. Future work will explore extending this framework to other programming languages and investigating more advanced neural architectures to further refine hot-byte identification.
Summary updated