Intersection attack from the scratch
Introduction
In this post, we are going to illustrate how interesection attack on UOV works, from Kipnis-Shamir attack.
It involves some concepts from linear algebra:
- quadratic forms,
- characteristic polynomial,
- Cayley-Hamilton theorem.
The goal is to explain why UOV-like trapdoors can be viewed as hidden linear subspaces with special bilinear-algebraic properties. This viewpoint is one of the basic insights behind several attacks on multivariate-quadratic cryptosystems.
Preliminaries
Quadratic form
Let $V$ be a finite-dimensional vector space over a field $K$. A quadratic form is a map
such that for all $\lambda\in K$,
A polar form associated to $Q$ is defined by
and it is bilinear. After choosing a basis of $V\simeq K^n$, every quadratic polynomial can be represented as
for some matrix $M\in K^{n\times n}$. Expanding this expression gives
Therefore, the individual entries $m_{ij}$ and $m_{ji}$ are not independently visible in the quadratic polynomial; only their sum $m_{ij}+m_{ji}$ appears.
Symmetric invariance
The polar form of $Q_M(x)=x^T M x$ is
So the bilinear information attached to $Q_M$ is represented by $M+M^T$.
When the field characteristic $\operatorname{char}(K)$ is not $2$, we may replace $M$ by the symmetric matrix $\frac{M+M^T}{2}$ without changing th equadratic form. Equivalently, the skew-symmetric party of $M$ does not contribute to $x^TMx$.
Since there’s a critical attack on UOV-like schemes over an even characteristic called wedge product attack, so we don’t consider the even characteristic one in this post.
UOV
UOV stands for Unbalanced Oil and Vinegar. In secret coordinates, the variables are split into vinegar variables and oil variables:
The central quadratic map is
The defining UOV property is that the central polynomials contain no oil-oil quadratic terms. A typical component has the form
There are vinegar-vinegar terms and vinegar-oil terms, but no terms of the form
Equivalently, the matrix of the quadratic part of $F_\ell$ has block shape
where the lower-right block corresponds to oil-oil products.
The oil subspace in secret coordinates is
Since there are no oil-oil terms, every central component vanishes on this subspace:
More importantly for the attacks, the polar form also vanishes on pairs of oil vectors:
The public key hides this structure by composing the central map with invertible linear or affine maps. In the homogeneous linearized notation, one may write
where $T$ hides the variables and $S$ mixes the output equations. The hidden public oil subspace is then
Recovering $O$ is essentially a key-recovery attack: once the attacker knows the oil subspace, the signing trapdoor can be reconstructed or simulated.
The standard UOV trapdoor view is precisely that the public quadratic map vanishes on a secret $m$-dimensional oil subspace, and after fixing a vinegar component, signing reduces to solving a linear system in the oil variables.
Characteristic polynomial
For a square matrix $A\in K^{n\times n}$, its characteristic polynomial is
The Cayley-Hamilton theorem says that every square matrix satisfies its own characteristic polynomial:
If
is the factorization into irreducible factors over $K$, then the kernels
give $A$-invariant subspaces. In particular, if $f_r(t)=t-\lambda$, then
is the eigenspace of $A$ for the eigenvalue $\lambda$.
This is useful because the Kipnis-Shamir attack constructs matrices for which the hidden oil subspace is invariant. Factoring characteristic polynomials then gives candidate invariant subspaces, which can be tested against the oil-space condition $P’(O,O)=0$.
Kipnis-Shamir attack
Let $P=(p_1,\ldots,p_m)$ be the public homogeneous quadratic map, and let $M_i$ be the matrix of the polar form of the $i$-th public component:
The oil-space property gives
for every $i$.
Now consider the balanced Oil and Vinegar case, where $n=2m$.
Then
If $M_i$ is invertible, then
Since $M_iO\subseteq O^\perp$ and both spaces have dimension $m$, we obtain
Therefore, for two invertible matrices $M_i$ and $M_j$,
So the hidden oil space $O$ is an invariant subspace of
This is the key observation of the Kipnis-Shamir attack: recover $O$ by finding a common invariant $m$-dimensional subspace of several matrices $W_{ij}$.
In practice, one factors the characteristic polynomial of $W_{ij}$, obtains candidate invariant subspaces from the factors using Cayley-Hamilton, combines them when necessary, and tests whether the resulting subspace satisfies
The balanced case $n=2m$ is weak because $M_iO=O^\perp$ becomes an equality. For unbalanced UOV, where $n>2m$, we still have
but now
Thus $M_iO$ is usually only a proper subspace of $O^\perp$, and different images $M_iO$ and $M_jO$ no longer have to be equal. This is why the direct Kipnis-Shamir invariant-subspace argument stops working cleanly in the unbalanced case.
In the balanced case $M_iO=O^\perp$, while for $n>2m$ the equality need not hold, so $M_j^{-1}M_i$ no longer necessarily preserves $O$.
Caveat: This doesn’t mean Kipnis-Shamir cannot applied on the unbalanced case. One may consider some probabilistic relation and seek for the instance where his assumption holds. However, since the success rate exponentially decreases as the imbalance $n-2m$ grows.
Intersection attack
The intersection attack generalizes the Kipnis-Shamir idea to the unbalanced case.
Even when
both spaces still lie inside $O^\perp$:
Each of $M_iO$ and $M_jO$ has dimension $m$, while $O^\perp$ has dimension $n-m$. Therefore, by a dimension count,
Hence
So if $n<3m$, then the intersection
is expected to contain nonzero vectors. The attack searches for a vector
If such an $x$ is found, then
Because elements of $O$ vanish under $P$, and pairs of elements of $O$ vanish under the polar form, $x$ must satisfy
This gives a system of quadratic equations in the coordinates of $x$. Once a nonzero oil vector is recovered, additional oil vectors can be found more easily by imposing the linear conditions
for already-known oil vectors $o$. Repeating this process allows the attacker to reconstruct the whole oil subspace.
The same idea can be extended from two matrices to $k$ matrices. Let $L_1,\ldots,L_k$ be invertible matrices obtained from public components or invertible linear combinations of them. The attack looks for
A dimension count gives
Thus the intersection is expected to be nontrivial when
For example:
and
Here is a table for a few of the first ratio values.
| k | r |
|---|---|
| 2 | 3 |
| 3 | 5/2 |
| 4 | 7/3 |
| 5 | 9/4 |
Note that the ratio approaches to $2$. So we cannot increase the value of $k$ infinitely, as it fallbacks to the balanced case.
Summary
Intersection attack is a kind of generalization of Kipnis-Shamir attack, as they use the same idea of the image of $M_i$’s. The core difference comes from lower-bound observation on the image intersection, and it allows the attacker reduces the difficulty of direct MQ solve.
However, this statement on the dimension lower-bound makes sense on a tight upperbound on imbalance. So the intersection attack is not a general breakdown on UOV.