Hull Attack in Code Cryptanalysis
- Hull attack is a cryptanalytic method that exploits the quadratic hull of a linear code to expose hidden generalized Reed–Solomon structure in alternant-based cryptosystems.
- It leverages tangent-space analysis to recover the secret field structure, enabling polynomial-time key-recovery in high-rate settings.
- The attack's algorithm combines quadratic relation extraction, stabilizer computation, and classical support-recovery to break masked McEliece schemes.
Searching arXiv for recent and related papers on the quadratic-hull/tangent-space attack against alternant-based McEliece schemes. Hull attack denotes a key-recovery approach against certain code-based cryptosystems in which the attacker exploits the quadratic hull of a linear code to recover hidden algebraic structure. In the setting of generic alternant codes used in McEliece-type schemes, the attack described in "The Tangent Space Attack" identifies the concealed generalized Reed–Solomon (GRS) structure by studying the intersection of all quadrics passing through the columns of a public generator or parity-check matrix, and then extracting a common stabilizer of tangent spaces to the resulting variety (Lemoine, 15 May 2025). Under a high-rate regime, this yields a polynomial-time recovery of the underlying GRS code and therefore an efficient key-recovery attack against alternant-based McEliece instantiations (Lemoine, 15 May 2025).
1. Definition and geometric formalism
For a finite field , let be an -dimensional linear code, and let a generator matrix be viewed column-wise as an ordered set of points in the affine setting, or as points in in the projective setting (Lemoine, 15 May 2025). A quadric is the zero-locus of a homogeneous polynomial of total degree $2$, and with , the evaluation map
has kernel
the space of all quadratic forms vanishing on the column set (Lemoine, 15 May 2025).
The attack distinguishes two related objects. The algebraic quadratic hull is the ideal generated by these degree-0 relations, written 1, while the geometric quadratic hull is the affine variety
2
cut out by those quadrics (Lemoine, 15 May 2025). Up to projective equivalence these hulls depend only on the code and not on the particular choice of generator matrix (Lemoine, 15 May 2025). The paper further notes that Hilbert’s Nullstellensatz allows one to move between ideal-theoretic and variety-theoretic viewpoints, but that over a finite field the two must be distinguished (Lemoine, 15 May 2025).
The central idea of hull attack is that these quadratic relations are not merely invariants of the public code: they can encode the hidden algebraic geometry of the secret family from which the code originates. This is especially significant for code families whose quadratic hull is much smaller or more structured than that of a random code of the same parameters (Lemoine, 15 May 2025).
2. Rational normal curves, squares, and the hidden GRS structure
For a generalized Reed–Solomon code 3 with support 4 and multiplier 5, one may choose a truncated Vandermonde generator
6
If 7, then 8 is spanned by the 9 minors of the 0 Hankel matrix
1
and therefore defines the rational normal curve 2; equivalently, the quadratic hull 3 is exactly the affine cone over that curve (Lemoine, 15 May 2025).
This characterization explains why GRS codes have very small Schur squares. Specifically,
4
so that
5
(Lemoine, 15 May 2025). The attack leverages precisely this atypical abundance of quadratic relations.
A plausible implication is that the hull attack is best viewed as a geometric refinement of square-code distinguishers: rather than using only the dimension defect of 6, it exploits the full variety cut out by the degree-7 relations. That interpretation is consistent with the paper’s emphasis on the rational normal curve as the geometric carrier of the hidden GRS structure (Lemoine, 15 May 2025).
3. Alternant codes, trace descriptions, and Weil restriction
An alternant code of degree 8 over 9 is defined by
0
(Lemoine, 15 May 2025). By Delsarte’s theorem, its dual is the trace code of a GRS code:
1
(Lemoine, 15 May 2025). This trace description is essential because it allows the attacker to compare an 2-linear public code of dimension 3 with an 4-linear secret code of dimension 5.
The comparison is mediated by affine Weil restriction. If
6
writes each coordinate in a chosen 7-basis 8, then the induced map on polynomials
9
splits each 0 into its 1 coordinate functions (Lemoine, 15 May 2025). One then obtains
2
and under a square-distinguishability, high-rate regime this inclusion becomes an equality (Lemoine, 15 May 2025). In that case the alternant code is called Weil-proper, and one has
3
up to the secret 4-linear change of basis 5 used in the McEliece public key (Lemoine, 15 May 2025).
This equality is the geometric hinge of hull attack. It means that the public quadratic hull is not an arbitrary variety in 6, but the Weil restriction of the affine cone over the rational normal curve, transported by an unknown linear transformation (Lemoine, 15 May 2025).
4. Tangent-space recovery of the secret field structure
The attack assumes that 7 is a generic alternant code of extension degree 8 and dimension 9 whose rate is high enough that
0
equivalently that the right-hand side of the Faugère–Gauthier–Otmani–Perret–Tillich bound meets 1 exactly (Lemoine, 15 May 2025). The paper gives the equivalent parameter condition
2
(Lemoine, 15 May 2025). The public parity-check matrix has the form
3
with secret 4 (Lemoine, 15 May 2025).
Under these hypotheses, the quadratic hull
5
is, up to 6, the Weil restriction of the affine cone over the rational normal curve (Lemoine, 15 May 2025). Its tangent spaces 7, for 8 ranging over the 9 column-points of $2$0, are all stabilized by the same linear operator
$2$1
where $2$2 is the companion matrix of $2$3, the scalar-multiplication map in $2$4 (Lemoine, 15 May 2025).
Two structural statements drive the method. First, if $2$5, then for every $2$6 the tangent space satisfies
$2$7
and is therefore $2$8-invariant; after conjugation by the secret basis change, each $2$9 is 0-invariant (Lemoine, 15 May 2025). Second, the only matrices stabilizing every 1-Weil-restriction subspace are polynomials in 2, so intersecting all stabilizers of the tangent spaces recovers the one-dimensional 3-algebra 4 (Lemoine, 15 May 2025).
In effect, the hull attack does not directly recover the support and multiplier. It first reconstructs the hidden field action encoded by the public alternant representation. This suggests that tangent-space analysis acts as an algebra extractor: the geometry reveals the ambient extension-field structure before the classical support-recovery phase begins.
5. Algorithmic workflow and complexity
The key-recovery algorithm consists of five explicit steps (Lemoine, 15 May 2025).
| Step | Operation | Cost or output |
|---|---|---|
| 1 | Compute a basis of 5 by finding all quadratic relations among the columns of 6 | Kernel of the star-product map or direct null-space computation |
| 2 | Sample column-points of 7, compute tangent spaces 8, and solve equations expressing 9 | Recovers a basis 0 of the algebra 1 |
| 3 | Find a generator 2 of degree 3, compute its minimal polynomial, and solve a similarity problem | Obtain 4 with 5 |
| 4 | Recover 6 | 7 is an 8-generator matrix of a GRS code conjugate to 9 |
| 5 | Run the classical Sidelnikov–Shestakov attack on the recovered GRS code | Recover 0, hence 1 |
In Step 2, the paper specifies random sampling of about
2
points among the column-points of 3 (Lemoine, 15 May 2025). For each sampled point one computes the tangent space as the right-kernel of the Jacobian of the 4 generators at that point, and accumulates the linear equations defining stabilizers (Lemoine, 15 May 2025).
The complexity analysis is polynomial-time throughout. Each null-space or kernel step on matrices of size 5 costs 6, and Step 1 plus Step 2 therefore runs in 7 field operations (Lemoine, 15 May 2025). In Step 3, computing the minimal polynomial has cost 8 (Lemoine, 15 May 2025). Assuming 9, described as the usual McEliece regime, the entire key-recovery runs in
00
operations in 01 (Lemoine, 15 May 2025).
The final phase uses the classical Sidelnikov–Shestakov attack on the recovered GRS code in 02, after which tracing back through Frobenius conjugacy yields the original support and multiplier (Lemoine, 15 May 2025). This places hull attack in direct continuity with earlier algebraic attacks on GRS-masked McEliece systems, while extending the vulnerable class to high-rate alternant instances through the intermediary of quadratic geometry (Lemoine, 15 May 2025).
6. Scope, extensions, and limitations
The same strategy is stated to apply to one-point algebraic-geometry codes 03 of degree 04 with 05, or more generally in a square-distinguishable regime (Lemoine, 15 May 2025). In that case, the quadratic hull of the 06-generator 07 is the embedded curve 08, and under analogous Weil-properness heuristics the hull of its trace-subcode yields the Weil restriction of 09 (Lemoine, 15 May 2025). The tangent-space step again recovers the field-automorphism matrix, after which one obtains an 10-generator of the underlying AG code, from which length-11 decoding follows by known AG-decoding algorithms (Lemoine, 15 May 2025).
For classical Goppa codes, the situation is mixed. Binary Goppa codes 12 of degree 13 often satisfy the FGOPT bound when 14, so one again has Weil-properness, and in that subregime the attack recovers the hidden support and Goppa-polynomial roots, up to Frobenius conjugacy, in 15 (Lemoine, 15 May 2025). However, when 16, the quadratic hull of Goppa codes collapses to a trivial 17-dimensional variety because field-equation terms appear, and it no longer exhibits the rich 18-structure needed by the tangent-space method (Lemoine, 15 May 2025). The paper reports that the tangent-space distinguisher then fails empirically, and that the attack does not extend to full Goppa parameters; in particular, binary Goppa codes of practical interest remain, so far, unbroken by this method (Lemoine, 15 May 2025).
A common misconception would be to treat hull attack as a universal break of code-based cryptography. The available result is narrower: it targets high-rate alternant-based McEliece schemes under explicit structural and distinguishability assumptions, extends heuristically to certain AG codes, and only partially affects Goppa codes (Lemoine, 15 May 2025).
7. Research significance and open problems
The significance of hull attack lies in its relocation of code-based cryptanalysis from purely combinatorial or rank-based invariants toward explicit algebraic geometry. The quadratic hull is the intersection of all quadrics through the public column set, but in the vulnerable regimes it also serves as a proxy for the hidden rational normal curve or its Weil restriction (Lemoine, 15 May 2025). This establishes a direct link between the public linear-algebraic representation of a code and the secret algebraic variety defining the private structure.
The paper leaves three open questions. First, whether the hull approach can be refined to cover the remaining high-rate Goppa cases, in particular by exploiting additional higher-degree syzygies or non-quadratic hulls (Lemoine, 15 May 2025). Second, which other code families admit a structured quadratic hull vulnerable to tangent-space attacks (Lemoine, 15 May 2025). Third, to what extent the heuristic square-distinguishability assumption can be replaced by a provable criterion on code parameters (Lemoine, 15 May 2025).
These questions indicate that hull attack is both a concrete cryptanalytic method and a broader research program. A plausible implication is that future attacks may generalize from quadratic hulls to higher-degree defining equations whenever the public code inherits a sufficiently rigid embedded variety from a secret algebraic construction. In that sense, hull attack marks the emergence of tangent-space and stabilizer computations as tools for extracting hidden extension-field structure from public code representations (Lemoine, 15 May 2025).