Abstract
Persistent Fault Attacks (PFA) pose a significant threat to cryptographic implementations by corrupting stored constants like the AES S-box. Traditional countermeasures, such as Dual Modular Redundancy (DMR), often fail because the fault persists across redundant modules. This paper presents a lightweight, two-stage algorithm designed for both rapid detection and real-time correction of PFAs. By leveraging the internal "closed loop" structure of the S-box for detection and an adjacency-based redundancy table for correction, the proposed method achieves a 40% reduction in time cost compared to standard DMR while maintaining high security and availability.
Introduction
Fault Attacks (FA) traditionally rely on transient glitches to disrupt single computations. However, Persistent Fault Attacks (PFA) target the underlying hardware or memory where algorithm constants are stored, such as the AES S-box in RAM or registers. Because these faults remain across multiple encryption cycles, attackers can use statistical analysis of ciphertexts to extract secret keys.
Classical defenses like Dual Modular Redundancy (DMR) are ineffective against PFAs. In a DMR setup, if the primary S-box is corrupted, the redundant module—which often shares the same memory or is initialized from the same source—will produce the same erroneous result, allowing the fault to bypass the discriminator.
Methodology
The proposed defense mechanism operates in two stages: Fast-Detection and Fault-Correction.
Fast-Detection via Closed Loops
The AES S-box can be mathematically modeled as a functional graph consisting of several "closed loops." For instance, if $S(x) = y$ and $S(y) = z$, the sequence eventually returns to $x$. The authors identified five distinct loops within the S-box: a blue loop (87 elements), a green loop (81 elements), an orange loop (59 elements), a black loop (27 elements), and a red loop (2 elements).
By selecting a specific 16-byte input and iterating the SubBytes module 20 times, the algorithm can traverse these loops and verify the integrity of every element. If the final state deviates from the expected constant, a fault is detected.
Fault-Correction via Adjacency Tables
To ensure system availability, the algorithm corrects detected faults using a novel redundancy approach. Instead of a simple S-box clone, the system stores adjacency tables representing the bitwise XOR relationships between neighboring S-box elements. When a fault is identified, a "majority vote" logic uses the four surrounding neighbors to recalculate the correct value of the corrupted byte, allowing for on-the-fly repair.
Experimental Results
The algorithm was validated on both an STM32F103 microcontroller and a DE2-115 FPGA.
- Security: In simulations with 10,000 random plaintexts, the "D&C-AES" implementation successfully masked all statistical bias, preventing key recovery. In contrast, unprotected AES leaked the key within 913 ciphertexts.
- Performance: The D&C-AES algorithm is approximately 40% faster than traditional DMR or Byte Scrambling (BS) methods because it avoids the overhead of dual encryption cycles.
- Hardware Efficiency: On FPGA, a "pre-correction" mode—where correction logic is integrated directly into the SubBytes operation—reduced resource usage (LUTs and Registers) by nearly 40% compared to the full detection-correction cycle.
Conclusion
This work demonstrates that exploiting the mathematical properties of cryptographic primitives, such as the S-box's loop structure, can lead to significantly more efficient hardware security measures. While highly effective against single-byte PFAs, future research is needed to address large-scale fault clusters that might overwhelm the adjacency-based correction logic.
Summary updated