[Paper Review] Targeted Greybox Fuzzing with Static Lookahead Analysis
This paper presents a novel targeted greybox fuzzing technique that uses online static lookahead analysis to guide fuzzing toward specific program locations, such as recently modified or vulnerable code. By analyzing feasible program paths in real time and identifying split points where target locations become unreachable, the method dynamically prioritizes inputs via a specialized power schedule, achieving up to 14x median speed-up in reaching 83% of challenging targets in Ethereum smart contracts.
Automatic test generation typically aims to generate inputs that explore new paths in the program under test in order to find bugs. Existing work has, therefore, focused on guiding the exploration toward program parts that are more likely to contain bugs by using an offline static analysis. In this paper, we introduce a novel technique for targeted greybox fuzzing using an online static analysis that guides the fuzzer toward a set of target locations, for instance, located in recently modified parts of the program. This is achieved by first semantically analyzing each program path that is explored by an input in the fuzzer's test suite. The results of this analysis are then used to control the fuzzer's specialized power schedule, which determines how often to fuzz inputs from the test suite. We implemented our technique by extending a state-of-the-art, industrial fuzzer for Ethereum smart contracts and evaluate its effectiveness on 27 real-world benchmarks. Using an online analysis is particularly suitable for the domain of smart contracts since it does not require any code instrumentation---instrumentation to contracts changes their semantics. Our experiments show that targeted fuzzing significantly outperforms standard greybox fuzzing for reaching 83% of the challenging target locations (up to 14x of median speed-up).
Motivation & Objective
- To improve the effectiveness of greybox fuzzing in reaching specific, hard-to-reach target locations in programs.
- To address the limitations of offline static analysis in precision and scalability for smart contract testing.
- To enable dynamic, real-time guidance of fuzzing using lightweight, path-sensitive static analysis on feasible execution paths.
- To integrate online static analysis seamlessly into a production-grade fuzzer without code instrumentation.
- To demonstrate that online lookahead analysis can significantly outperform standard greybox fuzzing in targeted vulnerability discovery.
Proposed method
- The fuzzer performs online static lookahead analysis on each new input, analyzing the path it explores to identify a prefix where all suffix paths are proven to not reach target locations.
- The analysis uses a path-sensitive approach along a feasible path prefix and a path-insensitive analysis for all suffix paths, combining precision with scalability.
- A split point is identified along the path where all targets become unreachable, and this information is used to assign a lookahead identifier to the input.
- The lookahead identifier and split point are used to guide a specialized power schedule that allocates more execution energy to inputs with higher potential to reach target locations.
- The analysis is performed directly on EVM bytecode using abstract interpretation with the constant-propagation domain, avoiding the need for source code or instrumentation.
- The technique is integrated into HARVEY, a state-of-the-art industrial fuzzer for Ethereum smart contracts, without modifying its core execution model.
Experimental results
Research questions
- RQ1How can online static analysis be used to guide greybox fuzzing toward specific target locations in a lightweight and precise way?
- RQ2What is the optimal strategy for selecting split points along a feasible execution path to maximize the precision of target reachability analysis?
- RQ3How can the results of online static analysis be effectively communicated to the fuzzer’s power schedule to improve targeting efficiency?
- RQ4To what extent does online lookahead analysis improve the speed and effectiveness of greybox fuzzing compared to standard approaches?
- RQ5Can online static analysis be applied to low-level bytecode (e.g., EVM) without source code or instrumentation, while maintaining precision and performance?
Key findings
- Targeted greybox fuzzing using online lookahead analysis achieved a median speed-up of up to 14x in reaching 83% of challenging target locations in 27 real-world Ethereum smart contract benchmarks.
- The technique significantly outperformed standard greybox fuzzing in terms of coverage and target reachability, particularly for complex or recently modified code regions.
- The online lookahead analysis was able to identify no-target-ahead prefixes with high precision, enabling effective input prioritization without requiring code instrumentation.
- The integration of static analysis into the fuzzer’s power schedule led to a measurable increase in the rate of target location discovery, especially in paths with high structural complexity.
- The approach demonstrated strong scalability and practicality in an industrial setting, as shown by its successful deployment in HARVEY, a production-grade fuzzer.
- The results confirm that combining dynamic path exploration with lightweight, online static analysis enables more effective and efficient targeted fuzzing than traditional methods.
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.