Manuscript Offprint
arXiv:2609.30925How to break the Miranda signature scheme over matrix Gabidulin codes
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 -linear code) which is expanded into a matrix code, that is only -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 -linear structure of a masked matrix Gabidulin code by reducing to a MinRank instance to be solved over the extension field , but where the matrices have coefficients in . 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 , 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 . The distance between two matrices and is defined as the rank of . In 1978, Delsarte proposed the notion of matrix code [Del78] : an -linear subspace of the set of matrices . The weight of a matrix then corresponds to its rank.
Several years later, Ernst Gabidulin extended the definition of rank metric to the space , enabling the construction of codes that benefit from -linearity [Gab85]. The weight of a vector is then the dimension of the -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 -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 -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 -Linear Matrix Code. In order to break the -linearity structure of a Gabidulin code while retaining its decoding properties, the authors of [ACD 25] propose converting the Gabidulin code into an -linear matrix code: they write the vectors of as matrices in , where the columns correspond to the representation of the vector's coordinates in an -base of . 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 , 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 -linear Gabidulin code into a matrix code. However, the masking mechanism differs: the authors introduce the AddRemove( ) transformation, which consists in constructing a subcode of codimension from the matrix Gabidulin code, and adding 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( ) transformation with , 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 is sampled, and the signature consists of an error associated with . This yields a very short signature size, but at the cost of a signing time that is exponential in 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 -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 . It is then possible to set up a bilinear system whose unknowns are the basis into which the Gabidulin code was expanded, as well as the vector h defining the dual. Solving this system yields the masked
-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 . 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 -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 (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.
– The vectors will be denoted by bold lowercase letters , and matrices by bold uppercase letters .
– We denote by Unfold the application that consists on writing a matrix of as a vector of , by concatenating all the rows of the matrix:
Unfold :
The reverse application is denoted by Fold .
– For , we denote by the value of on which the Frobenius has been applied times. For a vector , does mean that the Frobenius has been applied times on each coefficient:
This notation will also be used in the case of matrices.
– denotes the set of -bases of .
– The dual basis of is denoted by (see Definition 11).
2.1 Rank metric codes
Definition 1 ( -expansion). Let be an -basis of . The -expansion of an element in to a vector in is defined as the application:
such that .
extends naturally to a vector and turns it into a matrix , by writing in columns the coordinates of each element in basis in column.
Definition 2 (Vector codes with rank metric). A vector code of parameters is an -subspace of of dimension endowed with the rank metric. The weight of a vector is the rank of the matrix , for a basis . The weight of a vector is independent of the choice of the basis .
Equivalently, the rank of a vector is the dimension of the -vector space spanned by its coordinates, that is the support of . We denote the weight of a vector by:
Definition 3 (Matrix codes). A matrix code of parameters is an -vectorial subspace of of dimension endowed with the rank metric.
An -linear vector code of parameters can be turned into a matrix code defined as:
Let , and be an -basis of , then an -basis of is given by:
It implies that if is a vector code of parameters , then is a matrix code of parameters . In this case, we talk about an " -linear matrix code". However, it is possible to recover this linearity by calculating the set of matrices that leave the code invariant when multiplying at the left.
Definition 4 (Left stabilizer). Let be a matrix code. The left stabilizer of is:
While a random code will have a trivial stabilizer with overwhelming probability (and thus of dimension 1: the space spanned by the identity matrix), that of an -linear code will contain the matrices of multiplication by elements of written in basis (thus of dimension ).
Definition 5 (Equivalent codes). Two vector codes and are said to be equivalent if the exists a matrix such that
Two matrix codes and are said to be equivalent if there exist two matrices and such that
If (resp. ), and are said to be right equivalent (resp. left equivalent).
As seen above, the transformation of a vector code into a matrix code is dependent on the choice of the basis . However, two different bases produce left-equivalent codes. For two bases and , if we denote the transition matrix between and , we get:
On the other hand, the following assertions can be easily checked. For and , then . Also, for , then . We consider the action of multiplication by a scalar and the composition by Frobenius on , and the underlying equivalence relation :
We can verify that for a given -linear matrix code , then for two basis , we have if and only if the vector codes and are equivalent.
Dual of a matrix code. If the notion of duality is well-known for a vector code (that is the orthogonal of the canonical scalar product in ), it is also necessary to introduce a notion of orthogonality in matrix spaces.
Definition 6 (Dual of a matrix code). Let a matrix code of parameters . Its dual is the matrix code of parameters :
The considered scalar product on matrix spaces does not seem to respect -linearity, and in general, the dual of an -linear matrix code loses his linearity on the extension.
2.2 MinRank problem
The MinRank problem can be seen as the Rank Decoding problem adapted to -linear matrix codes.
Definition 7 (MinRank problem). Given as input matrices , the MinRank problem asks to find and with rank such that .
The decoding problem for a noisy codeword matrix code of parameters is exactly the MinRank problem, where is the rank of the error. Similarly to Niederreiter encryption, the Miranda signature requires decoding a syndrome of the matrix codeword.
We can see that , where denotes the canonical scalar product on , allowing one to properly define a notion of dual for matrix codes. The interested reader can find more details in [CDAGV25].
Definition 8 (MinRank-Syndrome problem). Given as input vectors , the MinRankSyndrome problem asks to find with rank such that .
The two problems are equivalent for the same reasons that the decoding problem and the syndrome decoding problem are in the vector codes context.
2.3 Gabidulin codes
Gabidulin codes were introduced by Ernst Gabidulin in 1985 [Gab85]. These vector codes can be seen as the analog in rank metric of the Reed-Solomon codes, where the codeword is a set of evaluation points of a q-polynomial rather than a standard polynomial.
Definition 9 (q-polynomial). A q-polynomial of q-degree r is a polynomial in of the form:
For a q-polynomial P, we denote by its q-degree.
A q-polynomial is also called a linearized polynomial since it induces an -linear application due to the linearity of the Frobenius endomorphism. Due to their structure, q-polynomials are inherently related to decoding problems in the rank metric.
Definition 10 (Gabidulin code [Gab85]). Let , such that . Let a vector of -linearly independent elements of . The Gabidulin code is the vector code of parameters defined by:
where and is a q-polynomial.
The vector g is said to be an evaluation vector of the Gabidulin code . Gabidulin codes are popular in cryptography because they benefit from a very efficient decoding algorithm achieving the Singleton bound.
Proposition 1 ([Gab85]). Given a Gabidulin code of parameters , there exists a deterministic algorithm running in operations in and such that given :
- if there exists and with such that , then it outputs ;
– otherwise, it outputs .
However, their strong structure makes them difficult to hide: Overbeck's attack [Ove08] made it possible to break a very large number of Gabidulin code maskings. On the other hand, while the -linearity of a matrix code is lost when passing to the dual, this is not the case for a Gabidulin code: the dual of is indeed an other matrix Gabidulin code, which corresponds to the code expanded in the dual base of .
Definition 11 (Trace application and dual basis). Let Trace: be the -linear application given by:
The dual basis of is the only basis such that for all .
We usually denote by the dual basis of . The following properties can be easily check. For and , then . Also, for . It implies that for :
Proposition 2 (Dual of a matrix Gabidulin code [Rav16]). Let G be a Gabidulin code, . Then:
This implies that passing to the dual of a matrix Gabidulin code will leave traces of -linearity. Also, the link between equivalent bases for the relation and equivalent matrix codes mentioned above is compatible by passing to the dual in the case of a Gabidulin code. Let be a matrix Gabidulin code (extended in any basis of ) and two bases . Then we have if and only if the vector codes and are equivalent.
2.4 The Miranda signature scheme
We present here the construction of the secret key of the Miranda signature scheme. First, a secret Gabidulin code of parameters is expanded into a matrix code by applying the transform , where is uniformly sampled from . Then, the authors of Miranda introduce the AddRemove transform to mask a secret matrix Gabidulin code, allowing them to break the hidden -linearity of the matrix code, and prevent the Overbeck attack [Ove08].
Definition 12 (Add-and-Remove matrix-code construction [CDAGV25]). Let be integers and be a -code. The Add-And-Remove transform AddRemove is defined as follows. Let be an arbitrary subcode of of codimension . Then, let be an arbitrary -code such that . We define the resulting Add-and-Remove code as follows:
where denotes the direct sum of vector spaces. It defines an matrix code.
Miranda public keys are defined as a random basis of the dual of some code obtained via the AddRemove construction. The key generation algorithm is formally defined in Appendix A.
Given the hash of the message to sign: , a signature is then the matrix with rank at most such that:
The associated trapdoor is the knowledge of the underlying code to form . How to use this trapdoor to compute a valid matrix is explained in Appendix B.
The authors of Miranda take two attacks into account when calculating the parameters of the signature. The first is the forgery signature, which consists in directly trying to solve the MinRank instance to compute a valid error E. On the other hand, the authors of Miranda propose a structural attack which consists in recovering the hidden -linearity by retrieving the left-stabilizer algebra of the secret code.
Our goal in the following will be to improve on the current structural attack by leveraging Le’s attack [Le26]. We will see that we manage to recover the -linearity, which is supposedly hidden, as the codes and are only linear over , and not over the extension.
3 Key recovery attack for Miranda
This section introduces another structural attack different from the one previously proposed by the authors of Miranda. It consists of reducing in polynomial time to the resolution of a MinRank instance whose target matrix has rank 1, in a similar fashion to Le's attack [Le26].
Let be a (secret) Gabidulin code of parameters , and . We consider the public code
where is a subcode of of co-dimension and has dimension with . We further assume that is a -vector space of dimension , which occurs with high probability (if it is not the case, the attack can be performed by decreasing by 1, until reaching the dimension of ). In what follows, we suppose that (at the end of Subsection 3.1 we show that we can always reduce ourselves to this case).
The attack consists of truncating the matrix code so that its -linear vector version has a dual of dimension 1 in . However, some elements of the attack change due to the nature of the masking. In fact, as the maskings in the ACDGV encryption scheme and Miranda are very different, it is not straightforward that one can use the same methods to attack them. Furthermore, the addition of random matrices in Miranda's public code leads to a change in the behavior of the MinRank solver.
The implementation in sage of functions allowing to recover the normalized basis can be found here: https://github.com/AdrienVincotte/Stickelberger-attack-on-the-Miranda-signature-scheme.git. Recover the secret Gabidulin code from this basis is a well-known problem (see Subsection 3.3).
3.1 Reduction in polynomial time to an easy MinRank instance
The goal of this section is to show that recovering the basis (up to multiplication by a scalar) used in the secret key can be reduced to solving a rank 1 MinRank instance, in a very large field.
The first step of the attack is to sample a random full-rank matrix , and then to consider the Gabidulin code , which has for evaluation vector gV. We then define
which is a matrix code with parameters . We also define . Then, the code
spans a code over , then with a one-dimensional dual. The aim of this attack is to determine a vector that generates this dual.
Let be a basis of . By definition of , for all , we have:
We deduce that for all :
Remark 1. It should be noted that the solution is not unique (possible bases can belong to different orbits of the relation ), although the subcode of the -linear matrix code does not break underlying -linearity.
Expressing this computation in terms of the components of the unknowns and , we obtain:
Setting , we obtain a linear system of equations in unknowns. This makes it an underdetermined linear system.
We write the system as a matrix (notice that the coefficient of are in ). Solving this system is equivalent to finding a vector such that:
Indeed, because of the constraints on the values , , the folded version of has rank 1.
Let . Since all the linear equations are independent , the rank theorem implies that . Let
This is an immediate consequence of the fact that the matrices are also independent
be a basis of . For , we define a basis of the folded kernel: .
We seek an element of whose folded form is a rank-1 matrix, which corresponds to searching for such a matrix in the matrix code . We have thus reduced the problem in polynomial time to a MinRank instance in a code with parameters , where the target is a rank-1 matrix.
However, it should be noted that this MinRank instance is solved in a matrix code whose coefficients of a basis belong to , and not . Then, the set of solutions is stable under multiplication by an element of , and composition by Frobenius. As a result, the MinRank instance is not random and the usual solvers are not necessarily accurate. The topic of Subsection 3.2 is thus to explain how we solve the MinRank instance, in the same fashion as Le [Le26], but with small subtleties that require to be careful.
The case . If the code were to span the entire space , this attack would become impracticable. This corresponds to the case
However, one can always draw a subcode of of codimension until the attack can be applied: it would simply suffice for the intersection between and to be of dimension so that no longer spans the entire space , and then apply the attack to . This subcode can be chosen with a small dimension, the only constraint being to preserve the -linear structure of the code , in order to ensure that its dual has dimension 1 over .
Remark 2. It is possible that the intersection between and has dimension lower than . If it happens, all vectors belonging to a -vectorial space of dimension 2 will define a solution, and then the kernel of the Macaulay matrix defined in Subsection 3.2 will have an abnormally large dimension. The attacker then simply has to truncate the code to obtain a length equal to (or eventually smaller if needed) rather than to obtain a dual of dimension 1.
3.2 Solving the MinRank instance
Now that we have shown that one should aim at recovering a rank-1 matrix, we detail here how to proceed, that is to say, how to solve a MinRank instance, in the matrix code with parameters . The answer seems simple, as it is possible to solve this MinRank instance using existing generic algorithms, such as Minors or SupportMinors (and these would be sufficient to attack the parameters proposed in [CDAGV25]). However, as highlighted previously, this instance is not generic, since all matrices have coefficients in , and thus the behavior of the generic solvers becomes harder to predict. Nevertheless, one can solve this system very efficiently by performing linear algebra over rather than over the extension. This part of the attack proceeds almost identically to that of [Le26]. However, unlike Le's attack, parasitic solutions appear. We will see that this requires additional care in the analysis.
Step 1: modeling using minors. We define the multivariate polynomial ring . We write
for the targeted rank-1 matrix. By expressing the minors of as functions of the variables , we derive a homogeneous quadratic system of equations, consisting of equations and monomials, that fully characterize the fact that is of rank 1.
We denote by the set of these equations, and by the ideal they generate in .
Since the matrices have coefficients in , the set of solutions is stable under Frobenius composition and multiplication by an element of . The set of solutions can therefore be partitioned into distinct orbits under this action.
Since the extension of a matrix code is identical in bases and , where and , the set of solutions we are seeking is a subset of one of these orbits. However, Le's attack heavily relies on the conjecture that . Here, this is not the case: the solution orbit is not unique (this is where it differs from the attack of [Le26]). Still, we manage to make the following adapted conjecture, which will not prevent us from using the same techniques.
Conjecture 1. If , then there are enough non-redundant equations for the system (seen as a linear system) to be overdetermined. It may be that for some parameters, . In that case, we consider the Macaulay matrix in degree of the system, for .
In practice, we observe that degree 2 is sufficient for most of the parameter sets, and degree 3 is sufficient for all attacked sets of parameters, that is, one only multiplies the polynomials of by each variable .
With that conjecture in mind, we continue following the steps of Le for the solving of the system. However, the different orbits that are also solutions of the MinRank instance will require an additional cost.
Remark 3. It has been observed that the set of solutions is stable under composition with the Frobenius map. However, this does not imply that the number of solutions in the projective space is a multiple of : it may happen to find a solution whose all coordinates belong to the base field (or more generally in any subfield of , but has been chosen prime in the Miranda parameters). However, these solutions will be immediately rejected because the vector extracted from them cannot be an element of . This is why we now assume that the number of solutions is a multiple of , those that are incompatible will be simply ignored.
Step 2: solving the quadratic system. The ideal under consideration consists of homogeneous equations, and is therefore stable under multiplication by an element of . is then a union of -linear lines. We specialize the variable to 1, and define the ideal: , as well as the algebra
We make the reasonable assumption that it is a discrete variety.
Remark 4. It implies that the attack fails if the associated coefficient to in the solution of the MinRank instance is 0, which happens with a probability of . This probability is bigger than (where denotes the security parameter) for the majority of sets of parameters attacked in Section 4. Nevertheless, the attack can be done again by specializing another variable to 1 in case of failure.
We denote the dimension of this algebra by , which corresponds to its cardinality. We then compute a basis of the algebra using Gaussian elimination on the Macaulay matrix associated with the system of equations. This step has a complexity of:
Note that the coefficients of the quadratic equations belong to and not to , all the computations of this step are done in the base field. Performing these operations within the extension would defeat the purpose of this method.
Remark 5. The complexity increases to for parameter sets that requires us to consider , with , instead of .
Specializing this value to obtain a discrete variety (or equivalently I is a 0-dimensional ideal) allows the use of the Eigenvalue Theorem, which will enable the determination of the entire variety using linear algebra operations performed over the base field .
Theorem 1 (Eigenvalue theorem [CLO98]). Let K be an arbitrary field, and I a 0-dimensional ideal of . Then the quotient algebra
is a finite-dimensional K-vector space of dimension . Let denote the set of points of the affine variety defined by I.
For , we define the endomorphism of multiplication by :
The eigenvalues of in are .
Let fix , and be the set of eigenvalues of . We assume that all eigenvalues are simple. In this case, an eigenvector associated to consists of the evaluations of all elements of the basis at the point [CLO98]:
It implies that all the applications (and then all their linear combinations) share the same eigenvectors. This is why this step is independent of the chosen variable . Thus, the next step consists in computing these eigenvalues to deduce the set of points . Rather than diagonalize an application randomly chosen among all the possible, we compute a random linear combination of these applications, that has a greater probability to have simple eigenvalues.
Since spans all the quotient, the variables can be expressed in terms of according to the coefficients of a matrix :
Computing allows one to deduce the solution belonging to the ideal . Repeating the same procedure for the other eigenvalues allows the other possible solutions to be recovered.
Remark 6. If the coefficients of a computed all belongs to a strict subfield of (in the case of Miranda where is always prime, that is equivalent to say that ), it can be immediately deduced that this is an unwanted solution, and it can therefore be rejected. For a valid eigenvector , then all its Frobenius conjugates are also eigenvectors. By denoting as the number of full orbits in the set of solutions, it implies that this process has to be done only times, plus the number of unwanted solutions, rather than .
Step 3: extract a possible basis. From each of the possible solutions, we recover the unfolded version of the matrix , from which we easily extract a vector , defined up to a multiplicative factor.
About the number of unwanted solutions. We obtain possible solutions for the values of such that (one orbit per considered previously). Since the Macaulay matrix has size , we deduce by the rank theorem that the dimension of its kernel is upper-bounded by (there is at most linearly independent equations):
implying that the number of solutions (in the projective space ) is roughly bounded by .
However, this is a very large upper bound: such a high number of parasitic solutions is never reached in practice. However, it is sufficient to show that the final phase of the attack has negligible complexity compared to the execution of Gaussian elimination on the Macaulay matrix. Table 1 shows some experimental results about the dimension of its kernel. For a given parameter set, it seems to be independent of the public key. Then, when has been fixed, the dimension of the code and the codimension do not seem to affect the dimension of the kernel.
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
|---|---|---|---|---|---|---|---|---|
| dim ker M | 17 | 34 | 69 | 139 | 261 | 452 | 729 | 1126 |
Table 1: Experimental computation of dimension of kernel of the Macaulay matrix, for , , , with
3.3 Recovering the secret masked code
The set of solutions to the MinRank instance then yields a list of possible candidates for the secret basis (recall that the set of solutions is defined up to multiplication by an element of ). The final step of the algorithm consists in guessing this basis, and once the -linearity has been recovered, the secret Gabidulin can be computed.
The public key of the Miranda signature scheme consists of the dual of a matrix code of the form . Since , this means that the public key is a code of the form . Consequently, we compute the dual basis of all possible candidates (recall that the dual of a basis is compatible with multiplication by an element of ).
Assume we guess the basis . It is possible to compute the dual basis, and then the left-stabilizer algebra of the secret matrix code . We use it to compute the space spanned by . We have:
where is a subcode of and is a random matrix code.
We then compute:
where will be with overwhelming probability the full dual and will be a random -linear matrix code.
Let . Recall that we do not have the basis , but only an equivalent basis, which implies that this computation leads to several possible codes, but that are all equivalent. By computing the dual of , we obtain a subcode of the secret Gabidulin code . Then, the corresponding Gabidulin code can be recovered from the subcode using Overbeck–like techniques in polynomial time [Ove08].
3.4 Complexity of the attack
All computation required by this attack can be done in polynomial time. The main computation relies on the gaussian elimination on the Macaulay matrix of the system, that requires operations in , for (depending on the parameter sets). The computation of the kernel of the matrix (see Subsection 3.1) and the Overbeck-like attack to recover the original Gabidulin code (although it is necessary to do the last computation times) are negligible compared to that of simplifying the ideal. Then, the complexity is:
where denotes the complexity algebra constant and where d is the smallest value such that the number of equations obtained is greater than the number of unknowns.
4 Concrete application to Miranda Parameters
Signature scheme. In the case of the Miranda signature scheme, the public key is the dual of a matrix code of the form AddRemove( ). Since , this means that the public key is a code of the form AddRemove( ). One can therefore directly run the attack on this code, the difference is that the recovered basis is the dual basis of the secret one.
It results in a bilinear system of equations and unknowns (and then distinct monomials after specialization of to 1), where . We can then apply the attack detailed in Section 3. The resulting complexities are given in Table 2. The Forge attack consists on solving the MinRank instance without trying to recover the underlying structure of the matrix code. The "Struct." abbreviation relies on the structural attack proposed by the authors of Miranda.
| m | κ | t | ℓa | ℓs | Forge. | Struc. | d | This |
|---|---|---|---|---|---|---|---|---|
| 79 | 71 | 4 | 189 | 2 | 146 | 146 | 2 | 46 |
| 113 | 107 | 3 | 220 | 3 | 145 | 143 | 2 | 49 |
| 127 | 121 | 3 | 250 | 2 | 156 | 160 | 2 | 49 |
| 223 | 219 | 2 | 330 | 4 | 149 | 147 | 3 | 81 |
| 127 | 119 | 4 | 315 | 2 | 221 | 217 | 2 | 50 |
| 173 | 167 | 3 | 340 | 4 | 207 | 207 | 2 | 54 |
| 179 | 173 | 3 | 350 | 2 | 210 | 212 | 2 | 52 |
| 163 | 155 | 4 | 400 | 2 | 277 | 276 | 2 | 52 |
| 233 | 227 | 3 | 160 | 5 | 270 | 270 | 2 | 57 |
| 239 | 233 | 3 | 470 | 4 | 277 | 273 | 2 | 56 |
Table 2: Complexity of parameters given by [CDAGV25] for Miranda taking as the complexity exponent of linear algebra.
Encryption scheme. The authors of Miranda also propose a Niederreiter-like encryption scheme relying on the same masking: they keep secret a matrix Gabidulin code on which they apply the AddRemove transform. The idea is to consider a decoding distance such that there is uniqueness of the solution, that implies to choose a big value for and a small one for . Furthermore, the authors of Miranda suggest choosing , since the decoding process requires performing an exhaustive search over a random code of size . It implies that the public code is a subcode of the secret matrix Gabidulin code , and the public key consists of the dual of this matrix code. The message to encrypt is hashed into a matrix of rank at most (which corresponds to the decoding capacity of ), and the ciphertext is its associated syndrome.
As for the signature scheme, the public key is a code of the form AddRemove(). Nevertheless, we will attack the original code AddRemove() rather than its dual given in the public key: the -space that it spans has a smaller dimension, allowing to do a bigger truncation to the code, and then implying a MinRank instance with smaller parameters to solve. The resulting complexities are given in Table 3.
Acknowledgement
The author thanks Romaric Neveu for helpful conversation and for its careful reviewing of the paper.
| m | κ | t | Forge | Struc. | d | Comp. | |
|---|---|---|---|---|---|---|---|
| 37 | 25 | 6 | 171 | 141 | 143 | 2 | 68 |
| 41 | 31 | 5 | 159 | 158 | 143 | 2 | 68 |
| 43 | 35 | 4 | 164 | 146 | 160 | 2 | 69 |
| 53 | 47 | 3 | 188 | 153 | 193 | 2 | 71 |
| 53 | 43 | 5 | 215 | 206 | 208 | 2 | 72 |
| 59 | 51 | 4 | 208 | 214 | 207 | 2 | 73 |
| 71 | 65 | 3 | 195 | 211 | 208 | 2 | 74 |
| 67 | 57 | 5 | 320 | 288 | 272 | 2 | 74 |
| 97 | 91 | 3 | 360 | 288 | 272 | 2 | 82 |
Table 3: Complexity of parameters given by [CDAGV25] for encryption scheme, , .
References
ACD 25. Nicolas Aragon, Alain Couvreur, Victor Dyseryn, Philippe Gaborit, and Adrien Vinçotte. MinRank Gabidulin encryption scheme on matrix codes. In Kai-Min Chung and Yu Sasaki, editors, Advances in Cryptology - ASI-ACRYPT'24, pages 68–100, Singapore, 2025. Springer Nature Singapore.
CDAGV25. Alain Couvreur, Thomas Debris-Alazard, Philippe Gaborit, and Adrien Vinçotte. Miranda: short signatures from a leakage-free full-domain-hash scheme, 2025. https://arxiv.org/abs/2510.07479.
CLO98. David A. Cox, John B. Little, and Donal O'Shea. Using Algebraic Geometry, volume 185 of Graduate Texts in Mathematics. Springer, first edition, 1998.
Del78. Philippe Delsarte. Bilinear forms over a finite field, with applications to coding theory. J. Comb. Theory A, 25(3):226–241, 1978.
Gab85. Ernst Gabidulin. Theory of codes with maximum rank distance (translation). Problems of Information Transmission, 21:1–12, 01 1985.
GPT91. Ernst M Gabidulin, AV Paramonov, and OV Tretjakov. Ideals over a non-commutative ring and their application in cryptology. In Advances in Cryptology—EUROCRYPT'91: Workshop on the Theory and Application of Cryptographic Techniques Brighton, UK, April 8–11, 1991 Proceedings 10, pages 482–489. Springer, 1991.
GPV08. Craig Gentry, Chris Peikert, and Vinod Vaikuntanathan. Trapdoors for hard lattices and new cryptographic constructions. In Proceedings of the fortieth annual ACM symposium on Theory of computing, pages 197–206. ACM, 2008.
Hua51. Loo-Keng Hua. A theorem on matrices over a field and its applications. Acta Mathematica Sinica, Chinese Series, 1(2):109–163, 1951.
Le26. Thai Hung Le. Breaking ACDGV minrank gabidulin encryption schemes over matrix codes, 2026.
Ove08. Raphael Overbeck. Structural attacks for public key cryptosystems based on gabidulin codes. J. Cryptology, 21:280–301, 2008.
PWL26. Annoal Porwal, Antonia Wachter-Zeh, and Pierre Loidreau. Key attack on the ACDGV matrix encryption scheme. In Joan Daemen and Em-manuel Thomé, editors, Advances in Cryptology - EUROCRYPT 2026 - 45th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Rome, Italy, May 10-14, 2026, Proceedings, Part IV, volume 16544 of Lecture Notes in Computer Science, pages 420–448. Springer, 2026.
Rav16. Alberto Ravagnani. Rank-metric codes and their duality theory. Des. Codes Cryptogr., 80(1):197–216, 2016.
A Key generation of the Miranda signature scheme [CDAGV25]
Here is presented the formal key generation algorithm of the Miranda signature scheme. It takes in input the parameters of the scheme. It outputs the public code and the trapdoor, which consists on the secret information (the structure of the -linearity and the masked Gabidulin code) allowing to compute the error associated to a syndrome for the public code.
Algorithm 1 KeyGen (): Miranda key generation algorithm outputting the public code and its corresponding trapdoor
Parameters: to ensure bits of security
1:
2:
3: Compute
4:
5:
6: Compute a random
7: Complete the above basis into a basis of
8:
9: return
B Inversion of the Miranda trapdoor [CDAGV25]
Here is presented how to sign the hash of a message, that is its associated error with rank at most with:
where is a basis of a AddRemove code. We define .
Step 1. First, we sample uniformly at random and we compute by linear algebra a such that
Notice that we used here a basis of by considering the additional matrices from the trapdoor. The point of this step is that if we succeed to decode in (i.e., if we compute of rank at most such that , then we deduce that and therefore our decoder outputs which is a solution we are looking for. The aim of the next steps is precisely to decode in .
Step 2. Given Y, we compute and we try to decode it in the Gabidulin code . If it exists E of rank at most t such that , then we have as . In other words, in such a case we have where . But verifies as is an isometry and the decoding algorithm of will necessarily return (see Proposition 1).
Step 3. In the previous step, we decoded in . If the decoding algorithm fails, we return to Step 1 and sample another . If the decoding algorithm succeeds, we have computed some with rank at most such that . Therefore, where and we are almost done. To conclude, we just need to verify that which may not hold as a priori only is supposed. Otherwise, we go back to Step 1 and guess another .
The resulting algorithm is the following:
Algorithm 2 Sign(s, T): Miranda signing algorithm outputting E of rank at most t such that where the and are output by Algorithm 1
1: Choose a basis of such that its first elements are the 's. The remaining ones are denoted
2: repeat
3:
4: Compute :
5:
6: defined in Proposition 1
7: Find such that and
8: until and
9: return