Parametric Timed Model Checking for Guaranteeing Timed Opacity

Étienne André, Jun SunATVA 2019 · DOI

Abstract

Information leakage can have dramatic consequences on systems security. Among harmful information leaks, the timing information leakage is the ability for an attacker to deduce internal information depending on the system execution time. We address the following problem: given a timed system, synthesize the execution times for which one cannot deduce whether the system performed some secret behavior. We solve this problem in the setting of timed automata (TAs). We first provide a general solution, and then extend the problem to parametric TAs, by synthesizing internal timings making the TA secure. We study decidability, devise algorithms, and show that our method can also apply to program analysis.

Introduction

In the domain of cybersecurity, the observable behavior of a program—the "what"—is often less revealing than the operational characteristics—the "how." Side-channel attacks exploit physical outputs, such as power consumption or execution time, to leak sensitive internal information. This paper focuses on timing information leakage, where an attacker deduces secret behaviors based on the duration of system execution.

A classic example is a server processing a password: if it returns an error faster for an incorrect username than for a correct one (due to subsequent hashing), it leaks the existence of valid accounts. The goal of timed opacity is to ensure that every possible execution time could have been produced by both a "secret" and a "non-secret" path, rendering the secret behavior opaque to an observer. While previous research focused on checking opacity, this work addresses the more complex problem of synthesis: automatically determining the internal timing parameters (e.g., delays) required to make a system secure.

Formal Modeling and Synthesis

The authors employ Timed Automata (TA) and Parametric Timed Automata (PTA) as their primary modeling framework. In a PTA, timing constants are replaced by variables, or parameters, allowing for the analysis of a range of possible timing behaviors.

A simple Parametric Timed Automaton (PTA) where timing guards depend on parameters $p_1$ and $p_2$.

The core contribution is the SynthOp algorithm, which utilizes a self-composition technique. The method involves:

  1. Enrichment: Adding a Boolean flag to the system that triggers when a "private" (secret) state is visited.
  2. Parallel Execution: Running two copies of the enriched system in parallel.
  3. Synchronization: Forcing both copies to terminate at the exact same absolute time ($p_{abs}$).
  4. Synthesis: Using the tool IMITATOR to search for parameter values where one copy hits the secret state and the other does not, yet both finish simultaneously.

Experimental Evaluation

The approach was evaluated using academic benchmarks and Java programs from the DARPA STAC (Space/Time Analysis for Cybersecurity) library. These real-world-inspired programs were manually translated into PTAs, abstracting non-timing logic while preserving execution duration constraints.

A PTA model representing a program's logic, including a secret path ($\ell_{priv}$) and timing constraints on clock `cl`.

The analysis revealed that several programs previously considered "non-vulnerable" by statistical methods actually contained subtle timing leaks. The tool successfully generated 3D constraints for parameters, identifying precise ranges (e.g., $p_{abs} \in [1026.048, 1034]$) that guarantee opacity.

Key Results and Insights

  • Efficiency: Security constraints were computed in less than one second for most benchmarks, and within minutes for complex STAC programs.
  • Decidability: The authors identified the L/U-PTA subclass—where parameters act only as lower or upper bounds—as a "sweet spot" where the parametric synthesis problem remains decidable.
  • Automated Repair: By treating delays as parameters, the tool provides mathematical constraints that serve as a blueprint for repairing insecure systems.

Limitations and Future Work

A primary challenge is the manual effort required to translate source code (like Java) into formal PTA models. Automating this translation is critical for broader adoption. Furthermore, the current model does not account for probabilistic factors like network jitter or OS scheduling. Finally, the "state space explosion" problem remains a concern for very large systems with numerous clocks and parameters.

Summary updated

BibTeX
@inproceedings{andre2019parametric,
  author = {Étienne André and Jun Sun},
  title = {{Parametric Timed Model Checking for Guaranteeing Timed Opacity}},
  booktitle = {ATVA},
  year = {2019},
  doi = {10.1007/978-3-030-31784-3\_7},
}
Figure