Distinguisher and Related-Key Attack on the Full AES-256 (Extended Version)

Alex Biryukov, Dmitry Khovratovich, Ivica Nikolic

Abstract

The Advanced Encryption Standard (AES) is the cornerstone of modern symmetric-key cryptography. While AES-128 and AES-192 have remained robust against most cryptanalytic efforts, AES-256 features a more complex key schedule that has long been a subject of theoretical scrutiny. This paper presents the first publicly known attack on the full 14-round version of AES-256. By exploiting structural weaknesses in the key schedule, the authors demonstrate a related-key recovery attack with a complexity of $2^{131}$, significantly faster than the $2^{256}$ required for brute force.

Introduction: The Ideal Cipher Challenge

In cryptography, block ciphers are often evaluated against the Ideal Cipher Model, which assumes a cipher behaves as a collection of independent random permutations for each key. Any deviation from this behavior—any shortcut to finding patterns or collisions—is considered a cryptographic "break."

While AES-128 and AES-192 have withstood extensive analysis, AES-256 employs a significantly different key schedule. Previous research had only successfully attacked up to 10 rounds of AES-256. This work addresses the full 14-round implementation, specifically within the related-key setting. In this model, an attacker can observe the encryption of plaintexts under multiple keys that share a known mathematical relationship, such as a specific XOR difference.

Methods: Exploiting the Key Schedule

The authors' breakthrough stems from identifying that the AES-256 key schedule exhibits "slow diffusion." Because the key size (256 bits) is twice the block size (128 bits), there is more "room" for an attacker to manipulate the key state.

The attack relies on three primary components:

  1. Local Collisions: The authors constructed patterns where differences introduced in the key are cancelled out by differences in the round function, maintaining a zero difference in the data block for several rounds.
  2. The Triangulation Algorithm: To find specific keys and plaintexts that satisfy these complex differential trails, the authors adapted a triangulation algorithm from hash function cryptanalysis to solve the non-linear equations of the AES S-boxes.
  3. Differential $q$-multicollisions: A new statistical tool was introduced to prove non-ideality by finding $q$ pairs of keys/plaintexts that produce the same output difference significantly faster than a random permutation.
Logical flow of the attack from weak key schedule to full recovery.

Key Results

The paper proves that AES-256 is not an "ideal cipher" and cannot be safely used in constructions like Davies-Meyer hashing where related-key properties are critical. The primary results include:

  • $q$-multicollision Distinguisher: Construction of $q$-multicollisions in $q \cdot 2^{67}$ time, compared to the $q \cdot 2^{120}$ required for an ideal cipher.
  • Full 14-Round Attack: A related-key distinguisher covering the full 14 rounds for a subset of keys ($1$ out of $2^{35}$) with a complexity of $2^{120}$.
  • Key Recovery: The distinguisher was extended into a full key-recovery attack with a total time complexity of $2^{131}$ (derived from $2^{35}$ keys and $2^{96}$ time per key) and memory complexity of $2^{65}$. This represents a "break" as it is $2^{125}$ times more efficient than a brute-force search ($2^{256}$).
Comparison of the proposed attacks against previous cryptanalytic results for AES-256.

Conclusion and Implications

The most significant limitation of this work is its reliance on the Related-Key Model. In standard applications like disk encryption or TLS, attackers typically cannot control the relationship between keys. Thus, AES-256 remains secure for most practical purposes.

However, these findings highlight critical design flaws in the AES-256 key schedule. The authors suggest that future block ciphers should prioritize faster diffusion and better "de-synchronization" between the key schedule and the internal state to prevent the concatenation of local collisions. This work serves as a vital reminder that even the most trusted standards must be continually re-evaluated as cryptanalytic techniques evolve.

Summary updated

BibTeX
@article{biryukov2009distinguisher,
  author = {Alex Biryukov and Dmitry Khovratovich and Ivica Nikolic},
  title = {{Distinguisher and Related-Key Attack on the Full AES-256 (Extended Version)}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2009},
  url = {https://openreview.net/forum?id=rFujscceft},
}
Figure