arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.02852cs.CR
收藏

CompartOS:嵌入式系统的CHERI划分

CompartOS: CHERI Compartmentalization for Embedded Systems

Hesham Almatary, Michael Dodson, Jessica Clarke, Peter Rugg, Ivan Gomes, Michal Podhradsky, Peter G. Neumann, Simon W. Moore, Robert N. M. Watson

摘要:

现有的高端嵌入式系统面临着频繁的安全攻击。软件划分是一种将攻击的影响限制在受损隔间而不是整个系统的技术。不幸的是,现有的最先进的嵌入式硬件-软件解决方案不能很好地执行高端嵌入式系统的软件划分。MPU不是细粒度的,并且受到显著的可扩展性限制,因为它们只能保护少量且固定数量的存储器区域。另一方面,MMU遭受非确定性和粗粒度保护。本文介绍了CompartOS作为一个轻量级的基于链接的划分模型,高端,复杂的,主流的嵌入式系统。CompartOS建立在CHERI(一种基于功能的硬件架构)之上,以满足可扩展性、可用性、兼容性和细粒度安全目标。微基准测试表明,CompartOS的保护域穿越速度比基于MPU的IPC快95%。我们将CompartOS模型应用于复杂的现有系统,包括TCP服务器和安全关键型汽车演示。CompartOS不仅捕获了13个FreeRTOS-TCP公布的漏洞中的10个,基于MPU的保护(例如,uVisor)不能捕获,但也可以从中恢复。此外,我们的TCP吞吐量评估表明,我们的CompartOS原型比相关的基于MPU的划分模型(例如,ACES),与未受保护的系统相比,开销为15%。对于未受保护的基准RISC-V处理器,支持CHERI的FPGA LUT开销为10.4%,而支持MPU的LUT开销为7.6%,而CHERI仅产生1.3%的寄存器面积开销,而MPU为2%。

英文摘要:

Existing high-end embedded systems face frequent security attacks. Software compartmentalization is one technique to limit the attacks' effects to the compromised compartment and not the entire system. Unfortunately, the existing state-of-the-art embedded hardware-software solutions do not work well to enforce software compartmentalization for high-end embedded systems. MPUs are not fine-grained and suffer from significant scalability limitations as they can only protect a small and fixed number of memory regions. On the other hand, MMUs suffer from non-determinism and coarse-grained protection. This paper introduces CompartOS as a lightweight linkage-based compartmentalization model for high-end, complex, mainstream embedded systems. CompartOS builds on CHERI, a capability-based hardware architecture, to meet scalability, availability, compatibility, and fine-grained security goals. Microbenchmarks show that CompartOS' protection-domain crossing is 95% faster than MPU-based IPC. We applied the CompartOS model, with low effort, to complex existing systems, including TCP servers and a safety-critical automotive demo. CompartOS not only catches 10 out of 13 FreeRTOS-TCP published vulnerabilities that MPU-based protection (e.g., uVisor) cannot catch but can also recover from them. Further, our TCP throughput evaluations show that our CompartOS prototype is 52% faster than relevant MPU-based compartmentalization models (e.g., ACES), with a 15% overhead compared to an unprotected system. This comes at an FPGA's LUTs overhead of 10.4% to support CHERI for an unprotected baseline RISC-V processor, compared to 7.6% to support MPU, while CHERI only incurs 1.3% of the registers area overhead compared to 2% for MPU.

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

↑