IOSOR Learn
Inbound MO Webhook Signature and Replay Defense: A Verification Gate
Verify inbound MO webhook endpoints enforce signature validation and replay protection before trusting DLR correlation and keyword routing; compare partner routes via /tools/brief.
Lead Telecom & Routing Architect · Lausanne, CH
Inbound MO webhook endpoints must reject unsigned or replayed payloads at the edge before any DLR correlation or keyword routing logic executes; otherwise forged MO events can poison delivery receipts and trigger unintended STOP handling. This gate defines the minimum verification checks and partner-route evidence you need before trusting inbound traffic.
Why signature validation must precede DLR correlation
DLR correlation depends on a trusted mapping between outbound message IDs and inbound MO events. If an attacker can POST a forged MO payload with a guessed message ID, the correlation table accepts a false receipt and the delivery state diverges from reality. Signature validation at the webhook edge — HMAC over the raw body with a shared secret, timestamp included in the signed envelope — ensures only the messaging partner can inject MO events.
Replay defense: timestamp windows and nonce tracking
A valid signature is not sufficient if the same signed payload can be replayed. Enforce a timestamp window — typically 300 seconds — and reject payloads outside it. Maintain a short-lived nonce or event-ID cache keyed by partner and message ID so duplicate deliveries within the window are dropped idempotently. This is distinct from general MO deduplication: replay defense targets adversarial repetition of a legitimately signed event, while deduplication handles partner retries.
Keyword routing and STOP handling behind the gate
Keyword routing — STOP, HELP, and campaign-specific opt-out tokens — must only run on payloads that passed signature and replay checks. A forged STOP can suppress a legitimate subscriber; a forged opt-in can bypass consent records. Place the verification gate as the first middleware in the inbound pipeline, before any routing table lookup. Confirm that routing decisions are logged with the verified event ID and signature status so that a later audit can reconstruct why a keyword was honored.
Latency budget and failover behavior under verification
Signature validation adds latency: HMAC computation, nonce cache lookup, and timestamp checks should complete within a defined budget — measure p95 and p99 at the gateway, not the application. If the nonce cache is unavailable, fail closed rather than open; document the failover path and confirm the partner retries with the same signed payload so replay defense does not drop legitimate retries.
Evidence to collect before trusting inbound traffic
Collect: a sample of signed and unsigned requests with expected status codes; timestamp window configuration and nonce cache TTL; replay test results inside and outside the window; logs showing signature status attached to routing decisions; and partner documentation of signing algorithm, header names, and retry semantics.
Start with IOSOR
Run the partner-comparison checklist for this job: for each candidate route, request webhook signing documentation, timestamp window and nonce semantics, retry and failover behavior, and sample signed payloads; then test replay and unsigned requests against a staging endpoint and record pass/fail per criterion.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
DLR correlation depends on a trusted mapping between outbound message IDs and inbound MO events. Collect: a sample of signed and unsigned requests with expected status codes; timestamp window configuration and nonce cache TTL; replay test results inside and outside the window; logs showing signature status attached to routing decisions; and partner documentation of signing algorithm, header names, and retry semantics (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Inbound MO Route Failover: Verifying Drain Rate and Cutover Safety
Verify inbound MO failover by measuring drain rate, DLR finality alignment, and cutover safety before switching primary routes. Compare failover-ready partners via /tools/brief.
- Inbound MO Webhook Retry Storms: Backpressure Gates and Partner Route Comparison
Diagnose retry amplification, set backpressure gates, and compare verified inbound partner routes on retry semantics, DLR receipts, and failover before committing volume.
- Inbound Webhook Signature Rotation: Cutover Audit Checklist
Audit signature verification, replay windows, and rollback readiness before rotating inbound webhook secrets, then compare verified partner routes on cutover support.












