[Paper Review] Zest: Validity Fuzzing and Parametric Generators for Effective Random Testing
Zest is a feedback-directed technique that transforms QuickCheck-style random input generators into deterministic parametric generators to improve coverage and bug detection in the semantic analysis stages of programs with structured inputs. By mapping mutations in untyped parameters to structural input changes and using code coverage and validity feedback, Zest achieves 1.03x–2.81x higher branch coverage and uncovers 10 new bugs in Java tools like Maven and Rhino, often within 10 minutes per bug.
Programs expecting structured inputs often consist of both a syntactic analysis stage, which parses raw input, and a semantic analysis stage, which conducts checks on the parsed input and executes the core logic of the program. Generator-based testing tools in the lineage of QuickCheck are a promising way to generate random syntactically valid test inputs for these programs. We present Zest, a technique which automatically guides QuickCheck-like randominput generators to better explore the semantic analysis stage of test programs. Zest converts random-input generators into deterministic parametric generators. We present the key insight that mutations in the untyped parameter domain map to structural mutations in the input domain. Zest leverages program feedback in the form of code coverage and input validity to perform feedback-directed parameter search. We evaluate Zest against AFL and QuickCheck on five Java programs: Maven, Ant, BCEL, Closure, and Rhino. Zest covers 1.03x-2.81x as many branches within the benchmarks semantic analysis stages as baseline techniques. Further, we find 10 new bugs in the semantic analysis stages of these benchmarks. Zest is the most effective technique in finding these bugs reliably and quickly, requiring at most 10 minutes on average to find each bug.
Motivation & Objective
- To improve the effectiveness of random input generation in exploring the semantic analysis stages of programs with structured inputs.
- To address the limitation of existing generator-based testing tools in targeting deep semantic checks rather than just syntactic validity.
- To develop a technique that automatically guides input generation toward untested or vulnerable semantic logic paths.
- To reduce the time and effort required to discover subtle bugs in semantic analysis components of real-world programs.
Proposed method
- Zest converts random input generators into deterministic parametric generators by introducing a parameterized input model.
- It maps mutations in untyped parameter space to structural mutations in the input domain, enabling targeted exploration.
- It uses feedback from code coverage and input validity to guide parameter search toward untested or invalid paths.
- The feedback-directed search iteratively refines parameters to maximize coverage of semantic analysis logic.
- Zest leverages the structure of input grammars and semantic constraints to generate inputs that are both syntactically valid and semantically diverse.
Experimental results
Research questions
- RQ1Can feedback-directed parameter search improve coverage of semantic analysis logic in structured input programs?
- RQ2Can parametric generators guided by validity and coverage feedback outperform traditional random generators in finding bugs?
- RQ3How effectively can such a technique detect previously unknown bugs in real-world programs?
- RQ4What is the performance overhead and time-to-detection for discovered vulnerabilities?
Key findings
- Zest achieved 1.03x to 2.81x higher branch coverage in the semantic analysis stages of five Java benchmarks compared to baseline techniques.
- Zest discovered 10 new bugs in the semantic analysis components of Maven, Ant, BCEL, Closure, and Rhino.
- Zest located each of these 10 bugs in at most 10 minutes on average, demonstrating high efficiency.
- Zest was the most effective technique in reliably and quickly identifying semantic analysis bugs among the evaluated approaches.
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.