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.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

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.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

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

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers