arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2309.02545cs.CR
收藏

Mayhem:寄存器与栈变量的定向破坏

Mayhem: Targeted Corruption of Register and Stack Variables

Andrew J. Adiletta, M. Caner Tol, Yarkın Doröz, Berk Sunar

AI总结:

本研究提出名为Mayhem的Rowhammer衍生攻击,通过定向篡改栈中存储的寄存器值注入故障,可绕过SUDO、SSH验证并实现对OpenSSL签名的端到端攻击,证明栈与寄存器也受Rowhammer威胁。

摘要:

过去十年间,微架构中发现了大量漏洞,这些漏洞催生了多种攻击向量,也推动了防御对策研究的发展。此外,DRAM(动态随机存取存储器)的架构与物理缺陷还促成了Rowhammer(行锤)攻击的发现,这类攻击让攻击者能够在受害者的内存空间中引入位翻转。已有大量研究对Rowhammer进行了分析,并提出了彻底防御或缓解其影响的技术方案。\n在本研究中,我们进一步拓展攻击边界,展示了如何进一步利用Rowhammer向受害者进程的栈变量甚至寄存器值注入故障。我们的实现方式是:定向攻击存储在进程栈中的寄存器值——这些值随后会被刷出到内存中,从而变得易受Rowhammer攻击。当出现故障的值被恢复到寄存器中后,会在后续的运算迭代中被使用。寄存器值可以通过源代码中的潜在函数调用,或是通过主动触发信号处理程序的方式存储到栈中。我们通过将这些技术用于绕过SUDO和SSH身份验证,验证了上述发现的攻击威力。我们还进一步概述了如何利用这一新攻击向量定向攻击MySQL及其他密码学库。本研究通过大量实验克服了诸多挑战,最终实现了对OpenSSL数字签名的端到端攻击:实现了与栈和寄存器变量的共存定位,并通过阻塞窗口提供同步机制。我们的研究表明,栈和寄存器已不再能免受Rowhammer攻击的威胁。

英文摘要:

In the past decade, many vulnerabilities were discovered in microarchitectures which yielded attack vectors and motivated the study of countermeasures. Further, architectural and physical imperfections in DRAMs led to the discovery of Rowhammer attacks which give an adversary power to introduce bit flips in a victim's memory space. Numerous studies analyzed Rowhammer and proposed techniques to prevent it altogether or to mitigate its effects. In this work, we push the boundary and show how Rowhammer can be further exploited to inject faults into stack variables and even register values in a victim's process. We achieve this by targeting the register value that is stored in the process's stack, which subsequently is flushed out into the memory, where it becomes vulnerable to Rowhammer. When the faulty value is restored into the register, it will end up used in subsequent iterations. The register value can be stored in the stack via latent function calls in the source or by actively triggering signal handlers. We demonstrate the power of the findings by applying the techniques to bypass SUDO and SSH authentication. We further outline how MySQL and other cryptographic libraries can be targeted with the new attack vector. There are a number of challenges this work overcomes with extensive experimentation before coming together to yield an end-to-end attack on an OpenSSL digital signature: achieving co-location with stack and register variables, with synchronization provided via a blocking window. We show that stack and registers are no longer safe from the Rowhammer attack.

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

↑