Replay Attack

A replay attack captures valid authentication data — a session token, a selfie video, a card cryptogram — and sends it again to pass as the owner. Nothing is forged, and nothing is held up to a camera. The attacker reuses data that was legitimate the first time, which is why signature checks pass and only freshness controls catch it.

Also known asPlayback attack
Attack classFreshness failure — captured data resent, not fabricated
ReplayedSession tokens, biometric samples, card cryptograms, API requests
Core countermeasureA nonce — a time-varying value unlikely ever to repeat: a random challenge, timestamp, or sequence number
In ePassportsActive Authentication: the reader sends an 8-byte random challenge the chip must sign (ICAO Doc 9303 Part 11, section 6.1)
In card paymentsAn ARQC bound to the card’s 2-byte Application Transaction Counter plus a terminal-generated unpredictable number
Outside PAD testingISO/IEC 30107-3:2023 scopes its assessment to attacks at the biometric capture device
Remote riskHigh — needs no physical artifact and nobody at the device

How it works

The attacker records a successful exchange and sends it again. That is the whole technique. No encryption is broken and no credential guessed — the captured message was already signed and already accepted once.

Capture can happen anywhere: intercepted traffic, malware on the user’s phone, a tampered client build, or a recorded session traded on a fraud forum. In identity verification it usually enters above the sensor rather than in front of it, when a virtual camera driver or a patched SDK hands the pipeline a file instead of a live frame. Replay therefore sits close to injection attacks, and virtual camera detection is the control that spots that route.

The defense is freshness, not secrecy. Every exchange has to carry something the attacker could not have known in advance. Challenge-response authentication uses a random value the verifier generates and the claimant must sign. Counters work by ordering: EMV binds each cryptogram to an incrementing transaction counter, so an issuer that has already seen that value rejects the second copy. Timestamps work by expiry, but need both clocks to agree.

Why it matters for identity verification

Remote onboarding is a replay-friendly environment. The verifier never meets the applicant and sees only what the client sends. A selfie video that passed a real check last month is a working credential if nothing proves this submission is new.

Static data is replayable data: a photograph of a data page, a decoded barcode, or a magnetic stripe track reads the same every time, so capturing it once is enough. Interactive data is different. Chip authentication asks the chip to sign a challenge it has never seen, and an old recording cannot answer one. Robust identity document verification leans on the interactive checks because the static ones survive copying.

A check that passed at account opening proves something about that moment and nothing about the session happening now — the argument for reauthentication at high-risk moments.

Replay vs presentation vs injection attacks

DimensionReplay attackPresentation attackInjection attack
Attacker suppliesA genuine captured exchange, sent againA physical artifact: printout, mask, screenSynthetic or substituted data
Where it entersAny point not checking freshnessAt the capture deviceAbove the capture device
Physical presenceNoYesNo
Data authenticYes — valid when capturedNoNo
DefenseNonces, counters, session bindingPresentation attack detectionIntegrity attestation, device signals
Covered by ISO/IEC 30107-3NoYesNo

What a replay check can’t do

It can’t tell you the data was ever true. Freshness proves a response is new, not that the identity behind it was real to begin with. A synthetic identity that enrolled successfully produces fresh responses forever, and every anti-replay control approves them.

Nonces don’t survive a compromised endpoint. An attacker who controls the device can request a fresh challenge and answer it with injected data in real time. The replay becomes a relay, the challenge really is new, and the check passes. That needs evidence about the capture environment.

Counters are not a substitute for challenges. In WebAuthn, replay is prevented by the per-ceremony challenge; the signature counter is only a weak clone signal. Synced passkeys commonly report a constant value, so a system that treats the counter as its replay defense has none.

An unpredictable number has to be unpredictable. Cambridge researchers showed that terminals with weak random number generation let an attacker harvest card cryptograms one day and spend them the next — the pre-play attack. The design was sound; the entropy feeding it was not.

Frequently asked questions

Is a replay attack the same as a man-in-the-middle attack?

No. A man-in-the-middle sits between two parties during a live exchange and can alter it as it happens. A replay attacker needs no live position: they capture once and resend later.

Can liveness detection stop a replay attack?

Not on its own. Liveness detection scores the sample it is given, and a recording of a real live session carries every cue scoring looks for. Stopping replay needs the sample bound to a fresh server-issued challenge.

Does encryption prevent replay attacks?

No. Encrypted messages replay as well as plaintext ones — the attacker never needs to read what they resend. Confidentiality and integrity survive intact; freshness is what fails.

How do ePassport chips resist replay?

Through a challenge the chip has never seen. In Active Authentication the reader sends a random 8-byte challenge and the chip signs it with a private key that never leaves the hardware, so a response captured earlier is worthless. The printed data page carries no equivalent protection.

Related reading

Découvrez nos solutions

L’exploration de nos solutions est à portée de clic. Essayez nos produits ou discutez avec l’un de nos experts pour approfondir notre offre.

Rapport
Analyse de la montée en puissance de la fraude à l'identité alimentée par l'IA

L'IA n'a pas seulement accéléré la fraude. Elle en a fait un véritable système. Nous avons analysé des millions d'interactions liées à l'identité afin de cartographier l'évolution des attaques d'usurpation d'identité selon les régions, les types d'attaques et les niveaux de sophistication — et d'identifier ce que les organisations doivent repenser pour rester dans la course.

Consultez les données