← Lab /Crypto & theory

Server can recover the queried file index in the code-based PIR scheme

The server can retrieve the index of the desired file with high probability in polynomial time

Crypto & theory arXiv 27 Mar 2026 Attack Theory

Published as “Cryptanalysis of a PIR Scheme based on Linear Codes over Rings”

Why it matters

The result indicates that replacing fields by rings does not yield a secure single-server code-based PIR, so practitioners should avoid this construction in post-quantum settings.

Summary

The paper shows that the code-based PIR scheme over rings is insecure: the server can retrieve the index of the desired file with high probability in polynomial time. It also demonstrates that the scheme is not complete, providing an example where the user cannot uniquely recover the requested file and proposing an additional condition to fix completeness. The insecurity holds even when the extra condition is applied. Evidence consists of a theoretical attack analysis, probability bounds, and a Magma implementation that recovers the index in all tested cases.

What they found 2

  1. The server can recover the requested file index with high probability in polynomial time.

    “Indeed, the server can retrieve the index of the desired file with high probability in polynomial time.”

  2. The scheme is not complete; there exist instances where the user cannot uniquely recover the desired file.

    “we prove that the scheme in [10] is not complete, i.e., there exist examples where the user cannot uniquely recover the desired file.”

Caveats 4

  • Even with the additional completeness condition, the scheme remains insecure.
  • The attack retrieves the index of the desired file with high probability.
  • This attack is successful with high probability if the number of files t is large enough, i.e., if it is above a certain lower bound.
  • Our experiments demonstrate that the attack successfully recovers the target index in all test cases, while the computational overhead aligns with our theoretical analysis.

What’s new here 4

  • Adapts the rank-difference attack from [9] to the setting of linear codes over rings.
  • Identifies a completeness flaw in the scheme and supplies a sufficient condition for unique recovery.
  • Provides a high-probability polynomial-time attack that works for large numbers of files.
  • Validates the attack experimentally using Magma.