A Statistical Model for Higher Order DPA on Masked Devices

A. Adam Ding, Liwei Zhang, Yunsi Fei, Pei LuoIACR ePrint 2014 · DOI

TL;DR

This paper introduces a statistical model to analyze higher-order Differential Power Analysis (DPA) attacks on masked cryptographic devices. It provides an explicit formula for the attack's success rate, revealing how algorithmic properties, signal-to-noise ratio (SNR), and masking interact to affect security. The work formally proves that the Centered Product Combination Function (CPCF) attack is optimal for noisy scenarios, offering crucial insights for designing more robust masked implementations.

What Problem Does This Paper Address?

Masking is a common technique to protect cryptographic devices from side-channel attacks like DPA. While effective against first-order attacks (which analyze leakage at a single point in time), masking is vulnerable to higher-order attacks that combine leakage information from multiple time points. These higher-order attacks can break masked implementations, posing a significant security risk. Existing analyses of these attacks often lack a comprehensive model that quantifies the impact of various factors like the device's internal algorithmic properties, the noise level in the power measurements, and the masking scheme itself. This paper aims to fill this gap by developing a statistical model that precisely describes the success rate of higher-order DPA on masked devices.

Methods

The authors develop a statistical model for higher-order DPA by extending existing models for first-order attacks. They begin by defining a second-order power leakage model for masked devices, considering the leakage at two time points. A key contribution is the derivation of an explicit success rate formula for the attack. This formula is based on an approximation of the Maximum Likelihood (ML) attack statistic under noisy conditions, showing its equivalence to the Centered Product Combination Function (CPCF) attack. The model quantifies the influence of algorithmic confusion coefficients (which describe how intermediate values differ for different keys) and the Signal-to-Noise Ratio (SNR) at each leakage point. The paper also extends this model to general J-th order masking schemes.

Datasets

The paper uses two types of datasets for evaluation:

  • Real Measurement Data: Power traces from a masked AES implementation on an SASEBO-GII board with a Virtex-5 FPGA.
  • Synthetic Datasets: Generated data based on the derived power leakage models, including both Gaussian and Laplace noise distributions, and variations in SNRs.

Key Insights and Ideas

  • Formal Proof of CPCF Optimality: The paper provides a formal proof that the Centered Product Combination Function (CPCF) attack is the optimal strategy for breaking masked devices in noisy environments, specifically when the signal-to-noise ratio is low. This is a significant theoretical result for the field.
  • Decoupling Security Factors: The derived success rate formula explicitly separates and quantifies the impact of algorithmic confusion properties, SNR, and the masking scheme itself. This allows designers to understand precisely how each factor contributes to or detracts from security.
  • Higher-Order Attacks are Significantly Harder: The model demonstrates that increasing the order of masking (using more random masks) dramatically increases the number of measurements required for an attack to succeed, especially in noisy conditions. This highlights the effectiveness of higher-order masking as a countermeasure.
  • Model Equivalence: The paper shows that the theoretically strongest attack (ML-attack) becomes asymptotically equivalent to the more practical CPCF attack under noisy conditions, validating the CPCF attack as a strong benchmark.

Key Results

  • Explicit Success Rate Formula: The paper derives an explicit analytical formula for the success rate of second-order and higher-order DPA attacks on masked devices. This formula is expressed in terms of algorithmic confusion coefficients and SNRs.
  • Validation with Real and Synthetic Data: The theoretical success rate formulas are validated against both real measurement data from a masked AES implementation and synthetic datasets. The theoretical curves closely match the empirical results, demonstrating the model's accuracy.
  • Impact of Noise and SNR: The results show that higher-order masking provides a greater security benefit when the noise level is high and the SNR is low. Conversely, as SNRs increase, the attack becomes easier.
  • Increased Measurement Requirements: For a J-th order masked device, the number of measurements required for an attack to succeed increases by a factor of approximately (2^J)^2 compared to an unmasked device, assuming similar SNRs. For example, a second-order attack requires roughly 4 times the measurements of a first-order attack on an unmasked device.

Limitations and Future Work

  • Hamming Weight Assumption: The derivation of the explicit success rate formula relies on the Hamming Weight leakage model. While the theoretical equivalence between ML and CPCF attacks holds for other leakage models, the specific formulas for confusion coefficients and success rates would need re-derivation for non-Hamming Weight models.
  • Parameter Estimation: The theoretical analysis assumes known parameters (like SNR and leakage model coefficients). Real-world attacks would require estimating these parameters from power data, which can reduce the attack's effectiveness. The paper acknowledges this difference between theoretical and practical attacks.
  • Future Work: The authors suggest extending the model to other leakage models and other masking schemes beyond boolean masking. Further research could also explore the impact of non-Gaussian noise distributions more broadly and investigate the practical implications of parameter estimation on attack success.

Summary updated

BibTeX
@article{ding2014statistical,
  author = {A. Adam Ding and Liwei Zhang and Yunsi Fei and Pei Luo},
  title = {{A Statistical Model for Higher Order DPA on Masked Devices}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2014},
  doi = {10.1007/978-3-662-44709-3\_9},
}
Figure