arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.19478cs.CRcs.AR
收藏

RTL2MμPATH:面向硬件安全验证的多μPATH综合

RTL2M$μ$PATH: Multi-$μ$PATH Synthesis with Applications to Hardware Security Verification

Yao Hsiao, Nikos Nikoleris, Artem Khyzha, Dominic P. Mulligan, Gustavo Petri, Christopher W. Fletcher, Caroline Trippel

AI总结:

本文提出RTL2MμPATH以自动综合处理器每条指令的多条形式化验证微架构执行路径,并基于多路径指示侧信道的观察进一步提出SynthLC,首次实现从RTL自动综合并形式化验证硬件泄漏契约。

摘要:

Check工具通过分析称为μSPEC模型的微架构抽象模型,自动化处理器的形式化内存一致性模型与安全验证。尽管该方法有效,但μSPEC模型必须手工编写,其与RTL之间的验证差距限制了Check工具的广泛采用。我们先前的工作RTL2μSPEC通过从简单处理器的SystemVerilog实现中自动综合经过形式化验证的μSPEC模型,缩小了这一差距。然而,RTL2μSPEC假设输入设计中一条指令(例如load)不能表现出多于一条微架构执行路径(μPATH,例如缓存命中或未命中路径)——即其单执行路径假设。在本文中,我们首先提出一种自动化方法与工具RTL2MμPATH,用于消除RTL2μSPEC的单执行路径假设。给定一个SystemVerilog处理器设计、指令编码和适度的设计元数据,RTL2MμPATH为每条指令找到一组完整的、经过形式化验证的μPATH。接着,我们提出一个重要观察:一条能够表现出多于一条μPATH的指令强烈表明输入设计中存在微架构侧信道。基于这一观察,我们进一步提出一种自动化方法与工具SynthLC,它通过符号信息流分析扩展RTL2MμPATH,以支持从SystemVerilog处理器设计综合多种经过形式化验证的泄漏契约。泄漏契约是当前最先进的硬件侧信道攻击防御的基础。SynthLC是首个用于形式化验证硬件遵守这些契约的自动化方法。

英文摘要:

The Check tools automate formal memory consistency model and security verification of processors by analyzing abstract models of microarchitectures, called $μ$SPEC models. Despite the efficacy of this approach, a verification gap between $μ$SPEC models, which must be manually written, and RTL limits the Check tools' broad adoption. Our prior work, called RTL2$μ$SPEC, narrows this gap by automatically synthesizing formally verified $μ$SPEC models from SystemVerilog implementations of simple processors. But, RTL2$μ$SPEC assumes input designs where an instruction (e.g., a load) cannot exhibit more than one microarchitectural execution path ($μ$PATH, e.g., a cache hit or miss path) -- its single-execution-path assumption. In this paper, we first propose an automated approach and tool, called RTL2M$μ$PATH, that resolves RTL2$μ$SPEC's single-execution-path assumption. Given a SystemVerilog processor design, instruction encodings, and modest design metadata, RTL2M$μ$PATH finds a complete set of formally verified $μ$PATHs for each instruction. Next, we make an important observation: an instruction that can exhibit more than one $μ$PATH strongly indicates the presence of a microarchitectural side channel in the input design. Based on this observation, we then propose an automated approach and tool, called SynthLC, that extends RTL2M$μ$PATH with a symbolic information flow analysis to support synthesizing a variety of formally verified leakage contracts from SystemVerilog processor designs. Leakage contracts are foundational to state-of-the-art defenses against hardware side-channel attacks. SynthLC is the first automated methodology for formally verifying hardware adherence to them.

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

↑