Compressive Sensing based Leakage Sampling and Reconstruction: A First Study

Changhai Ou, Chengju Zhou, Siew-Kei LamIACR ePrint 2018

Introduction

Traditional side-channel analysis (SCA), such as Power Analysis, relies on capturing leakage signals from cryptographic devices. To ensure signal integrity, practitioners typically adhere to the Nyquist-Shannon sampling theorem, requiring a sampling rate at least twice the highest frequency component of the target device. As modern integrated circuits reach GHz operating frequencies, the hardware requirements for high-fidelity trace capture—specifically high-end oscilloscopes—become prohibitively expensive. Furthermore, the resulting massive datasets create significant storage and processing bottlenecks.

This paper addresses the "resource wastage" inherent in traditional sampling by proposing a framework based on Compressive Sensing (CS). The authors demonstrate that because power traces are inherently sparse in certain mathematical domains, they can be accurately reconstructed from sub-Nyquist samples, effectively lowering the hardware barrier for attacking high-speed cryptographic devices.

Methodology: The Compressive Sensing Framework

The core premise of Compressive Sensing is that a signal $x$ of length $n$ can be recovered from $m$ measurements (where $m \ll n$) if the signal is sparse in some basis. The process is mathematically represented as $y = \Phi x$, where $y$ is the low-dimensional observation vector and $\Phi$ is the observation matrix.

Mathematical representation of the Compressive Sensing process where a high-dimensional sparse signal x is compressed into a low-dimensional observation y.

The proposed workflow involves three primary stages:

  1. Sparse Representation: Power traces are transformed from the time domain to a sparse domain using the Discrete Cosine Transform (DCT). In this domain, most coefficients are near zero, concentrating the signal's energy into a few significant components.
  2. Observation (Sampling): The signal is projected onto a low-dimensional space using a random Observation Matrix (such as Gaussian or Bernoulli matrices). This step represents the hardware-level compression where fewer samples are actually recorded.
  3. Reconstruction: Because the system is under-determined, the original signal is reconstructed using greedy optimization algorithms. The authors evaluated four specific algorithms: Orthogonal Matching Pursuit (OMP), Compressive Sampling Matching Pursuit (CoSaMP), Subspace Pursuit (SP), and Generalized OMP (GOMP).
The complete Compressive Sensing pipeline: (a) original signal, (b) sparse representation in the DCT domain, (c) compressed observation, and (d) the final reconstructed signal.

Experimental Validation

The authors validated their approach using two datasets:

  • AT89S52 Micro-controller: 20,000 power traces of a MOVC instruction captured via a Tektronix oscilloscope.
  • DPA Contest v1.1 (SecmatV1): A benchmark dataset featuring power traces from an unprotected DES crypto-processor implemented in an ASIC.

Key Results and Insights

  • Significant Data Reduction: The study successfully reconstructed high-fidelity signals using only 30% to 40% of the samples required by traditional Nyquist-based methods.
  • Algorithm Performance: Among the tested reconstructors, Generalized Orthogonal Matching Pursuit (GOMP) emerged as the superior choice, providing the highest Signal-to-Noise Ratio (SNR) and the lowest relative error. On the AT89S52 dataset, GOMP achieved an SNR of approximately 48 dB and a matching degree exceeding 0.99.
  • Hardware-to-Software Shift: CS effectively shifts the burden of complexity from the sampling hardware (which must be fast and expensive) to the reconstruction software (which can run on standard workstations). This makes sophisticated SCA more accessible to researchers with limited hardware budgets.
  • Sparsity vs. Frequency: The results prove that the necessary sampling rate for SCA is governed by the sparsity of the leakage signal rather than the operating frequency of the target chip.

Limitations and Future Directions

While promising, the approach has limitations. The reconstruction phase is computationally intensive, which may pose challenges for datasets containing millions of traces. Additionally, the performance of CS is sensitive to parameter tuning, specifically the sparsity level ($k$) and the number of measurements ($m$).

Future research should focus on optimizing reconstruction for real-time evaluations and conducting full Correlation Power Analysis (CPA) to quantify exactly how reduced sampling impacts the "measurements to disclosure" (MTD) metric.

Summary updated

BibTeX
@article{ou2018compressive,
  author = {Changhai Ou and Chengju Zhou and Siew-Kei Lam},
  title = {{Compressive Sensing based Leakage Sampling and Reconstruction: A First Study}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2018},
}
Figure