SpecSafe: Detecting cache side channels in a speculative world

5Citations
Citations of this article
12Readers
Mendeley users who have this article in their library.

Abstract

The high-profile Spectre attack and its variants have revealed that speculative execution may leave secret-dependent footprints in the cache, allowing an attacker to learn confidential data. However, existing static side-channel detectors either ignore speculative execution, leading to false negatives, or lack a precise cache model, leading to false positives. In this paper, somewhat surprisingly, we show that it is challenging to develop a speculation-aware static analysis with precise cache models: a combination of existing works does not necessarily catch all cache side channels. Motivated by this observation, we present a new semantic definition of security against cache-based side-channel attacks, called Speculative-Aware noninterference (SANI), which is applicable to a variety of attacks and cache models. We also develop SpecSafe to detect the violations of SANI. Unlike other speculation-aware symbolic executors, SpecSafe employs a novel program transformation so that SANI can be soundly checked by speculation-unaware side-channel detectors. SpecSafe is shown to be both scalable and accurate on a set of moderately sized benchmarks, including commonly used cryptography libraries.

Author supplied keywords

References Powered by Scopus

Differential power analysis

6016Citations
N/AReaders
Get full text

LLVM: A compilation framework for lifelong program analysis & transformation

4174Citations
N/AReaders
Get full text

Timing attacks on implementations of diffie-hellman, RSA, DSS, and other systems

3381Citations
N/AReaders
Get full text

Cited by Powered by Scopus

CtChecker: A Precise, Sound and Efficient Static Analysis for Constant-Time Programming

2Citations
N/AReaders
Get full text

Microarchitectural Side-Channel Threats, Weaknesses and Mitigations: A Systematic Mapping Study

2Citations
N/AReaders
Get full text

Quantifying and Mitigating Cache Side Channel Leakage with Differential Set

0Citations
N/AReaders
Get full text

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Cite

CITATION STYLE

APA

Brotzman, R., Zhang, D., Kandemir, M. T., & Tan, G. (2021). SpecSafe: Detecting cache side channels in a speculative world. Proceedings of the ACM on Programming Languages, 5(OOPSLA). https://doi.org/10.1145/3485506

Readers' Seniority

Tooltip

PhD / Post grad / Masters / Doc 7

100%

Readers' Discipline

Tooltip

Computer Science 9

100%

Save time finding and organizing research with Mendeley

Sign up for free