Cube Attacks on Round-Reduced TinyJAMBU

Wil Liam Teng, Md. Iftekhar Salam, Wei-Chuen Yau, Josef Pieprzyk, Raphaël C.-w. Phan

This paper provides a rigorous security evaluation of TinyJAMBU, a prominent finalist in the NIST Lightweight Cryptography (LWC) competition. By applying advanced cube attacks, the researchers demonstrate that while the cipher remains secure in its full implementation, its internal "security margin"—the gap between the complexity of the best attack and the cipher's full strength—is actually more robust than the original designers estimated.

TL;DR

Researchers successfully launched several "cube attacks" against round-reduced versions of the TinyJAMBU cipher, achieving key recovery and distinguishing attacks on up to 2614 rounds. Surprisingly, the results suggest that TinyJAMBU achieves full bit-dependency faster than its designers claimed, actually providing a larger security margin against these specific algebraic attacks.

What Problem Does This Paper Address?

As the Internet of Things (IoT) expands, we need "lightweight" cryptographic algorithms that can run on tiny, battery-powered sensors without sacrificing security. TinyJAMBU is a leading candidate in NIST’s global search for these standards.

However, before an algorithm is trusted with global IoT infrastructure, it must undergo "third-party cryptanalysis." The authors address a critical question: How resistant is TinyJAMBU to algebraic attacks that exploit the mathematical structure of its internal state updates? Specifically, they look at the "diffusion" of the cipher—how quickly a single change in input (like a nonce or plaintext bit) spreads to affect every bit of the output.

Methods

The authors utilize the Cube Attack, a sophisticated cryptanalytic technique that treats the cipher as a "black box" represented by a massive polynomial over a binary field.

  1. Cube Summation: By fixing some input bits and summing the output over all possible values of a subset of other bits (the "cube"), the attacker can simplify the cipher's complex polynomial into a simpler "superpoly."
  2. Distinguishing Attacks (DA): If the superpoly is a constant (0 or 1), the attacker can distinguish the cipher from a truly random sequence.
  3. Key Recovery Attacks (KRA): If the superpoly is linear, the attacker can create a system of linear equations to solve for the secret key bits.
  4. BLR Linearity Test: The authors used the Blum-Luby-Rubinfeld (BLR) test to experimentally verify if their chosen cubes produced linear superpolies, ensuring their attacks were mathematically sound.

Datasets

In the context of symmetric cryptography research, "datasets" refer to the experimental bitstreams generated by the cipher under specific attack conditions.

  • The authors implemented the TinyJAMBU-128 algorithm and ran thousands of simulations to find "good" cubes.
  • They tested cube sizes ranging from 3 to 32 bits.
  • All results were experimentally verified using source code which the authors have made publicly available on GitHub.

Key Insights and Ideas

  • The Diffusion Surprise: The most striking "aha moment" was finding that TinyJAMBU reaches full bit-dependency (where every output bit depends on every input bit) after just 437 rounds of the permutation. The original designers had estimated this would take 598 rounds (or 512 for version 2).
  • Why Faster is Better (for Security): Usually, "faster" in crypto is bad, but here it refers to how quickly the cipher becomes "random-looking." Because TinyJAMBU becomes complex so quickly, cube attacks (which rely on finding simple, non-random structures) fail much sooner than expected. This means the cipher has a higher security margin against this class of attack.
  • Initialisation Weakness: The authors noted that the initialisation phase provides relatively low diffusion because it only iterates the internal permutation 384 times after loading the second nonce block. This allowed them to recover 8 bits of the secret key in a round-reduced setting.

Key Results

The paper presents a suite of attacks summarized by their "reach" into the cipher's rounds:

  • Key Recovery (KRA1 & KRA2): Successfully recovered 8 bits of the secret key for a variant with 2176 initialisation rounds. KRA2 worked against up to 2604 rounds.
  • Distinguishing Attacks (DA1 & DA2): Found distinguishers for up to 2614 rounds using an 18-bit cube. For context, the full version of TinyJAMBU uses 3200 rounds, meaning the attack covers roughly 81% of the cipher.
  • Encryption Phase Attacks (DA3-DA5): Identified 32-bit cube testers that work for up to 437 rounds of the encryption phase, confirming the upper bound for these types of testers.

Limitations and Future Work

  • Round-Reduced Only: It is important to note that these attacks do not break the full 3200-round TinyJAMBU. They are "academic breaks" used to measure the safety buffer.
  • Version Focus: The bulk of the work was performed on TinyJAMBU v1. While the authors note that many results apply to v2 (which increased the number of rounds in certain phases), a dedicated, full-scale analysis of v2's specific tweaks remains a path for future research.
  • Key Bit Limitation: The key recovery attacks only retrieved a small number of bits (e.g., 8 bits). Scaling this to recover the full 128-bit key would require significantly more computational resources or new techniques to find more independent linear superpolies.

Summary updated

BibTeX
@article{teng2021cube,
  author = {Wil Liam Teng and Md. Iftekhar Salam and Wei-Chuen Yau and Josef Pieprzyk and Raphaël C.-W. Phan},
  title = {{Cube Attacks on Round-Reduced TinyJAMBU}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2021},
  url = {https://openreview.net/forum?id=PMfihf4PXh},
}
Figure