Detecting Spectre Attacks Using Hardware Performance Counters
- 20 May 2021
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 71 (00189340) , 1
Abstract
Spectre attacks can be catastrophic and widespread because they exploit common design flaws caused by the speculative capabilities in modern processors to leak sensitive data through side channels. Completely fixing the problem would require a redesign of the architecture for transient execution or the implementation of a new design on re-configurable hardware. However, such fixes cannot be backported to old machines with fixed hardware design. Completely replacing those machines will take a long time. Moreover, existing software patches may cause significant performance overhead. This paper proposes to detect Spectre by monitoring deviations in microarchitectural events using hardware performance counters with promising accuracy above 90 percent under a variety of workload conditions. However, the attacker may attempt to evade detection by slowing down the attack or mimicking benign programs. This paper thus compares different evasion strategies quantitatively and demonstrates that it is possible for the attacker to avoid detection when operating the attacks at a lower speed while maintaining a reasonable attack success rate. Then, we show that, in order to resist evasion, the original detector must be enhanced by randomly switching between a set of detectors using different features and sampling periods so we can keep the detection accuracy above 80 percent.Keywords
Funding Information
- National Science Foundation (CNS-2026675)
This publication has 31 references indexed in Scilit:
- New Branch Prediction Vulnerabilities in OpenSSL and Necessary Software Countermeasures2007
- Cache Attacks and Countermeasures: The Case of AES2006
- Predicting Secret Keys Via Branch Prediction2006
- SEGMENTING TIME SERIES: A SURVEY AND NOVEL APPROACH2004
- Towards Efficient Second-Order Power Analysis2004
- Electromagnetic Analysis: Concrete Results2001
- ElectroMagnetic Analysis (EMA): Measures and Counter-measures for Smart Cards2001
- A Timing Attack against RSA with the Chinese Remainder Theorem2000
- On Boolean and Arithmetic Masking against Differential Power Analysis2000
- Minimal Topology for a Radial Basis Functions Neural Network for Pattern ClassificationDigital Signal Processing, 1994