Generalized Security-Preserving Refinement for Concurrent Systems

Huan Sun, David Sanán, Jingyi Wang, Yongwang Zhao, Jun Sun, Wenhai Wang · DOI

Introduction

In the development of high-assurance software, formal verification through refinement serves as a rigorous methodology for ensuring system correctness. Refinement allows developers to prove that a complex, low-level implementation (the concrete model) faithfully adheres to a simplified, high-level specification (the abstract model). While this approach is highly effective for ensuring safety properties—such as the absence of system crashes—it has historically struggled to preserve Information Flow Security (IFS), particularly in concurrent environments.

This paper introduces a novel formal verification framework based on unwinding-preserving simulation. This technique ensures that security properties, specifically those related to noninterference, are maintained as a system moves from abstract design to concrete code. By applying this framework to the ARINC 653 multicore standard, the authors identified and corrected previously unknown security vulnerabilities, demonstrating the practical necessity of security-aware refinement.

The Security Gap in Standard Refinement

The primary challenge in concurrent systems is that multiple threads or processes operate simultaneously, often sharing resources. Standard refinement techniques often "abstract away" intermediate steps of a function to simplify the proof. While these intermediate states might be irrelevant to the final output (safety), they are often visible to other concurrent threads in the implementation.

This visibility creates covert channels. A low-security process might observe these hidden intermediate updates to shared state or timing variations, allowing it to infer sensitive information from a high-security process. Furthermore, existing solutions often focus on strict isolation policies. However, real-world systems frequently require intransitive noninterference, where controlled data release (declassification) is necessary—such as an encryption module passing ciphertext to a network interface.

The Unwinding-Preserving Simulation Framework

To bridge this gap, the authors propose a generalized framework for security-preserving refinement. The core of this approach is a new simulation relation defined by two primary components:

  1. Step-Mapping Function ($\zeta$): This function maps every step in the concrete implementation to a corresponding state in the abstract model. Each concrete step is classified as either an "action" step or a "silent" step.
  2. Action steps must correspond directly to an allowed transition in the abstract security policy.
  3. Silent steps must be proven to be "indistinguishable" to an observer, ensuring they do not leak information even if they modify the internal state.
  4. State Invariant Relation ($\alpha$): This ensures a consistency of observation. If two states are indistinguishable to an observer at the implementation level, their corresponding states in the abstract model must also be indistinguishable.

To manage the inherent complexity of concurrency, the framework incorporates a Rely-Guarantee methodology. This allows researchers to decompose a massive system-wide proof into smaller, modular proofs for individual components. Each component is verified under the assumption that its "environment" (other threads) behaves according to a specific contract.

Case Studies: ARINC 653 and Declassification

The framework was evaluated using two significant case studies, both mechanized in the Isabelle/HOL interactive theorem prover:

  • ARINC 653 Multicore IPC: The authors modeled the Inter-Partition Communication (IPC) mechanism of the ARINC 653 standard, a critical specification for avionics and real-time operating systems. This served as a test for complex, real-world concurrency.
  • Sealed-Bid Auction System: This benchmark was used to test the framework's ability to handle declassification. In this system, bids must remain secret (noninterference) until the auction concludes, at which point the winner is revealed (controlled declassification).

Key Results and Bug Discovery

The most striking result of this research was the discovery of two previously unknown covert channels in the multicore version of the ARINC 653 standard. Despite these issues being reported and supposedly fixed in single-core versions, they persisted in the multicore specification:

  1. Queuing Mode Vulnerability: A full message queue could be used to leak information between partitions.
  2. Port Identifier Manipulation: Processes could potentially guess and manipulate port identifiers belonging to other partitions.

The authors successfully rectified these violations and proved the security of the revised mechanism. From a practical standpoint, the verification process was efficient; the IPC mechanism proof took approximately four weeks and involved roughly 848 lines of simulation code. This suggests that security-preserving refinement does not impose a prohibitive "proof burden" compared to standard refinement.

Limitations and Future Work

While the framework represents a significant advancement, it has certain limitations. It currently does not support "stuttering" at the abstract level, which is often required for verifying compilers where one implementation step might map to multiple abstract steps. Additionally, the framework restricts certain types of nondeterminism to prevent deterministic implementations from bypassing security policies.

Finally, the current model focuses on covert storage channels (leaks via data state). It does not yet address timing channels, where information is leaked through the duration of operations. Expanding the framework to include temporal logic and timing-sensitive noninterference remains a primary goal for future research.

Summary updated

BibTeX
@inproceedings{sun2025generalized,
  author = {Huan Sun and David Sanán and Jingyi Wang and Yongwang Zhao and Jun Sun and Wenhai Wang},
  title = {{Generalized Security-Preserving Refinement for Concurrent Systems}},
  booktitle = {CCS},
  year = {2025},
  doi = {10.1145/3719027.3765138},
}
Figure