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

为RISC-V开源处理器综合硬件-软件泄漏契约

Synthesizing Hardware-Software Leakage Contracts for RISC-V Open-Source Processors

Gideon Mohr, Marco Guarnieri, Jan Reineke

AI总结:

本文提出一种半自动方法,通过契约模板和测试用例生成策略为RISC-V开源处理器Ibex和CVA6综合最精确的硬件-软件泄漏契约,实验验证了其适用性并发现了细微泄漏。

摘要:

微架构攻击通过利用缓存和推测执行等微架构优化的软件可见产物来破坏安全性。在软件层面防御此类攻击需要在指令集架构(ISA)层面提供一种能够刻画微架构泄漏的适当抽象。硬件-软件泄漏契约最近被提出作为这样一种抽象。本文提出了一种半自动方法,用于为开源微架构综合硬件-软件泄漏契约。对于给定的ISA,我们的方法依赖人类专家来(a)以契约模板的形式刻画可能契约的空间,并(b)设计一种测试用例生成策略以探索微架构的潜在泄漏。对于给定的ISA实现,随后利用这两个要素自动综合该微架构所满足的最精确泄漏契约。我们已将该方法实例化用于RISC-V ISA,并将其应用于Ibex和CVA6开源处理器。我们的实验证明了该方法的实际适用性,并揭示了细微且意外的泄漏。

英文摘要:

Microarchitectural attacks compromise security by exploiting software-visible artifacts of microarchitectural optimizations such as caches and speculative execution. Defending against such attacks at the software level requires an appropriate abstraction at the instruction set architecture (ISA) level that captures microarchitectural leakage. Hardware-software leakage contracts have recently been proposed as such an abstraction. In this paper, we propose a semi-automatic methodology for synthesizing hardware-software leakage contracts for open-source microarchitectures. For a given ISA, our approach relies on human experts to (a) capture the space of possible contracts in the form of contract templates and (b) devise a test-case generation strategy to explore a microarchitecture's potential leakage. For a given implementation of an ISA, these two ingredients are then used to automatically synthesize the most precise leakage contract that is satisfied by the microarchitecture. We have instantiated this methodology for the RISC-V ISA and applied it to the Ibex and CVA6 open-source processors. Our experiments demonstrate the practical applicability of the methodology and uncover subtle and unexpected leaks.

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

↑