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

基于类型的控制流完整性有效性研究

On the Effectiveness of Type-based Control Flow Integrity

Reza Mirzazade Farkhani, Saman Jafari, Sajjad Arshad, William Robertson, Engin Kirda, Hamed Okhravi

摘要:

控制流完整性(CFI)在社区中受到了极大的关注,以对抗存在内存损坏漏洞的控制劫持攻击。创建实用CFI的挑战导致了基于运行时类型检查(RTC)的新型CFI的开发。基于RTC的CFI已经在最近的一些实际工作中实现,例如GRSecurity重用攻击保护器(RAP)和LLVM-CFI。虽然有一些以前的努力,研究了其他类型的CFI技术的优势和局限性,很少有人做了评估的RTC为基础的CFI。本文从安全性和实用性两个方面对RTC的有效性进行了研究。从安全的角度来看,我们观察到,类型冲突是丰富的足够大的代码库,但利用它们来建立一个功能性的攻击是不简单的。然后,我们展示了攻击者如何使用尊重类型检查的ROP攻击变体(称为TROP)成功绕过RTC技术,并构建了两个概念验证漏洞,一个针对Nginx Web服务器,另一个针对Nginx邮件服务器。我们还讨论了实施RTC的实际挑战。我们的研究结果表明,虽然RTC对于将CFI应用于大型代码库更实用,但在面对有动机的攻击者时,其策略不够强大。

英文摘要:

Control flow integrity (CFI) has received significant attention in the community to combat control hijacking attacks in the presence of memory corruption vulnerabilities. The challenges in creating a practical CFI has resulted in the development of a new type of CFI based on runtime type checking (RTC). RTC-based CFI has been implemented in a number of recent practical efforts such as GRSecurity Reuse Attack Protector (RAP) and LLVM-CFI. While there has been a number of previous efforts that studied the strengths and limitations of other types of CFI techniques, little has been done to evaluate the RTC-based CFI. In this work, we study the effectiveness of RTC from the security and practicality aspects. From the security perspective, we observe that type collisions are abundant in sufficiently large code bases but exploiting them to build a functional attack is not straightforward. Then we show how an attacker can successfully bypass RTC techniques using a variant of ROP attacks that respect type checking (called TROP) and also built two proof-of-concept exploits, one against Nginx web server and the other against Exim mail server. We also discuss practical challenges of implementing RTC. Our findings suggest that while RTC is more practical for applying CFI to large code bases, its policy is not strong enough when facing a motivated attacker.

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

↑