Strengthening Sequential Side-Channel Attacks Through Change Detection

Luca Frittoli, Matteo Bocchi, Silvia Mella, Diego Carrera, Beatrice Rossi, Pasqualina Fragneto, Ruggero Susella, Giacomo BoracchiIACR Trans. Cryptogr. Hardw. Embed. Syst 2020

TL;DR

This paper introduces a novel methodology to significantly improve the success rate of sequential side-channel attacks (SCAs) by automatically detecting and correcting errors that occur during the key recovery process. By employing a change-detection test on the distinguisher values, the proposed method can identify and fix incorrect key guesses in real-time, making attacks more robust against noisy data and reducing the number of required measurements.

What Problem Does This Paper Address?

Side-channel attacks (SCAs) exploit physical leakage (like power consumption or timing) from cryptographic devices to extract secret keys. Many SCAs proceed in sequential steps, where each step recovers a portion of the key. A critical vulnerability in these sequential attacks is "error propagation": if an incorrect key guess is made at an early stage, all subsequent guesses will be based on faulty intermediate values, leading to a complete failure of the attack. While some error detection mechanisms exist, they are often attack-specific, heuristic, and struggle with false positives or inaccurate error localization. This paper addresses the challenge of making sequential SCAs more resilient to errors, thereby increasing their practical effectiveness, especially in scenarios with noisy side-channel data or limited measurement availability.

Methods

The core of the proposed methodology is a two-pronged approach:

  • Error Detection: The paper introduces an online change-detection test (CDT), specifically a Change Point Model (CPM) formulation, to monitor the sequence of distinguisher values generated by the attack. The CDT identifies a "change point" in the distribution of these values, which is indicative of an error occurring in the key recovery. This method is general and can be applied to any sequential attack.
  • Error Correction: Upon detecting a potential error, an error-correction procedure is activated. This involves a brute-force search within a small window around the estimated change point. A statistical test is then used to identify the key guess within this window that results in a distribution of distinguisher values consistent with the pre-error phase. To handle false positives from the CDT, the correction procedure is designed to be robust, and the analyzed window is excluded from subsequent monitoring. A greedy strategy is employed to progressively increase the search window if an initial attempt fails, balancing effectiveness and computational cost.

Datasets

The paper evaluates its methodology using the following datasets:

  • Simulated Dataset: Power traces for RSA-2048 exponentiation (using square and multiply always algorithm) were simulated. Gaussian noise was artificially added to these traces to achieve various Signal-to-Noise Ratios (SNRs), ranging from 10 dB down to -2 dB.
  • Measured Dataset: Power traces from actual RSA-2048 exponentiations (using multiply and square algorithm) were acquired using a ChipWhisperer-Pro. These traces, initially with an estimated SNR of 24 dB, were also artificially degraded with Gaussian noise to simulate lower SNRs.
  • Timing Measurements: Sets of ciphertexts were fed to an RSA-2048 exponentiation on a Cortex-M7 microcontroller, and the execution times were recorded. Different numbers of measurements (N) were used, ranging from 80,000 to 160,000, to evaluate the attack's performance.

Key Insights and Ideas

  • Error Propagation is a Major Weakness: The paper clearly demonstrates that sequential SCAs are highly susceptible to error propagation, rendering them ineffective once a single incorrect guess is made.
  • Change Detection as a Universal Detector: The core insight is that an incorrect key guess causes a detectable shift in the statistical distribution of the distinguisher values. A generic change-detection test can effectively identify this shift, regardless of the specific SCA.
  • Online Correction is Crucial: The proposed methodology performs error detection and correction online, meaning during the attack's execution. This is vital for efficiency, especially in computationally intensive attacks.
  • Robustness to False Positives: The error-correction mechanism is designed to handle false positives from the change-detection test, preventing them from derailing the entire attack.
  • Greedy Search for Efficiency: The use of a greedy brute-force search for correction, starting with small windows and expanding only when necessary, significantly reduces the computational overhead compared to a fixed, large search window.

Key Results

  • Significantly Improved Success Rates: The strengthened H-CPA attack achieved substantially higher success rates than the original attack and a threshold-based error-detection method, especially at low SNRs. For example, at SNR=1 dB, the strengthened attack reached 59.4% success, compared to 7.2% for the original and 16% for the threshold-based method on simulated data.
  • Enhanced Robustness to Noise: The methodology makes the H-CPA attack more resilient to noisy power traces.
  • Reduced Measurement Requirements: The strengthened Timing Attack achieved high success rates with significantly fewer measurements (N=160,000) compared to the original attack, which failed to recover the key even with a much larger number of traces.
  • Manageable Computational Overhead: Despite the added error detection and correction steps, the computational cost of the strengthened attacks was shown to be relatively small, particularly for the H-CPA attack.

Limitations and Future Work

  • Intrinsic Attack Limitations: The paper acknowledges that the methodology strengthens existing attacks but does not overcome their fundamental limitations or additional countermeasures like message blinding.
  • Assumption on Distinguisher Distribution: The error detection relies on the assumption that distinguisher values before and after an error follow different distributions. While the correction procedure can handle violations, a higher number of false positives might occur.
  • Future Work: The authors suggest that their methodology can be applied to other sequential attacks. They also note that for scenarios with multiple distinguisher sequences (e.g., from multiple hardware components or side-channel data sources), the error detection procedure would need to be modified to monitor these sequences in parallel.

Summary updated

BibTeX
@article{frittoli2020strengthening,
  author = {Luca Frittoli and Matteo Bocchi and Silvia Mella and Diego Carrera and Beatrice Rossi and Pasqualina Fragneto and Ruggero Susella and Giacomo Boracchi},
  title = {{Strengthening Sequential Side-Channel Attacks Through Change Detection}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2020},
  doi = {10.13154/tches.v2020.i3.1-21},
}
Figure