dfence:面向Spectre时代的细粒度推测屏障,实现高效且有效的硬件-软件防护(扩展版) dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre Era (Extended Version) 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-08-06
👁️ 预览文献
💡 AI 中文简介
现代处理器面临Spectre-PHT和Spectre-STL等推测执行攻击。现有软件缓解措施如SLH仅针对Spectre-PHT,且开销大;硬件缓解如SSBD对Spectre-STL性能影响大且控制粒度粗。我们提出dfence指令,用最小硬件改动推广SLH,同时缓解两类攻击。在Proteus CPU上实现,平均性能开销小于1%。还设计了类型系统,静态验证dfence指令放置正确性,便于安全采用。
领域计算机体系结构/硬件安全
适合谁读需要一定专业背景
核心贡献提出dfence指令,统一缓解Spectre-PHT和Spectre-STL,硬件改动小;设计静态类型系统验证指令放置,确保安全性。
关键数据在Proteus CPU上实现,平均性能开销小于1%
推荐理由想了解如何用一条新指令同时防住两类Spectre攻击且开销极低?这篇论文给出了优雅的硬件-软件协同方案。
关键词["推测执行攻击", "Spectre", "硬件安全", "指令集扩展", "类型系统", "性能开销"]

原文摘要

查看英文原文摘要

Speculative execution attacks such as Spectre-PHT and Spectre-STL remain a critical security concern in modern processors. While software-based mitigations like Speculative Load Hardening (SLH) offer effective protection against Spectre-PHT, they are limited in scope and require software-managed speculative masks, which can be error-prone and costly. Defenses against Spectre-STL, such as the Speculative Store Bypass Disable bit (SSBD), incur additional performance overhead and lack fine-grained control. In this work, we introduce dfence, a new CPU instruction that generalizes SLH to mitigate both Spectre-PHT and Spectre-STL with minimal hardware support. dfence enables developers to annotate sensitive registers, with the hardware ensuring that these values do not leak transiently. We implement dfence in the Proteus CPU and evaluate its security and performance, demonstrating less than 1% average performance overhead for our benchmarks. In addition, to support easy and secure adoption, we design a type system that statically verifies the correct placement of dfence instructions in code.