IOSOR Learn
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.
Lead Telecom & Routing Architect · Lausanne, CH
OTP velocity fences drift when rule edits, traffic mix shifts, or partner filter updates move real triggers away from the stored threshold. Audit by replaying last 14 days of counters against each fence, diffing live config to baseline, and checking webhook and DLR timing per route before fraud leaks.
Define the three fence layers and their stored thresholds
Separate per-account, per-number (E.164), and per-IP counters instead of one blended limit. For each layer record the window (60s, 10m, 24h), the max OTP sends, the max Verify attempts, and the block action. Store the config snapshot with a timestamp and owner, so a later audit can diff live values against the approved baseline. Ambiguity here is the main source of drift, because a small edit to a shared constant silently changes what counts as normal.
Replay real counters and compute drift per fence
Pull 14 days of OTP send and Verify events, rebuild counters per layer, and compare the 50th and 99th percentile trigger points to the stored threshold. Flag any fence where live traffic exceeds the threshold more than 3 percent of the window, or where a fence almost never fires. Both directions matter: an over-loose fence leaks OTP abuse, an over-tight one creates false blocks on good accounts. Replay must use the same deduplication key the live system uses, or the drift numbers are fiction.
Check webhook and DLR receipts for partner-side timing shifts
Fences depend on counters that arrive through webhooks, so latency is a correctness issue. Measure webhook delivery p50 and p95 per route, plus DLR receipt delay for SMS and voice. If a route starts batching events or retries, the counter window compresses and a fence can under-count. Confirm each webhook carries signature headers, a stable event id for deduplication, and the E.164 number. Retry policy must avoid double counting on duplicates.
Gate rule changes with a canary and a rollback plan
No threshold edit ships without a canary: run the new fence on 5 percent of accounts for 24 hours, compare block rate, false-positive tickets, and Verify OK ratio to the control group. Keep the previous config active for instant rollback. Require a named owner and a reason string in each change record. Re-run the replay audit within 48 hours of any change to the rule engine or partner filter set, because drift often appears after the edit, not at it.
Separate abuse signals from legitimate OTP behavior
Distinguish botnet signals from normal resends: one account retrying after a delivery delay is not the same as many accounts targeting the same number range.
Start with IOSOR
Run the partner comparison at verified routes by channel and corridor before you tighten any fence. Score each candidate route on: webhook p95 latency, event id and signature support, DLR receipt delay for SMS and voice, E.164 normalization, MRC transparency, template and sender gate controls, and whether counters are exposed per account, per number, and per IP.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Separate per-account, per-number (E.164), and per-IP counters instead of one blended limit. Distinguish botnet signals from normal resends: one account retrying after a delivery delay is not the same as many accounts targeting the same number range (/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.
- PAYG Balance Drain Velocity: Alerting Before Fraud Exhausts Credit
How to set drain-velocity alert thresholds that fire before an abusive route empties a PAYG balance, and what telemetry to demand from partners.












