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

LeapFrog:Rowhammer指令跳过攻击

LeapFrog: The Rowhammer Instruction Skip Attack

Andrew Adiletta, M. Caner Tol, Kemal Derya, Berk Sunar, Saad Islam

AI总结:

本文提出了一种名为LeapFrog的新型Rowhammer gadget,通过篡改栈中的程序计数器值使攻击者能够绕过安全关键代码,并提供了系统化的识别方法,在OpenSSL和TLS握手等场景中验证了其有效性。

摘要:

自诞生以来,Rowhammer攻击已迅速演变成日益复杂的威胁,破坏了受害进程的数据完整性和控制流完整性。然而,攻击者仍面临识别易受攻击的目标(即Rowhammer gadgets)、理解所尝试故障的后果,以及制定能产生有用结果的攻击等挑战。在本文中,我们提出了一种新型的Rowhammer gadget,称为LeapFrog gadget,当受害代码中存在该gadget时,允许攻击者颠覆代码执行以绕过关键代码段(例如,身份验证检查逻辑、加密轮次、安全协议中的填充)。当受害代码将程序计数器(PC)值存储在用户或内核栈中(例如,函数调用期间的返回地址)时,就会出现LeapFrog gadget,一旦被篡改,返回地址会被重新定位到绕过安全关键代码模式的位置。本研究还提出了识别LeapFrog gadgets的系统化流程。该方法能够自动检测易受攻击的目标并确定最佳攻击参数。我们首先展示了对决策树算法的攻击,以显示其潜在影响。其次,我们对OpenSSL实施攻击,绕过加密并揭示明文。然后,我们使用工具扫描Open Quantum Safe库,并报告了代码中LeapFrog gadgets的数量。最后,我们通过在客户端/服务器TLS握手场景中的实际演示展示了这一新的攻击向量,成功在客户端应用程序中引发指令跳过。我们的发现扩展了Rowhammer攻击对控制流的影响,并有助于开发更强大的防御措施来应对这些日益复杂的威胁。

英文摘要:

Since its inception, Rowhammer exploits have rapidly evolved into increasingly sophisticated threats compromising data integrity and the control flow integrity of victim processes. Nevertheless, it remains a challenge for an attacker to identify vulnerable targets (i.e., Rowhammer gadgets), understand the outcome of the attempted fault, and formulate an attack that yields useful results. In this paper, we present a new type of Rowhammer gadget, called a LeapFrog gadget, which, when present in the victim code, allows an adversary to subvert code execution to bypass a critical piece of code (e.g., authentication check logic, encryption rounds, padding in security protocols). The LeapFrog gadget manifests when the victim code stores the Program Counter (PC) value in the user or kernel stack (e.g., a return address during a function call) which, when tampered with, repositions the return address to a location that bypasses a security-critical code pattern. This research also presents a systematic process to identify LeapFrog gadgets. This methodology enables the automated detection of susceptible targets and the determination of optimal attack parameters. We first show the attack on a decision tree algorithm to show the potential implications. Secondly, we employ the attack on OpenSSL to bypass the encryption and reveal the plaintext. We then use our tools to scan the Open Quantum Safe library and report on the number of LeapFrog gadgets in the code. Lastly, we demonstrate this new attack vector through a practical demonstration in a client/server TLS handshake scenario, successfully inducing an instruction skip in a client application. Our findings extend the impact of Rowhammer attacks on control flow and contribute to developing more robust defenses against these increasingly sophisticated threats.

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

↑