SLOPT: Bandit Optimization Framework for Mutation-Based Fuzzing
arXiv:2211.03285 · doi:10.1145/3564625.3564659
Abstract
Mutation-based fuzzing has become one of the most common vulnerability discovery solutions over the last decade. Fuzzing can be optimized when targeting specific programs, and given that, some studies have employed online optimization methods to do it automatically, i.e., tuning fuzzers for any given program in a program-agnostic manner. However, previous studies have neither fully explored mutation schemes suitable for online optimization methods, nor online optimization methods suitable for mutation schemes. In this study, we propose an optimization framework called SLOPT that encompasses both a bandit-friendly mutation scheme and mutation-scheme-friendly bandit algorithms. The advantage of SLOPT is that it can generally be incorporated into existing fuzzers, such as AFL and Honggfuzz. As a proof of concept, we implemented SLOPT-AFL++ by integrating SLOPT into AFL++ and showed that the program-agnostic optimization delivered by SLOPT enabled SLOPT-AFL++ to achieve higher code coverage than AFL++ in all of ten real-world FuzzBench programs. Moreover, we ran SLOPT-AFL++ against several real-world programs from OSS-Fuzz and successfully identified three previously unknown vulnerabilities, even though these programs have been fuzzed by AFL++ for a considerable number of CPU days on OSS-Fuzz.
arXiv commentTo appear in Proceedings of the 2022 Annual Computer Security Applications Conference (ACSAC '22)
References in corpus (10)
- FairFuzz: Targeting Rare Branches to Rapidly Increase Greybox Fuzz Testing Coverage
- The KL-UCB Algorithm for Bounded Stochastic Bandits and Beyond
- Kullback-Leibler upper confidence bounds for optimal sequential allocation
- Magma: A Ground-Truth Fuzzing Benchmark
- Taming Non-stationary Bandits: A Bayesian Approach
- An Improved Parametrization and Analysis of the EXP3++ Algorithm for Stochastic and Adversarial Bandits
- Multi-Armed Bandits with Correlated Arms
- Adaptive Grey-Box Fuzz-Testing with Thompson Sampling
- Greybox fuzzing as a contextual bandits problem
- Finite-time Analysis of Globally Nonstationary Multi-Armed Bandits