Lune

USENIX Security2021Top-tier venue

The Use of Likely Invariants as Feedback for Fuzzers

Andrea Fioraldi, Daniele Cono D'Elia, Davide Balzarotti

Abstract

While fuzz testing proved to be a very effective technique to find software bugs, open challenges still exist. One of the its main limitations is the fact that popular coverage-guided designs are optimized to reach different parts of the program under test, but struggle when reachability alone is insufficient to trigger a vulnerability. In reality, many bugs require a specific program state that involve not only the control flow, but also the values of some of the program variables. Unfortunately, alternative exploration strategies that have been proposed in the past to capture the program state are of little help in practice, as they immediately result in a state explosion. In this paper, we propose a new feedback mechanism that augments code coverage by taking into account the usual values and relationships among program variables. For this purpose, we learn likely invariants over variables at the basicblock level, and partition the program state space accordingly. Our feedback can distinguish when an input violates one or more invariants and reward it, thus refining the program state approximation that code coverage normally offers. We implemented our technique in a prototype called INVSCOV, developed on top of LLVM and AFL ++ . Our experiments show that our approach can find more, and different, bugs with respect to fuzzers that use a pure code-coverage feedback. Furthermore, they led to the discovery of two vulnerabilities in a library tested daily on OSS-Fuzz, and still present at the time in its latest version.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

21 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LibAFL: A Framework to Build Modular and Reusable Fuzzers cites Directed Greybox Fuzzing
  • LibAFL: A Framework to Build Modular and Reusable Fuzzers cites Angora: Efficient Fuzzing by Principled Search
  • LibAFL: A Framework to Build Modular and Reusable Fuzzers cites Coverage-based Greybox Fuzzing as Markov Chain
  • SoK: Prudent Evaluation Practices for Fuzzing cites Learning Seed-Adaptive Mutation Strategies for Greybox Fuzzing
  • SoK: Prudent Evaluation Practices for Fuzzing cites Angora: Efficient Fuzzing by Principled Search
  • SoK: Prudent Evaluation Practices for Fuzzing cites Evaluating Fuzz Testing
  • SoK: Prudent Evaluation Practices for Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Learning Seed-Adaptive Mutation Strategies for Greybox Fuzzing cites Directed Greybox Fuzzing
  • Learning Seed-Adaptive Mutation Strategies for Greybox Fuzzing cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Learning Seed-Adaptive Mutation Strategies for Greybox Fuzzing cites Angora: Efficient Fuzzing by Principled Search
  • Learning Seed-Adaptive Mutation Strategies for Greybox Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Directed Greybox Fuzzing cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Directed Greybox Fuzzing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Coverage-based Greybox Fuzzing as Markov Chain cites Directed Greybox Fuzzing
  • Accelerating Fuzzing through Prefix-Guided Execution cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Accelerating Fuzzing through Prefix-Guided Execution cites Angora: Efficient Fuzzing by Principled Search
  • Accelerating Fuzzing through Prefix-Guided Execution cites Evaluating Fuzz Testing
  • Accelerating Fuzzing through Prefix-Guided Execution cites Coverage-based Greybox Fuzzing as Markov Chain
  • Angora: Efficient Fuzzing by Principled Search cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Angora: Efficient Fuzzing by Principled Search cites Coverage-based Greybox Fuzzing as Markov Chain
  • Evaluating Fuzz Testing cites Directed Greybox Fuzzing
  • Evaluating Fuzz Testing cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
  • Evaluating Fuzz Testing cites Angora: Efficient Fuzzing by Principled Search
  • Evaluating Fuzz Testing cites Coverage-based Greybox Fuzzing as Markov Chain
  • Coverage-based Greybox Fuzzing as Markov Chain cites Driller: Augmenting Fuzzing Through Selective Symbolic Execution
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers21

  1. LibAFL: A Framework to Build Modular and Reusable FuzzersAndrea Fioraldi, Dominik Christian Maier, Dongjia Zhang, Davide BalzarottiCCS 2022 · 71 citations
  2. SoK: Prudent Evaluation Practices for FuzzingMoritz Schloegel, Nils Bars, Nico Schiller, Lukas Bernhard et al.S&P 2024 · 69 citations
  3. SmartInv: Multimodal Learning for Smart Contract Invariant InferenceSally Junsong Wang, Kexin Pei, Junfeng YangS&P 2024 · 38 citations
  4. Learning Seed-Adaptive Mutation Strategies for Greybox FuzzingMyungho Lee, Sooyoung Cha, Hakjoo OhICSE 2023 · 23 citations
  5. Accelerating Fuzzing through Prefix-Guided ExecutionShaohua Li, Zhendong SuOOPSLA 2023 · 21 citations

Builds on33

  1. Coverage-based Greybox Fuzzing as Markov ChainMarcel Böhme, Van-Thuan Pham, Abhik RoychoudhuryCCS 2016 · 1,026 citations
  2. Driller: Augmenting Fuzzing Through Selective Symbolic ExecutionNick Stephens, John Grosen, Christopher Salls, Andrew Dutcher et al.NDSS 2016 · 1,021 citations
  3. Directed Greybox FuzzingMarcel Böhme, Van-Thuan Pham, Manh-Dung Nguyen, Abhik RoychoudhuryCCS 2017 · 836 citations
  4. Evaluating Fuzz TestingGeorge Klees, Andrew Ruef, Benji Cooper, Shiyi Wei et al.CCS 2018 · 753 citations
  5. Angora: Efficient Fuzzing by Principled SearchPeng Chen, Hao ChenS&P 2018 · 616 citations

Related papers

  1. StateFuzz: System Call-Based State-Aware Linux Driver FuzzingBodong Zhao, Zheming Li, Shisong Qin, Zheyu Ma et al.USENIX Security 2022
  2. CollAFL: Path Sensitive FuzzingShuitao Gan, Chao Zhang, Xiaojun Qin, Xuwen Tu et al.S&P 2018 · 426 citations
  3. Predictive Context-sensitive FuzzingPietro Borrello, Andrea Fioraldi, Daniele Cono D'Elia, Davide Balzarotti et al.NDSS 2024
  4. Typestate-guided fuzzer for discovering use-after-free vulnerabilitiesHaijun Wang, Xiaofei Xie, Yi Li, Cheng Wen et al.ICSE 2020 · 107 citations
  5. Variability-Aware FuzzingMeah Tahmeed Ahmed, Arnab Dev, Shiyi WeiICSE 2026
Dusk over the sea between two cliffs drawn in fine vertical lines