What is linearization attack I know that


  In cryptography, the linearization attack is a method of cryptanalysis
  for block ciphers


I am looking for an example of linearization attack couldn't find it online

Could anyone please explain it with an example?
A cryptosystem can be represented by multivariate equations and the analyzer tries to solve these equations efficiently in order to mount the algebraic attack. It is known that this is an NP-hard problem.

Linearization is a method for solving these where the degree of monomials is at most two. It first appears in Cryptanalysis of the HFE Public Key Cryptosystem by Relinearization by Kipnis and Shamir. It is simply renaming the variables and solving the new system and then determining the real solutions to the original problem.



Linearization is well written in Bard's book

Given a quadratic system of $m$ equations in $n$ variables;

\begin{align*}
x_1 + x_2 x_3  &amp;= 1\\
x_1 x_2 + x_1 x_3 + x_1
 &amp; = 0\\
x_2 x_3 + x_2
 &amp; = 0\\
x_1 x_2 + x_1 + x_3 + x_2
 &amp; = 0\\
x_1 + x_1 x_2 + x_3
 &amp; = 0\\
x_2 x_3 + x_1 + x_2 &amp;=1
\end{align*}

we are renaming the total ${n \choose 2}$ quadratic monomials and $n$ linear monomials. With renaming (linearization);

\begin{align*}
x_1 &amp;= y_1\\
x_2 &amp;= y_2\\
 x_3 &amp;= y_3\\
x_1 x_2 &amp;= y_4\\
x_1 x_3 &amp;= y_5\\
x_2 x_3 &amp;=y_6
\end{align*}

we get a linear system;

\begin{align*}
y_1 + y_6 &amp;= 1 \\
y_4 + y_5 + y_1 &amp;= 0\\
y_6 + y_2 &amp;= 0\\
y_4 + y_1 + y_3 + y_2 &amp;= 0\\
y_1 + y_4 + y_3 &amp;= 0\\
y_6 + y_1 + y_2 &amp;= 1
\end{align*}

Now one can perfrom the Gaussian Elimination  to get;
\begin{align*}
y_1 &amp; = 1\\
y_2 &amp; = 0\\
y_3 &amp; = y_5\\
y_4 &amp; = y_5 + 1\\
y_5 &amp; = \text{free}\\
y_6 &amp; = 0\\
\end{align*}

This gives out two solutions  $(1, 0, 0, 1, 0, 0)$ and $(1, 0, 1, 0, 1, 0)$. One is valid and one is not (left to reader). This is due to the fact that linearization destroy information. Therefore;


The solution of the original system of equation is also the solution of its linearization but the reverse will be not correct.


What is the benefit of the linearization?


If one can given $m = (n^2+n)/2$ equations the linearization will yield a few candiate solutions.
if $m \approx n' \approx n^2/2$ then the system will have too much information that will yield numerous spurious solutions.