{
  "id": "2025/440",
  "url": "https://opencryptology.org/2025/440",
  "original_url": "https://eprint.iacr.org/2025/440",
  "title": "AI for Code-based Cryptography",
  "authors": [
    "Mohamed Malhou",
    "Ludovic Perret",
    "Kristin Lauter"
  ],
  "affiliations": null,
  "abstract": "We introduce the use of machine learning in the cryptanalysis of code-based cryptography. Our focus is on distinguishing problems related to the security of NIST round-4  McEliece-like cryptosystems, particularly for Goppa codes used in ClassicMcEliece and Quasi-Cyclic Moderate Density Parity-Check (QC-MDPC) codes used in BIKE. We present DeepDistinguisher, a new algorithm for distinguishing structured codes from random linear codes that uses a transformer. The results show that the new distinguisher achieves a high level of accuracy in distinguishing Goppa codes, suggesting that their structure may be more recognizable by AI models. Our approach outperforms traditional attacks in distinguishing Goppa codes in certain settings and does generalize to larger code lengths without further training using a puncturing technique. We also present the first distinguishing results dedicated to MDPC and QC-MDPC codes.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“AI for Code-based Cryptography” by Mohamed Malhou, Ludovic Perret, Kristin Lauter, Cryptology ePrint Archive, Paper 2025/440, https://eprint.iacr.org/2025/440. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-03-07T15:03:54Z",
    "updated": "2025-09-30T11:55:03Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/440.pdf",
    "sha256": "05a2540ab17c352835dccda79b7cffb2ffb049065e63c2ce374d435c595decda",
    "size": 1118315,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/440/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/440.pdf",
      "size": 1118315,
      "sha256": "05a2540ab17c352835dccda79b7cffb2ffb049065e63c2ce374d435c595decda",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2025/440/versions/20250313T223115Z.pdf",
      "captured_at": "2025-03-13T22:31:15Z",
      "label": "copy captured 2025-03-13",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250313223115id_/https://eprint.iacr.org/2025/440.pdf",
      "size": 1078908,
      "sha256": "d06df7c26b4f98100abceba4a4891f16c3925832a29fe5670992a931582d3fe6",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/440.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 1118315
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260309221941id_/https://eprint.iacr.org/2025/440.pdf",
      "captured_at": "2026-03-09T22:19:41Z",
      "size": 1078402
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/440,\n      author = {Mohamed Malhou and Ludovic Perret and Kristin Lauter},\n      title = {AI for Code-based Cryptography},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/440},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/440}\n}"
}
