Skip to main content
QUICK 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 Science被引用 1
一句话总结

该论文提出 CommCSL,一种关系型并发分离逻辑,通过证明共享数据操作的抽象交换性来验证并发程序中的信息流安全。通过展示线程交错不会影响公开可观察数据的最终值——借助隐藏非交换内部行为的抽象——该方法在不依赖时序假设的情况下实现安全验证,即使在具有复杂时序侧效应的标准硬件上亦可适用。

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.

研究动机与目标

  • 解决并发程序中因时序差异可能通过可观测侧效应泄露秘密数据的信息流安全挑战。
  • 克服现有技术对硬件施加严格假设或禁止秘密依赖操作的局限性。
  • 在存在缓存或推测执行等复杂硬件特性的情况下,实现无需考虑执行时序的并发程序验证。
  • 形式化一种基于抽象交换性的新型验证技术,适用于具有共享可变状态的真实世界并发程序。
  • 提供一种可扩展、模块化且自动化的验证方法,支持常见的并发编程模式。

提出的方法

  • 提出 CommCSL,一种支持对共享数据操作的抽象交换性进行推理的关系型并发分离逻辑。
  • 引入抽象交换性的概念,即操作在仅捕获对公开输出相关的信息的共享数据抽象下彼此交换。
  • 使用纯数学方式表示数据结构(例如偏函数),并定义进一步抽象掉不可观测内部细节的抽象。
  • 通过证明所有线程交错在公开输出的抽象视图中均产生相同的最终值,来证明非干扰性。
  • 在 HyperViper 中实现 CommCSL,该工具是基于 Viper 验证基础设施构建的自动化验证器,支持可扩展且实用的验证。
  • 在 Isabelle/HOL 中证明 CommCSL 的正确性,确保逻辑框架的正确性。

实验结果

研究问题

  • RQ1能否利用抽象交换性在不依赖底层硬件时序假设的情况下验证并发程序中的非干扰性?
  • RQ2如何定义并应用抽象交换性于共享可变数据结构中,其中操作在具体形式下不交换,但在抽象视图中交换?
  • RQ3现有验证技术在多大程度上可被推广以支持通过可观测状态差异泄露信息的内部时序通道的并发程序?
  • RQ4能否自动化抽象交换性推理并将其集成到实际验证工具中,以支持真实世界的并发程序?
  • RQ5在基于抽象交换性假设共享数据为低(公开)时,其在并发更新期间的安全性在何种条件下是成立的?

主要发现

  • CommCSL 允许在不依赖执行时序假设的情况下验证并发程序中的信息流安全,即使在具有复杂时序行为的标准硬件上亦可适用。
  • 该技术成功验证了具有秘密依赖循环的复杂示例,其时序会影响可观测输出,而现有技术因时序顾虑而拒绝此类程序。
  • 抽象交换性使得在具体形式下不交换的操作,若其非交换性在公开输出的抽象视图中不可见,则可被视为安全。
  • HyperViper 中的实现表明,该技术可被高效自动化,并可扩展至实际的并发程序。
  • 在 Isabelle/HOL 中的形式化正确性证明确保了逻辑的正确性及其在真实验证任务中的适用性。
  • 该方法可推广至细粒度并发和宽松内存模型等场景,表明其适用范围远超当前研究范围。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。