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

Okapi:在沙箱环境中高效保护推测性数据访问

Okapi: Efficiently Safeguarding Speculative Data Accesses in Sandboxed Environments

Philipp Schmitz, Tobias Jauch, Alex Wezel, Mohammad R. Fadiheh, Thore Tiemann, Jonah Heller, Thomas Eisenbarth, Dominik Stoffel, Wolfgang Kunz

AI总结:

本文提出Okapi,一种硬件/软件跨层架构,通过限制推测性数据访问和引入新指令,在沙箱环境中以低性能开销有效防御瞬态执行侧信道攻击。

摘要:

本文介绍了 Okapi,一种新的硬件/软件跨层架构,旨在缓解现代计算系统中的瞬态执行侧信道攻击(包括 Spectre 变体)。Okapi 为沙箱环境中的安全推测提供了硬件基础,并可以替代软件中昂贵的推测屏障。其核心在于,仅当内存页已被当前信任域非推测性地访问后,才允许对该内存页进行推测性数据访问。信任域的粒度可在软件中控制,以实现不同的安全与性能权衡。对于安全需求较低的环境,可停用该功能以消除所有性能开销。无需任何软件修改,Okapi 硬件特性即可在线程级粒度上提供针对 TES 突破攻击(例如由 Spectre-PHT 或 Spectre-BTB 发起)的全面保护。这给 SPEC CPU2017 基准测试套件带来了平均仅 3.17% 的性能开销。Okapi 引入了 OkapiReset 指令以提供额外的软件级安全支持。该指令允许进行任意自定义大小的细粒度沙箱化,在我们的 WebAssembly 运行时实验中导致 2.34% 的性能开销。此外,Okapi 提供了消除投毒攻击的可能性。为了实现最高级别的安全性,OkapiLoad 指令可防止机密数据在顺序访问后被添加到信任域中,从而强制执行弱推测非干扰性。另外,我们提出了一种硬件扩展,将 Spectre gadget 的可利用代码空间限制在程序中明确定义的区段内。因此,通过确保这些区段中不存在 gadget,开发者可以量身定制软件,从而在信任域大小和性能之间实现有利的权衡。

英文摘要:

This paper introduces Okapi, a new hardware/software cross-layer architecture designed to mitigate Transient Execution Side Channel attacks, including Spectre variants, in modern computing systems. Okapi provides a hardware basis for secure speculation in sandboxed environments and can replace expensive speculation barriers in software. At its core, it allows for speculative data accesses to a memory page only after the page has been accessed non-speculatively by the current trust domain. The granularity of the trust domains can be controlled in software to achieve different security and performance trade-offs. For environments with less stringent security needs, the features can be deactivated to remove all performance overhead. Without relying on any software modification, the Okapi hardware features provide full protection against TES breakout attacks, e.g., by Spectre-PHT or Spectre-BTB, at a thread-level granularity. This incurs an average performance overhead of only 3.17% for the SPEC CPU2017 benchmark suite. Okapi introduces the OkapiReset instruction for additional software-level security support. This instruction allows for fine-grained sandboxing with any custom size, resulting in 2.34% performance overhead in our WebAssembly runtime experiment. On top, Okapi provides the possibility to eliminate poisoning attacks. For the highest level of security, the OkapiLoad instruction prevents confidential data from being added to the trust domain after a sequential access, thereby enforcing weak speculative non-interference. In addition, we present a hardware extension that limits the exploitable code space for Spectre gadgets to well-defined sections of the program. Therefore, by ensuring the absence of gadgets in these sections, developers can tailor their software towards achieving beneficial trade-offs between the size of a trust domain and performance.

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

↑