Skip to main content
QUICK REVIEW

[Paper Review] Learning Inputs in Greybox Fuzzing

Valentin Wüstholz, Maria Christakis|arXiv (Cornell University)|Jul 20, 2018
Software Testing and Debugging TechniquesComputer Science49 references6 citations
TL;DR

This paper proposes a novel greybox fuzzing technique that learns optimal program inputs from past executions to guide exploration toward high-coverage or vulnerability-triggering paths. By minimizing user-defined cost metrics that measure proximity to target behaviors—such as branch flips or overflow conditions—the method significantly boosts path coverage (up to 3X) and bug detection (up to 38% more) compared to traditional fuzzing, often orders of magnitude faster.

ABSTRACT

Greybox fuzzing is a lightweight testing approach that effectively detects bugs and security vulnerabilities. However, greybox fuzzers randomly mutate program inputs to exercise new paths; this makes it challenging to cover code that is guarded by complex checks. In this paper, we present a technique that extends greybox fuzzing with a method for learning new inputs based on already explored program executions. These inputs can be learned such that they guide exploration toward specific executions, for instance, ones that increase path coverage or reveal vulnerabilities. We have evaluated our technique and compared it to traditional greybox fuzzing on 26 real-world benchmarks. In comparison, our technique significantly increases path coverage (by up to 3X) and detects more bugs (up to 38% more), often orders-of-magnitude faster.

Motivation & Objective

  • To address the inefficiency of random mutation in greybox fuzzing, which often re-exercises known paths and misses complex or guarded code regions.
  • To improve path coverage and vulnerability detection in greybox fuzzing by learning inputs that guide execution toward optimal program behaviors.
  • To introduce a parametric cost metric framework that defines 'optimal' executions based on proximity to desired program states, such as triggering a specific branch or overflow.
  • To enable faster and more effective exploration by learning concrete input values from previous runs, rather than relying on arbitrary mutations.
  • To demonstrate that learning inputs from execution traces can outperform traditional greybox fuzzing without requiring symbolic execution or static analysis.

Proposed method

  • Define a cost metric for each program execution that quantifies how close the execution is to satisfying a target property, such as flipping a branch condition or triggering a vulnerability.
  • Collect cost values from multiple program executions to form a dataset of input-cost pairs, where inputs are the program inputs and costs are the metric values.
  • Train a regression model (e.g., gradient-boosted trees) on the input-cost pairs to predict the cost of new inputs, enabling the system to identify inputs likely to minimize the cost metric.
  • Generate new inputs by optimizing the learned model to predict inputs with minimal cost, thus guiding the fuzzer toward optimal executions.
  • Integrate the learned inputs into the greybox fuzzer’s seed pool, prioritizing them for mutation and execution to accelerate convergence to new paths.
  • Fall back to standard greybox fuzzing if the learning model fails to find a better input, ensuring robustness and completeness.

Experimental results

Research questions

  • RQ1Can learning from past program executions improve the effectiveness of greybox fuzzing in exploring new code paths?
  • RQ2How does learning inputs based on cost metrics compare to random mutation in terms of path coverage and vulnerability detection?
  • RQ3Can the proposed method achieve higher coverage and faster discovery of bugs without relying on symbolic execution or static analysis?
  • RQ4What types of cost metrics are most effective in guiding fuzzing toward desired program behaviors, such as branch coverage or vulnerability triggers?
  • RQ5How does the performance of the learning-based approach scale across diverse real-world benchmarks?

Key findings

  • The proposed learning-based greybox fuzzing technique increases path coverage by up to 3X compared to traditional greybox fuzzing on 26 real-world benchmarks.
  • The method detects up to 38% more bugs than standard greybox fuzzing, with many vulnerabilities discovered orders of magnitude faster.
  • The technique significantly reduces the time to first crash or vulnerability trigger by learning inputs that directly target hard-to-reach code paths.
  • The approach outperforms baseline greybox fuzzing across all 26 benchmarks, demonstrating consistent improvements in both coverage and bug detection.
  • The use of cost metrics enables precise guidance toward specific program behaviors, such as triggering arithmetic overflows or conditional branches.
  • The method remains robust and effective even when the learning model fails to find an optimal input, as it gracefully falls back to standard fuzzing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.