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

Serberus:在编译时保护密码学代码免受幽灵攻击

Serberus: Protecting Cryptographic Code from Spectres at Compile-Time

Nicholas Mosier, Hamed Nemati, John C. Mitchell, Caroline Trippel

AI总结:

提出首个编译时全面缓解方案 Serberus,基于硬件 CFI 限制瞬态控制流并修正 CT 代码不安全模式,将密码学程序的幽灵泄露归因于四类污点原语,以更低开销实现更高安全性。

摘要:

我们提出了 Serberus,这是首个全面的缓解方案,用于在现有硬件上加固常量时间(CT)代码以抵御幽灵攻击(涉及 PHT、BTB、RSB、STL 和/或 PSF 推测原语)。Serberus 基于三个见解。首先,某些硬件控制流完整性(CFI)保护将瞬态控制流限制到可被软件分析全面考虑的程度。其次,符合公认的 CT 代码规范允许两种在后幽灵时代不安全的代码模式。第三,一旦这些代码模式得到解决,CT 程序中所有秘密的幽灵泄露都可归因于四类污点原语之一——即能在瞬态下将秘密值分配给公开类型寄存器的指令。我们在 OpenSSL、Libsodium 和 HACL* 库的密码学原语上评估了 Serberus。Serberus 平均引入 21.3% 的运行时开销,相比之下,次优的最先进软件缓解方案的开销为 24.9%,且安全性更低。

英文摘要:

We present Serberus, the first comprehensive mitigation for hardening constant-time (CT) code against Spectre attacks (involving the PHT, BTB, RSB, STL and/or PSF speculation primitives) on existing hardware. Serberus is based on three insights. First, some hardware control-flow integrity (CFI) protections restrict transient control-flow to the extent that it may be comprehensively considered by software analyses. Second, conformance to the accepted CT code discipline permits two code patterns that are unsafe in the post-Spectre era. Third, once these code patterns are addressed, all Spectre leakage of secrets in CT programs can be attributed to one of four classes of taint primitives--instructions that can transiently assign a secret value to a publicly-typed register. We evaluate Serberus on cryptographic primitives in the OpenSSL, Libsodium, and HACL* libraries. Serberus introduces 21.3% runtime overhead on average, compared to 24.9% for the next closest state-of-the-art software mitigation, which is less secure.

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

↑