TL;DR
This paper presents improved preimage attacks on 4-round Keccak, a cryptographic hash function. The authors achieve this by reformulating the problem as solving multivariate quadratic (MQ) systems and leveraging an enhanced version of the Crossbred algorithm, leading to more efficient attacks and practical results on a Keccak challenge instance.
What Problem Does This Paper Address?
Cryptographic hash functions like Keccak are fundamental building blocks for digital security. A "preimage attack" aims to find an input message that produces a specific hash output. Finding such preimages is computationally infeasible for secure hash functions. However, when hash functions are "reduced" to fewer rounds (meaning they don't undergo the full hashing process), attacks become more feasible. This paper focuses on attacking 4-round versions of Keccak, specifically Keccak-224, Keccak-256, and a specific instance from the Keccak challenges (Keccak[r=640, c=160, l=80]). The challenge lies in developing efficient methods to break these reduced-round versions, pushing the boundaries of our understanding of Keccak's security.
Methods
The core of this paper's approach is to transform the preimage attack problem into solving a system of multivariate quadratic (MQ) equations over the binary field F2. The authors then employ and enhance the Crossbred algorithm, a known method for solving such systems. Key contributions include:
- Improved MQ System Formulation: They construct MQ systems that better utilize the available variables and derived equations.
- Enhanced Crossbred Algorithm Analysis: The paper provides a detailed analysis of the Crossbred algorithm, particularly for the D=2 case, elaborating on its computational complexity and demonstrating its theoretical and practical advantages over brute-force methods, especially concerning memory usage.
- New Linear Structure: A novel 2-round linear structure is proposed, involving one backward and one forward round, which helps in linearizing parts of the Keccak permutation. This structure is designed to exploit the inverse of the $\chi$ (chi) step and carefully chosen constants.
- Iterative Linearization: The authors use techniques to linearize quadratic bits within the MQ system by guessing values of linear polynomials, significantly reducing the complexity of solving the system.
Datasets
Not discussed in the paper. The attacks are performed on specific instances of the Keccak hash function, and a particular challenge instance is targeted.
Key Insights and Ideas
- MQ Systems as a Powerful Tool: Reformulating cryptographic attacks as MQ system solving problems is a potent strategy, especially when combined with efficient MQ solvers.
- Crossbred Algorithm's Practicality: The detailed analysis of the Crossbred algorithm highlights its efficiency not just theoretically but also in terms of feasible memory requirements, making it practical for real-world attacks.
- Exploiting Keccak's Structure: The proposed linear structure effectively exploits the internal workings of Keccak, allowing for a more targeted and efficient attack by reducing the number of variables and equations.
- Trade-offs in Linearization: The paper demonstrates how strategic linearization of quadratic terms can dramatically simplify the MQ system, but it also involves trade-offs in terms of guessing values and the number of remaining equations.
Key Results
- Improved Preimage Attacks: The paper presents improved preimage attack complexities for 4-round Keccak-224 and Keccak-256 compared to previous works.
- Successful Attack on Keccak Challenge: The authors successfully implemented a preimage attack on the 4-round Keccak[r=640, c=160, l=80] instance from the Keccak challenges, finding 78-bit matched near preimages.
- Practical Performance: The implementation on a GPU cluster demonstrated the feasibility of the attack, with the Crossbred algorithm (D=2) showing the best practical performance. For the Keccak challenge, the attack achieved a complexity of approximately $2^{58}$ operations and $2^{17}$ bits of memory.
Limitations and Future Work
- Reduced-Round Attacks: The attacks are still limited to a small number of rounds (4 rounds). Extending these techniques to more rounds remains a significant challenge.
- MQ Solver Efficiency: While the Crossbred algorithm is efficient, the complexity of solving MQ systems can still be very high for larger instances. Further improvements in MQ solvers are always desirable.
- Parameter Optimization: The paper mentions that the performance of the MQ solver is impacted by the degree D and the number of equations/variables. Further exploration of optimal parameter choices for different Keccak instances could yield even better results.
- Generalization: The authors suggest that the complexity elaboration of the Crossbred algorithm is of independent interest and could be applied to other cryptographic problems involving MQ systems.
Summary updated