SITM: See-In-The-Middle Side-Channel Assisted Middle Round Differential Cryptanalysis on SPN Block Ciphers

Shivam Bhasin, Jakub Breier, Xiaolu Hou, Dirmanto Jap, Romain Poussier, Siang Meng Sim

TL;DR

This paper introduces SITM, a novel side-channel attack that targets the "middle rounds" of SPN block ciphers, a region often left unprotected by common countermeasures. By combining differential cryptanalysis with side-channel leakage observation, SITM can recover secret keys even when only the outer rounds of a cipher are protected, offering a significant threat to many modern cryptographic implementations.

What Problem Does This Paper Address?

Modern cryptographic implementations often employ countermeasures like masking and shuffling to protect against side-channel attacks (SCAs). However, these countermeasures can introduce significant overhead, leading designers to apply them selectively, typically to the first and last rounds of a cipher, which are considered the most vulnerable. The "middle rounds" are often left unprotected or with weaker defenses like shuffling. Existing SCA techniques, such as SCADPA, have been limited to specific cipher structures (like bit permutations) or only target the initial rounds. This leaves a gap: how can we efficiently attack ciphers where only the outer rounds are strongly protected, and the middle rounds are more exposed? This paper addresses this gap by proposing SITM, a generalized attack that can target these middle rounds of a broad class of SPN block ciphers.

Methods

The core of SITM is a clever combination of differential cryptanalysis and side-channel analysis. The attack proceeds in several steps:

  1. Target Differential Pattern Identification: The attacker first identifies a specific "differential pattern" that, when applied to a pair of plaintexts, is likely to converge to a simpler, more observable pattern in a middle round. This convergence is key.
  2. Side-Channel Observation and Pair Selection: The attacker then encrypts many plaintext pairs and observes their side-channel leakage (e.g., power consumption). By analyzing the differences in these traces, the attacker identifies a pair that exhibits the desired converged differential pattern in a middle round. This step leverages the fact that even with shuffling, specific differential patterns can be detected.
  3. Partial Key Recovery: Once such a pair is found, the attacker uses the observed differential pattern and known plaintext values to deduce possible values for a portion of the round key. This is done by working backward from the observed middle round state.
  4. Iteration: Steps 1-3 are repeated, potentially by rotating the attack or targeting different parts of the cipher state, until the entire secret key is recovered.

SITM is designed to be generic, applying to any SPN cipher, and can even defeat shuffling countermeasures by carefully analyzing the differential patterns across multiple S-boxes.

Datasets

The paper does not introduce new datasets. Instead, it uses experimental setups on real hardware (8-bit AVR and 32-bit ARM microcontrollers) and simulated traces to validate the attack. The experiments involve collecting side-channel traces during the encryption of chosen plaintexts with a known key.

Key Insights and Ideas

  • Middle Rounds are Vulnerable: The most significant insight is that even with strong protection on the first and last rounds, the middle rounds can be a critical weak point, especially when combined with differential cryptanalysis.
  • Convergence is Key: The attack hinges on finding specific plaintext differences that "converge" to a simpler, more observable differential pattern in a middle round. This convergence is what makes the side-channel observation useful.
  • Generality of SITM: Unlike previous attacks like SCADPA, SITM is not limited to specific cipher structures (like bit permutations) and can be applied to a wider range of SPN ciphers, including AES, SKINNY, and PRESENT.
  • Defeating Shuffling: SITM can effectively bypass shuffling countermeasures by analyzing the aggregate differential behavior across multiple shuffled operations, even at low signal-to-noise ratios (SNR).
  • Estimating Masking Requirements: The paper provides a framework to estimate the minimum number of rounds that need to be masked to prevent SITM, highlighting that protecting only corner rounds is often insufficient.

Key Results

The paper demonstrates the practical applicability of SITM through experiments on real hardware and simulations:

  • Successful Attacks: SITM was successfully applied to AES (targeting up to the 4th round), SKINNY, and PRESENT.
  • Efficiency: The attack requires a relatively low number of chosen plaintexts and side-channel traces compared to brute-force key recovery. For example, an attack on AES-128 targeting the 4th round requires approximately 227.5 chosen plaintexts.
  • Shuffling Countermeasure Bypass: SITM was shown to defeat shuffling countermeasures, even with low SNR, on real shuffled AES traces.
  • Quantitative Complexity: The paper provides detailed complexity analyses (data, memory, time) for various ciphers, showing that SITM can be significantly more efficient than traditional attacks in specific scenarios. For instance, attacking AES-128 with a deeper round attack (4th round) requires O(2^26.5) time complexity.

Limitations and Future Work

  • Unprofiled Setting: While the attack is presented in an unprofiled setting (where the attacker doesn't have full knowledge of the implementation), some experimental validations might have used profiling or knowledge of the key to generate specific traces or analyze results. The paper does discuss how to perform the attack in a fully unprofiled setting, but the complexity can increase.
  • Leakage Model: The attack relies on observing if a target intermediate value has changed between two encryptions. Stronger leakage models (e.g., directly observing Hamming weight or value) could further simplify the attack and reduce complexity, as noted in the appendix.
  • Future Work: The authors suggest finding more optimal criteria for detecting convergences, especially against shuffled implementations, and exploring SITM's applicability to other cipher structures beyond SPNs. They also propose further optimization of the attack methodology.

Summary updated

BibTeX
@article{bhasin2020sitm,
  author = {Shivam Bhasin and Jakub Breier and Xiaolu Hou and Dirmanto Jap and Romain Poussier and Siang Meng Sim},
  title = {{SITM: See-In-The-Middle Side-Channel Assisted Middle Round Differential Cryptanalysis on SPN Block Ciphers}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2020},
}
Figure