{
  "id": "2026/1901",
  "url": "https://opencryptology.org/2026/1901",
  "original_url": "https://eprint.iacr.org/2026/1901",
  "title": "Nothing Up My Matrix: Kleptographic Backdoors in ZK-friendly Hash Functions",
  "authors": [
    "Hyunsik Jeong",
    "Malte Sander Leip",
    "Mincheol Son"
  ],
  "affiliations": null,
  "abstract": "ZK-friendly hash functions are often built from algebraic SPN permutations. The matrix provides diffusion by mixing the state elements after the S-box layer. However, there is no uniform convention for selecting matrices for the linear layer across primitives. Matrix selection may follow a transparent nothing-up-my-sleeve\nprocedure or prioritize implementation efficiency. Some specifications instead treat any MDS matrix as admissible. This parameter-selection freedom also persists in practice, as some deployed implementations replace the concrete matrix proposed in the original specification with an alternative instantiation. We show that adversarial use of this freedom can create a kleptographic attack surface.\n\nIn this paper, we study kleptographic backdoors embedded in the matrices of ZK-friendly hash functions. Assuming that a malicious designer controls matrix selection, the designer can choose a matrix that maps a chosen input to a chosen output under appropriate round and parameter conditions. The resulting matrix is MDS and passes the additional matrix security checks required by the target primitive.\n\nThree case studies show that such a backdoor could have critical security consequences in real-world deployments.  In Plonky3, it would allow a prover to control a Fiat--Shamir challenge and make the verifier accept an invalid claim. In Neptune Cash, it would permit creating a digest collision between the program that checks whether a transaction is valid and one that omits this check, enabling counterfeit currency.  Finally, in Plonky2, it would enable a forged Merkle-tree membership proof for an attacker-chosen element.  Our results show that satisfying the MDS condition and other security requirements is insufficient to establish that a matrix is trustworthy. Its generation process must also be transparent and verifiable.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Nothing Up My Matrix: Kleptographic Backdoors in ZK-friendly Hash Functions” by Hyunsik Jeong, Malte Sander Leip, Mincheol Son, Cryptology ePrint Archive, Paper 2026/1901, https://eprint.iacr.org/2026/1901. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-09-06T12:09:16Z",
    "updated": "2026-09-06T12:09:16Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/1901.pdf",
    "sha256": "676801641309a7e474ce507ae5c3fa2a75c480f5917ddd1a2d7b7526eb435647",
    "size": 305134,
    "source": "wayback",
    "source_date": "2026-10-02T08:25:52Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/1901/versions/20261002T082552Z.pdf",
      "captured_at": "2026-10-02T08:25:52Z",
      "label": "copy captured 2026-10-02",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20261002082552id_/https://eprint.iacr.org/2026/1901.pdf",
      "size": 305134,
      "sha256": "676801641309a7e474ce507ae5c3fa2a75c480f5917ddd1a2d7b7526eb435647",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20261002082552id_/https://eprint.iacr.org/2026/1901.pdf",
      "captured_at": "2026-10-02T08:25:52Z",
      "size": 305591
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/1901,\n      author = {Hyunsik Jeong and Malte Sander Leip and Mincheol Son},\n      title = {Nothing Up My Matrix: Kleptographic Backdoors in ZK-friendly Hash Functions},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1901},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/1901}\n}"
}
