IOSOR Learn
Webhook Replay Attack Window: Verification Gates for Route Trust
Verify partner webhook replay windows, nonce and idempotency controls before trusting DLR and delivery events. Compare routes with auditable evidence.
Lead Telecom & Routing Architect · Lausanne, CH
Before trusting any DLR or delivery event, confirm the partner enforces a bounded replay window plus nonce and idempotency controls, and that you can audit the evidence. This spine lists the gates to check and routes the comparison through the Decision Brief partner view.
Why a replay window is a trust boundary, not a feature
A webhook without a replay window accepts any signed payload forever, so a captured DLR callback can be replayed to fake delivery proof or overwrite a real status. Treat the window as a trust boundary: it defines how long a captured event stays dangerous.
Nonce and signature checks you can actually test
Request a nonce or monotonic sequence per event and a signature over the raw body plus timestamp. Test three cases yourself: replay the same payload twice, shift the timestamp past the window, and mutate one field. A trustworthy route rejects the duplicate, rejects the stale timestamp, and rejects the mutation, each with a distinct error code.
Idempotency keys and collision handling on DLR events
Replay protection is incomplete without idempotency. Confirm the partner sends a stable idempotency key per DLR event, that your ledger deduplicates on that key, and that a key collision is detected rather than silently merged. Ask what happens when two different payloads arrive under one key: a correct implementation flags a collision and quarantines the second event.
Latency, ordering, and what the audit trail must show
Measure webhook latency from send to receipt across a sample of events and note p95, because a wide replay window plus slow delivery widens the attack surface. Confirm ordering guarantees or accept that you must reconcile by timestamp and sequence. The audit trail must show event id, received timestamp, signature result, window decision, idempotency key, and final status, exportable without support tickets.
Verification gates before you trust DLR and delivery events
Run this checklist per candidate route: (1) replay window value in seconds, server-enforced; (2) nonce or sequence present on every event; (3) signature over raw body and timestamp; (4) duplicate, stale, and mutated payloads each rejected with distinct codes; (5) stable idempotency key with collision detection; (6) p95 webhook latency recorded; (7) audit fields exportable.
Start with IOSOR
Use the Decision Brief partner comparison to evaluate which routes expose auditable replay-protection evidence for your channel and corridor. Open the partner comparison brief and score each route against the seven gates above, then keep the rejection codes and latency samples as your evidence file.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
A webhook without a replay window accepts any signed payload forever, so a captured DLR callback can be replayed to fake delivery proof or overwrite a real status. Run this checklist per candidate route: (1) replay window value in seconds, server-enforced; (2) nonce or sequence present on every event; (3) signature over raw body and timestamp; (4) duplicate, stale, and mutated payloads each rejected with distinct codes; (5) stable idempotency key with collision detection; (6) p95 webhook latency recorded; (7) audit fields exportable (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Partner Route Verification: Assembling an Evidence Packet for Buyer Sign-Off
Build one exportable packet proving each partner route's DLR consistency, credential rotation, cost reconciliation, and consent retention before buyer sign-off.
- Route Failover Proof: Audit Consistency Across Partner Routes
Verify failover events produce matching DLR receipts and webhook evidence across primary and backup partner routes before committing volume.
- Stale Trust Signals: Expiry Rules Before Partner Route Comparison
How to bound verification status, delivery-proof recency and credential rotation age so partner routes are shortlisted on fresh trust evidence, then compare at /tools/brief.












