Papers
Topics
Authors
Recent
Search
2000 character limit reached

Hull Attack in Code Cryptanalysis

Updated 6 July 2026
  • 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 F\mathbb{F}, let CFnC \subset \mathbb{F}^n be an rr-dimensional linear code, and let a generator matrix GFr×nG \in \mathbb{F}^{r \times n} be viewed column-wise as an ordered set of points x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r in the affine setting, or as points in Pr1(F)\mathbf{P}^{r-1}(\mathbb{F}) in the projective setting (Lemoine, 15 May 2025). A quadric is the zero-locus of a homogeneous polynomial of total degree $2$, and with R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}], the evaluation map

evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))

has kernel

I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),

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-CFnC \subset \mathbb{F}^n0 relations, written CFnC \subset \mathbb{F}^n1, while the geometric quadratic hull is the affine variety

CFnC \subset \mathbb{F}^n2

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 CFnC \subset \mathbb{F}^n3 with support CFnC \subset \mathbb{F}^n4 and multiplier CFnC \subset \mathbb{F}^n5, one may choose a truncated Vandermonde generator

CFnC \subset \mathbb{F}^n6

If CFnC \subset \mathbb{F}^n7, then CFnC \subset \mathbb{F}^n8 is spanned by the CFnC \subset \mathbb{F}^n9 minors of the rr0 Hankel matrix

rr1

and therefore defines the rational normal curve rr2; equivalently, the quadratic hull rr3 is exactly the affine cone over that curve (Lemoine, 15 May 2025).

This characterization explains why GRS codes have very small Schur squares. Specifically,

rr4

so that

rr5

(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 rr6, it exploits the full variety cut out by the degree-rr7 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 rr8 over rr9 is defined by

GFr×nG \in \mathbb{F}^{r \times n}0

(Lemoine, 15 May 2025). By Delsarte’s theorem, its dual is the trace code of a GRS code:

GFr×nG \in \mathbb{F}^{r \times n}1

(Lemoine, 15 May 2025). This trace description is essential because it allows the attacker to compare an GFr×nG \in \mathbb{F}^{r \times n}2-linear public code of dimension GFr×nG \in \mathbb{F}^{r \times n}3 with an GFr×nG \in \mathbb{F}^{r \times n}4-linear secret code of dimension GFr×nG \in \mathbb{F}^{r \times n}5.

The comparison is mediated by affine Weil restriction. If

GFr×nG \in \mathbb{F}^{r \times n}6

writes each coordinate in a chosen GFr×nG \in \mathbb{F}^{r \times n}7-basis GFr×nG \in \mathbb{F}^{r \times n}8, then the induced map on polynomials

GFr×nG \in \mathbb{F}^{r \times n}9

splits each x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r0 into its x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r1 coordinate functions (Lemoine, 15 May 2025). One then obtains

x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r2

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

x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r3

up to the secret x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r4-linear change of basis x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r5 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 x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r6, 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 x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r7 is a generic alternant code of extension degree x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r8 and dimension x1,,xnFrx_1,\dots,x_n \in \mathbb{F}^r9 whose rate is high enough that

Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})0

equivalently that the right-hand side of the Faugère–Gauthier–Otmani–Perret–Tillich bound meets Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})1 exactly (Lemoine, 15 May 2025). The paper gives the equivalent parameter condition

Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})2

(Lemoine, 15 May 2025). The public parity-check matrix has the form

Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})3

with secret Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})4 (Lemoine, 15 May 2025).

Under these hypotheses, the quadratic hull

Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})5

is, up to Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})6, the Weil restriction of the affine cone over the rational normal curve (Lemoine, 15 May 2025). Its tangent spaces Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})7, for Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})8 ranging over the Pr1(F)\mathbf{P}^{r-1}(\mathbb{F})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 R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]0-invariant (Lemoine, 15 May 2025). Second, the only matrices stabilizing every R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]1-Weil-restriction subspace are polynomials in R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]2, so intersecting all stabilizers of the tangent spaces recovers the one-dimensional R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]3-algebra R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]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 R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]5 by finding all quadratic relations among the columns of R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]6 Kernel of the star-product map or direct null-space computation
2 Sample column-points of R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]7, compute tangent spaces R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]8, and solve equations expressing R=F[X0,,Xr1]R=\mathbb{F}[X_0,\dots,X_{r-1}]9 Recovers a basis evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))0 of the algebra evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))1
3 Find a generator evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))2 of degree evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))3, compute its minimal polynomial, and solve a similarity problem Obtain evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))4 with evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))5
4 Recover evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))6 evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))7 is an evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))8-generator matrix of a GRS code conjugate to evG:R2Fn,f(f(x1),,f(xn))\operatorname{ev}_G: R_2 \to \mathbb{F}^n,\qquad f \mapsto (f(x_1),\dots,f(x_n))9
5 Run the classical Sidelnikov–Shestakov attack on the recovered GRS code Recover I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),0, hence I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),1

In Step 2, the paper specifies random sampling of about

I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),2

points among the column-points of I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),3 (Lemoine, 15 May 2025). For each sampled point one computes the tangent space as the right-kernel of the Jacobian of the I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),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 I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),5 costs I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),6, and Step 1 plus Step 2 therefore runs in I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),7 field operations (Lemoine, 15 May 2025). In Step 3, computing the minimal polynomial has cost I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),8 (Lemoine, 15 May 2025). Assuming I2(G)=ker(evG),I_2(G)=\ker(\operatorname{ev}_G),9, described as the usual McEliece regime, the entire key-recovery runs in

CFnC \subset \mathbb{F}^n00

operations in CFnC \subset \mathbb{F}^n01 (Lemoine, 15 May 2025).

The final phase uses the classical Sidelnikov–Shestakov attack on the recovered GRS code in CFnC \subset \mathbb{F}^n02, 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 CFnC \subset \mathbb{F}^n03 of degree CFnC \subset \mathbb{F}^n04 with CFnC \subset \mathbb{F}^n05, or more generally in a square-distinguishable regime (Lemoine, 15 May 2025). In that case, the quadratic hull of the CFnC \subset \mathbb{F}^n06-generator CFnC \subset \mathbb{F}^n07 is the embedded curve CFnC \subset \mathbb{F}^n08, and under analogous Weil-properness heuristics the hull of its trace-subcode yields the Weil restriction of CFnC \subset \mathbb{F}^n09 (Lemoine, 15 May 2025). The tangent-space step again recovers the field-automorphism matrix, after which one obtains an CFnC \subset \mathbb{F}^n10-generator of the underlying AG code, from which length-CFnC \subset \mathbb{F}^n11 decoding follows by known AG-decoding algorithms (Lemoine, 15 May 2025).

For classical Goppa codes, the situation is mixed. Binary Goppa codes CFnC \subset \mathbb{F}^n12 of degree CFnC \subset \mathbb{F}^n13 often satisfy the FGOPT bound when CFnC \subset \mathbb{F}^n14, 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 CFnC \subset \mathbb{F}^n15 (Lemoine, 15 May 2025). However, when CFnC \subset \mathbb{F}^n16, the quadratic hull of Goppa codes collapses to a trivial CFnC \subset \mathbb{F}^n17-dimensional variety because field-equation terms appear, and it no longer exhibits the rich CFnC \subset \mathbb{F}^n18-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).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Hull Attack.