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

快速选择性刷新以缓解基于争用的缓存时序攻击

Fast Selective Flushing to Mitigate Contention-based Cache Timing Attacks

Tuo Li, Sri Parameswaran

AI总结:

本文提出硬件/软件协同的快速选择性刷新机制 FaSe,通过 ISA 扩展和缓存状态位选择性刷新缓存行,在 RISC-V FPGA 上以低于 1% 的硬件开销显著降低朴素刷新的性能损失并缓解缓存时序攻击。

摘要:

缓存被广泛用于提升现代处理器的性能。通过精心驱逐缓存行并识别缓存命中/未命中时间,攻击者可以组织基于争用的缓存时序信道攻击,从受害进程中泄露信息。现有的硬件对策探索了缓存分区和随机化,但它们要么成本高昂、不适用于 L1 数据缓存,要么容易受到复杂攻击。使用缓存刷新的对策已经存在,但速度较慢,因为在缓存刷新期间必须撤出所有缓存行。本文首次提出一种基于刷新的硬件/软件协同对策,称为快速选择性刷新(FaSe)。通过利用 ISA 扩展(一条刷新指令)和缓存修改(额外的状态位与控制逻辑),FaSe 选择性地刷新缓存行,并提供一种与使用朴素刷新方法的现有方法具有相似效果的缓解方案。FaSe 在 RISC-V Rocket Core/Chip 上实现,并在运行用户程序和 Linux 操作系统的 Xilinx FPGA 上进行评估。实验结果表明,与朴素刷新方法相比,FaSe 将用户程序的时间开销显著降低 36%,将操作系统的时间开销显著降低 42%,且硬件开销不到 1%。安全测试表明,FaSe 能够缓解目标缓存时序攻击。

英文摘要:

Caches are widely used to improve performance in modern processors. By carefully evicting cache lines and identifying cache hit/miss time, contention-based cache timing channel attacks can be orchestrated to leak information from the victim process. Existing hardware countermeasures explored cache partitioning and randomization, are either costly, not applicable for the L1 data cache, or are vulnerable to sophisticated attacks. Countermeasures using cache flush exist but are slow since all cache lines have to be evacuated during a cache flush. In this paper, we propose for the first time a hardware/software flush-based countermeasure, called fast selective flushing (FaSe). By utilizing an ISA extension (one flush instruction) and cache modification (additional state bits and control logic), FaSe selectively flushes cache lines and provides a mitigation method with a similar effect to existing methods using naive flushing methods. FaSe is implemented on RISC-V Rocket Core/Chip and evaluated on Xilinx FPGA running user programs and the Linux operating system. Our experimental results show that FaSe reduces time overhead significantly by 36% for user programs and 42% for the operating system compared to the methods with naive flushing, with less than 1% hardware overhead. Our security test shows FaSe is capable of mitigating target cache timing attacks.

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

↑