HasTEE:使用Haskell编程可信执行环境
HasTEE: Programming Trusted Execution Environments with Haskell
AI总结:
针对TEE现有编程模型需手动分区、依赖不安全底层库的问题,提出嵌入Haskell的DSL HasTEE,利用类型系统自动分区与信息流控制,以安全库形式实现且无需修改GHC,通过多案例验证了适用性。
摘要:
可信执行环境(Trusted Execution Environments, TEEs)是硬件强制实现的内存隔离单元,正成为安全关键应用的核心安全解决方案。Intel SGX、ARM TrustZone等TEE可在云、物联网等不可信主机环境中隔离机密代码与数据。尽管TEE具备强安全保障,但笨拙的编程模型阻碍了其应用:该模型需要手动进行应用分区,且需使用易出错、内存不安全且可能泄露信息的底层C/C++库。\n 我们提出\textit{HasTEE}以解决上述问题,它是嵌入在Haskell中的领域特定语言(DSL),用于编写TEE应用程序。HasTEE包含面向Intel-SGX TEE的GHC运行时移植版本。它利用Haskell的类型系统自动完成应用分区,并对机密数据强制实施\textit{信息流控制(Information Flow Control)}。该DSL嵌入在Haskell中,支持使用高阶函数、Monad和受限I/O操作集编写任意标准Haskell应用。与此前研究不同,HasTEE轻量、简洁,以\textit{简易安全库}的形式提供,无需修改GHC。我们通过实现联邦学习、加密密码钱包、差分隐私数据洁净室三个案例,验证了HasTEE的适用性。
英文摘要:
Trusted Execution Environments (TEEs) are hardware-enforced memory isolation units, emerging as a pivotal security solution for security-critical applications. TEEs, like Intel SGX and ARM TrustZone, allow the isolation of confidential code and data within an untrusted host environment, such as the cloud and IoT. Despite strong security guarantees, TEE adoption has been hindered by an awkward programming model. This model requires manual application partitioning and the use of error-prone, memory-unsafe, and potentially information-leaking low-level C/C++ libraries. We address the above with \textit{HasTEE}, a domain-specific language (DSL) embedded in Haskell for programming TEE applications. HasTEE includes a port of the GHC runtime for the Intel-SGX TEE. HasTEE uses Haskell's type system to automatically partition an application and to enforce \textit{Information Flow Control} on confidential data. The DSL, being embedded in Haskell, allows for the usage of higher-order functions, monads, and a restricted set of I/O operations to write any standard Haskell application. Contrary to previous work, HasTEE is lightweight, simple, and is provided as a \emph{simple security library}; thus avoiding any GHC modifications. We show the applicability of HasTEE by implementing case studies on federated learning, an encrypted password wallet, and a differentially-private data clean room.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。