KLEESPECTRE: Detecting Information Leakage through Speculative Cache Attacks via Symbolic Execution

Guanhua Wang, Sudipta Chattopadhyay, Arnab Kumar Biswas, Tulika Mitra, Abhik Roychoudhury
9/2/2019
cs.CR

Official code: winter2020/kleespectre (37 stars, C, last commit 2020-02-28).

Abstract

Spectre attacks disclosed in early 2018 expose data leakage scenarios via cache side channels. Specifically, speculatively executed paths due to branch mis-prediction may bring secret data into the cache which are then exposed via cache side channels even after the speculative execution is squashed.

Show full abstract

Symbolic execution is a well-known test generation method to cover program paths at the level of the application software. In this paper, we extend symbolic execution with modelingof cache and speculative execution. Our tool KLEESPECTRE, built on top of the KLEE symbolic execution engine, can thus provide a testing engine to check for the data leakage through cache side-channel as shown via Spectre attacks. Our symbolic cache model can verify whether the sensitive data leakage due to speculative execution can be observed by an attacker at a given program point. Our experiments show that KLEESPECTREcan effectively detect data leakage along speculatively executed paths and our cache model can further make the leakage detection much more precise.

View on arXivView PDF

Code Implementations(1)

KLEESpectre is a symbolic execution engine with speculation semantic and cache modelling

3711C, C++Aug 30, 20196 years ago
meltdownspectrespeculative-executionsymbolic-execution

Similar Papers

Cite this paper

@article{wang2019kleespectre,
  title  = {KLEESPECTRE: Detecting Information Leakage through Speculative Cache Attacks via Symbolic Execution},
  author = {Guanhua Wang and Sudipta Chattopadhyay and Arnab Kumar Biswas and Tulika Mitra and Abhik Roychoudhury},
  year   = {2019},
  eprint = {1909.00647},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.00647}
}

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/1909.00647.svg)](https://codeofpaper.com/paper/1909.00647)

Discussion