arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1907.13245cs.CRcs.OS
收藏

EnclaveDom:可信执行环境中大TCB应用的内存分离

EnclaveDom: Privilege Separation for Large-TCB Applications in Trusted Execution Environments

Marcela S. Melara, Michael J. Freedman, Mic Bowman

摘要:

可信执行环境(TEE)(如英特尔SGX)在内存中提供硬件隔离的执行区域,称为安全区。通过仅运行安全区中最受信任的应用程序组件,TEE使开发人员能够最大限度地减少其应用程序的TCB,从而帮助保护敏感的应用程序数据。然而,将现有应用程序移植到TEE通常需要相当大的重构工作,因为TEE为标准OS功能提供了受限的接口。为了简化开发工作,TEE应用开发人员通常选择在提供完整的飞地内OS接口的库OS容器中运行其未修改的应用。然而,这种大TCB开发方法现在使敏感的内部飞地数据暴露于导入应用程序的第三方代码中的潜在错误或漏洞。重要的是,因为TEE libOS和应用在相同的飞地地址空间中运行,所以甚至libOS管理数据结构(例如,文件描述符表)可能易受攻击,其中在传统OS中,这些数据结构可以经由特权隔离来保护。我们提出了EnclaveDom,大型TCB TEE应用程序的特权分离系统,将飞地划分为标记的内存区域,并在各个飞地功能的粒度上执行每个区域的访问规则。EnclaveDom在英特尔SGX上实施,使用内存保护密钥(MPK)进行内存标记。为了评估EnclaveDom的安全性和性能影响,我们将EnclaveDom与Graphene-SGX库操作系统集成。虽然没有产品或组件可以绝对安全,但我们的原型有助于保护内部libOS管理数据结构免受应用程序级代码的篡改。在每次libOS系统调用时,EnclaveDom只授予对系统调用执行任务所需的内部数据结构的访问权。

英文摘要:

Trusted executions environments (TEEs) such as Intel(R) SGX provide hardware-isolated execution areas in memory, called enclaves. By running only the most trusted application components in the enclave, TEEs enable developers to minimize the TCB of their applications thereby helping to protect sensitive application data. However, porting existing applications to TEEs often requires considerable refactoring efforts, as TEEs provide a restricted interface to standard OS features. To ease development efforts, TEE application developers often choose to run their unmodified application in a library OS container that provides a full in-enclave OS interface. Yet, this large-TCB development approach now leaves sensitive in-enclave data exposed to potential bugs or vulnerabilities in third-party code imported into the application. Importantly, because the TEE libOS and the application run in the same enclave address space, even the libOS management data structures (e.g. file descriptor table) may be vulnerable to attack, where in traditional OSes these data structures may be protected via privilege isolation. We present EnclaveDom, a privilege separation system for large-TCB TEE applications that partitions an enclave into tagged memory regions, and enforces per-region access rules at the granularity of individual in-enclave functions. EnclaveDom is implemented on Intel SGX using Memory Protection Keys (MPK) for memory tagging. To evaluate the security and performance impact of EnclaveDom, we integrated EnclaveDom with the Graphene-SGX library OS. While no product or component can be absolutely secure, our prototype helps protect internal libOS management data structures against tampering by application-level code. At every libOS system call, EnclaveDom then only grants access to those internal data structures which the syscall needs to perform its task.

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

↑