Vade mecum on side-channels attacks and countermeasures for the designer and the evaluator

Sylvain Guilley, Olivier Meynard, Maxime Nassar, Guillaume Duc, Philippe Hoogvorst, Houssem Maghrebi, Aziz Elaabid, Shivam Bhasin, Youssef Souissi, Nicolas Debande, Laurent Sauvage, Jean‐Luc Danger2011 · DOI

TL;DR

This paper provides a comprehensive guide for designers and evaluators on understanding and mitigating side-channel attacks (SCAs). It offers a practical framework for choosing between two primary countermeasures, masking and hiding, by analyzing their trade-offs in terms of security, cost, and environmental factors.

What Problem Does This Paper Address?

Modern embedded systems, while cryptographically secure, are vulnerable to "physical attacks" that exploit unintended information leakage. Side-channel attacks (SCAs) are a prime example, where attackers analyze physical emanations like power consumption or timing to extract secret keys. The proliferation of SCA techniques and countermeasures makes it challenging for designers to select the most effective and efficient protection strategy. This paper aims to bridge this gap by offering a clear decision-making tool for designers to assess the suitability of masking and hiding techniques against SCAs, considering real-world constraints.

Methods

The paper categorizes SCAs into two main types: those exploiting computation duration (timing attacks) and those analyzing physical quantities over time (power, electromagnetic emanations). It then delves into two key "provable" countermeasures:

  • Masking: This technique aims to randomize the sensitive data by introducing a random "mask" that is later canceled out. The paper discusses Boolean and arithmetic masking, noting their effectiveness against first-order attacks but susceptibility to higher-order attacks.
  • Hiding: This approach focuses on making the side-channel leakage independent of the secret data. Dual-rail with precharge (DPL) logic is presented as a hardware implementation of hiding, ensuring constant computation time and activity regardless of the data being processed.

The core of the paper's contribution lies in its comparative analysis of masking and hiding, particularly against Differential Power Analysis (DPA). It introduces a framework for evaluating these countermeasures based on two parameters: the amount of experimental noise (variance, $\sigma^2$) and the "backend unbalance" ($\alpha$), which quantifies imperfections in the physical implementation. This analysis is conducted using information-theoretic metrics, specifically mutual information, to quantify leakage.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • No Silver Bullet: There isn't a single countermeasure that universally outperforms the other. The optimal choice between masking and hiding depends heavily on the specific environmental conditions (noise) and the designer's ability to implement a well-balanced design.
  • Noise is a Double-Edged Sword: Increased experimental noise can reduce the effectiveness of SCAs, but it also impacts the leakage of countermeasures. The paper quantifies this trade-off.
  • Backend Balance Matters: Imperfections in the physical implementation (backend unbalance, $\alpha$) can significantly increase leakage, especially for hiding techniques.
  • Masking vs. Hiding for DPA: For DPA, masking is generally more resilient to backend unbalance, while hiding (specifically DPL) can be more secure under certain noise conditions.
  • Combined Approach: Masking and hiding can be combined to provide immunity against a broader range of implementation-level attacks, including fault injection, but this requires careful implementation to avoid new vulnerabilities.

Key Results

The paper presents detailed analysis and visualizations (Figures 2 and 3) illustrating the leakage of masking and DPL countermeasures as a function of noise ($\sigma^2$) and backend unbalance ($\alpha$). For instance, Figure 3 shows that for backend unbalances up to approximately 17%, DPL is generally the more secure choice. For specific noise ranges (e.g., $\sigma \in [24, 28]$), DPL can remain the most secure option for unbalances up to 30%. The paper provides a "decision diagram" (Figure 3) to help designers choose the most adequate countermeasure based on these parameters.

Limitations and Future Work

The authors acknowledge that while masking and hiding are effective against first-order attacks, higher-order attacks can still exploit residual leakage. They also note that achieving perfect hiding in software is challenging due to compiler optimizations and unknown CPU architectures. The paper suggests that combining masking and hiding can offer enhanced security but warns of potential new attack vectors if not implemented carefully. Future work could explore more advanced masking schemes and novel hiding techniques for software implementations, as well as further investigate the interplay between different attack classes and combined countermeasures.

Summary updated

Abstract

International audience
BibTeX
@misc{guilley2011vade,
  author = {Sylvain Guilley and Olivier Meynard and Maxime Nassar and Guillaume Duc and Philippe Hoogvorst and Houssem Maghrebi and Aziz Elaabid and Shivam Bhasin and Youssef Souissi and Nicolas Debande and Laurent Sauvage and Jean‐Luc Danger},
  title = {{Vade mecum on side-channels attacks and countermeasures for the designer and the evaluator}},
  year = {2011},
  doi = {10.1109/dtis.2011.5941419},
}
Figure