{
  "id": "2013/358",
  "url": "https://opencryptology.org/2013/358",
  "original_url": "https://eprint.iacr.org/2013/358",
  "title": "Counter-cryptanalysis",
  "authors": [
    "Marc Stevens"
  ],
  "affiliations": null,
  "abstract": "We introduce \\emph{counter-cryptanalysis} as a new paradigm for strengthening weak cryptographic primitives against cryptanalytic attacks.\nRedesigning a weak primitive to more strongly resist cryptanalytic techniques will unavoidably break backwards compatibility.\nInstead, counter-cryptanalysis exploits unavoidable anomalies introduced by cryptanalytic attacks to detect and block\ncryptanalytic attacks while maintaining full backwards compatibility.\nCounter-cryptanalysis in principle enables the continued secure use of weak cryptographic primitives.\n\nFurthermore, we present the first example of counter-cryptanalysis, namely the efficient detection whether any given single message has been constructed -- together with an \\emph{unknown} sibling message -- using a cryptanalytic collision attack on MD5 or SHA-1.\n\nAn immediate application is in digital signature verification software to ensure that an (older) MD5 or SHA-1 based digital signature is not a forgery using a collision attack.\nThis would certainly be desirable for two reasons.\nFirstly, it might still be possible to generate malicious forgeries using collision attacks as too many parties still sign using MD5 (or SHA-1) based signature schemes.\nSecondly, any such forgeries are currently accepted nearly everywhere due to the ubiquitous support of MD5 and SHA-1 based signature schemes.\nDespite the academic push to use more secure hash functions over the last decade, these two real-world arguments (arguably) will remain valid for many more years.\n\nOnly due to counter-cryptanalysis were we able to discover that Flame,\na highly advanced malware for cyberwarfare uncovered in May 2012,\nemployed an as of yet unknown variant of our chosen-prefix collision attack on MD5 \\cite{DBLP:conf/eurocrypt/StevensLW07,DBLP:conf/crypto/StevensSALMOW09}.\nIn this paper we disect the revealed cryptanalytic details and work towards the reconstruction of the algorithms underlying Flame's new variant attack.\nFinally, we make a preliminary comparision between Flame's attack and our chosen-prefix collision attack.",
  "category": "Secret-key cryptography",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Counter-cryptanalysis” by Marc Stevens, Cryptology ePrint Archive, Paper 2013/358, https://eprint.iacr.org/2013/358. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2013-06-10T13:03:59Z",
    "updated": "2013-06-10T13:03:59Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2013/358.pdf",
    "sha256": "873d98bf7dd7fcc1c3916abe58d82d26856cb09dc16b36d78d1c156291d6f5ec",
    "size": 649391,
    "source": "github-mirror",
    "source_date": "2019-02-25T16:45:55Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2013/358/versions/20190225T164555Z.pdf",
      "captured_at": "2019-02-25T16:45:55Z",
      "label": "copy captured 2019-02-25",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2013/358.pdf",
      "size": 649391,
      "sha256": "873d98bf7dd7fcc1c3916abe58d82d26856cb09dc16b36d78d1c156291d6f5ec",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260924034616id_/https://eprint.iacr.org/2013/358.pdf",
      "captured_at": "2026-09-24T03:46:16Z",
      "size": 593103
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2013/358.pdf",
      "captured_at": "2019-02-25T16:45:55Z",
      "size": 649391
    }
  ],
  "bibtex": "@misc{cryptoeprint:2013/358,\n      author = {Marc Stevens},\n      title = {Counter-cryptanalysis},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2013/358},\n      year = {2013},\n      url = {https://eprint.iacr.org/2013/358}\n}"
}
