{
  "id": "grain-128",
  "name": "Grain-128",
  "family_id": "grain",
  "description": "Grain-128 stream cipher (Hell, Johansson and Meier) with a 128-bit key, 96-bit IV and 256-bit LFSR plus NFSR state, running 256 initialization rounds. Broken: a dynamic cube attack on the full unmodified 256-round cipher was verified on the RIVYERA FPGA cluster at about 2^90, roughly 2^38 faster than exhaustive search.",
  "status": "broken",
  "parameters": {
    "key_bits": 128,
    "iv_bits": 96,
    "state_bits": 256,
    "initialization_rounds": 256,
    "structure": "LFSR + NFSR"
  },
  "references": [
    {
      "title": "A Stream Cipher Proposal: Grain-128 (eSTREAM)",
      "url": "https://www.ecrypt.eu.org/stream/",
      "authors": [
        "Martin Hell",
        "Thomas Johansson",
        "Willi Meier"
      ],
      "quote_location": "eSTREAM portfolio (Grain-128)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "grain-128-dinur-2011-dynamic-cube-rivyera",
      "target_id": "grain-128",
      "title": "Dynamic cube key recovery on full 256-round Grain-128, verified on RIVYERA FPGA cluster (about 2^90)",
      "goal": "key-recovery",
      "attack_family": "cube",
      "setting": "Dynamic cube key recovery on the full unmodified 256-round Grain-128, experimentally verified on the RIVYERA reconfigurable hardware cluster",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2011-12-04",
      "authors": [
        "Itai Dinur",
        "Tim Güneysu",
        "Christof Paar",
        "Adi Shamir",
        "Ralf Zimmermann"
      ],
      "references": [
        {
          "title": "An Experimentally Verified Attack on Full Grain-128 Using Dedicated Reconfigurable Hardware",
          "url": "https://www.iacr.org/conferences/",
          "authors": [
            "Itai Dinur",
            "Tim Güneysu",
            "Christof Paar",
            "Adi Shamir",
            "Ralf Zimmermann"
          ],
          "quote_location": "ASIACRYPT 2011 (RIVYERA cluster, full 256-round Grain-128)"
        },
        {
          "title": "Breaking Grain-128 with Dynamic Cube Attacks",
          "url": "https://www.iacr.org/conferences/",
          "authors": [
            "Itai Dinur",
            "Adi Shamir"
          ],
          "quote_location": "FSE 2011"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "symmetric_rounds",
        "rounds_attacked": 256,
        "total_rounds": 256,
        "log2_time": 90,
        "time_unit": "Grain-128 keystream-generation operations"
      },
      "notes": "log2_time 90 = 128 - 38, from the cycle brief's 2^38 speedup over exhaustive search on the 128-bit key. The RIVYERA hardware verification is taken from the brief and not checked against the paper. Date approximates ASIACRYPT 2011."
    },
    {
      "id": "grain-128-paper-e99ce254f5549fdf68ef9c79",
      "target_id": "grain-128",
      "title": "Links between Division Property and Other Cube Attack Variants",
      "goal": "key_recovery",
      "attack_family": "cube",
      "setting": "Dynamic cube key-recovery attack on full Grain-128, supported by division-property-based bias analysis. Recovers 3 key bits with complexity 2^97.86 and 99.83% success probability, giving 2^125 overall for the full 128-bit key.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "ai_assisted": false,
      "date": "2020-01-01",
      "authors": [
        "Yonglin Hao",
        "Lin Jiao",
        "Chaoyun Li",
        "Willi Meier",
        "Yosuke Todo",
        "Qingju Wang"
      ],
      "references": [
        {
          "title": "Links between Division Property and Other Cube Attack Variants",
          "url": "https://doi.org/10.46586/tosc.v2020.i1.363-395",
          "authors": [
            "Yonglin Hao",
            "Lin Jiao",
            "Chaoyun Li",
            "Willi Meier",
            "Yosuke Todo",
            "Qingju Wang"
          ],
          "doi": "10.46586/tosc.v2020.i1.363-395"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 125,
        "estimator_version": "Abstract-only extraction (unverified)"
      },
      "notes": "Extracted from title and abstract only; year-level date approximation. Dynamic cube key-recovery attack on full Grain-128, supported by division-property-based bias analysis. Recovers 3 key bits with complexity 2^97.86 and 99.83% success probability, giving 2^125 overall for the full 128-bit key."
    },
    {
      "id": "grain-128-paper-619a38255c88d3c6d7527a12",
      "target_id": "grain-128",
      "title": "Vectorial Decoding Algorithm for Fast Correlation Attack and Its Applications to Stream Cipher Grain-128a",
      "goal": "state_recovery",
      "attack_family": "fast-correlation",
      "setting": "Proposes a vectorial decoding algorithm generalizing binary fast correlation attacks, using correlations across a subspace to recover the LFSR initial state. Applied to Grain-128a, it yields a security bound from the perspective of iterative decoding, based on a hypothesis.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "ai_assisted": false,
      "date": "2022-01-01",
      "authors": [
        "Zhaocun Zhou",
        "Dengguo Feng",
        "Bin Zhang"
      ],
      "references": [
        {
          "title": "Vectorial Decoding Algorithm for Fast Correlation Attack and Its Applications to Stream Cipher Grain-128a",
          "url": "https://doi.org/10.46586/tosc.v2022.i2.322-350",
          "authors": [
            "Zhaocun Zhou",
            "Dengguo Feng",
            "Bin Zhang"
          ],
          "doi": "10.46586/tosc.v2022.i2.322-350"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Abstract-only extraction (unverified)"
      },
      "notes": "Extracted from title and abstract only; year-level date approximation. Proposes a vectorial decoding algorithm generalizing binary fast correlation attacks, using correlations across a subspace to recover the LFSR initial state. Applied to Grain-128a, it yields a security bound from the perspective of iterative decoding, based on a hypothesis."
    },
    {
      "id": "grain-128-paper-f2a08329a7a64d8a6e16f889",
      "target_id": "grain-128",
      "title": "Dynamic Cube Attacks against Grain-128AEAD",
      "goal": "distinguisher",
      "attack_family": "zero-sum",
      "setting": "Zero-sum distinguishers of cube size 80 for Grain-128.",
      "claim_kind": "estimate",
      "track": "mathematical",
      "ai_assisted": false,
      "date": "2024-01-01",
      "authors": [
        "Chen Liu",
        "Tian Tian"
      ],
      "references": [
        {
          "title": "Dynamic Cube Attacks against Grain-128AEAD",
          "url": "https://doi.org/10.46586/tosc.v2024.i2.190-221",
          "authors": [
            "Chen Liu",
            "Tian Tian"
          ],
          "doi": "10.46586/tosc.v2024.i2.190-221"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "pqc_security",
        "gate_count_log2": 0,
        "estimator_version": "Abstract-only extraction (unverified)"
      },
      "notes": "Extracted from title and abstract only; year-level date approximation. Zero-sum distinguishers of cube size 80 for Grain-128."
    }
  ],
  "frontiers": [
    {
      "id": "grain-128-frontier-dynamic-cube-scaling",
      "target_id": "grain-128",
      "title": "Scaling dynamic cube attacks beyond the full Grain-128",
      "description": "The dynamic cube attack already covers the full 256-round Grain-128 at about 2^90. Whether the same approach extends to the Grain-128a or AEAD variants, or lowers the cost further, remains open.",
      "references": [
        {
          "title": "An Experimentally Verified Attack on Full Grain-128 Using Dedicated Reconfigurable Hardware",
          "url": "https://www.iacr.org/conferences/",
          "authors": [
            "Itai Dinur",
            "Tim Güneysu",
            "Christof Paar",
            "Adi Shamir",
            "Ralf Zimmermann"
          ],
          "quote_location": "ASIACRYPT 2011"
        }
      ]
    }
  ],
  "dead_ends": []
}
