Free Fault Leakages for Deep Exploitation: Algebraic Persistent Fault Analysis on Lightweight Block Ciphers

Fan Zhang, Tianxiang Feng, Zhiqi Li, Kui Ren, Xinjie Zhao

Introduction

In the evolving landscape of hardware security, fault attacks represent a significant threat to cryptographic implementations. A recent advancement published in IACR Transactions on Cryptographic Hardware and Embedded Systems (TCHES) introduces Algebraic Persistent Fault Analysis (APFA). This technique synergizes the persistence of hardware faults with the automated reasoning of modern SAT solvers, providing a powerful tool for breaking lightweight block ciphers with unprecedented efficiency.

The Limitations of Traditional Persistent Fault Analysis

Fault attacks typically involve inducing errors during a device's operation via external stimuli like lasers or voltage glitches. Persistent Fault Analysis (PFA), introduced in 2018, focuses on faults that remain in the device's memory (e.g., a "stuck-at" bit in an S-box) across multiple encryption cycles.

However, traditional PFA has historically been "lazy." It predominantly analyzes the statistical distribution of the final output round, effectively ignoring the fact that the persistent fault is active throughout every round of the encryption process. This leads to two primary inefficiencies:

  1. Wasted Information: Valuable "leakage" from internal rounds is discarded because the mathematical complexity of manual analysis is too high.
  2. Manual Burden: Cryptanalysts must manually deduce how faults propagate through specific cipher structures, a tedious and error-prone process.

Methodology: Algebraic Persistent Fault Analysis (APFA)

APFA addresses these gaps by shifting from statistical observation to algebraic modeling. The core innovation lies in treating the entire cipher execution as a system of Boolean equations.

Algebraic Modeling and SAT Solving

The process begins by converting the cipher—including its key schedule and every encryption round—into Conjunctive Normal Form (CNF). When an S-box contains a persistent fault (for instance, it never outputs a specific value $V$), this creates a "persistent constraint."

Unlike previous methods, APFA applies this constraint to as many internal rounds as possible. This multi-round approach significantly narrows the search space for the secret key. These equations are then processed by a high-performance SAT solver, such as CryptoMiniSAT, which automatically finds the master key that satisfies all constraints simultaneously.

Figure 1: Illustration of multi-round algebraic constraints in APFA.

Handling Unknown Parameters

In scenarios where the exact location or value of the fault is unknown, the authors utilize a framework based on Maximum Likelihood Estimation (MLE). This allows the attacker to "guess" the fault parameters before launching the algebraic attack, ensuring the method remains robust in real-world conditions.

Experimental Evaluation

The researchers evaluated APFA against a variety of block ciphers, focusing on lightweight designs commonly used in IoT and embedded systems:

  • Lightweight Ciphers: PRESENT (80 and 128-bit), LED-64, SKINNY (64 and 128-bit), and LBlock-80.
  • Classic Ciphers: AES-128 served as a benchmark for generality.

The attacks were simulated on standard consumer hardware (AMD Ryzen 5 CPU, 16GB RAM), demonstrating that the computational requirements are well within the reach of typical adversaries.

Key Results and Impact

The performance gains of APFA over state-of-the-art methods like PFA and Enhanced PFA (EPFA) are substantial. By exploiting "free" leakages from deep within the cipher, APFA dramatically reduces the data requirements for a successful attack.

Figure 2: Comparative performance of APFA against previous analysis methods.

Key highlights include:

  • SKINNY-64-64: The number of faulty ciphertexts required to recover the key dropped from 1,550 to just 10, representing a 155x reduction in data complexity.
  • PRESENT-128: This cipher was previously considered resistant to PFA due to its large key size and complex key schedule. APFA successfully recovered the key using only 28 ciphertexts.
  • Generality: The attack proved effective across different architectures, including Substitution-Permutation Networks (SPN) and Feistel networks.

Conclusion and Future Outlook

APFA demonstrates that deep-round leakages are a goldmine for cryptanalysts. Because the fault is persistent, no additional hardware injections are needed to gain more information; rather, a more sophisticated processing method is required.

While the method faces challenges with ciphers like AES-128—where large S-boxes generate tens of thousands of equations that can strain SAT solvers—its success against lightweight ciphers is a wake-up call for designers. Future security measures must account for multi-round algebraic constraints, as traditional defenses focused solely on the final round are no longer sufficient to protect against persistent fault exploitation.

Summary updated

BibTeX
@article{zhang2022free,
  author = {Fan Zhang and Tianxiang Feng and Zhiqi Li and Kui Ren and Xinjie Zhao},
  title = {{Free Fault Leakages for Deep Exploitation: Algebraic Persistent Fault Analysis on Lightweight Block Ciphers}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2022},
}
Figure