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

加密强制控制流完整性

Cryptographically Enforced Control Flow Integrity

Ali Jose Mashtizadeh, Andrea Bittau, David Mazieres, Dan Boneh

摘要:

最近的Pwn2Own竞赛已经证明了控制劫持攻击的持续有效性,尽管部署了包括堆栈金丝雀和ASLR在内的对策。一个强大的防御称为控制流完整性(CFI)提供了一个原则性的方法来防止这种攻击。然而,先前的CFI实现使用静态分析并且必须限制保护以保持实用。这些限制使攻击所有已知的CFI系统,在最近的工作中证明。本文提出了一种既细粒度又实用的控制流完整性(CCFI)加密方法:使用消息认证码(MAC)来保护返回地址、函数指针和vtable指针等控制流元素。这些元素上的MAC甚至可以防止对内存进行随机读/写访问的强大攻击者篡改程序控制流。我们在Clang/LLVM中实现了CCFI,利用了最近可用的加密CPU指令。我们在几个大型软件包(包括nginx,Apache和memcache)以及它们的所有依赖项上评估我们的系统。保护成本范围从3-18%的请求率下降。

英文摘要:

Recent Pwn2Own competitions have demonstrated the continued effectiveness of control hijacking attacks despite deployed countermeasures including stack canaries and ASLR. A powerful defense called Control flow Integrity (CFI) offers a principled approach to preventing such attacks. However, prior CFI implementations use static analysis and must limit protection to remain practical. These limitations have enabled attacks against all known CFI systems, as demonstrated in recent work. This paper presents a cryptographic approach to control flow integrity (CCFI) that is both fine-grain and practical: using message authentication codes (MAC) to protect control flow elements such as return addresses, function pointers, and vtable pointers. MACs on these elements prevent even powerful attackers with random read/write access to memory from tampering with program control flow. We implemented CCFI in Clang/LLVM, taking advantage of recently available cryptographic CPU instructions. We evaluate our system on several large software packages (including nginx, Apache and memcache) as well as all their dependencies. The cost of protection ranges from a 3-18% decrease in request rate.

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

↑