Correlation Power Analysis and Higher-Order Masking Implementation of WAGE

Yunsi Fei, Guang Gong, Cheng Gongye, Kalikinkar Mandal, Raghvendra Rohit, Tianhong Xu, Yunjie Yi, Nusa Zidaric

TL;DR

This paper analyzes the WAGE authenticated cipher, a lightweight cryptographic candidate, and demonstrates its vulnerability to correlation power analysis (CPA) attacks. The authors then propose and implement the first higher-order masking scheme for WAGE to enhance its security against such side-channel attacks, providing hardware implementation results.

What Problem Does This Paper Address?

The paper addresses the critical need for secure and efficient cryptographic algorithms, especially in resource-constrained environments like IoT devices. WAGE is a promising lightweight cipher candidate for the NIST LWC competition due to its small hardware footprint. However, its security against side-channel attacks, specifically power analysis, needs to be thoroughly evaluated. The paper aims to bridge this gap by first analyzing WAGE's vulnerability to CPA and then developing and evaluating a robust masking countermeasure to protect it.

Methods

The authors employ Correlation Power Analysis (CPA) to attack the unprotected WAGE implementation on an ARM Cortex-M4F microcontroller. They use a Hamming Weight (HW) model for leakage detection and the Pearson Correlation Coefficient (PCC) to recover the secret key.

To counter these attacks, they propose a higher-order masking scheme for WAGE. This scheme involves:

  • Optimized masked S-boxes: They develop t-SNI (t-strong non-interference) secure masking schemes for WAGE's S-boxes (WGP and SB) by exploiting their internal structures and using techniques like common share multiplication and randomized lookup tables.
  • Gate-level and randomized lookup table approaches: Both hardware-oriented gate-level implementations and software-oriented randomized lookup table approaches are used for masking.
  • t-SNI Security Model: The masking scheme is designed and analyzed under the t-SNI security model, which offers a good balance between security and efficiency for masking.
  • Hardware Implementation: The masked WAGE is implemented in hardware using 65nm ASIC technologies (STMicro and TSMC) for different masking orders (1st, 2nd, and 3rd).

Datasets

Not discussed in the paper. The evaluation relies on power traces collected from a hardware implementation of WAGE.

Key Insights and Ideas

  • WAGE is vulnerable to CPA: Even with a relatively small number of power traces (10,000), the unprotected WAGE implementation can be compromised by CPA attacks, revealing up to 12 rounds of its permutation. This highlights the necessity of countermeasures.
  • Higher-order masking is effective: The proposed higher-order masking scheme successfully protects WAGE against first-order leakage, as demonstrated by Test Vector Leakage Assessment (TVLA).
  • Trade-offs in masking: The paper implicitly shows the trade-offs between different masking approaches (gate-level vs. lookup table) and masking orders in terms of hardware area, latency, and security.
  • Exploiting S-box structure is key: The efficiency of the masked S-boxes is achieved by carefully exploiting their internal structures and applying advanced masking techniques.

Key Results

  • CPA Attack: The 128-bit secret key of WAGE can be recovered using 10,000 power traces. The attack successfully recovers key words in batches, demonstrating a practical vulnerability.
  • Masking Effectiveness: TVLA on the first-order masked WAGE shows no detectable leakage, even with significantly more time points than required for the unprotected version.
  • Hardware Performance:
    • The smallest 1st-order masked WAGE AE implementation in STMicro 65nm technology costs 11.2 KGE.
  • Table 4 provides detailed area and delay results for WGP, SB, and WAGE AE for different masking orders (n=2, 3, 4) in both STMicro and TSMC 65nm technologies, showing area overheads compared to unprotected implementations. For example, the WAGE AE with n=2 shares in STMicro 65nm has an area overhead of 2.9x.

Limitations and Future Work

  • Limitations:
    • The CPA attack was performed on an ARM Cortex-M4F microcontroller, and its effectiveness on other platforms might vary.
  • The paper focuses on first-order leakage for TVLA, while higher-order leakage might still be a concern for higher-order masked implementations.
  • Future Work:
    • Perform side-channel attack experiments on the higher-order masked WAGE implementations.
  • Investigate other side-channel implementations and masking techniques (e.g., threshold, unified masked multiplication, domain-oriented masking) to explore trade-offs.
  • Further analyze the performance of masked WAGE with different masking orders and technologies.

Summary updated

BibTeX
@article{fei2020correlation,
  author = {Yunsi Fei and Guang Gong and Cheng Gongye and Kalikinkar Mandal and Raghvendra Rohit and Tianhong Xu and Yunjie Yi and Nusa Zidaric},
  title = {{Correlation Power Analysis and Higher-Order Masking Implementation of WAGE}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
}

Loading related content...

Figure