Libra:面向高端处理器上原则性、安全且高效的平衡执行的架构支持(扩展版)
Libra: Architectural Support For Principled, Secure And Efficient Balanced Execution On High-End Processors (Extended Version)
AI总结:
本文挑战线性化是抵御控制流泄漏攻击唯一有效对策的观点,提出软硬件协同设计Libra,可在高端处理器上安全平衡秘密依赖分支,无需禁用性能关键硬件,性能优于线性化代码19.3%。
摘要:
控制流泄漏(CFL)攻击使攻击者能够通过侧信道观测暴露受害者程序的控制流决策。消除秘密依赖控制流的线性化是抵御此类攻击的主要对策,但会带来不可忽视的开销。相反,平衡秘密依赖分支通常开销较小,但在高端处理器上安全性极差。因此,线性化被广泛认为是抵御CFL攻击的唯一有效对策。本文挑战这一观点,探索未被研究的替代方案:如何在高端处理器上安全地平衡秘密依赖分支?我们提出Libra,一种通用且原则性的软硬件协同设计,以高效解决高端处理器上的CFL问题。我们对文献中泄漏控制流的硬件原语进行系统分类,并提供使用我们的设计处理它们的指南。重要的是,Libra无需禁用指令缓存和预取器等性能关键硬件即可实现安全的控制流平衡。我们形式化Libra的语义,并提出一种用于保护程序的代码转换算法,证明其正确性和安全性。最后,我们在乱序RISC-V处理器上实现并评估Libra,结果显示其性能开销与不安全的平衡代码相当,且比最先进的线性化代码高出19.3%。
英文摘要:
Control-flow leakage (CFL) attacks enable an attacker to expose control-flow decisions of a victim program via side-channel observations. Linearization (i.e., elimination) of secret-dependent control flow is the main countermeasure against these attacks, yet it comes at a non-negligible cost. Conversely, balancing secret-dependent branches often incurs a smaller overhead, but is notoriously insecure on high-end processors. Hence, linearization has been widely believed to be the only effective countermeasure against CFL attacks. In this paper, we challenge this belief and investigate an unexplored alternative: how to securely balance secret-dependent branches on higher-end processors? We propose Libra, a generic and principled hardware-software codesign to efficiently address CFL on high-end processors. We perform a systematic classification of hardware primitives leaking control flow from the literature, and provide guidelines to handle them with our design. Importantly, Libra enables secure control-flow balancing without the need to disable performance-critical hardware such as the instruction cache and the prefetcher. We formalize the semantics of Libra and propose a code transformation algorithm for securing programs, which we prove correct and secure. Finally, we implement and evaluate Libra on an out-of-order RISC-V processor, showing performance overhead on par with insecure balanced code, and outperforming state-of-the-art linearized code by 19.3%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。