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

InversOS:基于特权反转的AArch64应用高效控制流保护

InversOS: Efficient Control-Flow Protection for AArch64 Applications with Privilege Inversion

Zhuojia Shen, John Criswell

AI总结:

针对AArch64缺乏写保护影子栈原生支持、软件方案性能或安全性不足的问题,提出InversOS方案,利用特权反转等AArch64通用特性实现高效安全的控制流防护,性能开销较低。

摘要:

随着AArch64处理器在通用计算领域的普及度不断提升,保障AArch64系统上运行的软件免受控制流劫持攻击已成为安全计算的关键环节。影子栈会保存函数返回地址的影子副本,在受到非法修改防护并结合前向边控制流完整性的情况下,可构成针对此类攻击的有效且经实践验证的防御手段。然而,AArch64缺乏对写保护影子栈的原生支持,而软件替代方案要么会产生难以承受的性能开销,要么只能提供较弱的安全保障。\n我们提出了InversOS——首个面向AArch64用户空间应用的硬件辅助写保护影子栈方案,它利用AArch64的通用特性实现保护影子栈所需的高效地址空间内隔离(称为特权反转)。特权反转采用非传统的设计选择:让受保护应用在内核模式下运行,并将操作系统(OS)内核内存标记为用户可访问;因此InversOS结合了操作系统内核修改、编译器转换以及另一项AArch64特性的新颖组合,以确保该设计的安全性并支持遗留应用。我们证明InversOS在设计上是安全的,能够有效抵御多种控制流劫持攻击,并且在选定的基准测试和应用上表现出良好的性能(在LMBench上的开销为7.0%,在SPEC CPU 2017上为7.1%,在Nginx Web服务器上为3.0%)。

英文摘要:

With the increasing popularity of AArch64 processors in general-purpose computing, securing software running on AArch64 systems against control-flow hijacking attacks has become a critical part toward secure computation. Shadow stacks keep shadow copies of function return addresses and, when protected from illegal modifications and coupled with forward-edge control-flow integrity, form an effective and proven defense against such attacks. However, AArch64 lacks native support for write-protected shadow stacks, while software alternatives either incur prohibitive performance overhead or provide weak security guarantees. We present InversOS, the first hardware-assisted write-protected shadow stacks for AArch64 user-space applications, utilizing commonly available features of AArch64 to achieve efficient intra-address space isolation (called Privilege Inversion) required to protect shadow stacks. Privilege Inversion adopts unconventional design choices that run protected applications in the kernel mode and mark operating system (OS) kernel memory as user-accessible; InversOS therefore uses a novel combination of OS kernel modifications, compiler transformations, and another AArch64 feature to ensure the safety of doing so and to support legacy applications. We show that InversOS is secure by design, effective against various control-flow hijacking attacks, and performant on selected benchmarks and applications (incurring overhead of 7.0% on LMBench, 7.1% on SPEC CPU 2017, and 3.0% on Nginx web server).

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

↑