سبحان الله و بحمده سبحان الله العظيم ❤️
← BACK TO WRITEUPSCategory: Cryptography | Fault Injection Attack
The CipherFault function injects a single byte fault (XOR) into the AES state during Round 9 (Nr-1 for AES-128) just before MixColumns. This is a textbook scenario for Differential Fault Analysis (DFA).
if (is_fault && round == Nr - 1) { (*state)[pos % 4][pos / 4] ^= fault; } MixColumns(state); // Fault diffuses to 4 bytes
A single byte fault in Round 9 diffuses through MixColumns to exactly 4 bytes in the final ciphertext. With correct/faulty ciphertext pairs:
Recovered K10: ffaf5efa977bfaf5a94a856e7cff6629 Recovered K0: b351160cac3e91a75458d28c8f1e12a5