Abstract

Multivariate cryptography offers the smallest signatures of any post-quantum family, and this piece explains its construction, its appeal, and its notorious fragility. The hard problem is solving a system of multivariate quadratic equations, which is NP-hard in general. A multivariate signature hides an easily invertible central map behind secret linear transformations, so the public key is a random-looking quadratic system that only the trapdoor holder can invert. The piece develops the oil-and-vinegar trapdoor that makes this work, then recounts the cautionary tale of Rainbow — a layered oil-and-vinegar scheme and a standardization finalist — broken decisively in 2022 by a key-recovery attack running in a weekend on a laptop. It distinguishes the intact underlying assumption from the fragile trapdoor constructions, surveys the algebraic and rank-based attacks that keep felling schemes, and identifies what still stands. The theme: the multivariate assumption is sound, but the structures that make it usable are a rich and repeatedly successful attack surface, making this the highest-risk post-quantum family.

Multivariate cryptography is the family with the most attractive signatures and the most alarming history. Its signatures are tiny and its verification fast, built on the hardness of solving systems of quadratic equations over a finite field, a problem that is NP-hard in general and independent of both lattices and codes. Yet the trapdoors that make the problem usable have proven a rich attack surface, and in 2022 a standardization finalist was broken decisively enough to be recovered in a weekend on an ordinary laptop. This article develops the construction, the oil-and-vinegar trapdoor behind it, the Rainbow break as a cautionary tale, and the honest assessment that the assumption is sound while the schemes remain fragile.

The MQ problem and the multivariate trapdoor

The hard problem is stated simply: given a system of quadratic equations in many variables over a finite field, find an assignment of the variables that satisfies all of them. Solving a random such system is NP-hard, and the average case is believed hard, with the best attacks exponential in the number of variables. This multivariate-quadratic problem is the anchor, and like decoding it comes from a mathematical world — polynomial systems over finite fields — entirely separate from lattices and number theory, providing the independence a diversity hedge wants.

A multivariate signature scheme turns this into a trapdoor. The public key is a system of quadratic polynomials mapping many variables to many outputs; signing a message means finding an input that the system maps to the message's hash, and verifying means evaluating the public system at the signature and checking it yields the hash. Finding a preimage of a random quadratic system is the hard MQ problem, so without a trapdoor signing is infeasible — which is exactly the asymmetry a signature needs.

The trapdoor is a hidden factorization. The public system is secretly the composition of an easily invertible central map with secret invertible linear transformations applied before and after. Evaluating the composition gives a random-looking quadratic system, but the holder of the secret linear maps can peel them away and invert the easy central map, producing a preimage — a signature. The whole art is designing a central map that is easy to invert yet, once hidden behind the linear maps, leaves a public system that looks like a hard random one.

An easily invertible central map is hidden behind secret linear transformations, yielding a random-looking public quadratic system only the trapdoor holder can invert to sign. The multivariate signature trapdoor Central mapeasy to invert Hide with S, Tsecret linear maps Public systemlooks random Only trapdoor signsinvert to sign
An easily invertible central map is hidden behind secret linear transformations, yielding a random-looking public quadratic system only the trapdoor holder can invert to sign.
\[\text{MQ: solve } P(\mathbf{x}) = \mathbf{y}, \ P = (p_1,\dots,p_m), \ p_i \text{ quadratic in } n \text{ variables over } \mathbb{F}_q\]
\[\text{trapdoor } P = S \circ Q \circ T; \quad \text{sign } \mathbf{x} = T^{-1}\!\big(Q^{-1}(S^{-1}(\mathbf{y}))\big)\]

Oil and vinegar: the workhorse trapdoor

The most durable central map is the oil-and-vinegar construction. The variables are split into two groups called oil and vinegar, and the central map's quadratic equations are built to contain no products of two oil variables — only vinegar-vinegar and oil-vinegar cross terms. This structure is the trick: if the signer assigns random values to the vinegar variables, every quadratic term either becomes a constant or is linear in the oil variables, so the whole system collapses into a linear system in the oil variables, which is trivially solved.

Signing therefore proceeds by guessing the vinegar variables, solving the resulting linear system for the oil variables, and if it happens to be unsolvable, trying fresh vinegar values. The result is a full preimage of the central map, which the secret linear transformations then map to a signature under the public system. An attacker without the secret split cannot tell which variables are oil and which are vinegar, so cannot linearize the system, and faces the full hard MQ problem.

The unbalanced version, with more vinegar variables than oil, is the conservative form that has best resisted attack, and it underlies the schemes still considered viable. Its signatures are very small and verification is a fast polynomial evaluation, which is the family's central appeal; the cost is a large public key, since a full quadratic system in many variables is big to specify. Small signatures and fast verification against a large key is the multivariate signature's characteristic profile.

Why Rainbow fell

Rainbow was an ambitious multivariate signature that layered the oil-and-vinegar idea: it stacked several oil-and-vinegar systems so that the output of one feeds the next, aiming for smaller keys and signatures than a single large oil-and-vinegar system. It advanced to the final round of the signature standardization as a leading candidate, admired for its performance, and its layered structure was believed to preserve the security of the underlying construction while improving efficiency.

In 2022 that belief collapsed. A key-recovery attack exploited the very layering that gave Rainbow its efficiency: the multiple layers created algebraic relationships — expressible as rank conditions on the quadratic forms — that let an attacker recover the secret structure far faster than the general MQ problem would suggest. The headline was stark: the attack recovered the secret key for Rainbow's first security level in about a weekend on a laptop, an efficiency that ended the scheme's candidacy immediately and completely.

The lesson is precise and important. The general MQ problem was not broken; what fell was a specific, structured trapdoor whose extra structure — the layering — introduced an exploitable weakness invisible in the general assumption. This is the recurring pattern of multivariate cryptography: the assumption is sound, but the constructions that make it usable add structure, and that structure is repeatedly where the breaks come from. A finalist's collapse in a weekend is the sharpest possible illustration of the family's fragility.

Plain unbalanced oil and vinegar remains conservative; Rainbow's extra layering introduced a rank weakness that was broken in a weekend in 2022. What stands and what fell Plain UOVsingle layer Still standsmore conservative Rainbowlayered UOV Broken in 2022weekend on a laptop
Plain unbalanced oil and vinegar remains conservative; Rainbow's extra layering introduced a rank weakness that was broken in a weekend in 2022.

What still stands, and why it is fragile

After Rainbow, the schemes still considered viable are the more conservative ones: plain unbalanced oil and vinegar and its carefully designed variants, some of which are being considered in the additional-signatures effort that seeks non-lattice options with small signatures. These retain the single-layer structure that has best withstood scrutiny, accepting larger keys as the price of avoiding the layering that doomed Rainbow. The underlying MQ assumption remains intact, and these schemes rest on it more directly.

The fragility comes from the family's rich attack surface. Beyond directly solving the MQ system with algebraic methods such as Gröbner-basis computation, which improve steadily, multivariate schemes are vulnerable to rank-based attacks that exploit low-rank structure in the quadratic forms — the MinRank problem — and to differential attacks that probe symmetries in the central map. Each structured trapdoor exposes some combination of these, and the history of the field is a sequence of clever schemes broken by one of them. The variety and success of these attacks is what makes multivariate the highest-risk post-quantum family.

This does not mean multivariate cryptography is worthless; it means it must be approached with unusual caution. Its tiny signatures are genuinely attractive for bandwidth-constrained applications, and the conservative oil-and-vinegar variants may well prove durable. But the track record counsels treating any multivariate scheme as less settled than the code-based or lattice families, subjecting it to extended scrutiny before trusting it with anything long-lived, and preferring the most conservative single-layer designs over performance-optimized structured ones.

Direct algebraic solving, rank-based MinRank attacks, and differential attacks on the trapdoor's symmetries have repeatedly broken structured multivariate schemes. The multivariate attack surface Multivariate attacksrich attack surface Algebraic solvingGrobner bases MinRanklow-rank structure Differentialtrapdoor symmetries
Direct algebraic solving, rank-based MinRank attacks, and differential attacks on the trapdoor's symmetries have repeatedly broken structured multivariate schemes.

When to use it, and the agent angle

The place for a multivariate scheme is where its unique strength — extremely small signatures — is decisive and its immaturity is acceptable. If an application signs enormous numbers of messages where every byte of signature counts, and can tolerate a large public key and the residual risk of a younger family, a conservative oil-and-vinegar signature is worth considering. But it should be chosen with eyes open to the history, deployed alongside a more mature scheme where possible, and kept out of roles where a break would be catastrophic or a key must remain unforgeable for decades.

This is the opposite risk profile from the code-based key mechanisms of the previous articles. Code-based cryptography is the most conservative family; multivariate is the least, its assumption sound but its constructions fragile. In the diversity portfolio, multivariate provides small-signature options and a genuinely independent assumption, but it carries a risk premium that the code-based and hash-based families do not, and that premium must be weighed honestly against the size benefit.

For autonomous AI systems the tiny signatures could appeal for high-volume, bandwidth-constrained agent messaging, where signature size directly affects throughput. But the guidance is caution: use a conservative, well-scrutinized oil-and-vinegar variant if at all, never for long-lived agent-identity or artifact-signing keys where the fragility is intolerable, and prefer the mature lattice or hash-based signatures as the default. Multivariate cryptography is best treated as a specialist, watch-closely option in the diversity portfolio — valuable for its independent assumption and small signatures, but the family whose track record most demands humility, and the one to trust last with anything that must endure.

⚠️
Sound assumption, fragile schemes. The MQ problem is hard, but multivariate trapdoors are a rich attack surface — a finalist (Rainbow) fell in a weekend in 2022. Prefer conservative single-layer oil-and-vinegar, never use it for long-lived keys, and treat the family as the highest-risk hedge.

Key takeaways

  • Multivariate cryptography rests on the NP-hard problem of solving systems of multivariate quadratic (MQ) equations, an assumption independent of lattices and codes.
  • A multivariate signature makes the public key a quadratic system whose preimage only a trapdoor holder can find; the trapdoor hides an easily invertible central map behind secret linear maps.
  • The oil-and-vinegar construction splits variables so that fixing the vinegar variables linearizes the system in the oil variables, giving the signer an easy inversion; the unbalanced single-layer form is the conservative version.
  • Rainbow, a layered oil-and-vinegar finalist, was broken in 2022 by a rank-based key-recovery attack running in a weekend — the general MQ problem was not broken, but its extra layering was.
  • The family is fragile because structured trapdoors expose algebraic (Gröbner), rank-based (MinRank), and differential attacks; the assumption is sound but the usable constructions keep falling.
  • Multivariate offers the smallest signatures and a genuinely independent assumption but the highest risk; use conservative single-layer variants cautiously, never for long-lived keys, and default to mature lattice or hash signatures.

Practitioner Toolkit

Copy-paste, strictly defensive artifacts you can use today. Nothing here attacks a real system.

Vetting a multivariate schemechecklist

Approach any multivariate signature with due caution.

  • Is it a conservative single-layer oil-and-vinegar design rather than a layered one?
  • Has it survived extended scrutiny against algebraic, MinRank, and differential attacks?
  • Is the signature-size benefit decisive for the application?
  • Is the large public key acceptable in the deployment?
  • Is the key short-lived, never a long-lived identity or artifact-signing key?
🚀Use multivariate carefullyquickstart

Deploy the small-signature option without overexposure.

  • Reserve it for high-volume, bandwidth-critical signing where size dominates.
  • Choose a conservative, well-scrutinized oil-and-vinegar variant.
  • Pair it with a mature scheme where feasible.
  • Never use it for long-lived keys; default to lattice or hash signatures.
🔒Multivariate caution policypolicy

A stub bounding where multivariate may be used.

multivariate_signature:
  assumption: mq_problem_sound
  construction_risk: high
  allowed_form: conservative_single_layer_uov
  layered_schemes: forbidden      # Rainbow fell in 2022
  key_lifetime: short_only
  long_lived_keys: forbidden
  default_instead: lattice_or_hash_signature
Illustrative documentation template, not a product config.

Glossary

MQ problem
Solving a system of multivariate quadratic equations over a finite field; NP-hard in general and the anchor of multivariate cryptography.
Multivariate trapdoor
A public quadratic system that is secretly the composition of an easily invertible central map with hidden linear transformations, so only the trapdoor holder can invert it.
Oil and vinegar
A central map with no oil-oil quadratic terms, so fixing the vinegar variables linearizes it in the oil variables; the unbalanced form is conservative.
Rainbow
A layered oil-and-vinegar signature finalist broken in 2022 by a rank-based key-recovery attack running in a weekend on a laptop.
MinRank attack
An attack exploiting low-rank structure in the quadratic forms of a multivariate scheme, central to breaking Rainbow.
Gröbner-basis / differential attacks
Directly solving the MQ system algebraically, or exploiting symmetries in the central map — recurring ways structured multivariate schemes fall.

References

  1. Beullens, Breaking Rainbow Takes a Weekend on a Laptop (CRYPTO, 2022)
  2. NIST IR 8545, Status Report on the Fourth Round of the NIST PQC Standardization Process (2025)
  3. Berlekamp, McEliece & van Tilborg, On the Inherent Intractability of Certain Coding Problems (IEEE Trans. Information Theory, 1978)
  4. NIST FIPS 204, Module-Lattice-Based Digital Signature Standard (2024)
  5. NIST FIPS 205, Stateless Hash-Based Digital Signature Standard (2024)