Attacks on the Search-RLWE problem with small errors

Hao Chen, Kristin E. Lauter, Katherine E. StangeSIAM J. Appl. Algebra Geom 2017

Abstract

The security of lattice-based cryptography often relies on the Ring Learning-With-Errors (RLWE) problem. This paper identifies new vulnerabilities in the search version of RLWE by exploiting subfield structures and statistical non-uniformity. While the attack is effective against specific Galois number fields with small error widths, it confirms the continued security of 2-power cyclotomic rings used in current practical implementations.

Introduction

The Ring Learning-With-Errors (RLWE) problem is a fundamental building block for post-quantum cryptographic schemes. It exists in two primary forms: the decision problem, which involves distinguishing samples from random noise, and the search problem, which requires recovering a secret key. While theoretical security proofs provide a "safety zone" for parameters like error width, practical implementations often use smaller errors to optimize performance. This paper addresses a critical gap: can we directly attack the search problem in common Galois fields when the modulus $q$ does not split completely?

Methodology: The $\chi^2$ Attack

The authors introduce a novel cryptanalytic approach combining ring homomorphisms with statistical analysis. The attack maps RLWE samples from a complex ring of integers into a smaller finite field. By applying a chi-squared ($\chi^2$) test, the researchers can detect subtle non-uniformities in the error distribution. If the mapped error distribution deviates even slightly from a uniform distribution, the attack can effectively distinguish the correct secret guess from incorrect ones.

This statistical approach bridges the gap between the continuous Gaussian error typically used in RLWE and the discrete nature of finite fields. Unlike previous attacks that relied on finding "small" values in the error polynomial, this method exploits the overall distribution shape to detect deviations from randomness.

Subfield Vulnerabilities

A key insight of the paper is the "subfield weakness." The security of RLWE is shown to be highly dependent on the internal structure of the number field $K$. If $K$ contains a subfield $K'$ where the modulus $q$ splits completely, the error distribution becomes predictable under certain mathematical transformations.

Security status of RLWE for various number fields and parameters.

The researchers also provide a new search-to-decision reduction that applies to any unramified prime modulus $q$. This allows them to transform a successful attack on an intermediate decision-like problem into a full recovery of the secret $s$, even when the modulus does not split completely (i.e., residue degree $f > 1$).

Results and Practical Impact

The attack was demonstrated on simulated RLWE instances using SageMath, testing various sub-cyclotomic rings with degrees ($n$) ranging from 40 to 144. In one instance, a cyclotomic ring with $n=808$ was broken in just 35 seconds. The attack's efficiency—linear in the number of samples and quadratic in the size of the finite field—makes it significantly faster than general-purpose attacks like Arora-Ge for these specific parameters.

Summary of vulnerabilities identified in this work and prior literature.

Crucially, the attack is not effective on 2-power cyclotomic rings (e.g., $x^n + 1$ where $n$ is a power of 2). These rings, which are standard in libraries like SEAL and HElib, lack the specific subfield structures exploited by this method. This reinforces the importance of adhering to conservative error bounds and choosing field structures that do not exhibit these algebraic weaknesses.

Conclusion

This work highlights that the security of RLWE-based schemes is not merely a function of field size but also of the field's algebraic structure and the error distribution's width. While 2-power cyclotomics remain a robust choice, other Galois fields may harbor hidden vulnerabilities if the error width is too small. The provided source code allows for further verification and testing of vulnerable instances by the research community.

Summary updated

BibTeX
@article{chen2017attacks,
  author = {Hao Chen and Kristin E. Lauter and Katherine E. Stange},
  title = {{Attacks on the Search-RLWE problem with small errors}},
  journal = {SIAM J. Appl. Algebra Geom.},
  year = {2017},
  doi = {10.1137/16m1096566},
}
Figure