Pcornel
Security · Common Attacks

Replay Attack

Cheat sheet · https://pcornel.dk/topic.php?topic=4950

Back to the Topic

Answer

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.

Remember

  • Nonces, timestamps and sequence numbers prevent replay.
  • Kerberos and TLS include replay protection.
  • Custom protocols often forget it.

First checks

  • Nonces/timestamps in protocols — replay protection
  • Kerberos time skew limits — 5 min
  • Token one-time use (OTP, JWT jti) — replay checks

Verify in this order

captured message → resent → rejected by nonce/time

Where it usually breaks

First mismatch in signal/report → evidence preservation → scoping/analysis → containment → eradication → recovery → validation/lessons learned; preserve identity/policy/pre-state before mutation.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=4950

Confirmation

Confirm action

Continue?