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

KASR:一种可靠实用的减小OS核攻击面的方法

KASR: A Reliable and Practical Approach to Attack Surface Reduction of Commodity OS Kernels

Zhi Zhang, Yueqiang Cheng, Surya Nepal, Dongxi Liu, Qingni Shen, Fethi Rabhi

摘要:

由于大型代码库和设备驱动程序等众多特性,商用操作系统内核具有广泛的攻击面。对于真实世界的用例(例如,Apache服务器),许多内核服务未被使用,并且仅使用少量的内核代码。在所使用的代码中,某个部分仅在运行时调用,而其余部分则在内核生命周期运行中的启动和/或关闭阶段执行。在本文中,我们提出了一个可靠的和实用的系统,命名为KASR,透明地减少在运行时的商品操作系统内核的攻击面,而不需要他们的源代码。KASR系统驻留在受信任的虚拟机管理程序中,通过两步方法实现攻击面减少:(1)可靠地剥夺未使用的代码的可执行权限,以及(2)透明地分割使用的代码并选择性地激活它们。我们在Xen-4.8.2 hypervisor上实现了一个KASR原型,并在Linux内核-4.4.0-87-generic上评估了其安全有效性。我们的评估表明,KASR将内核攻击面减少了64%,并削减了40%的CVE漏洞。此外,KASR成功检测并阻止了所有6个真实世界的内核rootkit。我们用三个基准测试工具(即,SPECINT、httperf和bonnie++)。实验结果表明,KASR对所有基准测试的性能开销小于1%(与未修改的Xen hypervisor相比)。

英文摘要:

Commodity OS kernels have broad attack surfaces due to the large code base and the numerous features such as device drivers. For a real-world use case (e.g., an Apache Server), many kernel services are unused and only a small amount of kernel code is used. Within the used code, a certain part is invoked only at runtime while the rest are executed at startup and/or shutdown phases in the kernel's lifetime run. In this paper, we propose a reliable and practical system, named KASR, which transparently reduces attack surfaces of commodity OS kernels at runtime without requiring their source code. The KASR system, residing in a trusted hypervisor, achieves the attack surface reduction through a two-step approach: (1) reliably depriving unused code of executable permissions, and (2) transparently segmenting used code and selectively activating them. We implement a prototype of KASR on Xen-4.8.2 hypervisor and evaluate its security effectiveness on Linux kernel-4.4.0-87-generic. Our evaluation shows that KASR reduces the kernel attack surface by 64% and trims off 40% of CVE vulnerabilities. Besides, KASR successfully detects and blocks all 6 real-world kernel rootkits. We measure its performance overhead with three benchmark tools (i.e., SPECINT, httperf and bonnie++). The experimental results indicate that KASR imposes less than 1% performance overhead (compared to an unmodified Xen hypervisor) on all the benchmarks.

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

↑