A newly released academic paper has exposed a critical implementation flaw in LLBC, a lightweight 128-bit block cipher designed specifically for Internet of Things (IoT) applications. Researchers Sei Kofuku and Yasutaka Igarashi from the Tokyo University of Science published a paper detailing how a discrepancy between the cryptographic algorithm’s peer-reviewed specification and its official reference code catastrophically compromises its security. Rather than resisting sophisticated cryptanalytic techniques across all twenty rounds as intended, the reference implementation splits cleanly into four independent, non-communicating sub-ciphers. This structural breakdown allows researchers to mount full-round attacks on a standard personal computer in less than three minutes, falling dramatically short of the security margins anticipated by the original designers.
The LLBC cipher was first introduced to the cryptographic and engineering communities in a 2025 article published in the IEEE Internet of Things Journal. Tailored for resource-constrained IoT devices, the cipher relies on a 128-bit architecture that balances low latency with robust cryptographic protection. To foster transparency, reproducibility, and adoption, the original designers released a reference implementation written in C and Verilog. In standard cryptographic engineering practices, these reference files serve as the definitive blueprint for software and hardware developers looking to integrate the cipher into commercial products. Furthermore, the official test vectors provided in the original proposal were generated as outputs from this very implementation, creating a false sense of security that the code and the mathematical specification were completely aligned.
However, Kofuku and Yasutaka discovered that the released reference code deviates from the peer-reviewed specification in eight distinct ways. The most critical divergence occurs within the core round function of the cipher. While the formal mathematical specification mandates rotation amounts of $(3,19)$, the actual C and Verilog reference code implements rotation amounts of $(32,16)$. This seemingly minor transposition of parameters alters the underlying algebraic properties of the cipher in a way that destroys its internal diffusion, effectively blinding the algorithm to the complex mixing operations that modern block ciphers require to thwart linear and differential cryptanalysis.
To understand the mathematical gravity of this implementation error, the researchers analyzed the algebraic structure of LLBC-type ciphers using generalized rotation parameters. They proved that any LLBC-type cipher utilizing rotation amounts $(b_1,b_2)$ mathematically behaves as a product of independent ciphers when a specific divisibility condition is met. Specifically, when the greatest common divisor of $64$, $b_1$, and $b_2$, denoted as $g$, is a multiple of $4$, the cipher decomposes into multiple independent components. When $g$ is a multiple of $8$, the cipher completely splits. In the case of the flawed reference implementation, this mathematical condition is fully satisfied, causing the 128-bit state to fracture into four isolated 32-bit ciphers that never mix their data bits throughout the entire encryption process.
With the cipher broken down into four non-interacting compartments, the security guarantees of the 128-bit primitive evaporate. The researchers successfully mounted full-round attacks across all twenty rounds of the reference implementation. By exploiting the structural splitting, they constructed a distinguisher operating with a probability of $1$ using only two chosen plaintexts. Moreover, they demonstrated the ability to decrypt any ciphertext using $2^32$ chosen plaintexts, a negligible workload in modern cryptographic terms. Master key recovery proved similarly vulnerable. The research team successfully recovered the master key from just three known plaintexts paired with $2^80$ plus three times $2^16$ encryptions. This computational requirement sits below a brute-force exhaustive search by a staggering factor of $2^48$, rendering the cipher practically indefensible if deployed in its current coded form.
These practical results stand in stark contrast to the security evaluations presented in the original peer-reviewed proposal. The designers of LLBC had previously estimated that the most effective cryptanalytic attack against the formal specification could successfully reach a maximum of nine rounds. By contrast, the implementation flaws exposed by the Tokyo University of Science researchers allowed a full decryption attack on all twenty rounds of the reference code to execute on a single personal computer in a mere 175.5 seconds.
Beyond practical attacks, Kofuku and Yasutaka also subjected the flawed implementation to standard cryptographic evaluation techniques. When applying automated search tools, the analysis yielded 20-round impossible differentials and zero-correlation approximations that span the entire cipher. Conversely, when examining classical properties—such as traditional differential characteristics, linear characteristics, and integral properties—the analysis could only successfully distinguish 9, 10, and 8 rounds respectively within a single isolated 32-bit portion of the fractured state. This disparity highlights how localized analyses can fail to capture sweeping structural weaknesses caused by implementation errors. Additionally, the researchers demonstrated that standard security models, which routinely assume that substitution boxes operate as independent components, completely break down and fail to hold true when evaluated against the anomalous structure of the reference implementation.
In light of these findings, the authors have issued clear recommendations for cryptographic designers and software engineers moving forward. They emphasize the critical necessity of validating released reference source code against test vectors that have been generated entirely independently from the written specification. Furthermore, they urge development teams to conduct rigorous checks verifying the actual diffusion properties of published codebases prior to public release to ensure that unexpected parameter shifts do not inadvertently dismantle the mathematical security of lightweight cryptographic primitives intended for critical IoT deployments.






