Abstract
Many types of attacks on confidentiality stem from the nondeterministic nature of the environment that computer programs operate in. We focus on verification of confidentiality in nondeterministic environments by reasoning about asynchronous hyperproperties. We generalize the temporal logic A-HLTL to allow nested trajectory quantification, where a trajectory determines how different execution traces may advance and stutter. We propose a bounded model checking algorithm for A-HLTL based on QBF-solving for a fragment of A-HLTL and evaluate it by various case studies on concurrent programs, scheduling attacks, compiler optimization, speculative execution, and cache timing attacks. We also rigorously analyze the complexity of model checking A-HLTL.
Introduction
In computer security, critical properties like non-interference—ensuring secret data does not leak to public outputs—are classified as "hyperproperties." Unlike standard temporal properties that examine a single execution trace, hyperproperties compare sets of traces to identify discrepancies that could reveal sensitive information.
While logics like HyperLTL are effective for synchronous systems, real-world software is often asynchronous. Execution paths may "stutter" or progress at varying speeds due to thread scheduling, network delays, or hardware optimizations. Previous iterations of Asynchronous HyperLTL (A-HLTL) allowed for a single "trajectory" to align traces, but this proved insufficient for systems with multiple independent sources of nondeterminism. For instance, if a program's behavior depends on both a thread scheduler and the timing of network packets, a single trajectory cannot express the necessary security requirements. This research addresses this gap by introducing nested quantification over trajectories.
Methodology
The authors extend A-HLTL to support universal ($A\tau$) and existential ($E\tau$) trajectory quantifiers. A trajectory dictates how different execution traces advance or remain stationary at each time step, effectively modeling the relative progress of asynchronous components.
Bounded Model Checking and QBF Reduction
To make verification practical, the paper introduces a Bounded Model Checking (BMC) algorithm. Key technical components include:
- Bounded Semantics: The logic employs "optimistic" and "pessimistic" bounded semantics to provide under- and over-approximations of properties, allowing the checker to handle pending events within a finite window.
- QBF Reduction: The model checking problem is encoded into Quantified Boolean Formulas (QBF). This involves unrolling Kripke structures (state machines) and encoding the logic of trajectory pointers ($pos_{i,j}$) to track trace progress through time.
Complexity Analysis
The research provides a rigorous analysis of the complexity of A-HLTL. While single-trajectory A-HLTL shares similar complexity with HyperLTL, the introduction of multiple nested trajectory quantifiers increases the complexity by one level in the polynomial hierarchy.
Evaluation and Key Results
The approach was implemented within the HyperQB model checker and evaluated against several security benchmarks, including speculative execution (SNI), compiler optimizations, and cache-based timing attacks.
- Vulnerability Discovery: The tool successfully identified known vulnerabilities in concurrent programs that were inexpressible in previous asynchronous logics.
- Performance: In comparative tests, the BMC approach significantly outperformed the state-of-the-art tool MCHyper. For example, on an "Expression Flattening" compiler optimization case, the new tool finished in 22.58 seconds, compared to 1315.2 seconds for MCHyper.
- Precision: The tool accurately distinguished between secure and insecure versions of speculative execution code across various compilation settings.
Discussion and Future Work
While the current BMC algorithm is highly effective for acyclic (terminating) systems, it faces challenges with infinite loops and the inherent "state explosion problem" common in model checking. Future research directions include developing abstraction-refinement techniques (like CEGAR) to manage larger state spaces and exploring synthesis to automatically generate secure code that satisfies these complex asynchronous hyperproperties.
Summary updated