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

Gobi:WebAssembly作为实现库沙盒化的实用途径

Gobi: WebAssembly as a Practical Path to Library Sandboxing

Shravan Narayan, Tal Garfinkel, Sorin Lerner, Hovav Shacham, Deian Stefan

摘要:

基于软件的故障隔离(SFI)是一种强大的方法,可以减少Firefox和Apache等大型C/C++应用程序中安全漏洞的影响。不幸的是,实用的SFI工具还没有广泛使用。开发SFI工具链是一项重大的工程挑战。只是在最近几年,浏览器供应商才开始投资于构建生产质量的SFI工具,如Native Client(NaCl)到沙箱代码。此外,如果没有承诺的支持,这些工具是不可行的,例如NaCl已经停止,孤儿项目依赖于它。WebAssembly(Wasm)提供了一个有前途的解决方案-它可以支持高性能沙箱,并已被所有主要的浏览器供应商所接受-因此似乎有一个可行的未来。然而,Wasm目前只提供了一个沙箱移动代码的解决方案。为原生应用程序(如C/C++库)提供SFI需要额外的步骤。为了调和浏览器和本地平台上Wasm的不同世界,我们提出了Gobi。Gobi是一个编译器更改和运行时支持的系统,它可以用Wasm对普通的C/C++库进行沙箱化--允许它们被编译和链接到本地应用程序中。Gobi已经在libjpeg、libpng和zlib上进行了测试。根据我们开发Gobi的经验,我们最后呼吁Wasm社区和SFI研究社区将基于Wasm的模块沙盒作为一流的用例,并描述这如何使两个社区受益。附录:这篇短文最初写于2019年1月。从那时起,Gobi的实现和设计已经发生了很大的变化,因为本文中提出的一些问题已经被Wasm社区解决了。然而,仍然存在一些挑战。因此,我们在很大程度上保持了这篇论文的完整性,并在最后一节中仅提供了截至2019年11月的Wasm工具状态的简短更新。

英文摘要:

Software based fault isolation (SFI) is a powerful approach to reduce the impact of security vulnerabilities in large C/C++ applications like Firefox and Apache. Unfortunately, practical SFI tools have not been broadly available. Developing SFI toolchains are a significant engineering challenge. Only in recent years have browser vendors invested in building production quality SFI tools like Native Client (NaCl) to sandbox code. Further, without committed support, these tools are not viable, e.g. NaCl has been discontinued, orphaning projects that relied on it. WebAssembly (Wasm) offers a promising solution---it can support high performance sandboxing and has been embraced by all major browser vendors---thus seems to have a viable future. However, Wasm presently only offers a solution for sandboxing mobile code. Providing SFI for native application, such as C/C++ libraries requires additional steps. To reconcile the different worlds of Wasm on the browser and native platforms, we present Gobi. Gobi is a system of compiler changes and runtime support that can sandbox normal C/C++ libraries with Wasm---allowing them to be compiled and linked into native applications. Gobi has been tested on libjpeg, libpng, and zlib. Based on our experience developing Gobi, we conclude with a call to arms to the Wasm community and SFI research community to make Wasm based module sandboxing a first class use case and describe how this can significantly benefit both communities. Addendum: This short paper was originally written in January of 2019. Since then, the implementation and design of Gobi has evolved substantially as some of the issues raised in this paper have been addressed by the Wasm community. Nevertheless, several challenges still remain. We have thus left the paper largely intact and only provide a brief update on the state of Wasm tooling as of November 2019 in the last section.

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

↑