Quantum Leak: Timing Side-Channel Attacks on Cloud-Based Quantum Services

Chao Lu, Esha Telang, Aydin Aysu, Kanad BasuACM Great Lakes Symposium on VLSI 2024 · DOI

Abstract

Quantum computing offers significant acceleration capabilities over its classical counterpart in various application domains. Consequently, there has been substantial focus on improving quantum computing capabilities. However, to date, the security implications of these quantum computing platforms have been largely overlooked. With the emergence of cloud-based quantum computing services, it is critical to investigate the extension of classical computer security threats to the realm of quantum computing. In this study, we investigated timing-based side-channel vulnerabilities within IBM's cloud-based quantum service. The proposed attack effectively subverts the confidentiality of the executed quantum algorithm, using a more realistic threat model compared to existing approaches. Our experimental results, conducted using IBM's quantum cloud service, demonstrate that with just 10 measurements, it is possible to identify the underlying quantum computer that executed the circuit. Moreover, when evaluated using the popular Grover circuit, we showcase the ability to leak the quantum oracle with a mere 500 measurements. These findings underline the pressing need to address timing-based vulnerabilities in quantum computing platforms and advocate for enhanced security measures to safeguard sensitive quantum algorithms and data.

Introduction

As quantum computing transitions from experimental laboratories to accessible cloud environments provided by industry leaders like IBM, Google, and Amazon, it inherits classical security challenges. In classical computing, side-channel attacks (SCAs) exploit physical leakages—such as power consumption or execution time—to extract sensitive information. While previous research into quantum SCAs often assumed physical access or simplified circuit models, this study investigates the feasibility of remote timing side-channel attacks in a shared cloud environment. We demonstrate that an external user, without special privileges, can fingerprint hardware and identify victim circuits simply by monitoring execution timing.

Threat Model and Methodology

The researchers propose a realistic threat model where an adversary and a victim share a multi-tenant cloud environment. The attacker does not require access to the victim's code or the underlying hardware. Instead, the adversary submits "canary" circuits immediately before and after the victim's scheduled execution. By calculating the time difference ($\Delta T$) between their own jobs, the attacker can infer the victim's execution time.

Remote timing attack execution sequence showing the adversary's use of "canary" circuits to measure the victim's execution time (ΔT).

Statistical Analysis

To extract meaningful data from raw timing measurements, the study employed several statistical techniques to distinguish between similar execution signatures:

  • T-tests and Difference-of-Mean (DoM): Used to determine if two sets of timing data are statistically distinct.
  • Statistical Power Analysis: Used to calculate the minimum number of samples required to distinguish one circuit from another with high confidence.
  • Overlapping Coefficients: A visualization method to assess the similarity between the timing distributions of different quantum operations.
Probability density functions of execution times for two different quantum operations, illustrating the overlap that statistical analysis must overcome.

Experimental Results

The study utilized a benchmark suite of 26 quantum circuits, including Shor’s, Grover’s, and BB84 algorithms, tested on both the Qiskit Aer simulator and real IBM Quantum processors (ibm_perth, ibmq_belem, and ibm_lagos).

Key findings include:

  • Hardware Fingerprinting: Because different processors have unique gate latencies and operational frequencies, the specific chip being used could be identified with only 10 measurements.
  • User Circuit Identification (UC): Identifying which of the 26 benchmarks was running required between 1 and 18,712 measurements, depending on the similarity of the circuits.
  • Circuit Oracle Identification (CO): The attack successfully leaked secret oracles in Grover’s algorithm. While some oracles required up to 20 million measurements, others were cracked with as few as 500 measurements. In an automated cloud environment, even the higher end of this range represents a feasible long-term "slow-leak" attack.

Discussion and Countermeasures

The study found that while timing attacks are highly effective for hardware and circuit identification, certain processes like Qubit Mapping (QM) and Ansatz Identification (CA) are more resistant. This resistance stems from the fact that variations introduced by different routing techniques or rotation angles are often obscured by compiler optimizations or environmental noise.

To mitigate these vulnerabilities, the authors suggest that cloud providers implement defensive measures, such as:

  1. Artificial Jitter: Adding random noise to timers to mask execution signatures.
  2. Spatial Multi-programming: Running multiple jobs simultaneously to overlap and obscure individual timing signatures.
  3. Deterministic Compilation: While currently a vulnerability, introducing randomness into qubit mapping could serve as a shield against timing-based fingerprinting.

Future work will focus on scaling these attacks to larger systems to determine if the timing "leak" becomes more pronounced as quantum complexity increases.

Summary updated

BibTeX
@inproceedings{lu2024quantum,
  author = {Chao Lu and Esha Telang and Aydin Aysu and Kanad Basu},
  title = {{Quantum Leak: Timing Side-Channel Attacks on Cloud-Based Quantum Services}},
  booktitle = {ACM Great Lakes Symposium on VLSI},
  year = {2024},
  doi = {10.1145/3716368.3735264},
}
Figure