EKC: A Portable and Extensible Kernel Compartment for De-Privileging Commodity OS

Jiaqin Yan, Shanghai Jiao Tong University, Southern University of Science and Technology; Qiujiang Chen, Shuai Zhou, and Yuke Peng, Southern University of Science and Technology; Guoxing Chen, Shanghai Jiao Tong University; Yinqian Zhang, Southern University of Science and Technology

Kernel compartmentalization through privilege separation is an effective solution for reducing the trusted computing base of modern operating systems (OS) with monolithic kernels. However, existing approaches to kernel compartmentalization often depend on higher-privileged software or platform-specific hardware features, posing challenges to their portable deployment and practical application. In this paper, we propose Embedded Kernel Compartment (EKC), a kernel compartment that embeds itself to a commodity OS as a privileged, isolated compartment. EKC is both portable across multiple ISAs without hardware modification and extensible to multiple OSes, even those developed in different languages. Moreover, EKC can serve both kernel components and user-space applications, enabling security critical tasks and providing sensitive data storage. We implemented a prototype of EKC in Rust, which has been successfully ported to run on multiple ISAs (RISC-V and ARM) and extended to be compatible with various OS kernels (FreeRTOS, rCore, and TinyLinux) with additional security services. Through comprehensive analysis and evaluation, the results demonstrate that EKC is a practical and effective solution for kernel compartmentalization.

Category: 
Long Presentation

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {309820,
author = {Jiaqin Yan and Qiujiang Chen and Shuai Zhou and Yuke Peng and Guoxing Chen and Yinqian Zhang},
title = {{EKC}: A Portable and Extensible Kernel Compartment for {De-Privileging} Commodity {OS}},
booktitle = {34th USENIX Security Symposium (USENIX Security 25)},
year = {2025},
isbn = {978-1-939133-52-6},
address = {Seattle, WA},
pages = {7487--7506},
url = {https://www.usenix.org/conference/usenixsecurity25/presentation/yan-jiaqin},
publisher = {USENIX Association},
month = aug
}