Safe Equivalences for Security Properties

Mário S. Alvim, Miguel E. Andrés, Catuscia Palamidessi, Peter van Rossum

Introduction

In formal security verification, properties such as anonymity and secrecy are often defined through the lens of process equivalence. The core idea is simple: if a protocol using secret $A$ is observationally equivalent to the same protocol using secret $B$, then an observer cannot distinguish between the two, and the secret remains secure. However, research presented at TCS 2010 reveals a dangerous flaw in this traditional model when applied to concurrent systems. Standard definitions of equivalence often fail to account for the role of the scheduler—the entity managing process execution—leading to systems being labeled "secure" when they are actually vulnerable to information leaks.

The Problem: Angelic and Clairvoyant Schedulers

In concurrent environments, multiple processes run simultaneously, and a scheduler determines the order of operations. The authors identify two primary failures in standard security models:

  1. The Angelic Assumption: Traditional models often assume the scheduler acts neutrally or even "angelically" to preserve the appearance of equivalence. In reality, a "demonic" scheduler controlled by an attacker could purposefully choose execution paths that reveal sensitive information.
  2. The Clairvoyant Scheduler: Some models inadvertently allow the scheduler to make decisions based on secret data it should not be able to see. This "clairvoyance" allows the scheduler to create a covert channel, leaking secrets through its scheduling policy.

Methods: Tagged Probabilistic Automata

To address these issues, the authors introduce Tagged Probabilistic Automata (TPA). This framework incorporates several key innovations:

  • Tagging: Transitions are labeled with tags identifying the specific components involved, allowing for precise tracking of process actions.
  • Split Schedulers: The scheduler is decomposed into a Global Scheduler (representing demonic network interleaving) and Local Schedulers (representing angelic internal choices).
  • Admissibility Constraints: The model restricts schedulers from accessing information they shouldn't have. Global schedulers cannot see secrets, and local schedulers cannot see the state of external components, effectively eliminating clairvoyance.

Safe Equivalences and Congruence

The paper proposes Safe Trace Equivalence and Safe Bisimulation. The critical requirement here is the "Same Scheduler" rule: two systems are only equivalent if they appear identical under the exact same global scheduling policy. If a different policy is required to make secret $A$ look like secret $B$, the system is considered leaky.

A significant theoretical result is Theorem 1, which proves that safe bisimulation is a congruence. This allows for compositional verification: safely equivalent components can be swapped within larger systems without introducing new security vulnerabilities. Furthermore, Theorem 2 links these equivalences to a strong probabilistic definition of leakage-freedom.

Example Analysis

The necessity of this framework is demonstrated through a CCS-like example comparing two systems with different secret values.

Figure 1: Comparison of two systems 1(a) and 1(b) where the secret value (a or b) is communicated. Standard bisimulation might treat these as equivalent, but safe bisimulation reveals potential leaks under a malicious scheduler.

In the systems shown above, a standard bisimulation might conclude they are equivalent. However, safe bisimulation correctly identifies them as insecure because a scheduler would need to know the secret value to maintain the illusion of equivalence, or it could choose paths that explicitly distinguish between the two based on the internal communication patterns.

Conclusion

By refining the concept of process equivalence to account for demonic and non-clairvoyant schedulers, this work provides a more robust foundation for verifying information-hiding properties. While currently a qualitative framework, future work aims to extend these "Safe Equivalences" into quantitative measures of information leakage and integrate them into automated tools like the PRISM model checker.

Summary updated

BibTeX
@inproceedings{alvim2010safe,
  author = {Mário S. Alvim and Miguel E. Andrés and Catuscia Palamidessi and Peter van Rossum},
  title = {{Safe Equivalences for Security Properties}},
  booktitle = {Ifip tcs},
  year = {2010},
  doi = {10.1007/978-3-642-15240-5\_5},
}
Figure