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

STBPU:一种合理安全的分支预测单元

STBPU: A Reasonably Secure Branch Prediction Unit

Tao Zhang, Timothy Lesch, Kenneth Koltermann, Dmitry Evtyushkin

摘要:

现代处理器已经遭受了利用分支预测单元(BPU)内部的分支指令冲突的大量威胁,从窃听与秘密相关的分支操作到触发恶意推测执行。从安全和性能的角度来看,保护分支预测器往往具有挑战性。例如,分区或刷新BPU可以阻止某些基于冲突的漏洞,但仅限于有限的程度。同时,这样的缓解负面地影响分支预测准确性和进一步的CPU性能。本文提出了一种安全的BPU设计--秘密令牌分支预测单元(STBPU),它可以在最小的性能开销下抵御基于冲突的瞬时执行攻击和BPU侧信道。STBPU通过为每个需要隔离的软件实体定制BPU内部的数据表示来解决上述挑战。此外,为了防止攻击者使用暴力技术来触发恶意分支指令冲突,STBPU主动监视预测相关事件并抢先更改BPU数据表示。

英文摘要:

Modern processors have suffered a deluge of threats exploiting branch instruction collisions inside the branch prediction unit (BPU), from eavesdropping on secret-related branch operations to triggering malicious speculative executions. Protecting branch predictors tends to be challenging from both security and performance perspectives. For example, partitioning or flushing BPU can stop certain collision-based exploits but only to a limited extent. Meanwhile, such mitigations negatively affect branch prediction accuracy and further CPU performance. This paper proposes Secret Token Branch Prediction Unit (STBPU), a secure BPU design to defend against collision-based transient execution attacks and BPU side channels while incurring minimal performance overhead. STBPU resolves the challenges above by customizing data representation inside BPU for each software entity requiring isolation. In addition, to prevent an attacker from using brute force techniques to trigger malicious branch instruction collisions, STBPU actively monitors the prediction-related events and preemptively changes BPU data representation.

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

↑