{
  "slug": "replay-attack",
  "term": "Replay attack",
  "aliases": [],
  "definition": "A replay attack reuses previously valid data to induce acceptance in an unauthorized context.",
  "note": "RFC 4949 describes replay for valid transmissions; the storage counterpart can restore an older authenticated block without forging its tag. Broz and colleagues explicitly exclude this threat from their 2018 sector-encryption design. [rfc4949] [broz2018] In ESP, a receiver must support an anti-replay window of at least 32 packets with 32-bit sequence numbers, 64 is the preferred default, and a 64-bit extended sequence number is available; the sender's counter must not cycle on one SA. [rfc4303] Legitimate journal replay during crash recovery is not, by itself, an attack.",
  "status": "shipping",
  "advantages": [
    {
      "text": "A sliding window rejects duplicates while still accepting packets that arrive out of order within its width.",
      "citationIds": [
        "rfc4303"
      ]
    }
  ],
  "limitations": [
    {
      "text": "A valid authentication tag alone does not show that a stored block is current.",
      "citationIds": [
        "broz2018"
      ]
    }
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-10-23",
  "related": [
    "rollback-protection",
    "authenticated-encryption",
    "cryptographic-nonce",
    "dm-integrity",
    "hmac"
  ],
  "citations": [
    {
      "id": "rfc4949",
      "title": "RFC 4949: Internet Security Glossary, Version 2 (2007), replay attack; informational glossary, not an Internet Standard",
      "url": "https://www.rfc-editor.org/rfc/rfc4949.html",
      "accessed": "2026-10-23"
    },
    {
      "id": "broz2018",
      "title": "Broz, Patocka and Matyas: Practical cryptographic data integrity protection with full disk encryption (extended version), 2018, section 2.4",
      "url": "https://arxiv.org/pdf/1807.00309v1",
      "accessed": "2026-10-23"
    },
    {
      "id": "hesela-freshness",
      "title": "Hesela: A trusted root still needs a version policy",
      "url": "https://hesela.com/analyses/checksums-identity-and-lost-writes/#verity-freshness",
      "accessed": "2026-10-15"
    },
    {
      "id": "rfc4303",
      "title": "RFC 4303: IP Encapsulating Security Payload (ESP), sequence numbers and anti-replay window",
      "url": "https://www.rfc-editor.org/rfc/rfc4303.txt",
      "accessed": "2026-10-23"
    }
  ],
  "provenance": [
    "rfc4303 is RFC 4303, read 2026-10-23 at sections 2.2.1, 3.3.3 and 3.4.3 for the counter, extended sequence numbers and the receive-window sizes.",
    "The point that legitimate journal replay is not an attack follows a companion analysis of freshness checks, kept as a listed citation.",
    "The cryptographic-hash entry links here because a hash or tag confirms content but cannot by itself reject an older valid copy."
  ]
}
