{
  "id": "2024/398",
  "url": "https://opencryptology.org/2024/398",
  "original_url": "https://eprint.iacr.org/2024/398",
  "title": "The Last Challenge Attack on Fiat-Shamir in KZG-based SNARKs",
  "authors": [
    "Oana Ciobotaru",
    "Maxim Peter",
    "Vesselin Velichkov"
  ],
  "affiliations": null,
  "abstract": "The Fiat-Shamir transform [11] is a fundamental technique for converting sound public-coin interactive protocols into sound non-interactive protocols. While the theoretical transformation is conceptually simple, implementation-level deviations—often motivated by performance\noptimisations—can introduce catastrophic security flaws. In this work, we present the Last Challenge Attack (LCA), a vulnerability arising from such a deviation in a real-world KZG-based SNARK verifier implementation. The vulnerability stems from an incorrect computation of the\nfinal KZG [17] protocol challenge, which is a batching challenge derived independently of the evaluation proofs. This flaw potentially affects any KZG implementation of batched proofs for multiple evaluation points. We demonstrate that a malicious prover can exploit this deviation to forge proofs of false statements. We provide a proof-of-concept implementation demonstrating the forgery of a proof for an arbitrary public input. This vulnerability was discovered during a security audit, responsibly disclosed, and fixed.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“The Last Challenge Attack on Fiat-Shamir in KZG-based SNARKs” by Oana Ciobotaru, Maxim Peter, Vesselin Velichkov, Cryptology ePrint Archive, Paper 2024/398, https://eprint.iacr.org/2024/398. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-03-04T22:12:51Z",
    "updated": "2026-04-06T19:44:09Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/398.pdf",
    "sha256": "e75620cd44f7ca40275423ae0c38813d9bc3265e53604727174b9601f260acdf",
    "size": 560496,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/398/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/2024/398.pdf",
      "size": 560496,
      "sha256": "e75620cd44f7ca40275423ae0c38813d9bc3265e53604727174b9601f260acdf",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/398/versions/20240912T125625Z.pdf",
      "captured_at": "2024-09-12T12:56:25Z",
      "label": "copy captured 2024-09-12",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240912125625id_/https://eprint.iacr.org/2024/398.pdf",
      "size": 402626,
      "sha256": "ae3b0c7cdade53d856ea37b04d21deebc9916b7c4adfc50ffec18461c9e4acb7",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/398/versions/20240305T095549Z.pdf",
      "captured_at": "2024-03-05T09:55:49Z",
      "label": "copy captured 2024-03-05",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240305095549id_/https://eprint.iacr.org/2024/398.pdf",
      "size": 354209,
      "sha256": "0c0bf168a101ffa4f5155028cc1f90a2036fe3444a9527c051b0033acafc9b4c",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/398.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 560496
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250525044039id_/https://eprint.iacr.org/2024/398.pdf",
      "captured_at": "2025-05-25T04:40:39Z",
      "size": 389775
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/398,\n      author = {Oana Ciobotaru and Maxim Peter and Vesselin Velichkov},\n      title = {The Last Challenge Attack on Fiat-Shamir in KZG-based SNARKs},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/398},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/398}\n}"
}
