影子堆上的亮光
Shining Light On Shadow Stacks
摘要:
控制流劫持攻击是针对C/C++程序的主要攻击手段。控制流完整性(CFI)解决方案减轻了前沿的这些攻击,即,通过函数指针和虚调用的间接调用。保护后向边缘留给堆栈金丝雀,它们很容易通过信息泄漏绕过。影子堆栈是一种用于保护向后边缘的完全精确的机制,应该与CFI缓解措施一起部署。我们提出了一个全面的分析所有可能的影子堆栈机制沿三个轴:性能,兼容性和安全性。对于性能比较,我们使用SPEC CPU 2006,而安全性和兼容性进行了定性分析。根据我们的研究,我们重新呼吁影子堆栈设计,利用专用寄存器,导致低性能开销,最小的内存开销,但牺牲兼容性。我们目前的案例研究,我们实现这样的设计,Shadesmar,在Phoronix和Apache的专用通用寄存器的安全监视器的现代架构的可行性,和Shadesmar的可部署性。我们的全面分析,包括详细的案例研究,我们的新颖的设计,允许编译器设计师和从业者选择正确的影子堆栈设计不同的使用场景。
英文摘要:
Control-Flow Hijacking attacks are the dominant attack vector against C/C++ programs. Control-Flow Integrity (CFI) solutions mitigate these attacks on the forward edge,i.e., indirect calls through function pointers and virtual calls. Protecting the backward edge is left to stack canaries, which are easily bypassed through information leaks. Shadow Stacks are a fully precise mechanism for protecting backwards edges, and should be deployed with CFI mitigations. We present a comprehensive analysis of all possible shadow stack mechanisms along three axes: performance, compatibility, and security. For performance comparisons we use SPEC CPU2006, while security and compatibility are qualitatively analyzed. Based on our study, we renew calls for a shadow stack design that leverages a dedicated register, resulting in low performance overhead, and minimal memory overhead, but sacrifices compatibility. We present case studies of our implementation of such a design, Shadesmar, on Phoronix and Apache to demonstrate the feasibility of dedicating a general purpose register to a security monitor on modern architectures, and the deployability of Shadesmar. Our comprehensive analysis, including detailed case studies for our novel design, allows compiler designers and practitioners to select the correct shadow stack design for different usage scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。