arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.09606cs.CRcs.OS
收藏

BULKHEAD:利用 PKS 实现安全、可扩展且高效的内核隔离

BULKHEAD: Secure, Scalable, and Efficient Kernel Compartmentalization with PKS

Yinggang Guo, Zicheng Wang, Weiheng Bai, Qingkai Zeng, Kangjie Lu

AI总结:

本文提出 BULKHEAD,利用 Intel PKS 和轻量级内核监控器为无限数量内核隔离区提供双向隔离,并在 Linux v6.1 上实现 LKM 隔离,兼顾安全、可扩展性与低开销。

摘要:

层出不穷的漏洞迫切需要有原则的缓解措施,以限制漏洞利用造成的影响。然而,Linux 内核等商用操作系统内核的单块架构,使攻击者能够利用任一内核组件中的漏洞攻陷整个系统。内核隔离是一种遵循最小权限原则的有前景方法。但是,鉴于大量复杂组件之间相互不可信所带来的挑战,现有机制难以在安全性、可扩展性和性能之间取得平衡。本文提出 BULKHEAD,这是一种安全、可扩展且高效的内核隔离技术,可为无限数量的隔离区提供双向隔离。它利用 Intel 新的硬件特性 PKS,将数据和代码隔离到相互不可信的隔离区中,并受益于其快速隔离区切换。基于不可信假设,BULKHEAD 引入了一个轻量级内核内监控器,用于强制执行多项重要安全不变量,包括数据完整性、仅执行内存以及隔离区接口完整性。此外,它提供了一种局部性感知的两级方案,可扩展至无限数量的隔离区。我们在 Linux v6.1 上实现了一个原型系统,以对可加载内核模块(LKM)进行隔离。广泛评估证实了该方法的有效性。在系统层面影响方面,当隔离 160 个 LKM 时,BULKHEAD 对真实应用造成的平均性能开销为 2.44%。在聚焦特定隔离区时,针对 ipv6 的 ApacheBench 测试显示开销低于 2%。此外,性能几乎不受隔离区数量影响,因此具有高度可扩展性。

英文摘要:

The endless stream of vulnerabilities urgently calls for principled mitigation to confine the effect of exploitation. However, the monolithic architecture of commodity OS kernels, like the Linux kernel, allows an attacker to compromise the entire system by exploiting a vulnerability in any kernel component. Kernel compartmentalization is a promising approach that follows the least-privilege principle. However, existing mechanisms struggle with the trade-off on security, scalability, and performance, given the challenges stemming from mutual untrustworthiness among numerous and complex components. In this paper, we present BULKHEAD, a secure, scalable, and efficient kernel compartmentalization technique that offers bi-directional isolation for unlimited compartments. It leverages Intel's new hardware feature PKS to isolate data and code into mutually untrusted compartments and benefits from its fast compartment switching. With untrust in mind, BULKHEAD introduces a lightweight in-kernel monitor that enforces multiple important security invariants, including data integrity, execute-only memory, and compartment interface integrity. In addition, it provides a locality-aware two-level scheme that scales to unlimited compartments. We implement a prototype system on Linux v6.1 to compartmentalize loadable kernel modules (LKMs). Extensive evaluation confirms the effectiveness of our approach. As the system-wide impacts, BULKHEAD incurs an average performance overhead of 2.44% for real-world applications with 160 compartmentalized LKMs. While focusing on a specific compartment, ApacheBench tests on ipv6 show an overhead of less than 2%. Moreover, the performance is almost unaffected by the number of compartments, which makes it highly scalable.

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

↑