arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2010.14032cs.PLcs.CRcs.LO
收藏

混合敏感并发程序的验证安全编译

Verified Secure Compilation for Mixed-Sensitivity Concurrent Programs

Robert Sison, Toby Murray

AI总结:

该研究使用Isabelle/HOL验证了一个单遍编译器能够保持混合敏感并发程序的非干扰性,通过引入分解原则简化安全精化证明,并在真实用例上自动保留安全属性。

摘要:

仅对源代码进行证明,即程序不会泄露敏感数据,会在推理与现实之间留下差距,这一差距只能通过考虑编译器的行为来填补。此外,软件并不总是能够奢侈地限制自己为单线程计算,并将资源静态地分配给每个用户以确保其数据的机密性。这导致了混合敏感并发程序的出现,这些程序可能重用其线程之间共享的内存,在不同时间保存不同敏感级别的数据;对于此类程序,编译器必须保留这种混合敏感重用的值依赖协调,尽管并发性会对其产生影响。\n在这里,我们使用Isabelle/HOL证明了验证编译器保留非干扰性(最严格的机密性属性)对于混合敏感并发程序是可行的。首先,我们提出了精化概念,这些概念保留了并发值依赖的非干扰性,我们设计这些概念以支持此类程序。由于证明保留非干扰性的精化可能比通常用于验证语义保持编译的标准精化复杂得多,我们的概念包括一个分解原则,将语义保持与安全保持的关注点分开。其次,我们通过在一个单遍编译器上实践这些精化概念,证明了它们适用于验证安全编译,该编译器针对使用互斥锁同步的混合敏感并发程序,从通用命令式语言编译到通用RISC风格汇编语言。最后,我们在一个模拟真实世界用例的非平凡混合敏感并发程序上执行我们的编译器,从而自动将其源代码级别的非干扰性属性保留到汇编级别的模型中。

英文摘要:

Proving only over source code that programs do not leak sensitive data leaves a gap between reasoning and reality that can only be filled by accounting for the behaviour of the compiler. Furthermore, software does not always have the luxury of limiting itself to single-threaded computation with resources statically dedicated to each user to ensure the confidentiality of their data. This results in mixed-sensitivity concurrent programs, which might reuse memory shared between their threads to hold data of different sensitivity levels at different times; for such programs, a compiler must preserve the value-dependent coordination of such mixed-sensitivity reuse despite the impact of concurrency. Here we demonstrate, using Isabelle/HOL, that it is feasible to verify that a compiler preserves noninterference, the strictest kind of confidentiality property, for mixed-sensitivity concurrent programs. First, we present notions of refinement that preserve a concurrent value-dependent notion of noninterference that we have designed to support such programs. As proving noninterference-preserving refinement can be considerably more complex than the standard refinements typically used to verify semantics-preserving compilation, our notions include a decomposition principle that separates the semantics-preservation from security-preservation concerns. Second, we demonstrate that these refinement notions are applicable to verified secure compilation, by exercising them on a single-pass compiler for mixed-sensitivity concurrent programs that synchronise using mutex locks, from a generic imperative language to a generic RISC-style assembly language. Finally, we execute our compiler on a nontrivial mixed-sensitivity concurrent program modelling a real-world use case, thus preserving its source-level noninterference properties down to an assembly-level model automatically. (Full abstract in paper)

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

↑