Open Access
- 4 June 2024
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Software Engineering and Methodology
- Vol. 33 (5) , 1-41
Abstract
Fuzzing is a popular software testing method that discovers bugs by massively feeding target applications with automatically generated inputs. Many state-of-the-art fuzzers use branch coverage as a feedback metric to guide the fuzzing process. The fuzzer retains inputs for further mutation only if branch coverage is increased. However, branch coverage only provides a shallow sampling of program behaviors and hence may discard interesting inputs to mutate. This work aims to take advantage of the large body of research in defining finer-grained code coverage metrics (such as control-flow, data-flow, or mutation coverage) and to evaluate how fuzzing performance is impacted when using these metrics to select interesting inputs for mutation. We propose to make branch coverage-based fuzzers support most fine-grained coverage metrics out of the box (i.e., without changing fuzzer internals). We achieve this by making the test objectives defined by these metrics (such as conditions to activate or mutants to kill) explicit as new branches in the target program. Fuzzing such a modified target is then equivalent to fuzzing the original target, but the fuzzer will also retain inputs covering the additional metric objectives for mutation. In addition, all the fuzzer mechanisms to penetrate hard-to-cover branches will help in covering the additional metric objectives. We use this approach to evaluate the impact of supporting two fine-grained coverage metrics (multiple condition coverage and weak mutation) over the performance of two state-of-the-art fuzzers (AFL++ and QSYM) with the standard LAVA-M and MAGMA benchmarks. This evaluation suggests that our mechanism for runtime fuzzer guidance, where the fuzzed code is instrumented with additional branches, is effective and could be leveraged to encode guidance from human users or static analyzers. Our results also show that the impact of fine-grained metrics over fuzzing performance is hard to predict before fuzzing and most of the time either neutral or negative. As a consequence, we do not recommend using them to guide fuzzers, except maybe in some possibly favorable circumstances yet to be investigated, like for limited parts of the code or to complement classical fuzzing campaigns.Keywords
Funding Information
- European Union Horizon 2020 Research and Innovation Program (101021727)
- France FUI CAESAR project and from the Chateaubriand Fellowship Program of the Embassy of France in the United States
This publication has 29 references indexed in Scilit:
- Ankou2020
- The Art, Science, and Engineering of Fuzzing: A SurveyIEEE Transactions on Software Engineering, 2019
- Time to clean your test objectives2018
- VUzzer: Application-aware Evolutionary Fuzzing2017
- Efficient Leveraging of Symbolic Execution to Advanced Coverage Criteria2014
- An All-in-One Toolkit for Automated White-Box TestingLecture Notes in Computer Science, 2014
- A practical guide for using statistical tests to assess randomized algorithms in software engineering2011
- Test generation via Dynamic Symbolic Execution for mutation testing2010
- An empirical evaluation of weak mutationIEEE Transactions on Software Engineering, 1994
- An empirical study of the reliability of UNIX utilitiesCommunications of the ACM, 1990