Frequency Throttling Side-Channel Attack

Chen Liu, Abhishek A. Chakraborty, Nikhil Chawla, Neer Roggel

Abstract

Modern processors dynamically control their operating frequency to optimize resource utilization, maximize energy savings, and conform to system-defined constraints. If, during the execution of a software workload, the running average of any electrical or thermal parameter exceeds its corresponding predefined threshold value, the power management architecture will reactively adjust CPU frequency to ensure safe operating conditions. In this paper, we demonstrate how such power management-based frequency throttling activity forms a source of timing side-channel information leakage, which can be exploited by an attacker to infer secret data even from a constant-cycle victim workload. The proposed frequency throttling side-channel attack can be launched by both kernel-space and user-space attackers, thus compromising security guarantees provided by isolation boundaries. We validate our attack methodology across different systems and threat models by performing experiments on a constant-cycle implementation of AES algorithm based on AES-NI instructions. The results of our experimental evaluations demonstrate that the attacker can successfully recover all bytes of an AES key by measuring encryption execution times. Finally, we discuss different options to mitigate the threat posed by frequency throttling side-channel attacks, as well as their advantages and disadvantages.

Introduction

For years, the gold standard for protecting cryptographic software against timing attacks has been "constant-cycle" programming. The logic is simple: if every input takes exactly the same number of CPU cycles to process, the execution time won't leak any secrets. However, this research identifies a critical flaw in that assumption. In modern systems, execution time is defined by the relationship Time = Cycles / Frequency. While developers can control the number of cycles, the frequency is controlled by the hardware's power management unit (PMU).

The Mechanism of Frequency Throttling

To prevent overheating or overdrawing current, processors reactively "throttle" (lower) their frequency when they hit predefined limits. Because a CPU's power consumption depends on the data it's processing (e.g., the number of bits set to '1' or Hamming weight), the frequency adjustments themselves become data-dependent. This effectively converts a power-based side-channel into a timing-based one that can be measured from software without specialized hardware.

Mechanism of frequency throttling converting power differences into timing differences.

As shown in the figure above, even if two different data inputs ($data_1$ and $data_2$) require the same number of cycles ($c1 = c2$), their different power profiles ($P1$ and $P2$) can lead to different throttled frequencies ($f_1$ and $f_2$). This results in distinct execution times ($t'_1$ and $t'_2$), creating a measurable timing leak.

Threat Models and Methodology

The attack can be mounted under two primary threat models:

  1. Privileged Attacker (Ring 0): An attacker with system privileges can artificially lower processor power limits (e.g., via Intel's RAPL) to ensure the victim workload triggers throttling.
  2. User-Space Attacker (Ring 3): An unprivileged attacker can run a "stressor" program—heavy, power-hungry code—on a neighboring CPU core. This consumes the system's shared power budget, forcing the victim's core to throttle.
System architecture and threat model for the frequency throttling attack.

The adversary triggers cryptographic operations and measures execution timing using high-resolution timers like the RDTSC instruction. By correlating these wall-clock times with hypothetical power models of the target algorithm (e.g., AES), the attacker can perform Correlation Power Analysis (CPA) using time as the leakage metric.

Experimental Evaluation

The attack was validated across multiple platforms, including Intel Skylake, Tiger Lake, Ice Lake, and AMD Cezanne architectures. The victim workload was a constant-cycle implementation of AES-128 using hardware-accelerated AES-NI instructions.

Key findings include:

  • Full Key Recovery: On an Intel Skylake system, the full 128-bit AES key was recovered in approximately 25 hours using 2 million traces.
  • Bypassing Isolation: The attack successfully recovered 14 out of 16 key bytes from an AES implementation running inside an Intel SGX enclave, proving that hardware-enforced isolation does not stop this timing leak.
  • Cross-Vendor Applicability: On an AMD Ryzen system, 14 of 16 bytes were recovered, demonstrating that the vulnerability is inherent to modern power management designs rather than a specific manufacturer's implementation.

Conclusion and Mitigations

The frequency throttling attack demonstrates that software-level "constant-cycle" guarantees are necessary but insufficient for security in the presence of dynamic hardware power management. Potential mitigations include "fuzzing" power limits to add noise or running processors at a constant, low frequency. However, these often incur significant performance penalties. Future architectural designs must aim to decouple power management decisions from fine-grained timing to eliminate this class of side-channel.

Summary updated

BibTeX
@inproceedings{liu2022frequency,
  author = {Chen Liu and Abhishek A. Chakraborty and Nikhil Chawla and Neer Roggel},
  title = {{Frequency Throttling Side-Channel Attack}},
  booktitle = {Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security},
  year = {2022},
  doi = {10.1145/3548606.3560682},
}
Figure