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

Spectre 时代下内核安全性的研究(扩展版)

On Kernel's Safety in the Spectre Era (Extended Version)

Davide Davoli, Martin Avanzini, Tamara Rezk

AI总结:

本文研究 Spectre 时代内核安全性,放宽 Abadi 等人假设并证明内存分离下布局随机化仍具安全保证,同时提出新条件以在侧信道与推测执行威胁下形式化证明内核安全,并展示该条件可弱化为可执行的强制机制。

摘要:

地址空间布局随机化的有效性已由 Abadi 等人在共享内存模型中正式证明,但该证明依赖于对受害程序的特定假设。然而,现代操作系统在内核中实现布局随机化,与这些假设存在差异,并运行在通过系统调用进行通信的独立内存模型上。在本工作中,我们放宽了 Abadi 等人的语言假设,同时证明布局随机化在具有内存分离的系统中提供了可比较的安全保证。然而,在实践中,推测执行和侧信道被公认为对布局随机化的威胁。我们表明,对于能够利用侧信道和推测执行的攻击者,内核安全性无法恢复,并引入一个新的条件,使我们能够在 Spectre 时代正式证明内核安全性。我们的研究表明,在该条件下,系统无需依赖布局随机化即可保持安全。我们还证明该条件可以被合理地弱化,从而引出能够在 Spectre 时代为安全系统调用保证内核安全性的执行机制。

英文摘要:

The efficacy of address space layout randomization has been formally demonstrated in a shared-memory model by Abadi et al., contingent on specific assumptions about victim programs. However, modern operating systems, implementing layout randomization in the kernel, diverge from these assumptions and operate on a separate memory model with communication through system calls. In this work, we relax Abadi et al.'s language assumptions while demonstrating that layout randomization offers a comparable safety guarantee in a system with memory separation. However, in practice, speculative execution and side-channels are recognized threats to layout randomization. We show that kernel safety cannot be restored for attackers capable of using side-channels and speculative execution and introduce a new condition, that allows us to formally prove kernel safety in the Spectre era. Our research demonstrates that under this condition, the system remains safe without relying on layout randomization. We also demonstrate that our condition can be sensibly weakened, leading to enforcement mechanisms that can guarantee kernel safety for safe system calls in the Spectre era.

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

↑