Skip to main content
QUICK REVIEW

[Paper Review] CommCSL: Proving Information Flow Security for Concurrent Programs using Abstract Commutativity

Marco Eilers, Thibault Dardinier|arXiv (Cornell University)|Nov 15, 2022
Security and Verification in ComputingComputer Science1 citations
TL;DR

This paper introduces CommCSL, a relational concurrent separation logic that verifies information flow security in concurrent programs by proving abstract commutativity of shared data operations. By showing that thread interleavings do not affect the final value of publicly observable data—via an abstraction that hides non-commuting internal behaviors—it enables secure verification without timing assumptions, even on standard hardware with complex timing side effects.

ABSTRACT

Information flow security ensures that the secret data manipulated by a program does not influence its observable output. Proving information flow security is especially challenging for concurrent programs, where operations on secret data may influence the execution time of a thread and, thereby, the interleaving between different threads. Such internal timing channels may affect the observable outcome of a program even if an attacker does not observe execution times. Existing verification techniques for information flow security in concurrent programs attempt to prove that secret data does not influence the relative timing of threads. However, these techniques are often restrictive (for instance because they disallow branching on secret data) and make strong assumptions about the execution platform (ignoring caching, processor instructions with data-dependent runtime, and other common features that affect execution time). In this paper, we present a novel verification technique for secure information flow in concurrent programs that lifts these restrictions and does not make any assumptions about timing behavior. The key idea is to prove that all mutating operations performed on shared data commute, such that different thread interleavings do not influence its final value. Crucially, commutativity is required only for an abstraction of the shared data that contains the information that will be leaked to a public output. Abstract commutativity is satisfied by many more operations than standard commutativity, which makes our technique widely applicable. We formalize our technique in CommCSL, a relational concurrent separation logic with support for commutativity-based reasoning, and prove its soundness in Isabelle/HOL. We implemented CommCSL in HyperViper, an automated verifier based on the Viper verification infrastructure, and demonstrate its ability to verify challenging examples.

Motivation & Objective

  • To address the challenge of information flow security in concurrent programs where timing differences can leak secret data through observable side effects.
  • To overcome the limitations of existing techniques that require restrictive assumptions about hardware or disallow secret-dependent operations.
  • To enable verification of concurrent programs without reasoning about execution timing, even in the presence of complex hardware features like caching or speculative execution.
  • To formalize a novel verification technique based on abstract commutativity that applies to real-world concurrent programs with shared mutable state.
  • To provide a scalable, modular, and automated verification method that supports common concurrent programming patterns.

Proposed method

  • Proposes CommCSL, a relational concurrent separation logic that supports reasoning about abstract commutativity of shared data operations.
  • Introduces the concept of abstract commutativity, where operations commute with respect to an abstraction of shared data that captures only information relevant to public outputs.
  • Uses a pure mathematical representation of data structures (e.g., partial functions) and defines abstractions that further abstract away non-observable internal details.
  • Applies the logic to prove non-interference by showing that all thread interleavings yield the same final value in the abstract view of public outputs.
  • Implements CommCSL in HyperViper, an automated verifier built on the Viper verification infrastructure, enabling scalable and practical verification.
  • Proves soundness of CommCSL in Isabelle/HOL, ensuring correctness of the logical framework.

Experimental results

Research questions

  • RQ1Can abstract commutativity be used to verify non-interference in concurrent programs without relying on timing assumptions about the underlying hardware?
  • RQ2How can abstract commutativity be defined and applied to shared mutable data structures where operations do not commute in their concrete form but do so in an abstract view?
  • RQ3To what extent can existing verification techniques be generalized to support concurrent programs with internal timing channels that leak via observable state differences?
  • RQ4Can abstract commutativity reasoning be automated and integrated into practical verification tools for real-world concurrent programs?
  • RQ5Under what conditions is it sound to assume shared data is low (public) during concurrent updates, based on abstract commutativity?

Key findings

  • CommCSL enables verification of information flow security in concurrent programs without requiring assumptions about execution timing, even on standard hardware with complex timing behaviors.
  • The technique successfully verifies challenging examples, including programs with secret-dependent loops whose timing affects observable outputs, which existing techniques reject due to timing concerns.
  • Abstract commutativity allows operations that do not commute in concrete form to be considered secure if their non-commutativity is invisible in the abstract view of public outputs.
  • The implementation in HyperViper demonstrates that the technique can be automated efficiently and scales to practical concurrent programs.
  • The formal soundness proof in Isabelle/HOL ensures the correctness of the logic and its applicability to real verification tasks.
  • The approach generalizes to settings like fine-grained concurrency and relaxed memory models, suggesting broad applicability beyond the current scope.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.