IOSOR Learn
Verify Webhook Timestamp Replay Window Enforcement
Define strict timestamp validity windows on verify webhooks to reject replayed payloads and compare partner retry behaviors via Decision Brief.
Lead Telecom & Routing Architect · Lausanne, CH
Security engineers enforce a narrow timestamp validity window — typically ±60 seconds — on every verify webhook to reject replayed payloads before signature verification. The receiver must parse the timestamp claim, compare it against a synchronized clock source, and drop requests outside the window without further processing.
Timestamp Window Configuration
Set the acceptance window to ±60 seconds from receipt time; tighter windows (±30 s) apply where partner clocks are NTP-synced. Reject any payload whose timestamp deviates beyond the threshold, logging the delta for drift analysis. Configure the window per partner route since retry schedules and clock discipline vary.
Clock Synchronization Requirements
All webhook endpoints must synchronize to a stratum-1 or stratum-2 NTP source with ≤50 ms offset. Document the sync method in the runbook and alert on offset >100 ms. Partners that cannot guarantee sub-second accuracy require a wider window or a dedicated timestamp validation endpoint.
Replay Detection Logic
Combine timestamp validation with a short-term nonce cache (TTL = window + 10 s) keyed by message-id or verification-id. On receipt, check nonce cache first; if present, reject as replay. Then validate timestamp window; if outside, reject. Only then verify HMAC signature. This order minimizes CPU on stale or replayed traffic.
Partner Retry & Acknowledgment Behavior
Map each partner's retry schedule: exponential backoff (base 30 s, max 5 min), fixed interval (60 s), or immediate retry with idempotency key. Note whether partners include original timestamp or regenerate on retry. Require idempotency keys for all verify webhooks; reject duplicates within the window. Document ack expectations: 2xx within 2 s, else partner retries.
Drift Monitoring & Alerting
Emit metrics: timestamp_delta_seconds, replay_reject_count, window_reject_count per partner. Alert on p95 delta >30 s or replay rate >0.1 %. Correlate with DLR receipt latency to distinguish clock drift from network queuing. Review weekly and adjust windows per partner.
Start with IOSOR
Compare verified partner routes for timestamp discipline, retry logic, and ack SLAs using Decision Brief. Validate window config against live drift data, then enforce per-route windows in the verify webhook gateway. Related: Verify Webhook Signature Replay Defense for Fraud Prevention · Detecting Verify Webhook Payload Tampering in Real Time · DLR Replay Attack Detection Gate for Route Integrity.
IOSOR takeaway
Set the acceptance window to ±60 seconds from receipt time; tighter windows (±30 s) apply where partner clocks are NTP-synced. Review weekly and adjust windows per partner (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- OTP Velocity Cap Drift Detection: Verify Route Failover Before Abuse Escalates
Detect silent per-route OTP velocity cap drift, audit DLR and webhook evidence, and compare failover-ready partner routes before abuse spikes hit your funnel.
- Verifying OTP Delivery Receipts Against Forged Success Signals
How ops leads test whether DLR and webhook success signals are auditable before trusting OTP conversion and fraud dashboards, and pick routes with receipt integrity.
- OTP Velocity Fencing: Auditing Threshold Drift Before It Leaks Fraud
How to audit per-account, per-number, and per-IP OTP velocity fences for silent threshold drift after rule changes, traffic mix shifts, or partner filter updates.












