Skip to main content
QUICK REVIEW

[Paper Review] PTrix: Efficient Hardware-Assisted Fuzzing for COTS Binary

Yaohui Chen, Dongliang Mu|arXiv (Cornell University)|May 25, 2019
Software Testing and Debugging TechniquesComputer Science25 references9 citations
TL;DR

PTrix is a hardware-assisted fuzzer that leverages Intel Processor Tracing (PT) to accelerate binary-only fuzzing, bypassing the performance bottleneck of dynamic instrumentation. By enabling parallel trace parsing and using raw PT packets as direct feedback—instead of reconstructing code coverage—it achieves significantly higher fuzzing speed and uncovers 35 new vulnerabilities in well-fuzzed binaries, including 11 CVEs.

ABSTRACT

Despite its effectiveness in uncovering software defects, American Fuzzy Lop (AFL), one of the best grey-box fuzzers, is inefficient when fuzz-testing source-unavailable programs. AFL's binary-only fuzzing mode, QEMU-AFL, is typically 2-5X slower than its source-available fuzzing mode. The slowdown is largely caused by the heavy dynamic instrumentation. Recent fuzzing techniques use Intel Processor Tracing (PT), a light-weight tracing feature supported by recent Intel CPUs, to remove the need of dynamic instrumentation. However, we found that these PT-based fuzzing techniques are even slower than QEMU-AFL when fuzzing real-world programs, making them less effective than QEMU-AFL. This poor performance is caused by the slow extraction of code coverage information from highly compressed PT traces. In this work, we present the design and implementation of PTrix, which fully unleashes the benefits of PT for fuzzing via three novel techniques. First, PTrix introduces a scheme to highly parallel the processing of PT trace and target program execution. Second, it directly takes decoded PT trace as feedback for fuzzing, avoiding the expensive reconstruction of code coverage information. Third, PTrix maintains the new feedback with stronger feedback than edge-based code coverage, which helps reach new code space and defects that AFL may not. We evaluated PTrix by comparing its performance with the state-of-the-art fuzzers. Our results show that, given the same amount of time, PTrix achieves a significantly higher fuzzing speed and reaches into code regions missed by the other fuzzers. In addition, PTrix identifies 35 new vulnerabilities in a set of previously well-fuzzed binaries, showing its ability to complement existing fuzzers.

Motivation & Objective

  • Address the performance degradation of existing hardware-assisted fuzzers that rely on PT trace decoding and code coverage reconstruction.
  • Overcome the inefficiency of QEMU-AFL’s dynamic instrumentation in binary-only fuzzing, which slows down fuzzing by 2–5×.
  • Design a system that fully exploits Intel PT’s low-overhead tracing to achieve high-speed, path-sensitive fuzzing for source-unavailable binaries.
  • Improve code coverage feedback by using raw PT packets as input guidance, enabling better path exploration than edge-based coverage.
  • Demonstrate superior vulnerability discovery in real-world binaries compared to state-of-the-art fuzzers.

Proposed method

  • Introduce a parallel, elastic trace parsing scheme that decouples PT trace processing from target program execution, using concurrent threads to parse traces while the program runs.
  • Implement a boundary update mechanism that dynamically adjusts the execution window to ensure timely trace boundary updates and prevent parsing thread from falling behind.
  • Replace traditional edge-based code coverage feedback with a PT-friendly feedback mechanism that directly encodes the stream of decoded PT packets as fuzzing feedback.
  • Use the raw PT trace stream as a path-sensitive feedback signal, enabling more precise and informative guidance than edge coverage for exploring new code paths.
  • Integrate the new feedback mechanism into a modified AFL-like fuzzer architecture to maintain compatibility with existing fuzzing workflows.
  • Optimize the system for low-latency trace processing and high-throughput fuzzing by minimizing intermediate reconstruction steps.

Experimental results

Research questions

  • RQ1Can Intel Processor Tracing (PT) be used to eliminate the performance overhead of dynamic instrumentation in binary-only fuzzing?
  • RQ2Why do existing PT-based fuzzers perform worse than QEMU-AFL despite using hardware tracing?
  • RQ3Can raw PT packet streams serve as an effective and efficient feedback mechanism for fuzzing, bypassing code coverage reconstruction?
  • RQ4Does a path-sensitive feedback based on PT traces improve code coverage and vulnerability discovery compared to edge-based feedback?
  • RQ5Can PTrix outperform state-of-the-art fuzzers in both speed and defect discovery on real-world COTS binaries?

Key findings

  • PTrix achieves significantly higher fuzzing speed than QEMU-AFL, with performance improvements attributed to eliminating dynamic instrumentation overhead.
  • The raw PT packet feedback mechanism reduces feedback computation cost and enables faster, more responsive fuzzing compared to systems that reconstruct code coverage.
  • PTrix successfully explores code regions missed by other fuzzers, including previously unknown paths in well-fuzzed binaries.
  • The system discovered 35 new vulnerabilities in a set of COTS binaries, 11 of which were assigned CVE identifiers.
  • The parallel, elastic trace parsing scheme effectively mitigates the delay in trace boundary updates, ensuring efficient utilization of the parsing thread.
  • PTrix outperforms both QEMU-AFL and other PT-based fuzzers (e.g., kAFL, PTFuzz) in both fuzzing throughput and code coverage reach.

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.