在Firefox渲染器中改进细粒度隔离(扩展版)
Retrofitting Fine Grain Isolation in the Firefox Renderer (Extended Version)
摘要:
Firefox和其他主流浏览器依赖于数十个第三方库来渲染音频、视频、图像和其他内容。这些库是漏洞的常见来源。为了减轻这种威胁,我们正在将Firefox迁移到一种架构,该架构将这些库隔离在轻量级沙箱中,从而大大降低了妥协的影响。改进隔离可能是劳动密集型的,非常容易出现安全漏洞,并且需要对性能给予高度关注。为了提供帮助,我们开发了RLBox,这是一个框架,可以最大限度地减少转换Firefox的负担,以安全有效地使用不受信任的代码。为了实现这一点,RLBox采用了直接在C++类型系统中表达的静态信息流强制和轻量级动态检查。RLBox通过基于软件的故障隔离或多核进程隔离来支持有效的沙箱。性能开销是适度和短暂的,对页面延迟只有很小的影响。我们通过对性能敏感的图像解码库(libjpeg和libpng)、视频解码库(libtheora和libvpx)、libvorbis音频解码库和zlib解压缩库进行沙箱化来证明这一点。使用WebAssembly沙箱的RLBox已集成到生产Firefox中,以沙箱化libGraphite字体整形库。
英文摘要:
Firefox and other major browsers rely on dozens of third-party libraries to render audio, video, images, and other content. These libraries are a frequent source of vulnerabilities. To mitigate this threat, we are migrating Firefox to an architecture that isolates these libraries in lightweight sandboxes, dramatically reducing the impact of a compromise. Retrofitting isolation can be labor-intensive, very prone to security bugs, and requires critical attention to performance. To help, we developed RLBox, a framework that minimizes the burden of converting Firefox to securely and efficiently use untrusted code. To enable this, RLBox employs static information flow enforcement, and lightweight dynamic checks, expressed directly in the C++ type system. RLBox supports efficient sandboxing through either software-based-fault isolation or multi-core process isolation. Performance overheads are modest and transient, and have only minor impact on page latency. We demonstrate this by sandboxing performance-sensitive image decoding libraries ( libjpeg and libpng ), video decoding libraries ( libtheora and libvpx ), the libvorbis audio decoding library, and the zlib decompression library. RLBox, using a WebAssembly sandbox, has been integrated into production Firefox to sandbox the libGraphite font shaping library.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。