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

使用ARM指针认证的商用操作系统内核控制流完整性

In-Kernel Control-Flow Integrity on Commodity OSes using ARM Pointer Authentication

Sungbae Yoo, Jinbum Park, Seolheui Kim, Yeji Kim, Taesoo Kim

摘要:

本文提出了一种内核中,基于硬件的控制流完整性(CFI)保护,称为PAL,利用ARM的指针认证(PA)。与商业的、最先进的基于PA的CFI(如iOS)相比,它提供了三个重要的好处:1)通过自动细化技术提高CFI精度,2)解决PA在内核中使用的事后问题,如抢先劫持和暴力攻击,以及3)通过后验证确保算法或实现的正确性。PAL以与操作系统无关的方式实现了这些目标,因此可以应用于Linux和FreeBSD等商业操作系统。如果用户选择,可以调整CFI保护的精度以获得更好的性能,或者以最小的工程工作量改进CFI保护的精度以获得更好的安全性。我们的评估表明,PAL引起的性能开销可以忽略不计:例如,在最新的Mac mini(M1)上,Apache基准测试的开销小于1%,Linux perf基准测试的开销为3~5%。我们的后验证方法可以帮助我们确保在内核中安全使用PA所需的安全不变式,这也揭示了iOS内核上的新攻击向量。PAL以及受CFI保护的内核将开源。

英文摘要:

This paper presents an in-kernel, hardware-based control-flow integrity (CFI) protection, called PAL, that utilizes ARM's Pointer Authentication (PA). It provides three important benefits over commercial, state-of-the-art PA-based CFIs like iOS's: 1) enhancing CFI precision via automated refinement techniques, 2) addressing hindsight problems of PA for in kernel uses such as preemptive hijacking and brute-forcing attacks, and 3) assuring the algorithmic or implementation correctness via post validation. PAL achieves these goals in an OS-agnostic manner, so could be applied to commodity OSes like Linux and FreeBSD. The precision of the CFI protection can be adjusted for better performance or improved for better security with minimal engineering efforts if a user opts in to. Our evaluation shows that PAL incurs negligible performance overhead: e.g., <1% overhead for Apache benchmark and 3~5% overhead for Linux perf benchmark on the latest Mac mini (M1). Our post-validation approach helps us ensure the security invariant required for the safe uses of PA inside the kernel, which also reveals new attack vectors on the iOS kernel. PAL as well as the CFI-protected kernels will be open sourced.

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

↑