arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.08459cs.CRcs.PL
收藏

CommCSL:使用抽象交换性证明并发程序的信息流安全性

CommCSL: Proving Information Flow Security for Concurrent Programs using Abstract Commutativity

Marco Eilers, Thibault Dardinier, Peter Müller

AI总结:

本文提出一种基于抽象交换性的并发程序信息流安全新型验证技术,解除现有方法对分支和执行平台的限制,并在 CommCSL 逻辑与 HyperViper 验证器中实现与证明其可靠性与广泛适用性。

摘要:

信息流安全性确保程序处理的秘密数据不会影响其可观察输出。证明信息流安全性对于并发程序尤其具有挑战性,因为在并发程序中,对秘密数据的操作可能会影响线程的执行时间,从而影响不同线程之间的交错。即使攻击者不观察执行时间,这种内部时序通道也可能影响程序的可观察结果。现有的并发程序信息流安全性验证技术试图证明秘密数据不会影响线程的相对时序。然而,这些技术通常具有限制性(例如,因为它们不允许基于秘密数据进行分支),并对执行平台做出强假设(忽略缓存、具有数据依赖运行时的处理器指令以及其他影响执行时间的常见特性)。在本文中,我们提出了一种用于并发程序中安全信息流的新型验证技术,该技术解除了这些限制,并且不对时序行为做任何假设。关键思想是证明对共享数据执行的所有修改操作都是可交换的,使得不同的线程交错不会影响其最终值。至关重要的是,可交换性仅对于包含将泄露给公共输出信息的共享数据抽象才需要。抽象可交换性比标准可交换性适用于更多操作,这使得我们的技术具有广泛适用性。我们在 CommCSL 中形式化了我们的技术,这是一种支持基于可交换性推理的关系并发分离逻辑,并在 Isabelle/HOL 中证明了其可靠性。我们在 HyperViper 中实现了 CommCSL,这是一个基于 Viper 验证基础设施的自动化验证器,并展示了其验证具有挑战性示例的能力。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑