On the security of a class of diffusion mechanisms for image encryption

Leo Yu Zhang, Yuansheng Liu, Kwok-Wo Wong, Fabio Pareschi, Yushu Zhang, Riccardo Rovatti, Gianluca Setti

Abstract

This paper presents a rigorous cryptanalysis of a widely used class of diffusion mechanisms in image encryption schemes based on chaotic systems and quantum walks. Despite their perceived complexity, these systems often rely on a permutation-diffusion architecture that is fundamentally vulnerable. We demonstrate that the diffusion stage can be reduced to a Differential Equation of Modulo Addition (DEA). By exploiting the interaction between modulo addition and bitwise XOR, we show that the secret key can be recovered with constant data complexity ($O(1)$), requiring as few as three known plaintexts for 100% recovery.

Introduction

Digital images possess high redundancy and strong correlation between adjacent pixels, which often makes traditional ciphers like AES computationally expensive for real-time multimedia applications. This has spurred the development of "chaos-based" or "quantum-walk-based" encryption schemes. Most of these proposals follow a permutation-diffusion architecture, as illustrated in Figure 1.

The standard permutation-diffusion architecture used in many chaos-based image encryption schemes.

In this architecture, the permutation stage shuffles pixel positions to reduce spatial correlation, while the diffusion stage modifies pixel values to ensure that a change in a single plaintext pixel propagates throughout the ciphertext. However, many researchers have adopted a specific mathematical structure for diffusion because it is fast and easy to implement, often underestimating its cryptographic weaknesses.

Methodology: Breaking the Diffusion Stage

The authors focus on the Differential Equation of Modulo Addition (DEA). They demonstrate that the diffusion steps in several prominent cryptosystems (e.g., those by Parvin, Norouzi, and Yang) can be simplified into a general form:

$$( \alpha \dot{+} k ) \oplus ( \beta \dot{+} k ) = y$$

Where $\dot{+}$ denotes modulo addition, $\oplus$ is bitwise XOR, $k$ is the unknown secret key element, and $\alpha, \beta, y$ are values known to an attacker.

The core of the attack is a bit-by-bit recovery algorithm. By analyzing the Least Significant Bits (LSBs) and the behavior of the carry bit in modulo addition, the authors derived a set of conditions to uniquely determine the bits of the secret key $k$. This logic is summarized in the state transitions shown in Figure 2.

The bit-by-bit recovery logic derived from the Differential Equation of Modulo Addition (DEA).

The researchers developed both Known-Plaintext Attacks (KPA) and Chosen-Plaintext Attacks (CPA). Their algorithm recovers the key stream with negligible computational overhead, proving that the "complexity" provided by quantum walks or hyper-chaotic systems is an illusion if the underlying diffusion primitive is structurally weak.

Experimental Results

The attacks were validated using standard benchmark images ($512 \times 512$ pixels) such as "Baboon," "Lena," and various medical CT images. The results confirm the high efficiency of the cryptanalysis:

  • Constant Data Complexity: The number of images required to break the systems is independent of image size or key length.
  • Recovery Rates: For Norouzi’s bidirectional diffusion scheme, the recovery rate improves dramatically with additional data:
  • 1 known plaintext: ~66.6% key recovery.
  • 2 known plaintexts: ~99.8% key recovery.
  • 3 known plaintexts: 100% recovery.

Visual validation confirmed that the authors could successfully reconstruct the original images from their ciphertexts using the recovered keys.

Conclusion

The vulnerability of these systems stems from the "carry bit leak" that occurs when modulo addition interacts with XOR. Even bidirectional diffusion, intended to enhance the avalanche effect, fails to protect against this analysis. For future designs, the authors recommend moving away from simple DEAs toward more robust, non-linear primitives that do not reduce to bit-by-bit analysis.

Summary updated

BibTeX
@article{zhang2018security,
  author = {Leo Yu Zhang and Yuansheng Liu and Kwok-Wo Wong and Fabio Pareschi and Yushu Zhang and Riccardo Rovatti and Gianluca Setti},
  title = {{On the security of a class of diffusion mechanisms for image encryption}},
  journal = {IEEE Trans. Cybernetics},
  year = {2018},
  url = {https://openreview.net/forum?id=Bg5dLldtsPM},
}
Figure