一种面向数据无关硬件的可扩展形式化验证方法
A Scalable Formal Verification Methodology for Data-Oblivious Hardware
AI总结:
本文提出基于归纳属性和标准属性检查的硬件数据无关行为形式化验证方法,可扩展至乱序处理器,并在 IBEX 中发现时序违规。
摘要:
近年来,在安全关键应用中防止微架构时序侧信道的重要性迅速上升。常量时间编程已成为防止秘密信息通过时序泄露的最佳实践技术。它基于这样一个假设:某些基本机器指令的时序独立于其各自的输入数据。然而,一条指令是否满足这种数据无关时序标准,会因具体处理器微架构而异。本文提出一种新颖方法,使用标准属性检查技术对硬件中的数据无关行为进行形式化验证。所提方法基于一种归纳属性,即使面对复杂的乱序核心也具备可扩展性。我们证明,证明该归纳属性足以在微架构层面穷尽地验证数据无关性。此外,本文讨论了若干可用于使验证过程更轻松、更快速的技术。我们通过在多个开源设计上的案例研究证明了所提方法的可行性。其中一个案例研究在经过广泛验证且高度安全的 IBEX RISC-V 核心中发现了一处数据相关时序违规。除若干硬件加速器和顺序处理器外,我们的实验还包括复杂乱序处理器 RISC-V BOOM,突显了该方法的可扩展性。
英文摘要:
The importance of preventing microarchitectural timing side channels in security-critical applications has surged in recent years. Constant-time programming has emerged as a best-practice technique for preventing the leakage of secret information through timing. It is based on the assumption that the timing of certain basic machine instructions is independent of their respective input data. However, whether or not an instruction satisfies this data-independent timing criterion varies between individual processor microarchitectures. In this paper, we propose a novel methodology to formally verify data-oblivious behavior in hardware using standard property checking techniques. The proposed methodology is based on an inductive property that enables scalability even to complex out-of-order cores. We show that proving this inductive property is sufficient to exhaustively verify data-obliviousness at the microarchitectural level. In addition, the paper discusses several techniques that can be used to make the verification process easier and faster. We demonstrate the feasibility of the proposed methodology through case studies on several open-source designs. One case study uncovered a data-dependent timing violation in the extensively verified and highly secure IBEX RISC-V core. In addition to several hardware accelerators and in-order processors, our experiments also include RISC-V BOOM, a complex out-of-order processor, highlighting the scalability of the approach.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。