← Back to section · Post-Quantum Cryptography

The Rise and Fall of Rainbow: From NIST Finalist to a Weekend Break

The full story of the Rainbow signature: how layering Oil-and-Vinegar bought a smaller key and a finalist slot, how far it went in NIST's third round, how Beullens' 2022 attack broke its first parameter set over a weekend, and the lessons the collapse left the whole field.

Published 22 November 2026 · 5 min read · PQ Frontier

The Rise and Fall of Rainbow: From NIST Finalist to a Weekend Break
AI-generated site artwork
Video explainer · Multivariate cryptography

Layering: Making the Key Smaller

UOV’s chronic problem is its huge public key. In 2005 Ding and Schmidt proposed Rainbow: stack the Oil-and-Vinegar structure into layers — the first layer’s oil variables, together with the vinegar variables, become the “vinegar” of the second layer, which adds fresh oil variables of its own, and so on. Each layer handles only a small batch of new variables, so the total number of equations and variables for a given security target drops significantly, and the public key shrinks with it. Signing proceeds layer by layer: fix the vinegar at random, solve for the first layer’s oil, feed those values into the next layer — peeling an onion inward. The name Rainbow comes from exactly this layering.

The numbers were impressive for their time: Rainbow’s first parameter set had a public key of about 161 KB and signatures of only about 66 bytes, the most compact multivariate offering of its era. Rainbow became the family’s flagship for over a decade — widely implemented, benchmarked, and used as the reference point for later designs.

Reaching the Finals

When NIST launched its post-quantum standardization in 2016, Rainbow advanced round by round. In round two, attacks based on rectangular MinRank and related techniques forced the team to enlarge its parameters; the scheme absorbed them and moved on. In 2020 it entered the third-round finals, competing alongside Dilithium, Falcon and SPHINCS+ for the signature standard — the only multivariate scheme, and the only non-lattice, non-hash signature, on the finalist list. Under NIST’s plan, finalists were in principle on their way to standardization. Rainbow was one step from becoming a global standard.

The Tug-of-War Before the Finals: Attacks Kept Closing In

Rainbow’s review history was no smooth triumph but a repeated tug-of-war between parameters and attacks. As early as 2008, Perlner and Shamir proposed the band-separation idea, exploiting the size differences between layers’ oil variables to peel the layers apart, which forced later parameter choices to widen the gaps between layers. Inside the NIST process the pressure intensified: between 2019 and 2020, Beullens and others sharpened the rectangular MinRank attack into a practical weapon against Rainbow, showing that the first parameter set’s margin was thinner than claimed; the team responded by enlarging parameters — more variables and equations — between the second and third rounds. The reviewers’ consensus at the time was that attacks were closing in, but parameter adjustments were keeping pace.

In hindsight, that tug-of-war was precisely the period densest with warning signs. For a healthy veteran scheme, the attack curve should be gentle — UOV itself, for instance, has seen its attack cost decline only slowly over two decades, tracking generic solver progress. Rainbow’s attack curve instead dropped in steps during the few review years: each drop was bought back with larger parameters, but each also signaled another unexplored handle in the layered structure. When the finalist ticket was issued, designers and reviewers alike assumed that all known attacks had been fully priced in — exactly the assumption the 2022 paper set out to overturn.

One Weekend

The turn came without warning. In February 2022 Ward Beullens published a new key-recovery attack on Rainbow, chaining the MinRank attacks, Oil-and-Vinegar structure attacks and differential techniques developed over previous years into a complete attack whose complexity lay far below the designers’ estimates. His measured conclusion became a headline of its own: breaking Rainbow’s first parameter set takes a laptop and a weekend. The attack was independently implemented and confirmed; there was no room for dispute — the first parameter set was practically broken, and the security margins of the higher sets were heavily eroded.

In its third-round outcome published that year, NIST explained the decision: because of this attack, Rainbow would not be standardized. The timing deserves note — the attack landed in the final phase of the third-round review; a few months later, and the crack might have been found after a standard was published. The field’s consensus reading is that this is precisely the value of an open review process: the finalist spotlight attracted the strongest attackers while there was still time.

Three Lessons from the Collapse

First, structure is risk: every byte Rainbow’s layering saved came from richer structure in the central map, and structure is exactly what structural attacks grip. UOV’s “clumsier” single-layer design has outlived it. Second, security estimates must be conservative: Rainbow’s parameters were calibrated against the best attacks known at the time, but attack techniques improved during the review period faster than the calibration assumed. Third, diversity has real value: because the finalist list held lattice, hash-based and multivariate lines at once, one family’s collapse did not shake the standardization’s foundations. That more restrained designs — UOV, MAYO and their relatives — are still competing in NIST’s additional signature process today is the most direct aftershock of this rise and fall.

The other half of Rainbow’s legacy deserves recording too: layering as an idea was not sentenced to death. Later designs such as SNOVA still use shallower, more regular layered solving — with each layer’s size and ratio recalibrated to the post-2022 attack picture, and “what can an attacker read from the differences between layers” treated as the first analysis question. An idea that shatters in a final round is not thereby useless; it becomes a design drawing with a public autopsy, on which successors can see exactly where the cracks ran and how much load-bearing wall remains. Failures that leave such drawings are rare in cryptographic history — one more reason Rainbow still occupies a full section of the textbooks.

Tags: RainbowNISTCryptanalysisMultivariate Cryptography