防止你的错误泄露你的秘密:对鸽子洞攻击的防御
Preventing Your Faults From Telling Your Secrets: Defenses Against Pigeonhole Attacks
摘要:
新的硬件原语(如英特尔SGX)在存在不受信任或受损的操作系统的情况下保护用户级进程。这种“飞地执行”系统容易受到多个侧通道的攻击,其中之一是页面错误通道。在本文中,我们表明,页面错误侧通道有足够的信道容量,以提取加密密钥位的商品实现的加密例程在OpenSSL和Libgcrypt --泄漏27%的平均和高达100%的秘密位在许多案例研究。为了减轻这一点,我们提出了一个软件的防御,通过确定程序的内存访问行为来掩盖页面错误模式。我们表明,这样的技术可以内置到一个编译器,并实现它的一个子集的C,这是足以处理我们研究的加密例程。这种防御在一般情况下实现时可能会有高达4000倍的显着开销,但在开发人员辅助的编译器优化的帮助下,在我们的案例研究中,开销最多减少到29.22%。最后,我们讨论了硬件辅助防御的范围,并展示了一个解决方案,该解决方案可以在硬件更改的支持下将开销降低到6.77%。
英文摘要:
New hardware primitives such as Intel SGX secure a user-level process in presence of an untrusted or compromised OS. Such "enclaved execution" systems are vulnerable to several side-channels, one of which is the page fault channel. In this paper, we show that the page fault side-channel has sufficient channel capacity to extract bits of encryption keys from commodity implementations of cryptographic routines in OpenSSL and Libgcrypt --- leaking 27% on average and up to 100% of the secret bits in many case-studies. To mitigate this, we propose a software-only defense that masks page fault patterns by determinising the program's memory access behavior. We show that such a technique can be built into a compiler, and implement it for a subset of C which is sufficient to handle the cryptographic routines we study. This defense when implemented generically can have significant overhead of up to 4000X, but with help of developer-assisted compiler optimizations, the overhead reduces to at most 29.22% in our case studies. Finally, we discuss scope for hardware-assisted defenses, and show one solution that can reduce overheads to 6.77% with support from hardware changes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。