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

鲁棒安全编译或高效可证明安全编译

Robustly Safe Compilation or, Efficient, Provably Secure Compilation

Marco Patrignani, Deepak Garg

摘要:

安全编译器生成的编译代码可以抵御许多目标级别的攻击,如控制流更改、数据泄漏或内存损坏。许多现有的安全编译器被证明是完全抽象的,这意味着它们反映并保持观察等价性。完全抽象编译是一个强大而有用的属性,在某些情况下,它的代价是在编译代码中需要昂贵的运行时构造。这些构造可能与安全性无关,但需要适应完全抽象编译必须考虑的源语言和目标语言之间的差异。作为完全抽象编译的替代方案,本文探讨了一种不同的安全编译标准,称为鲁棒安全编译或RSC。简而言之,该标准意味着编译代码针对与所述程序交互的所有对抗性上下文保留了源程序的相关安全属性。我们表明,RSC可以很容易地实现,并在代码中产生的结果是更有效的比完全抽象的编译器。我们还开发了三个说明性的鲁棒安全编译器,并通过它们,开发两种不同的证明技术,建立一个编译器达到RSC。通过这些,我们还建立了证明RSC比证明完全抽象更简单。

英文摘要:

Secure compilers generate compiled code that withstands many target-level attacks such as alteration of control flow, data leaks or memory corruption. Many existing secure compilers are proven to be fully abstract, meaning that they reflect and preserve observational equivalence. Fully abstract compilation is a strong and useful property that, in certain cases, comes at the cost of requiring expensive runtime constructs in compiled code. These constructs may have no relevance for security, but are needed to accommodate differences between the source language and the target language that fully abstract compilation necessarily regards. As an alternative to fully abstract compilation, this paper explores a different criterion for secure compilation called robustly safe compilation or RSC. Briefly, this criterion means that the compiled code preserves relevant safety properties of the source program against all adversarial contexts interacting with said program. We show that RSC can be attained easily and results in code that is more efficient than that generated by fully abstract compilers. We also develop three illustrative robustly-safe compilers and, through them, develop two different proof techniques for establishing that a compiler attains RSC. Through these, we also establish that proving RSC is simpler than proving fully abstraction.

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

↑