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

Capacity:面向现代ARM架构的密码学强制进程内能力机制(扩展版)

Capacity: Cryptographically-Enforced In-Process Capabilities for Modern ARM Architectures (Extended Version)

Kha Dinh Duy, Kyuwon Cho, Taehyun Noh, Hojoon Lee

AI总结:

本文提出Capacity,利用ARM指针认证和内存标记扩展构建密码学强制的进程内能力访问控制机制,实现敏感对象全生命周期保护,在NGINX上仅引入约13%至17%的性能开销。

摘要:

进程内划分与访问控制已被积极探索,以提供进程内安全域的原地高效隔离。许多工作提出了利用硬件特性的划分方案,最显著的是在x86上使用称为用户空间保护密钥(PKU)的新型基于页面的内存隔离特性。遗憾的是,现代ARM架构没有等效特性。相反,较新的ARM架构引入了指针认证(PA)和内存标记扩展(MTE),使引用验证模型适应内存安全和运行时漏洞利用缓解。我们认为这些特性在划分的背景下尚未被充分探索,并且它们可以被改造以实现基于能力的进程内访问控制方案。本文提出了Capacity,一种新颖的硬件辅助进程内访问控制设计,遵循基于能力的安全原则。Capacity一致地整合了ARM上已经展现出能力固有特性的新硬件安全特性。它支持域内敏感对象的全生命周期保护——从文件系统导入到其在内存中的位置。通过使用唯一PA密钥认证的进程内域,Capacity将文件描述符和内存指针转换为密码学认证的引用,并通过其程序插桩框架和高效的系统调用监视器完全中介引用使用。我们评估了启用Capacity的NGINX Web服务器原型以及其他将敏感资源隔离到不同域的常见应用程序。我们的评估表明,Capacity对单线程Web服务器产生约17%的低性能开销,对多线程Web服务器产生13.54%的低性能开销。

英文摘要:

In-process compartmentalization and access control have been actively explored to provide in-place and efficient isolation of in-process security domains. Many works have proposed compartmentalization schemes that leverage hardware features, most notably using the new page-based memory isolation feature called Protection Keys for Userspace (PKU) on x86. Unfortunately, the modern ARM architecture does not have an equivalent feature. Instead, newer ARM architectures introduced Pointer Authentication (PA) and Memory Tagging Extension (MTE), adapting the reference validation model for memory safety and runtime exploit mitigation. We argue that those features have been underexplored in the context of compartmentalization and that they can be retrofitted to implement a capability-based in-process access control scheme. This paper presents Capacity, a novel hardware-assisted intra-process access control design that embraces capability-based security principles. Capacity coherently incorporates the new hardware security features on ARM that already exhibit inherent characteristics of capability. It supports the life-cycle protection of the domain's sensitive objects -- starting from their import from the file system to their place in memory. With intra-process domains authenticated with unique PA keys, Capacity transforms file descriptors and memory pointers into cryptographically-authenticated references and completely mediates reference usage with its program instrumentation framework and an efficient system call monitor. We evaluate our Capacity-enabled NGINX web server prototype and other common applications in which sensitive resources are isolated into different domains. Our evaluation shows that Capacity incurs a low-performance overhead of approximately 17% for the single-threaded and 13.54% for the multi-threaded webserver.

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

↑