19
0

Detecting speculative data flow vulnerabilities using weakest precondition reasoning

Abstract

Speculative execution is a hardware optimisation technique where a processor, while waiting on the completion of a computation required for an instruction, continues to execute later instructions based on a predicted value of the pending computation. It came to the forefront of security research in 2018 with the disclosure of two related attacks, Spectre and Meltdown. Since then many similar attacks have been identified. While there has been much research on using formal methods to detect speculative execution vulnerabilities based on predicted control flow, there has been significantly less on vulnerabilities based on predicted data flow. In this paper, we introduce an approach for detecting the data flow vulnerabilities, Spectre-STL and Spectre-PSF, using weakest precondition reasoning. We validate our approach on a suite of litmus tests used to validate related approaches in the literature.

View on arXiv
@article{smith2025_2504.19128,
  title={ Detecting speculative data flow vulnerabilities using weakest precondition reasoning },
  author={ Graeme Smith },
  journal={arXiv preprint arXiv:2504.19128},
  year={ 2025 }
}
Comments on this paper