Abstract
This paper introduces AHyperPCTL, the first probabilistic branching-time hyperlogic designed to handle asynchronicity in concurrent systems. By incorporating "stutter-schedulers" that strategically delay execution steps, the authors provide a formal framework to verify whether information leaks in probabilistic systems can be mitigated or hidden through asynchronous behavior. While the general model checking problem for this logic is undecidable, the authors identify a decidable fragment and propose an SMT-based verification algorithm. Experimental results using the prototype tool A-HyperProb demonstrate the feasibility of the approach for small-scale systems while highlighting significant computational challenges inherent in non-linear real arithmetic.
1. Introduction
In computer security, hyperproperties are essential for describing relationships between multiple executions of a system. For instance, Observational Determinism requires that two runs starting with different secret inputs must produce the same public output to prevent information leakage. While existing logics like HyperPCTL can reason about these properties in probabilistic systems, they are fundamentally "synchronous." They assume all executions move in perfect lock-step, an assumption that rarely holds in real-world concurrent environments.
In practice, multi-threaded programs are subject to asynchronicity: threads can be delayed by operating system scheduling, hardware interrupts, or intentional "padding" designed to mask timing side channels. Without a logic that accounts for this "stuttering," it is impossible to formally prove if a system is secure against an attacker who can observe timing or if a specific defense mechanism actually works. This paper addresses this gap by extending probabilistic hyperlogic to accommodate asynchronous behavior.
2. The AHyperPCTL Framework
The authors extend the standard HyperPCTL logic by introducing several novel components designed to model and query asynchronous execution speeds.
2.1 Stutter-Schedulers
The core innovation is the introduction of stutter-schedulers (denoted as $\tau$). At each execution step, a stutter-scheduler decides whether a process should proceed to its next state or "stutter" by remaining in its current state. This mechanism allows the logic to quantify over different execution interleavings and speeds.
2.2 Logic and Syntax
The AHyperPCTL logic allows for complex quantification over schedulers ($\sigma$), initial states ($s$), and the new stutter-schedulers ($\tau$). This enables researchers to pose sophisticated queries, such as: "Does there exist a way to delay these two executions such that their output probabilities become identical?" This flexibility makes AHyperPCTL strictly more expressive than its predecessor, HyperPCTL, as it can recover synchronous behavior by defining "trivial" stuttering while also expressing properties that synchronous logics cannot capture.
3. SMT-Based Model Checking
Verifying AHyperPCTL properties is computationally demanding. The authors prove that the general model checking problem is undecidable. To provide a practical tool, they focus on a decidable fragment by imposing two constraints:
- Probabilistic Memoryless Schedulers: Schedulers base their decisions only on the current state.
- $m$-Bounded Counting Stutter-Schedulers: A process can only be delayed a finite number of times ($m$).
3.1 Logical Encoding
The model checking problem is transformed into a massive formula in Non-linear Real Arithmetic (NRA). Unlike synchronous logics that often result in linear constraints, the introduction of asynchronicity requires the solver to synthesize both scheduler policies and stuttering durations simultaneously. This shift significantly increases complexity, as the resulting SMT encoding can be triple exponential in the size of the input in the worst case. The authors utilize the Z3 SMT solver to process these formulas.
4. Experimental Evaluation
The authors evaluated their approach using a prototype tool, A-HyperProb, across three benchmark models representing common security vulnerabilities:
- Classic Example (CE): A multi-threaded program where a secret influences the probability of a public output.
- Timing Leakage (TL): A modular exponentiation algorithm (RSA-style) where execution time varies based on the encryption key.
- ACDB: A program with thread synchronization across critical regions that may leak information through output ordering.
4.1 Key Results
For the Classic Example (CE) with a memory bound of $m=2$, the tool successfully verified the property in 16.07 seconds. This serves as a proof of concept that asynchronicity can be used as a tool; by finding specific "stuttering variations," one can mathematically equalize the probabilities of different runs to neutralize side channels.
However, the tool encountered significant hurdles with more complex models. Both the TL and ACDB benchmarks resulted in "Out of Memory" (OOM) or "Did Not Finish" (DNF) errors. This reflects the "complexity wall" of non-linear real arithmetic when applied to larger state spaces.
5. Discussion and Limitations
While AHyperPCTL provides a powerful new lens for security verification, it faces clear scalability limitations. The current implementation is a proof of concept that struggles beyond systems with a few dozen states. Furthermore, the tool currently finds it difficult to handle formulas with alternating quantifiers (e.g., "for all schedulers, there exists a stutter-scheduler"), which are necessary for many advanced security policies.
Future work aims to address these bottlenecks by exploring more efficient SMT solvers like cvc5, parallelizing the encoding process, or moving toward Statistical Model Checking. By utilizing Monte Carlo methods, it may be possible to trade off absolute formal certainty for the ability to verify much larger, more realistic concurrent systems.
Summary updated