← all essays
SaaS · US· 7 min read

SMS pumping: why your OTP bill jumped and how to stop paying for fake phone numbers

Attackers use your signup form to send thousands of verification texts to numbers they profit from. You pay for every one. Here is how the scheme works and the checks that stop it before a single message goes out.

It usually shows up as a line on an invoice, not an alert. Your SMS provider bill for the month is several times what it should be, and nobody on the team launched a campaign. Somebody did, though. They just used your signup form to do it.

This is SMS pumping, also called SMS toll fraud or artificially inflated traffic. It is one of the cheapest attacks to run against a US software company, and one of the most expensive to absorb, because the bill arrives after the damage is done.

How the scheme works

Every time someone enters a phone number and taps Send code, your app pays a messaging provider to deliver a text. For most numbers that cost is small. For some routes, especially certain international and premium destinations, the carrier at the far end earns a share of what you pay.

An attacker partners with, or simply is, that far-end party. Then they point a script at your form and request codes for long runs of numbers on those routes. No account is ever completed. Nobody ever types a code. The only thing that happens is that you pay to send text messages to numbers that exist to receive them.

  • The numbers are often sequential or come in tight blocks from one range.
  • They cluster in countries you do not normally see signups from.
  • Requests come in bursts, from a handful of IP addresses, often servers or proxies.
  • Conversion from code sent to code entered collapses to near zero for that traffic.

Why rate limits and CAPTCHAs only half-work

The usual first reaction is to cap how many codes one IP can request. That helps against a lazy script and does little against one that rotates through proxies. A CAPTCHA raises the cost per attempt, but solving services are cheap, and every extra hurdle also lands on the real customers you are trying to sign up.

The cleaner fix is to ask a different question before you send anything: should this number receive a text at all?

The cheapest SMS is the one you decide not to send.

The checks that matter, in order

Most of this can be decided from the number itself and from the connection it arrived on, without sending a message.

  • Is the number possible? Every country has a numbering plan. A number with the wrong length, or in a range that was never issued, cannot belong to a customer.
  • What kind of line is it? Premium-rate and toll-free numbers are not anyone's personal phone. VoIP numbers can be legitimate, but they are also cheap to create in bulk.
  • Which country is it in? If you only serve the US and Canada, a burst of codes requested for numbers in countries you have never sold to is a signal on its own.
  • What does it look like? Long runs of the same digit, sequential blocks, and the reserved fictional ranges are classic signs of numbers generated by a script.
  • Where is the request coming from? A datacenter address, a VPN or a Tor exit asking for an OTP deserves a second look.
  • Has anyone else seen it? A number already reported as fraud by another business should not get the benefit of the doubt.

Putting it into your flow

Make one call to a scoring service when the number is submitted, before you call your SMS provider. Route on the answer:

  • Allow: send the code as normal.
  • Review: add friction that costs you nothing. An email confirmation first, a short delay, or a CAPTCHA only for this request.
  • Block: do not send. Show a neutral message such as We could not send a code to that number.

Two settings at your SMS provider are worth turning on as well: restrict destinations to the countries you actually serve, and set a spend alert well below the level that would hurt. Together with a check before each send, that closes most of the door.

The point is not to make signup harder. Real customers type a real mobile number from a normal connection and never notice any of this. The point is to stop paying for messages that were only ever sent to make someone else money.