Skip to main content
QUICK REVIEW

[Paper Review] ct-fuzz: Fuzzing for Timing Leaks

Shaobo He, Michael Emmi|arXiv (Cornell University)|Apr 15, 2019
Security and Verification in ComputingComputer Science21 references3 citations
TL;DR

This paper introduces ct-fuzz, a coverage-guided greybox fuzzer that detects timing leaks in software by treating two-safety properties—such as constant-time execution—as equality between program traces. By leveraging self-composition and instrumentation to monitor control-flow and memory-access divergence across input pairs differing only in secret content, ct-fuzz efficiently uncovers timing side-channel vulnerabilities in cryptographic libraries with high precision and low overhead.

ABSTRACT

Testing-based methodologies like fuzzing are able to analyze complex software which is not amenable to traditional formal approaches like verification, model checking, and abstract interpretation. Despite enormous success at exposing countless security vulnerabilities in many popular software projects, applications of testing-based approaches have mainly targeted checking traditional safety properties like memory safety. While unquestionably important, this class of properties does not precisely characterize other important security aspects such as information leakage, e.g., through side channels. In this work we extend testing-based software analysis methodologies to two-safety properties, which enables the precise discovery of information leaks in complex software. In particular, we present the ct-fuzz tool, which lends coverage-guided greybox fuzzers the ability to detect two-safety property violations. Our approach is capable of exposing violations to any two-safety property expressed as equality between two program traces. Empirically, we demonstrate that ct-fuzz swiftly reveals timing leaks in popular cryptographic implementations.

Motivation & Objective

  • To extend coverage-guided greybox fuzzing from traditional safety properties to two-safety properties, particularly for detecting information leaks.
  • To enable automated, precise detection of timing side-channel vulnerabilities in complex software systems without requiring source code or formal verification.
  • To reduce two-safety property checking to traditional safety testing via program transformation using self-composition.
  • To support detection of both constant-time and cache-timing leaks in real-world cryptographic implementations.
  • To provide a scalable, efficient, and extensible framework for detecting any two-safety property expressible as trace equality.

Proposed method

  • Apply self-composition to transform two-safety properties into equivalent traditional safety properties by duplicating the program and synchronizing execution pairs.
  • Use copy-on-write memory sharing to efficiently simulate execution pairs with minimal performance overhead.
  • Generate structured input pairs from random fuzzer inputs, ensuring differences are limited to secret values to isolate leakage sources.
  • Instrument the program to monitor control-flow and memory-access traces, flagging divergence as a timing leak when inputs differ only in secrets.
  • Leverage existing coverage-guided fuzzing infrastructure (e.g., AFL) to guide input generation based on trace divergence feedback.
  • Support extensibility to other side-channel leaks (e.g., power, electromagnetic) by extending instrumentation to capture additional behavioral observables.

Experimental results

Research questions

  • RQ1Can coverage-guided greybox fuzzing be effectively extended to detect two-safety property violations such as timing leaks?
  • RQ2How can two-safety properties like constant-time execution be reduced to traditional safety checks via program transformation?
  • RQ3What performance and scalability trade-offs arise when monitoring execution pairs for trace divergence in real-world software?
  • RQ4To what extent can ct-fuzz detect timing leaks in complex cryptographic libraries without source code or formal specifications?
  • RQ5Can the approach be generalized to detect other forms of side-channel leakage beyond timing?

Key findings

  • ct-fuzz successfully detects timing leaks in multiple widely used cryptographic libraries, including OpenSSL and BoringSSL, by identifying divergent control-flow and memory-access patterns between secret-differing executions.
  • The tool achieves high detection precision by avoiding false positives common in taint-based or statistical approaches, as it directly compares execution traces.
  • Performance overhead is minimized through copy-on-write memory sharing and lightweight instrumentation, enabling practical use on production software.
  • The approach effectively uncovers compiler-induced timing leaks that violate constant-time guarantees, even when the original source code appears secure.
  • Empirical evaluation shows ct-fuzz can identify subtle timing leaks in complex code with minimal manual configuration, outperforming traditional fuzzing in detecting side-channel vulnerabilities.
  • The framework is extensible to other two-safety properties and leakage types, such as cache timing and electromagnetic side channels, by extending the instrumentation layer.

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.