[Paper Review] FortuneTeller: Predicting Microarchitectural Attacks via Unsupervised Deep Learning
FortuneTeller uses unsupervised RNNs (LSTM/GRU) trained on benign hardware performance counters to detect unseen microarchitectural attacks in real time, achieving high F-scores and broad attack coverage without labeled training data.
The growing security threat of microarchitectural attacks underlines the importance of robust security sensors and detection mechanisms at the hardware level. While there are studies on runtime detection of cache attacks, a generic model to consider the broad range of existing and future attacks is missing. Unfortunately, previous approaches only consider either a single attack variant, e.g. Prime+Probe, or specific victim applications such as cryptographic implementations. Furthermore, the state-of-the art anomaly detection methods are based on coarse-grained statistical models, which are not successful to detect anomalies in a large-scale real world systems. Thanks to the memory capability of advanced Recurrent Neural Networks (RNNs) algorithms, both short and long term dependencies can be learned more accurately. Therefore, we propose FortuneTeller, which for the first time leverages the superiority of RNNs to learn complex execution patterns and detects unseen microarchitectural attacks in real world systems. FortuneTeller models benign workload pattern from a microarchitectural standpoint in an unsupervised fashion, and then, it predicts how upcoming benign executions are supposed to behave. Potential attacks and malicious behaviors will be detected automatically, when there is a discrepancy between the predicted execution pattern and the runtime observation. We implement FortuneTeller based on the available hardware performance counters on Intel processors and it is trained with 10 million samples obtained from benign applications. For the first time, the latest attacks such as Meltdown, Spectre, Rowhammer and Zombieload are detected with one trained model and without observing these attacks during the training. We show that FortuneTeller achieves F-score of 0.9970.
Motivation & Objective
- Model benign microarchitectural behavior using unsupervised deep learning to detect anomalies.
- Develop a generic, application-agnostic detector that can identify unseen attacks.
- Leverage hardware performance counters as security sensors for real-time detection.
Proposed method
- Collect time-sequence data from core HPCs during benign executions.
- Train LSTM and GRU models with a sliding window to predict next counter values (self-supervised).
- Detect anomalies by comparing predictions to real-time measurements with a threshold on a detection window.
- Profile and select an optimal subset of counters to maximize detection performance.
- Evaluate on benign workloads and a suite of known and novel microarchitectural attacks.
Experimental results
Research questions
- RQ1Can unsupervised RNN models learn benign microarchitectural patterns to detect unseen attacks?
- RQ2What is the impact of counter selection and window size on detection performance and false alarms?
- RQ3How effective is FortuneTeller in real-world server and laptop environments for detecting modern attacks?
- RQ4What is the overhead of deploying FortuneTeller in live systems?
Key findings
- FortuneTeller achieves strong anomaly detection performance, with a highest reported F-score of 0.9970.
- Training uses 10 million benign samples to model normal behavior.
- Three core counters (L1_Inst_Miss, L1_Inst_Hit, LLC_Miss) provide high detection capability for diverse attacks.
- The approach detects stealthy and transient attacks such as Flush+Flush, Spectre, Meltdown, and Zombieload, including unseen variants.
- An unsupervised, counter-driven model is agnostic to target applications and can generalize to real-world workloads.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.