Spectrecheck: an Approach to Detecting Speculative Execution Side Channels in Data Cache

Published In

2020 IEEE International Conference on Embedded Software and Systems (ICESS)

Document Type

Citation

Publication Date

2020

Abstract

Speculative execution has been widely used in modern CPU designs. This technique improves the CPU performance significantly. However, it may introduce the speculative execution side channels which can be exploited by attackers maliciously, such as the well-known Spectre attack. Although Spectre can expose the speculative execution side channels in data cache, it relies heavily on the training of branch predictors and timing analysis of the target physical processor. Thereby, it is difficult to predict if Spectre attack on processors that are under design in the early stage can succeed or not. For future white-box processors under design, how to identify the speculative execution side channels in data cache in the early stage is an important issue. To address this problem, we propose an approach to generating branch directions (including mis-predictions) of conditional branch instructions based on Instruction Set Architecture simulation. The predictions of the branch predictor in the processor under design will be guided by these branch directions to trigger the speculative execution side channels in data cache for detection. In our experiments, the RISC-V BOOM processor is used as a case study where the speculative execution side channel in data cache can be detected by our approach.

Rights

@ 2020 IEEE

DOI

10.1109/ICESS49830.2020.9301601

Persistent Identifier

9301601

Publisher

IEEE

Share

COinS