IOSOR Learn
OTP Velocity Caps: Detecting Window Evasion and Borrowed Timers
How to prove a per-window OTP cap was evaded via timer resets or borrowed windows, and how to compare partner routes whose DLR echo confirms the cap held.
Lead Telecom & Routing Architect · Lausanne, CH
A per-window OTP cap only protects you if the window resets on your clock, not the attacker's. Detect evasion by comparing cap counters against DLR-anchored send timestamps per E.164, then treat any mismatch between your window boundary and the partner's receipt time as a borrowed-timer signal.
Why a per-window cap can look enforced while failing
Most cap logic counts sends in a rolling or fixed window keyed to your application clock. Attackers exploit three seams: they push volume just before a window closes so the next batch lands in a fresh counter, they spread across resend paths so each path sees sub-threshold volume, and they borrow an unexpired timer from a different session or device to skip the cooldown.
Timer-reset and borrowed-window signatures to log
Log four fields per OTP attempt: requested_at (app clock), submitted_at (gateway), received_at (DLR), and session_id. Then compute reset_delta = requested_at minus prior received_at for the same E.164. A healthy cooldown yields reset_delta near your configured interval.
Verifying the cap actually held under attack
Run a post-incident assertion, not a dashboard glance. For each flagged E.164, reconstruct the send sequence from DLR receipts and confirm the count inside each window never exceeded policy. If the reconstructed count exceeds policy while the live counter stayed low, you have a counter-integrity defect, not a policy breach — log it separately.
Comparing partner routes on throughput and DLR echo
Window honesty depends on the route's echo. Compare candidates on: DLR echo latency percentiles (p50/p95), receipt coverage under burst, timeout behavior, and whether the route returns per-message IDs you can join to your window counter. A route with fast echo lets you close windows tightly; a slow-echo route forces wide windows that attackers exploit.
Operational checklist and route selection
1) Instrument requested_at, submitted_at, received_at, session_id per attempt. 2) Assert reconstructed window count against policy daily. 3) Alert on reset_delta clustering and negative deltas. 4) Alert on window_boundary_hits above baseline. 5) Verify DLR coverage floor per corridor before trusting any verdict.
Start with IOSOR
Use IOSOR to log the three timestamps per attempt and join them to your window counter, then open the partner route comparison filtered to the fraud cluster and your corridor. Score each candidate on DLR echo p95, receipt coverage under a controlled burst, and per-message ID joinability.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Most cap logic counts sends in a rolling or fixed window keyed to your application clock. A route with fast echo lets you close windows tightly; a slow-echo route forces wide windows that attackers exploit (/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.












