Differential Fault Analysis of SHA3-224 and SHA3-256

Pei Luo, Yunsi Fei, Liwei Zhang, A. Adam DingIACR ePrint 2016 · DOI

TL;DR

This paper presents the first successful Differential Fault Analysis (DFA) attacks on SHA3-224 and SHA3-256, previously uncracked by this method. By employing more realistic byte-level fault models and developing novel fault signature analysis techniques, the authors demonstrate how to recover the internal state of these hash functions, highlighting a potential security vulnerability.

What Problem Does This Paper Address?

The SHA-3 standard, based on the Keccak algorithm, is a cornerstone of modern cryptographic security. While its resistance to various attacks has been extensively studied, its vulnerability to Differential Fault Analysis (DFA) has remained largely unexplored for its smaller variants, SHA3-224 and SHA3-256. Previous DFA work on SHA-3 focused on larger variants (SHA3-384/512) and assumed an overly simplistic single-bit fault model, which is often impractical to achieve with common fault injection techniques like clock glitches or voltage variations. These techniques tend to affect multiple bits simultaneously. This paper addresses this gap by developing DFA attacks for SHA3-224 and SHA3-256 using more realistic byte-level fault models and demonstrating their effectiveness in recovering the internal state.

Methods

The core of the paper lies in developing and applying novel DFA techniques tailored for SHA3-224 and SHA3-256. Key methods include:

  • Relaxed Fault Models: Instead of the restrictive single-bit fault model, the authors adopt a more realistic byte-level fault model. This means a single fault can corrupt an entire 8-bit byte within the internal state.
  • Fault Signature (FS) Generation: The authors introduce the concept of "Fault Signatures" (FS). These are patterns observed at the output of the hash function that result from specific injected faults. By analyzing how faults propagate through the Keccak permutation (specifically the $\theta$, $\rho$, $\pi$, $\chi$, and $\iota$ operations), they can predict and characterize these signatures.
  • Recovering Intermediate States: The DFA strategy involves tracing the observed output differences (due to faults) backward through the SHA-3 rounds to identify the injected fault and recover intermediate states. The paper focuses on recovering the state at the input of the last round's $\chi$ operation ($x_{22}$) and the state at the input of the final round's $\iota$ operation ($x_{23}$).
  • Byte-Level Fault Propagation Analysis: The paper meticulously analyzes how byte-level faults propagate through the non-linear $\chi$ operation, which is crucial for understanding the resulting differential patterns.
  • Improved Attack Strategies: Two main improvements are proposed:
  • Combining Fault Signatures: Utilizing fault signatures from both the penultimate round ($FS_{x_{22}}$) and the final round ($FS_{x_{23}}$) to enhance fault identification.
  • Injecting Faults in the Final Round Input ($\iota_{23}$): This strategy aims to recover more bits of the $x_{23}$ state, thereby providing more information for subsequent analysis and improving the overall attack efficiency.

Datasets

The paper does not introduce new datasets. Instead, it relies on simulated attacks using randomly generated messages. The authors state they generate 105 random messages for each trial and inject multiple random single-byte faults (e.g., 103 faults per message for identification).

Key Insights and Ideas

  • SHA3-224/256 are Vulnerable to DFA: The most significant insight is that SHA3-224 and SHA3-256, despite their security claims, are susceptible to DFA attacks, especially under more realistic fault models.
  • Byte-Level Faults are Realistic and Effective: The assumption of single-bit faults is often too restrictive. The paper demonstrates that byte-level faults, which are more likely to occur in practice, can be effectively leveraged for attacks.
  • Fault Signatures are Powerful Predictors: The concept of fault signatures provides a systematic way to link observed output differences to specific injected faults and internal states.
  • Limited Output Size is a Challenge, but Not Insurmountable: SHA3-224 and SHA3-256 have smaller output digests than SHA3-384/512, making DFA more challenging. However, the paper shows that by carefully analyzing the available information and employing improved techniques, the internal state can still be recovered.
  • DFA Vulnerability Varies with Hash Size: The paper highlights that the difficulty of DFA attacks can differ significantly across SHA-3 variants, with smaller variants being harder to break than larger ones, which is contrary to their general security levels against other attack types.

Key Results

  • Successful Recovery of Internal State: The proposed DFA methods can effectively identify injected single-byte faults and recover the entire 1600-bit internal state ($x_{22}$) for both SHA3-224 and SHA3-256.
  • Improved Fault Identification Rates: The improved attack methods significantly increase the probability of uniquely identifying injected faults. For SHA3-256, the unique fault identification rate increases from 53.28% to 78.73% with the first improvement method.
  • Reduced Number of Faults Needed: The improved attacks require fewer injected faults to recover a substantial portion of the internal state compared to the basic attack. For instance, recovering 1,300 bits for SHA3-224 requires about 200 faults with the basic method, but only 82 with the improved method.
  • Quantifiable Recovery: The paper provides specific numbers for recovered bits and fault identification probabilities, demonstrating the practical effectiveness of their techniques. For example, they can recover 160.12 bits of $x_{23}$ for SHA3-256 on average.

Limitations and Future Work

  • Observable Output Limitation: The primary limitation for SHA3-224 and SHA3-256 is the smaller observable output digest, which provides less information for fault analysis compared to SHA3-384/512.
  • Attack Efficiency: While successful, the attack efficiency for SHA3-224 and SHA3-256 is still lower than for SHA3-384/512, especially in terms of the number of faults required for full state recovery.
  • Future Work: The authors suggest that future work should focus on developing protections for SHA-3 systems against fault injection attacks, as this area has not been thoroughly explored. They also note that the proposed methods could potentially be applied to improve DFA attacks on SHA3-512.

Summary updated

BibTeX
@article{luo2016differential,
  author = {Pei Luo and Yunsi Fei and Liwei Zhang and A. Adam Ding},
  title = {{Differential Fault Analysis of SHA3-224 and SHA3-256}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2016},
  doi = {10.1109/fdtc.2016.17},
}

Loading related content...

Figure