幽灵归来!使用返回堆栈缓冲区的投机攻击
Spectre Returns! Speculation Attacks using the Return Stack Buffer
摘要:
最近的Spectre攻击利用了推测性执行,这是现代微处理器的一个普遍使用的功能,允许敏感数据跨越保护边界。在本文中,我们介绍了一种新的幽灵类攻击,我们称之为SpectreRSB。特别是,SpectreRSB没有利用分支预测器单元,而是利用返回堆栈缓冲区(RSB),这是现代CPU中用于预测返回地址的常见预测器结构。我们表明,本地攻击(在同一个过程中,如幽灵1)和攻击SGX是可能的,通过构建概念证明攻击。我们还分析了其他类型的攻击内核或跨地址空间,并表明在一些实际和广泛使用的条件下,他们是可能的。重要的是,包括Retpoline和英特尔的微码补丁在内的所有已知防御措施都无法阻止所有SpectreRSB攻击。我们认为,未来的系统开发人员应该意识到这个漏洞,并在开发针对投机攻击的防御时考虑它。特别是,在Core-i7 Skylake和更新的处理器上(但不在英特尔的Xeon处理器系列上),一个名为RSB重新填充的补丁被用来解决RSB填充不足时的漏洞;这种防御干扰了SpectreRSB发动切换到内核的攻击的能力。我们建议在所有计算机上使用此修补程序来防御SpectreRSB。
英文摘要:
The recent Spectre attacks exploit speculative execution, a pervasively used feature of modern microprocessors, to allow the exfiltration of sensitive data across protection boundaries. In this paper, we introduce a new Spectre-class attack that we call SpectreRSB. In particular, rather than exploiting the branch predictor unit, SpectreRSB exploits the return stack buffer (RSB), a common predictor structure in modern CPUs used to predict return addresses. We show that both local attacks (within the same process such as Spectre 1) and attacks on SGX are possible by constructing proof of concept attacks. We also analyze additional types of the attack on the kernel or across address spaces and show that under some practical and widely used conditions they are possible. Importantly, none of the known defenses including Retpoline and Intel's microcode patches stop all SpectreRSB attacks. We believe that future system developers should be aware of this vulnerability and consider it in developing defenses against speculation attacks. In particular, on Core-i7 Skylake and newer processors (but not on Intel's Xeon processor line), a patch called RSB refilling is used to address a vulnerability when the RSB underfills; this defense interferes with SpectreRSB's ability to launch attacks that switch into the kernel. We recommend that this patch should be used on all machines to protect against SpectreRSB.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。