Guaranteeing Timed Opacity using Parametric Timed Model Checking.

Étienne André, Didier Lime, Dylan Marinho, Jun Sun · DOI

Timing side-channels represent a significant security risk where the execution time of a program varies based on secret data. If a password-checking function returns "Incorrect" faster for a wrong first character than for a correct one, an attacker can exploit this discrepancy to leak information. This paper formalizes this threat as "Timed Opacity" and proposes a framework for detecting and mitigating such leaks using parametric timed model checking.

Formalizing Timed Opacity

The authors define a system as "opaque" if an external observer, measuring only the total execution time, cannot determine whether the system visited a "private" (secret) state. If a specific total execution time is unique to paths visiting the secret state, the secret is leaked.

A Parametric Timed Automaton (PTA) where $\ell_2$ represents a secret state.

As shown in Figure 1, a system can be modeled as a Parametric Timed Automaton (PTA). In this example, $\ell_2$ is a secret location. The challenge is to determine if the total time to reach the final state $\ell_1$ via the secret state $\ell_2$ can be made identical to the time taken by a non-secret path. This is achieved by synthesizing appropriate values for the timing parameters $p_1$ and $p_2$.

Methodology

The research utilizes Timed Automata (TA) and Parametric Timed Automata (PTA) to model system behaviors. Key technical contributions include:

  • Decidability Proofs: The authors prove that timed opacity is decidable for standard TAs using Real Addition (RA) arithmetic, though it is generally undecidable for PTAs.
  • Self-Composition: To verify opacity, the authors employ "self-composition," running two instances of the system in parallel—one forced to visit the secret state and one forced to avoid it. If both can terminate simultaneously, the system is opaque for that duration.
  • The SynthOp Algorithm: This algorithm uses the IMITATOR tool to perform reachability synthesis, exploring the state space to find parameter constraints that guarantee security.

Evaluation and Results

The approach was evaluated on classic verification benchmarks (e.g., Fischer’s protocol) and the STAC (Space/Time Analysis for Cybersecurity) library of Java programs.

  • Performance: The SynthOp algorithm typically processed benchmarks in under one second, with complex Java-derived models taking less than five minutes.
  • Vulnerability Detection: The tool successfully identified known timing leaks in the STAC library, such as execution times proportional to password accuracy.
  • Parameter Synthesis: For vulnerable models, the tool generated specific parameter constraints (e.g., $p > 1024$) that developers could use to patch the code by equalizing execution times.

Conclusion and Future Work

While the current work requires manual translation of source code into PTAs and faces challenges with geometric intractability in complex parameter spaces, it establishes a robust formal foundation for timing side-channel mitigation. Future work aims to automate code-to-PTA translation and incorporate probabilistic models to account for real-world hardware jitter and noise.

Summary updated

BibTeX
@article{andre2022guaranteeing,
  author = {Étienne André and Didier Lime and Dylan Marinho and Jun Sun},
  title = {{Guaranteeing Timed Opacity using Parametric Timed Model Checking.}},
  journal = {ACM Trans. Softw. Eng. Methodol.},
  year = {2022},
  doi = {10.1145/3502851},
}
Figure