Skip to main content
Neural Defend

How to Prevent Replay Attacks in Identity Proofing

To prevent replay attacks in identity proofing, make every capture provably fresh and tied to one session: issue a single-use server challenge, bind it to the selfie or video, reject media outside a short time window, and search for the same face or file across past attempts. Add presentation attack detection for screen replays and media analysis such as NeuroVerify for replayed deepfakes; each control covers a different route.

Organization authorNeural Defend Editorial
Updated August 15, 2026
Sumit Singh, Co-founder and CDO of Neural Defend.
Sumit SinghCo-founder & CDO
A freshness gate rejects looping stale media while a legitimate retry follows a governed review lane.

What is a replay attack in identity proofing?

A replay attack in identity proofing presents previously captured evidence as if it were being captured now. The evidence may be genuine: a real selfie of the victim scraped from social media, a liveness video recorded during an earlier session, or an API request that once returned success. What makes it an attack is that the system accepts old evidence for a new decision.

Replay overlaps with two other attack families. When the old recording is played on a screen in front of the camera, it is also a presentation attack. When it is fed through a virtual camera or straight into the API, it is also an injection attack. The distinguishing question for replay is freshness: was this evidence created in this session, for this challenge? The comparison of replay attacks and deepfake attacks explains how replay differs from synthesis.

Five routes attackers use to replay identity evidence

Replay works wherever the system cannot tell old evidence from new. The routes below differ in where the old media enters, so each needs its own control.

RouteWhat is replayedWhere it entersMain control
Screen replayRecorded selfie video or photo shown on a deviceIn front of the cameraPresentation attack detection, active challenge
File re-uploadSaved image or video submitted as newUpload step or gallery pickerForce in-app live capture, reject gallery uploads, metadata checks
Virtual camera playbackPre-recorded or previously generated videoCamera driverCamera source checks, challenge bound to the capture
API request replayCaptured request with a previously accepted payloadBackend APISigned single-use session tokens, nonces, short expiry
Cross-account reuseThe same face or file on several applicationsAny routeDuplicate-media and face similarity search
Replay routes in remote identity proofing and the control that addresses each.

How to prevent replay attacks: freshness, binding and duplicate checks

Prevention rests on proving that each capture belongs to one session and one moment. The controls below work together; dropping any one leaves a route open.

Freshness checks must be enforced on the server. A challenge generated and verified only in the app can be replayed by anyone who controls the app or calls the API directly.

  • Issue a random, single-use challenge from the server at the start of each capture, such as a head movement, a phrase or a colour sequence, and verify the response in the captured media.
  • Bind the challenge, session identifier and device to the uploaded media with a signed token, and reject any token used twice.
  • Set short validity windows: a capture that arrives minutes after its challenge expired should be retaken, not accepted.
  • Record server-side timestamps for challenge issue and media receipt, and ignore client-supplied capture times.
  • Require live capture inside the app or web flow and disable gallery uploads for identity steps.
  • Hash every accepted selfie, video and document image, and search new submissions for exact and near-duplicate matches and for the same face under different identities.

What NIST SP 800-63A-4 expects on freshness and replay

NIST SP 800-63A-4, published in July 2025, does not have a single replay section, but several requirements target the same weakness. Automated document validation must use live capture of documents, which helps confirm the image captured during the session is not a manipulated digital copy. Confirmation codes must be invalidated once used, and a code sent to a validated phone number may stay valid for 10 minutes. Continuation codes used to resume an interrupted proofing session must also be invalidated on use.

The guidance's digital injection section adds controls that raise confidence media came from a genuine sensor and requires authenticated protected channels for data exchange during remote proofing. Remote attended sessions must include random human-in-the-loop cues, which a pre-recorded video cannot answer. Taken together, these requirements describe the same principle as the controls above: evidence counts only for the session that created it. Testing schemes are moving the same way: CEN/TS 18099:2024 sets out how to test biometric data injection attack detection, the route most replayed streams use, and the FIDO Alliance Face Verification certification covers injection attacks alongside liveness.

Where media analysis helps with replay, and where it cannot

Media analysis helps when the replayed content is synthetic or edited. A previously generated deepfake video played through a webcam plugin, as FinCEN describes, carries generation and face manipulation traces that a model can find whatever route it took. Screen replays also leave visual clues, such as moire patterns and reflections, that presentation attack detection uses.

Media analysis cannot tell that an unedited, genuine recording of the real person is old. If an attacker replays a real liveness video captured last month, every pixel is authentic. That case is caught only by challenge binding, freshness windows and duplicate search. Treat this as the dividing line when assigning controls: synthetic replay is a media problem, genuine replay is a session problem.

When a replay is confirmed, preserve the session identifiers, challenge data, raw media, device details and timestamps before changing anything. Then search for other sessions that reused the same file, face or device, because replay is cheap to repeat and rarely tried only once. Accounts approved through the same route during the exposure window should be re-verified with a fresh, bound capture, and the finding should feed back into the duplicate-search index so the same media is rejected on sight next time.

How NeuroVerify fits with replay controls

NeuroVerify analyses each face image, video or audio clip your flow captures and returns one unified risk score with signal-level evidence. Live Presence Verification addresses screen and printed replays, while Face Manipulation Detection, AI Generative Model Analysis and AI Pixel-Level Manipulation flag replayed deepfakes and edited captures. Eligible image requests complete in under 200 ms p95 under defined test conditions, so the check runs inside the same short freshness window as the challenge.

NeuroVerify does not issue challenges, manage session tokens or search your archive for duplicates; those belong to your proofing platform. Its results should be combined with them in your policy. The detection models build on ARCAS 1B, Neural Defend's own model, and Neural Defend ranked first of 36 systems on the public VendorBench-100 still-image benchmark with an MCC of 0.876. That benchmark does not test replay or injection, and one of its authors also co-authored the ARCAS paper.

Evidence boundary

Limitations

  • No media analysis can identify an unedited genuine recording as stale; session binding and duplicate search are required.
  • Duplicate-face search across applications raises biometric privacy questions and must follow applicable law and the organisation's data policy.
  • NIST SP 800-63A-4 requirements quoted here apply to US federal identity proofing and may differ from other regimes.
  • VendorBench-100 does not measure replay, injection, video or latency under replay conditions.

Frequently asked questions

What is the difference between a replay attack and a deepfake attack?

A replay attack reuses old evidence, which may be completely genuine, while a deepfake attack presents newly synthesised or manipulated media. The controls differ: replay of genuine footage is stopped by freshness and session binding, and deepfakes are caught by media analysis. Attackers often combine them by replaying a previously generated deepfake through a webcam plugin, which both kinds of control can catch.

Does liveness detection stop replay attacks?

Partly. Presentation attack detection catches many replays shown on a screen or printed, through moire patterns, edges and lack of depth. It does not stop a recording injected through a virtual camera or a replayed API request, and passive liveness cannot tell that a genuine live capture was recorded earlier. A server-issued challenge bound to the session closes those gaps.

How short should a capture validity window be?

Short enough that a capture cannot be stored and reused later, typically the length of the capture step plus network time. NIST SP 800-63A-4 lets confirmation codes sent to a validated phone number stay valid for 10 minutes, which gives a sense of scale for codes; media challenges can usually be tighter. Expired challenges should trigger a fresh capture, not a soft pass.

Can NeuroVerify detect a replayed genuine selfie?

Not by itself if the selfie is unedited and was shown or injected without screen artifacts. NeuroVerify detects manipulation, generation and presentation clues, and its Live Presence Verification signal helps with screen and print replays. Detecting that genuine media is stale requires session binding, freshness checks and duplicate search in your proofing platform, combined with NeuroVerify results in your policy.

Source record

Sources and references

  1. National Institute of Standards and TechnologySP 800-63A-4, Digital Identity Guidelines: Identity Proofing and EnrollmentPublished July 1, 2025. Verified October 19, 2026.
  2. Financial Crimes Enforcement Network (FinCEN)FIN-2024-Alert004: FinCEN Alert on Fraud Schemes Involving Deepfake Media Targeting Financial InstitutionsPublished November 13, 2024. Verified October 19, 2026.
  3. Estonian Centre for Standardisation (EVS)CEN/TS 18099:2024 Biometric data injection attack detectionVerified October 19, 2026.
  4. FIDO AllianceFIDO Face Verification Certification ProgramVerified October 19, 2026.
  5. arXivVendorBench-100: A Unified Cross-Paradigm Benchmark for Deepfake Image DetectionPublished July 29, 2026. Verified October 19, 2026.

Selfie verification

Pair your freshness controls with NeuroVerify.

Test replayed deepfakes and screen replays from your own flow against NeuroVerify's six signals inside a single capture window.

Explore NeuroVerify