arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.08901cs.CRcs.PL
收藏

HasTEE+:基于 Haskell 的机密云计算与分析

HasTEE+ : Confidential Cloud Computing and Analytics with Haskell

Abhiroop Sarkar, Alejandro Russo

AI总结:

本文提出嵌入 Haskell 的领域特定语言 HasTEE+,通过 tierless 编程模型、通用远程 attestation 架构和动态信息流控制,解决 TEE 编程的内存安全与信息泄漏问题,并以机密数据分析案例验证其可行性。

摘要:

机密计算是一种安全范式,它利用称为可信执行环境(TEE)的专用硬件隔离单元,在多租户云部署中保护机密代码和数据。通过将 TEE 与远程 attestation 协议集成,机密计算允许第三方建立托管在不可信云中的 enclave 的完整性。然而,诸如 Intel SGX 和 ARM TrustZone 等 TEE 解决方案提供的基于 C/C++ 的低级工具链容易受到固有的内存安全漏洞的影响,并且缺乏用于监控显式和隐式信息流泄漏的语言构造。此外,这些工具链涉及复杂的多项目层次结构,以及为验证 enclave 完整性而部署手写 attestation 协议。我们通过 HasTEE+ 来解决上述问题,HasTEE+ 是一种嵌入在 Haskell 中的领域特定语言(DSL),它能够以具有强类型安全性的高级语言对 TEE 进行编程。HasTEE+ 通过以下方式辅助多层云应用开发:(1)引入一种 tierless 编程模型,将分布式客户端-服务器交互表达为单个程序;(2)集成一种通用的远程 attestation 架构,消除了编写特定于应用的横切 attestation 代码的必要性;(3)采用动态信息流控制机制来防止显式以及隐式的数据泄漏。我们通过一个关于机密数据分析的案例研究展示了 HasTEE+ 的实用性,提出了一种适用于互不信任参与者的数据共享模式,并提供了整体性能指标。

英文摘要:

Confidential computing is a security paradigm that enables the protection of confidential code and data in a co-tenanted cloud deployment using specialized hardware isolation units called Trusted Execution Environments (TEEs). By integrating TEEs with a Remote Attestation protocol, confidential computing allows a third party to establish the integrity of an \textit{enclave} hosted within an untrusted cloud. However, TEE solutions, such as Intel SGX and ARM TrustZone, offer low-level C/C++-based toolchains that are susceptible to inherent memory safety vulnerabilities and lack language constructs to monitor explicit and implicit information-flow leaks. Moreover, the toolchains involve complex multi-project hierarchies and the deployment of hand-written attestation protocols for verifying \textit{enclave} integrity. We address the above with HasTEE+, a domain-specific language (DSL) embedded in Haskell that enables programming TEEs in a high-level language with strong type-safety. HasTEE+ assists in multi-tier cloud application development by (1) introducing a \textit{tierless} programming model for expressing distributed client-server interactions as a single program, (2) integrating a general remote-attestation architecture that removes the necessity to write application-specific cross-cutting attestation code, and (3) employing a dynamic information flow control mechanism to prevent explicit as well as implicit data leaks. We demonstrate the practicality of HasTEE+ through a case study on confidential data analytics, presenting a data-sharing pattern applicable to mutually distrustful participants and providing overall performance metrics.

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

↑