{
  "id": "2010/570",
  "url": "https://opencryptology.org/2010/570",
  "original_url": "https://eprint.iacr.org/2010/570",
  "title": "Breaking Grain-128 with Dynamic Cube Attacks",
  "authors": [
    "Itai Dinur",
    "Adi Shamir"
  ],
  "affiliations": null,
  "abstract": "We present a new variant of cube attacks called a \\emph{dynamic cube\nattack}. Whereas standard cube attacks \\cite{4} find the key by\nsolving a system of linear equations in the key bits, the new attack\nrecovers the secret key by exploiting distinguishers obtained from\ncube testers. Dynamic cube attacks can create lower degree\nrepresentations of the given cipher, which makes it possible to\nattack schemes that resist all previously known attacks. In this\npaper we concentrate on the well-known stream cipher Grain-128\n\\cite{6}, on which the best known key recovery attack \\cite{15} can\nrecover only $2$ key bits when the number of initialization rounds is\ndecreased from $256$ to $213$. Our first attack runs in practical\ntime complexity and recovers the full 128-bit key when the number of\ninitialization rounds in Grain-128 is reduced to $207$. Our second\nattack breaks a Grain-128 variant with $250$ initialization rounds\nand is faster than exhaustive search by a factor of about $2^{28}$.\nFinally, we present an attack on the full version of Grain-128 which\ncan recover the full key but only when it belongs to a large subset\nof $2^{-10}$ of the possible keys. This attack is faster than\nexhaustive search over the $2^{118}$ possible keys by a factor of\nabout $2^{15}$. All of our key recovery attacks are the best known so\nfar, and their correctness was experimentally verified rather than\nextrapolated from smaller variants of the cipher. This is the first\ntime that a cube attack was shown to be effective against the full\nversion of a well known cipher which resisted all previous attacks.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Breaking Grain-128 with Dynamic Cube Attacks” by Itai Dinur, Adi Shamir, Cryptology ePrint Archive, Paper 2010/570, https://eprint.iacr.org/2010/570. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2010-11-09T06:02:34Z",
    "updated": "2011-03-20T15:59:02Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2010/570.pdf",
    "sha256": "3dfe8a55f4306969b605ee51184fa78d5ea3c74be38eb30ad54d2b4b0c4560f7",
    "size": 191256,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:24:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2010/570/versions/20190225T162428Z.pdf",
      "captured_at": "2019-02-25T16:24:28Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2010/570.pdf",
      "size": 191256,
      "sha256": "3dfe8a55f4306969b605ee51184fa78d5ea3c74be38eb30ad54d2b4b0c4560f7",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251230054428id_/https://eprint.iacr.org/2010/570.pdf",
      "captured_at": "2025-12-30T05:44:28Z",
      "size": 174639
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2010/570.pdf",
      "captured_at": "2019-02-25T16:24:28Z",
      "size": 191256
    }
  ],
  "bibtex": "@misc{cryptoeprint:2010/570,\n      author = {Itai Dinur and Adi Shamir},\n      title = {Breaking Grain-128 with Dynamic Cube Attacks},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2010/570},\n      year = {2010},\n      url = {https://eprint.iacr.org/2010/570}\n}"
}
