NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Side Channel-Assisted Inference Leakage from Machine Learning-based ECG Classification

Jialin Liu, Ning Miao, Chongzhou Fang, Houman Homayoun, Han WangarXiv 2023 · DOI

Introduction

As wearable medical devices and remote patient monitoring become ubiquitous, machine learning (ML) models are increasingly deployed to automate the detection of cardiac arrhythmias. Dynamic Time Warping (DTW) is a widely adopted algorithm for Electrocardiogram (ECG) classification due to its robustness in comparing time-series data that may be shifted or stretched. However, while the software implementations of these models are often considered secure, recent research reveals a critical hardware-level vulnerability. This study demonstrates that the internal execution flow of the DTW algorithm leaks sensitive diagnostic information through CPU cache side channels, allowing an attacker to infer whether a patient's heartbeat is normal or abnormal with high accuracy.

Methodology: The Flush+Reload Attack on DTW

The researchers identified that the privacy of medical data is susceptible to a Flush+Reload side-channel attack. This technique exploits the shared Last-Level Cache (LLC) in modern multi-core CPUs.

The Vulnerability in Dynamic Time Warping

DTW calculates the similarity between two sequences by finding an optimal alignment, known as the warping path. During computation, the algorithm must decide whether to move upward, rightward, or diagonally in a cost matrix. Crucially, these decisions are entirely dependent on the input data. Heartbeats belonging to the same diagnostic class tend to produce similar warping paths, creating a data-dependent execution signature.

The DTW warping path between two ECG sequences, illustrating the decision points that leak information through the CPU cache.

Attack Execution

The attack assumes a co-location scenario where the attacker and victim share physical hardware, a common occurrence in cloud environments. The attacker repeatedly flushes specific memory lines associated with the warping direction logic and measures the reload time. A fast reload indicates the victim process executed that specific logic. By monitoring just one warping direction (e.g., the diagonal $i+1\&j+1$) and splitting the execution trace into 100 temporal intervals, the researchers could reconstruct a "footprint" of the computation.

Experimental Setup and Results

The study utilized the ECG200 dataset, comprising 200 samples (133 Normal, 67 Abnormal). Thousands of DTW computation pairs were generated to train an inference model to map cache-access patterns back to diagnostic labels.

Performance of Inference Models

The researchers evaluated several machine learning classifiers to interpret the noisy side-channel data. A Random Forest (RF) classifier achieved the highest overall attacking success rate of 84.0%.

Comparison of attacking success rates across different machine learning classifiers, with Random Forest achieving the highest accuracy.

The attack was particularly effective at identifying "Abnormal" heartbeats, reaching a 92.3% accuracy for that specific class with a negligible false-positive rate (0.001). This suggests that the most sensitive medical information—the presence of a pathology—is paradoxically the most vulnerable to leakage.

Discussion and Mitigation

The findings underscore that the path an algorithm takes to reach a result can be as sensitive as the result itself. The high success rate even when monitoring a single warping direction highlights the severity of the leak.

To mitigate such hardware-level vulnerabilities, the authors propose several defense strategies:

  • Cache Partitioning: Isolating cache memory to prevent cross-process monitoring.
  • Access Randomization: Introducing unpredictability into cache indexing to obscure timing signals.
  • Hardware Monitoring: Utilizing performance counters to detect the characteristic signatures of Flush+Reload attacks in real-time.

Future work will focus on addressing the impact of system noise and exploring the feasibility of these attacks in more complex, real-world cloud environments.

Summary updated

BibTeX
@misc{liu2023side,
  author = {Jialin Liu and Ning Miao and Chongzhou Fang and Houman Homayoun and Han Wang},
  title = {{Side Channel-Assisted Inference Leakage from Machine Learning-based ECG Classification}},
  year = {2023},
  eprint = {2304.01990},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.01990},
}
Figure