HybCache:面向可信执行环境的混合侧通道弹性缓存
HybCache: Hybrid Side-Channel-Resilient Caches for Trusted Execution Environments
摘要:
现代多核处理器共享高速缓存资源,以最大限度地提高高速缓存利用率和性能。然而,这使得缓存容易受到侧信道攻击的攻击,其中共享缓存行为中的定时差异被利用来推断受害者的执行模式的信息,最终泄漏私有信息。这些攻击的根本原因是共享缓存条目并以确定性方式访问它们的进程相互不信任。已经提出了针对高速缓存侧信道攻击的各种防御。然而,它们要么显著降低性能,要么施加不切实际的限制,要么只能击败某些类型的攻击。更重要的是,它们假设整个执行工作负载都需要侧通道弹性缓存,并且不允许仅针对工作负载的安全关键部分选择性地启用缓解。我们提出了一个通用的机制,一个灵活的和软分区的集关联缓存,并提出了一个混合缓存架构,称为HybCache。HybCache可以配置为仅针对隔离执行域选择性地应用侧通道弹性缓存行为,同时为非隔离执行提供常规缓存行为、容量和性能。隔离域可以包括一个或多个进程、代码的特定部分或受信任的执行环境。我们表明,以最小的硬件修改和内核支持,HybCache可以提供侧通道弹性缓存仅用于隔离执行的性能开销为3.5- 5%,而不会产生性能开销的剩余执行工作负载。我们提供了一个基于模拟器和硬件实现的HybCache的性能和面积开销进行评估,并显示它如何减轻典型的基于访问和基于竞争的缓存攻击。
英文摘要:
Modern multi-core processors share cache resources for maximum cache utilization and performance gains. However, this leaves the cache vulnerable to side-channel attacks, where timing differences in shared cache behavior are exploited to infer information on the victim's execution patterns, ultimately leaking private information. The root cause for these attacks is mutually distrusting processes sharing cache entries and accessing them in a deterministic manner. Various defenses against cache side-channel attacks have been proposed. However, they either degrade performance significantly, impose impractical restrictions, or can only defeat certain classes of these attacks. More importantly, they assume that side-channel-resilient caches are required for the entire execution workload and do not allow to selectively enable the mitigation only for the security-critical portion of the workload. We present a generic mechanism for a flexible and soft partitioning of set-associative caches and propose a hybrid cache architecture, called HybCache. HybCache can be configured to selectively apply side-channel-resilient cache behavior only for isolated execution domains, while providing the non-isolated execution with conventional cache behavior, capacity and performance. An isolation domain can include one or more processes, specific portions of code, or a Trusted Execution Environment. We show that, with minimal hardware modifications and kernel support, HybCache can provide side-channel-resilient cache only for isolated execution with a performance overhead of 3.5-5%, while incurring no performance overhead for the remaining execution workload. We provide a simulator-based and hardware implementation of HybCache to evaluate the performance and area overheads, and show how it mitigates typical access-based and contention-based cache attacks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。