arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.09087cs.CRcs.PFcs.PL
收藏

基于Intel SGX的WebAssembly综合可信运行时

A Comprehensive Trusted Runtime for WebAssembly with Intel SGX

Jämes Ménétrey, Marcelo Pasin, Pascal Felber, Valerio Schiavoni, Giovanni Mazzeo, Arne Hollum, Darshan Vaydia

AI总结:

本研究提出基于Intel SGX的WebAssembly可信运行时Twine,构建双向沙箱,扩展WASI提供受控OS服务与认证能力,性能达业界领先水平,已开源并合入WAMR上游。

摘要:

在实际场景中,可信执行环境(TEEs)通常承载两类不受基础设施提供商信任的负载:一是应用程序,二是专门将数据外包以进行远程处理的数据所有者。我们提出Twine——一种在TEE中运行WebAssembly编译应用的可信运行时,可构建双向沙箱。Twine利用WebAssembly(Wasm)的内存安全保证,屏蔽了TEE的复杂性,支持运行遗留应用及跨语言应用。它扩展了标准WebAssembly系统接口(WASI),提供受控的操作系统服务,重点聚焦于I/O领域。此外,通过内置的TEE机制,Twine具备认证能力,可确保运行时以及提供给应用的操作系统服务的完整性。我们使用通用基准测试和实际应用评估其性能,结果显示它与当前最优方案表现相当。针对金融科技公司Credora的案例研究表明,Twine可在生产环境中部署,性能折衷合理,与原生运行时间相比,减速幅度为0.7倍至加速1.17倍不等。最后,我们发现可通过库优化提升性能,并展示了一项此类优化可带来最高4.1倍的加速效果。Twine是开源项目,已合入上游原始Wasm运行时WAMR。

英文摘要:

In real-world scenarios, trusted execution environments (TEEs) frequently host applications that lack the trust of the infrastructure provider, as well as data owners who have specifically outsourced their data for remote processing. We present Twine, a trusted runtime for running WebAssembly-compiled applications within TEEs, establishing a two-way sandbox. Twine leverages memory safety guarantees of WebAssembly (Wasm) and abstracts the complexity of TEEs, empowering the execution of legacy and language-agnostic applications. It extends the standard WebAssembly system interface (WASI), providing controlled OS services, focusing on I/O. Additionally, through built-in TEE mechanisms, Twine delivers attestation capabilities to ensure the integrity of the runtime and the OS services supplied to the application. We evaluate its performance using general-purpose benchmarks and real-world applications, showing it compares on par with state-of-the-art solutions. A case study involving fintech company Credora reveals that Twine can be deployed in production with reasonable performance trade-offs, ranging from a 0.7x slowdown to a 1.17x speedup compared to native run time. Finally, we identify performance improvement through library optimisation, showcasing one such adjustment that leads up to 4.1x speedup. Twine is open-source and has been upstreamed into the original Wasm runtime, WAMR.

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

↑