Capstone:一种基于能力的无信任安全内存访问基础(扩展版)
Capstone: A Capability-based Foundation for Trustless Secure Memory Access (Extended Version)
摘要:
基于能力的内存隔离是一种很有前途的新架构基元。软件只能通过功能句柄而不是原始指针访问低级内存,这提供了一个自然的接口来实施安全限制。现有的架构能力设计,如CHERI提供空间安全,但未能扩展到其他内存模型,安全敏感的软件设计可能需要。在本文中,我们提出了Capstone,这是一种更具表现力的架构能力设计,它支持在无信任设置中的多个现有内存隔离模型,即,而不依赖于可信的软件组件。我们展示了Capstone是如何非常适合特权边界是流体(动态可扩展)的环境,内存共享/代表团在时间和空间上都是理想的,并且这些需求与可用性问题相平衡。Capstone也可以有效地实施。我们提出了一个实现草图,并通过评估表明,其开销低于50%,在常见的用例。我们还原型的Capstone的功能模拟器,并使用它来演示六个真实世界的内存模型的可运行的实现没有可信的软件组件:三种类型的飞地为基础的TEE,线程调度器,内存分配器,和锈风格的内存安全-所有在Capstone的接口。
英文摘要:
Capability-based memory isolation is a promising new architectural primitive. Software can access low-level memory only via capability handles rather than raw pointers, which provides a natural interface to enforce security restrictions. Existing architectural capability designs such as CHERI provide spatial safety, but fail to extend to other memory models that security-sensitive software designs may desire. In this paper, we propose Capstone, a more expressive architectural capability design that supports multiple existing memory isolation models in a trustless setup, i.e., without relying on trusted software components. We show how Capstone is well-suited for environments where privilege boundaries are fluid (dynamically extensible), memory sharing/delegation are desired both temporally and spatially, and where such needs are to be balanced with availability concerns. Capstone can also be implemented efficiently. We present an implementation sketch and through evaluation show that its overhead is below 50% in common use cases. We also prototype a functional emulator for Capstone and use it to demonstrate the runnable implementations of six real-world memory models without trusted software components: three types of enclave-based TEEs, a thread scheduler, a memory allocator, and Rust-style memory safety -- all within the interface of Capstone.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。