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

编译器保持并发值相关信息流安全性的证明

Verifying that a compiler preserves concurrent value-dependent information-flow security

Robert Sison, Toby Murray

摘要:

通常通过对源代码进行推理来证明程序不会泄漏敏感数据。但是这样做在推理和现实之间留下了一个缺口,只能通过解释编译器的行为来填补。当程序强制执行值相关的信息流安全属性(其中位置的分类可以根据其他位置中的值而变化)时,此任务是复杂的,并且当程序利用共享变量并发时进一步复杂化。先前的工作已经正式定义了并发感知的概念,以保持值依赖的安全属性的细化。然而,这个概念要比标准的精化定义复杂得多,标准的精化定义通常应用于编译器对语义保持的验证。到目前为止,还不清楚它是否可以应用于一个现实的编译器,因为不存在一般的分解原则,将其分为更小,更熟悉,证明义务。在这项工作中,我们提供了这样一个分解原则,我们表明,几乎可以一半的复杂性证明安全的细化。此外,我们证明了它的适用性,安全编译,通过证明在伊莎贝尔/HOL的保存值依赖的安全性的概念证明编译器从一个命令式的,而语言到一个通用的RISC风格的汇编语言,为程序与共享内存并发介导的锁定原语。最后,我们执行我们的编译器在伊莎贝尔的跨域桌面合成器的语言模型,展示了我们的知识,第一次使用的编译器验证结果进行信息流的安全属性到一个非平凡的并发程序的汇编级模型。

英文摘要:

It is common to prove by reasoning over source code that programs do not leak sensitive data. But doing so leaves a gap between reasoning and reality that can only be filled by accounting for the behaviour of the compiler. This task is complicated when programs enforce value-dependent information-flow security properties (in which classification of locations can vary depending on values in other locations) and complicated further when programs exploit shared-variable concurrency. Prior work has formally defined a notion of concurrency-aware refinement for preserving value-dependent security properties. However, that notion is considerably more complex than standard refinement definitions typically applied in the verification of semantics preservation by compilers. To date it remains unclear whether it can be applied to a realistic compiler, because there exist no general decomposition principles for separating it into smaller, more familiar, proof obligations. In this work, we provide such a decomposition principle, which we show can almost halve the complexity of proving secure refinement. Further, we demonstrate its applicability to secure compilation, by proving in Isabelle/HOL the preservation of value-dependent security by a proof-of-concept compiler from an imperative While language to a generic RISC-style assembly language, for programs with shared-memory concurrency mediated by locking primitives. Finally, we execute our compiler in Isabelle on a While language model of the Cross Domain Desktop Compositor, demonstrating to our knowledge the first use of a compiler verification result to carry an information-flow security property down to the assembly-level model of a non-trivial concurrent program.

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

↑