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

用于安全推测的硬件-软件契约

Hardware-Software Contracts for Secure Speculation

Marco Guarnieri, Boris Köpf, Jan Reineke, Pepe Vila

摘要:

自从Spectre被发现以来,已经提出了大量用于安全推测的硬件机制。直觉上,防御性更强的机制效率较低,但可以安全地执行更大类的程序,而许可性更强的机制可能提供更高的性能,但需要更多的防御性编程。不幸的是,没有硬件-软件契约可以将这种直觉转化为原则性协同设计的基础。在本文中,我们提出了一个框架,指定这样的合同,我们证明了它的表现力和灵活性。在硬件方面,我们使用的框架提供了第一个形式化和比较的安全保证所提供的一类代表性的安全投机机制。在软件方面,我们使用的框架来表征程序的属性,保证安全的协同设计在两个方案传统上孤立调查:(1)确保一个良性的程序不泄漏信息,而计算机密数据,(2)确保潜在的恶意程序不能读取其指定的沙箱之外。最后,我们将展示如何根据现有的软件验证工具来检查与这两种情况对应的属性,并使用它们来验证我们在可执行代码上的发现。

英文摘要:

Since the discovery of Spectre, a large number of hardware mechanisms for secure speculation has been proposed. Intuitively, more defensive mechanisms are less efficient but can securely execute a larger class of programs, while more permissive mechanisms may offer more performance but require more defensive programming. Unfortunately, there are no hardware-software contracts that would turn this intuition into a basis for principled co-design. In this paper, we put forward a framework for specifying such contracts, and we demonstrate its expressiveness and flexibility. On the hardware side, we use the framework to provide the first formalization and comparison of the security guarantees provided by a representative class of mechanisms for secure speculation. On the software side, we use the framework to characterize program properties that guarantee secure co-design in two scenarios traditionally investigated in isolation: (1) ensuring that a benign program does not leak information while computing on confidential data, and (2) ensuring that a potentially malicious program cannot read outside of its designated sandbox. Finally, we show how the properties corresponding to both scenarios can be checked based on existing tools for software verification, and we use them to validate our findings on executable code.

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

↑