Theory and Practice of Finding Eviction Sets

Pepe Vila, Boris Köpf, José Francisco Morales
10/2/2018
cs.CR

Official code: cgvwzq/evsets (111 stars, C, Apache-2.0, last commit 2021-05-06).

Abstract

Many micro-architectural attacks rely on the capability of an attacker to efficiently find small eviction sets: groups of virtual addresses that map to the same cache set. This capability has become a decisive primitive for cache side-channel, rowhammer, and speculative execution attacks.

Show full abstract

Despite their importance, algorithms for finding small eviction sets have not been systematically studied in the literature. In this paper, we perform such a systematic study. We begin by formalizing the problem and analyzing the probability that a set of random virtual addresses is an eviction set. We then present novel algorithms, based on ideas from threshold group testing, that reduce random eviction sets to their minimal core in linear time, improving over the quadratic state-of-the-art. We complement the theoretical analysis of our algorithms with a rigorous empirical evaluation in which we identify and isolate factors that affect their reliability in practice, such as adaptive cache replacement strategies and TLB thrashing. Our results indicate that our algorithms enable finding small eviction sets much faster than before, and under conditions where this was previously deemed impractical.

View on arXivView PDF

Code Implementations(1)

cgvwzq/evsetsOfficial100%
Apache-2.0

Tool for testing and finding minimal eviction sets

11131C, JavaScriptNov 21, 20185 years agoApache-2.0

Similar Papers

Cite this paper

@article{vila2018theory,
  title  = {Theory and Practice of Finding Eviction Sets},
  author = {Pepe Vila and Boris Köpf and José Francisco Morales},
  year   = {2018},
  eprint = {1810.01497},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1810.01497}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1810.01497.svg)](https://codeofpaper.com/paper/1810.01497)

Discussion