Power Analysis Attack on Hardware Implementation of MAC-Keccak on FPGAs

Pei Luo, Yunsi Fei, Xin Fang, A. Adam Ding, Miriam Leeser, David R. Kaeli

TL;DR

This paper presents the first comprehensive side-channel analysis of MAC-Keccak implemented on FPGAs, demonstrating that unmasked hardware implementations are vulnerable to power analysis attacks. The authors develop novel leakage models and successfully recover secret key bits, highlighting the need for hardware-level countermeasures beyond software-based protections.

What Problem Does This Paper Address?

The Keccak algorithm, selected as the new SHA-3 standard, offers a novel MAC construction called MAC-Keccak. While its security has been analyzed in software, its hardware implementation, particularly on FPGAs, has remained largely unassessed for side-channel vulnerabilities. Hardware implementations are crucial for high-throughput cryptographic systems, but their parallel nature can present unique challenges for side-channel attacks compared to sequential software implementations. This paper aims to bridge this gap by providing a detailed analysis of power leakage from MAC-Keccak on FPGAs and demonstrating practical attacks.

Methods

The core of this research lies in developing and applying side-channel leakage models tailored for hardware implementations of MAC-Keccak. The authors focus on the $\theta$ operation in the first round of MAC-Keccak, as it directly involves the secret key. They propose four leakage models, primarily based on the Hamming Distance (HD) model, which posits that power consumption is proportional to the change in the number of set bits in intermediate values.

Specifically, they analyze the $\theta$ operation, which is broken down into two steps: $\theta_1$ (calculating column parity) and $\theta_2$ (combining parity with state bits). They identify critical time points within the clock cycle where intermediate values change, correlating these changes with power consumption.

The attack methodology employed is Correlation Power Analysis (CPA). This involves:

  1. Hypothesizing leakage models: Based on the hardware architecture and the $\theta$ operation.
  2. Collecting power traces: Capturing power consumption while the FPGA executes MAC-Keccak with known inputs.
  3. Generating intermediate values: For various hypothetical key guesses.
  4. Calculating correlations: Between the power traces and the predicted power consumption derived from the leakage models and hypothetical key guesses.
  5. Identifying the correct key: The key guess that yields the highest correlation is considered the most likely correct key.

The authors also explore the impact of key length on attack effectiveness and discuss how to combine different leakage models for more robust attacks.

Datasets

Not discussed in the paper. The authors generated their own inputs (messages) for the MAC-Keccak implementation on the FPGA.

Key Insights and Ideas

  • Hardware MAC-Keccak is vulnerable: Contrary to potential assumptions that hardware's parallelism might inherently obscure power leakage, this paper proves that unmasked MAC-Keccak implementations on FPGAs are indeed susceptible to power analysis attacks.
  • Novel leakage models are crucial: Standard software-based leakage models are insufficient for hardware. The authors' development of hardware-specific models, particularly focusing on the $\theta$ operation's intermediate values and timing, is a key contribution.
  • The $\theta$ operation is a prime target: Its linearity and direct involvement with the key make it a particularly effective point for side-channel attacks on MAC-Keccak.
  • Key length matters significantly: The paper demonstrates how key length influences attack complexity, with shorter keys (fitting within a single "plane" of the Keccak state) being significantly easier to attack.
  • Combining models enhances attack effectiveness: Using multiple complementary leakage models (e.g., Model I and Model III) can improve attack success rates and reduce the number of traces required.

Key Results

  • The paper successfully demonstrates practical power analysis attacks on a MAC-Keccak implementation on a Xilinx Virtex-5 FPGA.
  • They show that the side-channel power leakage for Model I (related to $\theta_1$ output) and Model II (related to $\theta_2$ output) are noticeable, with the highest correlation reaching -0.09 and -0.03 respectively in the first cycle.
  • A stronger correlation was observed in the second round, particularly with Model III (related to the state register changing to $R_1$), reaching a correlation of -0.29. This model was chosen for the main attack.
  • Using CPA based on Model III, they could recover relationships between key bytes, reducing the key guessing complexity from $2^{320}$ to $2^{64}$ for Keccak-1600.
  • By combining Model I and Model III, they could recover all key bits for a simplified MAC-Keccak setting, with recovery of one key byte achieving a success rate of around 90% using 500,000 traces.

Limitations and Future Work

  • Limited scope of attack: The primary attack focuses on the $\theta$ step in the first round. Attacks on other steps, especially the non-linear $\chi$ step, are acknowledged as more challenging due to different leakage characteristics.
  • Specific FPGA implementation: The analysis is based on a specific VHDL implementation of Keccak. Different hardware implementations or optimizations might alter leakage patterns.
  • Key length assumptions: The detailed attacks are presented for a 320-bit key length. The paper discusses scenarios with longer keys but suggests further investigation is needed for those cases.
  • Future Work:
    • Investigate attacks on other steps of the Keccak algorithm, particularly the non-linear $\chi$ step.
  • Develop more efficient attacks for general MAC-Keccak implementations with varying key lengths, bit rates, and capacities.
  • Design and assess secure MAC-Keccak implementations with effective countermeasures.
  • Explore attacks on masked implementations and investigate countermeasures like power-balanced circuits, masking, and randomization.
  • Investigate attacks on implementations where the state register is not initialized to zero.
  • Explore advanced CPA techniques, such as using multiple crest points in correlation traces to improve attack efficiency with limited traces.

Summary updated

BibTeX
@article{luo2014power,
  author = {Pei Luo and Yunsi Fei and Xin Fang and A. Adam Ding and Miriam Leeser and David R. Kaeli},
  title = {{Power Analysis Attack on Hardware Implementation of MAC-Keccak on FPGAs}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2014},
}
Figure