Replay Attack
What is Replay Attack?
Replay AttackAn attack that captures legitimate network traffic — typically authentication tokens or transactions — and retransmits it later to impersonate the original sender.
In a replay attack the adversary records a valid protocol exchange (for example a session cookie, a Kerberos ticket, a signed API request, or a wireless frame) and resubmits it to the server. If the protocol does not include freshness guarantees, the server cannot distinguish the replayed message from a fresh one. Replay is a building block of pass-the-hash, pass-the-ticket, transaction-tampering, and many IoT/automotive attacks.
flowchart LR C[Client] -->|1. valid signed message| S[Server] C -. intercepted .-> A[Attacker captures copy] A -->|2. retransmit later| S S -->|no freshness check:<br/>accepts as genuine| G[Grants access]
Freshness primitives defeat replay. The Kerberos protocol (RFC 4120) mandates a replay cache plus authenticator timestamps within a clock-skew window; TOTP (RFC 6238) ties each code to a 30-second step. TLS 1.3 (RFC 8446) is anti-replay for normal data, but its 0-RTT early data is explicitly replayable, so §8 requires server-side anti-replay or idempotent handling.
Real incidents show the range. In KRACK (Mathy Vanhoef, KU Leuven, 2017; CVE-2017-13077), replaying message 3 of the WPA2 four-way handshake forced the client to reinstall an in-use key, resetting the nonce/packet counter and breaking confidentiality. In hardware, Samy Kamkar's RollJam (DEF CON 2015, a ~$32 device) jammed and captured rolling-code keyfob frames, then replayed a withheld code to unlock cars and garages. Defences layer nonces, challenge–response, monotonic sequence numbers, short-lived channel-bound tokens, and mutual authentication.
● Examples
- 01
Replaying a captured Kerberos ticket or NTLMv1 hash to access a service as the original user.
- 02
Replaying a recorded keyfob radio frame to open a car or garage door (in systems without rolling codes).
● Frequently asked questions
What is Replay Attack?
An attack that captures legitimate network traffic — typically authentication tokens or transactions — and retransmits it later to impersonate the original sender. It belongs to the Attacks & Threats category of cybersecurity.
What does Replay Attack mean?
An attack that captures legitimate network traffic — typically authentication tokens or transactions — and retransmits it later to impersonate the original sender.
How do you defend against Replay Attack?
Defences for Replay Attack typically combine technical controls and operational practices, as detailed in the full definition above.
What are other names for Replay Attack?
Common alternative names include: Replay.