Skip to main content
QUICK REVIEW

[Paper Review] TOFU: Target-Oriented FUzzer

Zi Wang, Ben Liblit|arXiv (Cornell University)|Apr 29, 2020
Parallel Computing and Optimization TechniquesComputer Science7 citations
TL;DR

TOFU is a target-oriented fuzzer that accelerates directed fuzzing by combining distance-guided search with input-structure awareness using a protobuf specification. It achieves 28% faster target reachability and 45% more targets than AFLGo on xmllint by leveraging structured mutation and path-distance heuristics to guide input generation toward specific program locations.

ABSTRACT

Program fuzzing---providing randomly constructed inputs to a computer program---has proved to be a powerful way to uncover bugs, find security vulnerabilities, and generate test inputs that increase code coverage. In many applications, however, one is interested in a target-oriented approach-one wants to find an input that causes the program to reach a specific target point in the program. We have created TOFU (for Target-Oriented FUzzer) to address the directed fuzzing problem. TOFU's search is biased according to a distance metric that scores each input according to how close the input's execution trace gets to the target locations. TOFU is also input-structure aware (i.e., the search makes use of a specification of a superset of the program's allowed inputs). Our experiments on xmllint show that TOFU is 28% faster than AFLGo, while reaching 45% more targets. Moreover, both distance-guided search and exploitation of knowledge of the input structure contribute significantly to TOFU's performance.

Motivation & Objective

  • To address the limitations of standard fuzzers in reaching specific target locations in programs, especially deep in the codebase.
  • To improve directed fuzzing by integrating both distance-based guidance and knowledge of input structure.
  • To evaluate the individual contributions of distance-guided search and structured mutation to overall fuzzer effectiveness.
  • To provide a scalable, general-purpose solution for generating inputs that reach specific program targets, particularly in complex or structured input formats.
  • To offer a practical alternative to symbolic execution and constraint solving for target-directed input generation.

Proposed method

  • TOFU uses a precomputed distance metric between program basic blocks to estimate how close an input's execution trace is to the target locations.
  • It applies a feedback-driven mutation strategy that prioritizes inputs with lower distance scores, guiding the fuzzer toward the target.
  • TOFU incorporates a protobuf-based input specification to model valid input structures, enabling structured mutations that preserve syntactic correctness.
  • Mutants are generated by modifying only valid structural components of the input, reducing the likelihood of invalid inputs that diverge from the target path.
  • The fuzzer maintains a queue of seeds and uses a fitness function combining distance to target and code coverage to select inputs for further mutation.
  • TOFU’s design supports complex input formats, including command-line arguments and flags, by modeling them as structured input components.

Experimental results

Research questions

  • RQ1What is the contribution of distance-guided search to TOFU’s overall effectiveness in reaching target program locations?
  • RQ2What is the contribution of structured mutation to TOFU’s overall effectiveness in reaching target program locations?
  • RQ3How does TOFU’s performance compare to state-of-the-art target-oriented fuzzers like AFLGo and Hawkeye in terms of speed and target coverage?
  • RQ4To what extent do input structure awareness and distance metrics reduce the number of invalid inputs and improve convergence to targets?
  • RQ5Can TOFU’s approach be effectively applied to programs with complex input formats, such as those using command-line flags and structured data?

Key findings

  • TOFU achieves 28% faster target reachability compared to AFLGo on the xmllint benchmark.
  • TOFU reaches 45% more target locations than AFLGo on the same benchmark, demonstrating superior directed search performance.
  • Both distance-guided search and structured mutation contribute significantly to TOFU’s performance, with ablation studies showing each component improves target coverage independently.
  • The use of input structure awareness reduces the number of invalid inputs, minimizing wasted computation on inputs that fail to parse or execute.
  • TOFU’s distance metric provides an intuitive, interpretable measure of closeness to the target, aiding in debugging and input selection.
  • TOFU outperforms AFLGo even on shallow targets in input-parsing code, indicating broad applicability across target types.

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.