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

TME-Box:通过Intel TME-MK内存加密实现可扩展的进程内隔离

TME-Box: Scalable In-Process Isolation through Intel TME-MK Memory Encryption

Martin Unterguggenberger, Lukas Lamster, David Schrammel, Martin Schwarzl, Stefan Mangard

AI总结:

针对现有进程内隔离机制域数量不足的云场景痛点,提出基于Intel TME-MK改造的TME-Box方案,通过编译器插桩实现细粒度可扩展进程内隔离,支持最多32K并发沙箱,性能开销较低。

摘要:

高效云计算依赖进程内隔离,通过在单个进程内运行工作负载来优化性能。若没有重量级进程隔离,内存安全错误会带来重大安全威胁,攻击者可借此窃取或篡改同驻其他租户的私有数据。现有进程内隔离机制无法满足现代云需求,例如MPK的16个保护域不足以在单个进程内隔离数千个云工作线程。因此,云服务提供商迫切需要在商用x86机器上实现轻量级进程内隔离。\n本文提出TME-Box,这是一种新型隔离技术,可在商用x86 CPU上实现细粒度、可扩展的沙箱隔离。通过改造原本用于虚拟机加密的Intel TME-MK,TME-Box提供了轻量高效的进程内隔离能力。TME-Box通过编译器插桩,强制沙箱在进行内存交互时使用其指定的加密密钥。这种密码学隔离可实现从单缓存行到整页的细粒度访问控制,并支持灵活的数据重定位。此外,TME-Box的设计可高效隔离最多32K个并发沙箱。我们实现了一个性能优化的TME-Box原型,利用基于x86段的寻址机制,在SPEC CPU2017基准测试套件上的评估结果显示,其数据隔离的几何平均性能开销为5.2%,代码与数据隔离的几何平均性能开销为9.7%。

英文摘要:

Efficient cloud computing relies on in-process isolation to optimize performance by running workloads within a single process. Without heavy-weight process isolation, memory safety errors pose a significant security threat by allowing an adversary to extract or corrupt the private data of other co-located tenants. Existing in-process isolation mechanisms are not suitable for modern cloud requirements, e.g., MPK's 16 protection domains are insufficient to isolate thousands of cloud workers per process. Consequently, cloud service providers have a strong need for lightweight in-process isolation on commodity x86 machines. This paper presents TME-Box, a novel isolation technique that enables fine-grained and scalable sandboxing on commodity x86 CPUs. By repurposing Intel TME-MK, which is intended for the encryption of virtual machines, TME-Box offers lightweight and efficient in-process isolation. TME-Box enforces that sandboxes use their designated encryption keys for memory interactions through compiler instrumentation. This cryptographic isolation enables fine-grained access control, from single cache lines to full pages, and supports flexible data relocation. In addition, the design of TME-Box allows the efficient isolation of up to 32K concurrent sandboxes. We present a performance-optimized TME-Box prototype, utilizing x86 segment-based addressing, that showcases geomean performance overheads of 5.2 % for data isolation and 9.7 % for code and data isolation, evaluated with the SPEC CPU2017 benchmark suite.

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

↑