Efficient Persistent Fault Analysis with Small Number of Chosen Plaintexts

Fan Zhang, Run Huang, Tianxiang Feng, Xue Gong, Yulong Tao, Kui Ren, Xinjie Zhao, Shize GuoIACR Trans. Cryptogr. Hardw. Embed. Syst 2023

Abstract

Persistent Fault Analysis (PFA) is a powerful class of physical attacks on block ciphers where faults persist across multiple encryption cycles. However, existing PFA techniques often suffer from high data complexity or require extensive prior knowledge of the fault's characteristics. This paper introduces Chosen-Plaintext based Persistent Fault Analysis (CPPFA), a highly efficient approach that utilizes a small set of chosen plaintexts to recover the master key. By identifying ciphertext collisions and leveraging the cipher's key schedule, CPPFA can handle multiple unknown faults with significantly lower computational and data requirements than previous state-of-the-art methods.

1. Introduction

Fault Injection Attacks (FIA) involve physical tampering with a cryptographic device to induce errors, which are then analyzed to extract secret keys. Persistent Fault Analysis (PFA) specifically targets faults that remain in the device's memory, such as a corrupted S-box lookup table. While PFA is advantageous because it does not require precise timing, traditional methods face challenges when dealing with multiple faults or when the fault's location and value are unknown. Statistical variants like Statistical Persistent Fault Analysis (SPFA) often leave a large remaining key search space, requiring substantial brute-force effort.

2. Methodology: The CPPFA Attack

The proposed CPPFA method combines statistical pruning with the precision of chosen-plaintext analysis. The attack follows a systematic process to isolate the secret key by observing how a faulty S-box behaves under controlled inputs.

2.1 Collision Detection and Impossible Values

The attacker encrypts a set of chosen plaintexts (e.g., 256 for AES-128) where only one byte is varied. If two distinct plaintexts result in the same ciphertext, a collision has occurred in the faulty S-box. These collisions reveal "impossible values"—outputs that the faulty S-box can no longer produce. These values serve as a powerful filter for candidate keys.

The CPPFA process: mapping correct S-box values to faulty ones and identifying ciphertext collisions.

2.2 Key Schedule Integration

A critical innovation of CPPFA is the integration of the key schedule into the analysis. Since the faulty S-box is often used during the generation of round keys, the attacker can verify if a candidate round key is consistent with the master key. This allows for immediate discarding of invalid candidates, drastically reducing the search space.

3. Experimental Evaluation

The researchers evaluated CPPFA through simulations on AES-128 and the lightweight LED-64 cipher. The results demonstrate a significant reduction in both data complexity and the remaining key search space compared to existing methods like PMPFA and SPFA.

3.1 Performance Comparison

As shown in the table below, CPPFA consistently outperforms other PFA variants. For AES-128 with 8 injected faults, CPPFA reduces the remaining key candidates to exactly one using only 256 chosen plaintexts. In contrast, statistical methods like SPFA may leave up to $2^{50}$ candidates.

Comparison of CPPFA with existing PFA methods in terms of data complexity and remaining key candidates.

3.2 Efficiency and Complexity

The worst-case time complexity of the attack is $O(2^{w+n_f})$, where $w$ is the byte size and $n_f$ is the number of faults. For 16 faults on AES, the attack can be completed on a standard PC in less than one hour. Interestingly, the efficiency of CPPFA improves as the number of faults increases, as more faults provide more "impossible values" to prune the key space.

4. Conclusion

CPPFA represents a significant advancement in persistent fault analysis, offering a practical and efficient means to recover master keys with minimal data. By exploiting ciphertext collisions and the key schedule, it overcomes the limitations of previous methods regarding multiple unknown faults. Future work will focus on developing hardware-level countermeasures, such as redundant S-boxes or integrity checks, to mitigate the risks posed by such persistent fault injections.

Summary updated

BibTeX
@article{zhang2023efficient,
  author = {Fan Zhang and Run Huang and Tianxiang Feng and Xue Gong and Yulong Tao and Kui Ren and Xinjie Zhao and Shize Guo},
  title = {{Efficient Persistent Fault Analysis with Small Number of Chosen Plaintexts}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2023},
  url = {https://openreview.net/forum?id=KiE_dIvFfKE},
}
Figure