arXiv:2609.30925cs.CRSep 2026

Manuscript Offprint

arXiv:2609.30925

How to break the Miranda signature scheme over matrix Gabidulin codes

Adrien Vinçotte

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Adrien Vinçotte ∗*

IRMAR, Université de Rennes, France

Abstract. The Miranda signature scheme [CDAGV25] relies on masking a matrix code which disposes of a masked underlying structure, and the knowledge of which allows for efficient error decoding. We consider a Gabidulin code (a vector Fqm\mathbb{F}_{q^m}-linear code) which is expanded into a matrix code, that is only Fq\mathbb{F}_q-linear. An additional masking is then applied to it. The attack proposed here shares similarities with that of [Le26] on the EGMC encryption scheme [ACD +^{+}25], which also follows the paradigm described above. It consists in recovering the Fqm\mathbb{F}_{q^m}-linear structure of a masked matrix Gabidulin code by reducing to a MinRank instance to be solved over the extension field Fqm\mathbb{F}_{q^m}, but where the matrices have coefficients in Fq\mathbb{F}_q. Such an instance can be efficiently solved. However, unlike the previous attack, it is possible to reduce in polynomial time to such a MinRank instance in the case of the Miranda signature scheme. This results in a particularly efficient key recovery attack against the parameters proposed for Miranda. For example, for the proposed parameter set with m=79m = 79, the complexity drops from 146 bits to 46 bits in this attack.

1 Introduction

The Two Notions of Rank Metric Codes. The rank metric was initially defined in 1951 by Loo-Keng Hua [Hua51] as an arithmetic distance on a matrix space with coefficients in Fq\mathbb{F}_q. The distance between two matrices A\mathbf{A} and B\mathbf{B} is defined as the rank of A−B\mathbf{A} - \mathbf{B}. In 1978, Delsarte proposed the notion of matrix code [Del78] : an Fq\mathbb{F}_q-linear subspace of the set of matrices Fqm×n\mathbb{F}_q^{m \times n}. The weight of a matrix then corresponds to its rank.

Several years later, Ernst Gabidulin extended the definition of rank metric to the space Fqmn\mathbb{F}_{q^m}^n, enabling the construction of codes that benefit from Fqm\mathbb{F}_{q^m}-linearity [Gab85]. The weight of a vector is then the dimension of the Fq\mathbb{F}_q-vector space spanned by its coefficients. He then defined Gabidulin codes, which can be viewed as the rank metric analogue of Reed-Solomon codes. The Fqm\mathbb{F}_{q^m}-linearity of such a code allows for a much more compact definition, thereby mitigating one of the main issues in code-based cryptography: the size of the code representation. He then proposed masking such a code to construct the GPT cryptosystem, an adaptation of the McEliece cryptosystem to the rank metric [GPT91]. However,

the Fqm\mathbb{F}_{q^{m}}-linearity introduces a high degree of algebraic rigidity in return, which can be exploited to form particularly effective structural attacks: this is the case for Overbeck's attack [Ove08], which efficiently recovers the masked Gabidulin code.

Two Protocols Based on a Masked Fqm\mathbb{F}_{q^{m}}-Linear Matrix Code. In order to break the Fqm\mathbb{F}_{q^{m}}-linearity structure of a Gabidulin code while retaining its decoding properties, the authors of [ACD +^{+}25] propose converting the Gabidulin code into an Fq\mathbb{F}_{q}-linear matrix code: they write the vectors of Fqmn\mathbb{F}_{q^{m}}^{n} as matrices in Fqm×n\mathbb{F}_{q}^{m\times n}, where the columns correspond to the representation of the vector's coordinates in an Fq\mathbb{F}_{q}-base γ\gamma of Fqm\mathbb{F}_{q^{m}}. This matrix code is then masked by adding random coefficients to each element of a basis of rows and columns, which are propagated through left- and right-multiplication by invertible matrices P and Q with entries in Fq\mathbb{F}_{q}, yielding an Enhanced Gabidulin Matrix Code (EGMC). This family of codes is then used to build the EGMC-McEliece and EGMC-Niederreiter cryptosystems, whose security relies on solving a MinRank instance or recovering the private key from the public key. A first structural attack was proposed by [PWL26], necessitating a revision of the parameters.

Later, the Miranda signature scheme [CDAGV25] was designed by also exploiting the transformation of an Fqm\mathbb{F}_{q^m}-linear Gabidulin code into a matrix code. However, the masking mechanism differs: the authors introduce the AddRemove( ℓa,ℓs\ell_a, \ell_s) transformation, which consists in constructing a subcode of codimension ℓs\ell_s from the matrix Gabidulin code, and adding ℓa\ell_a random matrices to its basis. Miranda is a hash-and-sign signature scheme built following the GPV paradigm [GPV08]: the public code is constructed using the AddRemove( ℓa,ℓs\ell_a, \ell_s) transformation with ℓa>ℓs\ell_a > \ell_s, implying that it is possible to decode any element of the space, since we operate above the unique decoding regime (though it remains necessary to prove that the signature distribution reveals no information about the underlying Gabidulin code). As in the EGMC encryption scheme, forging a signature requires solving an instance of the MinRank problem: a random syndrome s\mathbf{s} is sampled, and the signature consists of an error E∈Fqm×n\mathbf{E} \in \mathbb{F}_q^{m \times n} associated with s\mathbf{s}. This yields a very short signature size, but at the cost of a signing time that is exponential in ℓs\ell_s and the decoding capacity of the Gabidulin code.

The Attack by [Le26] on the EGMC encryption scheme. This recent attack proposes guessing the impact of one of the matrices P or Q, and computing that of the second using the remaining traces of the Fqm\mathbb{F}_{q^{m}}-linearity underlying the public matrix code. This leads to two different variants of the attack depending on whether one guesses P or Q, both allowing the recovery of an equivalent secret key, which is sufficient to execute the decryption algorithm. In particular, guessing the role of Q allows puncturing the public code so as to obtain a dual of dimension 1 in the extension Fqm\mathbb{F}_{q^{m}}. It is then possible to set up a bilinear system whose unknowns are the basis γ\gamma into which the Gabidulin code was expanded, as well as the vector h defining the dual. Solving this system yields the masked

Fqm\mathbb{F}_{q^{m}}-linearity, and hence the secret key. This attack does not break the protocol, but a parameter update proves necessary.

Contributions. This is the first proposed attack against the Miranda signature scheme. We propose here to apply an idea similar to the attack in [Le26] by puncturing the public code until obtaining a code whose dual has dimension 1 over Fqm\mathbb{F}_{q^{m}}. In stark contrast to the EGMC cryptosystem, puncturing is immediate because there is no secret matrix interfering with it. The AddRemove transformation leaves enough traces of the underlying Fqm\mathbb{F}_{q^{m}}-linearity of the matrix Gabidulin code that one can reduce in polynomial time to solving a MinRank instance that requires finding a rank-1 matrix. Although this instance must be solved over the extension Fqm\mathbb{F}_{q^{m}} (which is large in the given parameters), algebraic attacks based on minor computations are very efficient when looking for a low-rank matrix. This significantly impacts the security of the parameters provided in [CDAGV25]: for instance, the present attack has a complexity below 100 bits for parameters for which the authors claimed a security level of 143 bits, and drops to 62 bits for those with the smallest value for m.