IOSOR Learn
Carrier DLR MT Receipt Replay Attack Detection Gate
Verify webhook endpoints reject replayed MT receipts with valid signatures but stale timestamps to prevent fraudulent delivery confirmations from triggering billing or workflow events.
Lead Telecom & Routing Architect · Lausanne, CH
Security engineers must confirm that DLR webhook endpoints enforce strict timestamp freshness windows alongside signature validation, rejecting any MT receipt whose timestamp falls outside the allowed drift threshold even when the cryptographic signature verifies correctly. This prevents attackers from capturing legitimate receipts and replaying them later to trigger duplicate billing or workflow actions.
Signature And Timestamp Binding
Each inbound DLR payload must carry a carrier-signed timestamp that is cryptographically bound to the receipt content; the verification logic must treat the timestamp as part of the signed message so that any alteration or replay with a shifted timestamp invalidates the signature. Implement constant-time verification to avoid side-channel leakage.
Freshness Window Enforcement
Define a configurable freshness window (for example, ±30 seconds around receipt generation time) and reject any receipt whose timestamp lies outside this window. Clock synchronization across ingestion nodes must use NTP with sub-second accuracy; log any drift events for audit.
Replay Cache With TTL
Maintain an in-memory or Redis-backed replay cache keyed by carrier message ID and timestamp hash, with a TTL matching the freshness window plus a safety margin. On receipt arrival, check the cache before signature verification to short-circuit obvious replays and reduce compute load.
Idempotency Key Correlation
Correlate the DLR receipt's carrier message ID with the original MT submission idempotency key stored at send time. Reject any receipt where the idempotency key has already been processed to a terminal state (delivered, failed, expired), ensuring end-to-end deduplication even if the replay cache is evicted.
Observability And Alerting
Emit structured metrics for receipts rejected due to stale timestamps, signature failures, and replay cache hits. Alert on sustained rejection rates above 0.1% or sudden spikes indicating active replay attempts. Include carrier, corridor, and template dimensions for rapid triage.
Start with IOSOR
Use the Decision Brief to compare verified partner routes for your channel and corridor, then apply the replay detection gate configuration that matches your latency and compliance requirements. See also: Carrier DLR Receipt Signature Validation Gate, Carrier DLR Receipt Timestamp Drift Audit, Carrier DLR Webhook Idempotency Replay Gate.
IOSOR takeaway
Each inbound DLR payload must carry a carrier-signed timestamp that is cryptographically bound to the receipt content; the verification logic must treat the timestamp as part of the signed message so that any alteration or replay with a shifted timestamp invalidates the signature. Include carrier, corridor, and template dimensions for rapid triage (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Inbox Placement Seed List Rotation: Audit and Partner Comparison
Audit seed-list rotation across ESPs and warmup tools for unbiased inbox-placement signals, then compare verified deliverability partners via /tools/brief.
- Verify GSM7 Extension Table Cost, SLA Enforcement Gate on Deliverability Routes
Operational gate to verify GSM7 extension table cost and SLA enforcement before raising SMS volume, then compare partner routes in /tools/brief for deliverability.
- Delivery Latency SLA Verification: Handoff Gate for Route Selection
Verify each candidate route's claimed delivery-latency SLA at the handoff boundary before comparing partners in Decision Brief and committing SMS volume.












