TL;DR
Researchers from the University of Luxembourg have demonstrated a preimage attack on the EnRUPT-512 hash function, a former SHA-3 candidate. By exploiting the lack of message expansion and a relatively small internal state, the authors developed a "meet-in-the-middle" attack that finds a preimage in $2^{480}$ operations—significantly faster than the $2^{512}$ required for a brute-force attack.
What Problem Does This Paper Address?
In cryptography, a preimage attack is the "holy grail" of breaking a hash function. It involves finding an input that produces a specific, pre-determined hash value. For a secure 512-bit hash function like EnRUPT-512, this should theoretically require $2^{512}$ attempts (brute force).
EnRUPT was designed as a high-performance stream-based hash function for the NIST SHA-3 competition. However, its design choices—specifically its simple compression function and the way it handles message inputs—raised questions about its long-term security. This paper aims to prove that EnRUPT-512 does not meet its claimed security strength by finding a mathematical "shortcut" to generate preimages.
Methods
The authors employ a sophisticated Meet-in-the-Middle (MITM) attack, enhanced by several clever observations:
- State Space Reduction: A standard MITM attack requires the internal state to be less than twice the hash size. EnRUPT-512 has an 1152-bit state, which is slightly too large for a basic attack. To bypass this, the authors show how to "fix" specific state words ($x_3$ and $x_{11}$) to zero in both the forward and backward directions of the computation. This effectively shrinks the "searchable" state space.
- Exploiting Message Injection: EnRUPT lacks a "message expansion" step (where message bits are mixed and stretched before use). This gives the attacker total "freedom of choice" over the message blocks injected into the state, allowing them to solve for specific values that force the state into a desired configuration.
- Look-up Tables for Equation Solving: The round functions in EnRUPT involve non-linear operations (like rotations and XORs). The authors used large precomputed look-up tables to solve the systems of equations that arise when trying to invert the hash function backwards from the target output.
Datasets
As this is a theoretical cryptanalysis paper, no external datasets were used. The "data" consists of the mathematical specification of the EnRUPT-512 hash function and the ir8 compression function as submitted to the SHA-3 competition.
Key Insights and Ideas
- The "Just Enough" State Vulnerability: The authors point out a critical design flaw: EnRUPT’s internal state (1152 bits) is only slightly larger than the critical security level (1024 bits). This narrow margin makes it vulnerable if even a few words of the state can be controlled or predicted.
- Invertibility via Precomputation: While the compression function isn't strictly invertible, the authors discovered that on average, a solution exists for most inputs. By using $2^{384}$ memory for look-up tables, they could navigate the "backwards" path from a hash value to an internal state.
- Independence of Message Blocks: Because message blocks are inserted directly without expansion, an attacker can change a message block at the very end of the process to "bridge" two different internal states without affecting previous calculations.
Key Results
- Attack Complexity: The attack succeeds with a complexity of approximately $2^{480}$ compression function calls.
- Memory Requirements: The attack requires roughly $2^{384}$ in memory for precomputation tables.
- Security Breach: Since $2^{480} < 2^{512}$, the hash function is theoretically broken. It no longer provides the "preimage resistance" expected of a 512-bit hash.
- Structural Weaknesses: The authors identified three primary culprits: the lack of message scheduling, the fact that message injection only affects a small part of the state at a time, and the simplicity of the internal round function.
Limitations and Future Work
The primary limitation is that the attack is theoretical. A complexity of $2^{480}$ is still far beyond the reach of any current or foreseeable computing cluster (for context, the Bitcoin network performs roughly $2^{90}$ hashes per year). However, in the world of cryptography, a "theoretical break" is sufficient to disqualify an algorithm from being a standard.
The authors suggest that their methods could likely be extended to other versions of EnRUPT (like EnRUPT-256) and recommend that future stream-based hashes use larger internal states and more robust message expansion to prevent similar MITM shortcuts.
Summary updated