Use this when captured authentication or messages could be replayed.
Replay Attack
A replay attack captures valid authentication or transaction data and sends it again later. Nonces, timestamps, sequence numbers and session keys, as in Kerberos and TLS, make replayed messages invalid.
1. Replay attacks resend captured valid messages.
2. Defend with nonces, timestamps, sequence numbers, session binding.
3. TLS prevents capture.
4. Short token lifetimes.
5. Detect duplicates.
captured message → resent → rejected by nonce/time
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Nonces, timestamps and sequence numbers prevent replay.
- Kerberos and TLS include replay protection.
- Custom protocols often forget it.
- Nonces/timestamps in protocols — replay protection
- Kerberos time skew limits — 5 min
- Token one-time use (OTP, JWT jti) — replay checks
ReferenceWhy it matters1 section · depth on demand
ReferenceImportant terms & boundaries2 sections · depth on demand
Examples
- Captured NTLM authentication relayed to another server (relay attack — require SMB/LDAP signing and EPA).
- Replayed Kerberos tickets (pass-the-ticket).
- Car key fob signal replay.
- Replayed API requests without nonce/timestamp.
Protocols defend with nonces, timestamps, sequence numbers (IPsec anti-replay window) and session binding.
In depth
A replay attack captures valid data — an authentication message, a transaction, a token — and resends it later to repeat its effect. Even encrypted messages can be replayed if the protocol does not detect duplicates.
Protections built into protocols:
| Mechanism | Example |
|---|---|
| Nonces/challenges | Challenge-response authentication |
| Timestamps with short validity | Kerberos, TOTP, signed tokens with exp |
| Sequence numbers / anti-replay windows | IPsec ESP, TLS records |
| One-time tokens | CSRF tokens, idempotency keys |
When designing APIs or integrations, include timestamps and unique identifiers in signed requests and reject duplicates within the validity window (e.g. webhook signatures with timestamps).
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Common Attacks → Replay Attack. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://attack.mitre.org/techniques/enterprise/ · confidence 94%