HonkIOHonkIO

BlogArticles

Phone verification codes in Canada without paying for SMS pumping

A form that texts a code is also a form anyone can use to send texts at your expense. Here is how SMS pumping works, how to spot it, and the settings that limit what it can cost you.

. This guide explains Canadian rules in general terms for people who build software. It is not legal advice: for your own situation, talk to a lawyer.

What SMS pumping is

SMS pumping, also called artificially inflated traffic, turns your verification form into someone else’s income. MITRE ATT&CK describes it as a fraud in which an attacker first obtains a set of phone numbers, then uses a victim’s messaging service to send large volumes of texts to them, and is paid by the telecom side for that traffic. Public forms that send a one-time code are the usual target.

The attacker does not want your codes. The texts you pay for are the point, so the attack works even if no account is ever created. OWASP describes the same weakness in its API security list: an endpoint that sends a text for every request lets a script run up the bill of whoever pays for those texts.

That makes pumping a cost problem first: your users are not the target, your SMS bill is. The fixes below aim at making each fake request cost the attacker more than it costs you.

How it shows up

Pumping rarely looks like an outage. It looks like a good day for sign-ups, until you compare the codes you sent with the codes people entered:

  • Codes nobody enters. Sends climb while completed verifications stay flat. People who ask for a code usually type it; a script does not.
  • Numbers in one range. Many different numbers that share their first digits (in North America, the same area code and exchange) in a short time.
  • Bursts from few sources. Many requests from one network or one kind of client, often at hours when your real users are asleep.
  • Spend out of step with growth. SMS spend rising faster than new accounts, sign-ins or orders.

None of these proves fraud on its own. A launch or a news story can move each of them. Together, and above all codes nobody enters, they are the signal worth acting on.

Code settings that hold up

Good code settings protect the account behind the code, and they cap what one person, or one script, can make you send. NIST SP 800-63B is a useful reference even outside the US federal systems it covers:

SettingA sensible choiceWhy
Length6 digitsNIST asks for at least six decimal digits for a secret sent to another device. A shorter code is easier to guess within the attempt limit.
Expiry10 minutes or lessNIST treats this kind of sign-in as invalid unless it is completed within 10 minutes. People type a code within minutes of getting it.
AttemptsA handful per code, then a new codeNIST sets 100 consecutive failures as an upper limit for an authenticator. A 6-digit code deserves far fewer guesses.
ResendsOne a minute per number, and a few an hourEvery resend is a paid text. A wait between resends stops a person, or a script, from flooding one phone.
ReuseSingle useA code that worked once should not work again, and a new code should end the one before it.

Two details are easy to miss. Count failed attempts per phone number across codes, not only per code: NIST says that issuing a new secret should not reset the failure count. And answer the same way whether or not a number belongs to an account, so the form cannot be used to find out who your users are.

Protect the form, not only the code

Code settings limit what each code can cost. Pumping is many codes, so the defences that matter most sit in front of the form that asks for them:

  • Put a CAPTCHA or a similar challenge on the form that requests codes, the mitigation MITRE ATT&CK names
  • Rate limit code requests per IP address, per network, per session and per phone number
  • Send codes only to the countries you serve, and reject numbers that are not well formed before you pay to text them
  • Ask for a phone number after the person has done something real, such as confirming an email address, rather than as the first field of an anonymous form
  • Set a spending limit or, where your provider has none, a billing alert, as OWASP recommends, so a bad night costs a known amount
  • Track the share of codes entered to codes sent, and alert when it drops

If you are still choosing how people sign in, the guide to passwordless sign-in methods compares SMS codes with email codes, and with passkeys, which cost nothing per sign-in.

How HonkIO Verify handles it

HonkIO Verify texts a one-time code to a Canadian number and checks the one your user types, in two API calls. Its defaults match the table for length, expiry, attempts per code and single use: 6-digit codes (4 or 8 if you ask), valid for 10 minutes (anything from 1 to 60), five wrong codes before a verification locks, and a new code for a number ends the one before it. It also sends at most one code per number per minute. A per-number hourly cap and counting failures across codes are yours to add in your app. Codes are stored only as a hash.

Codes go only to Canadian numbers: any other number is refused before anything is charged. A number that replied STOP to your texts gets no code either.

SMS pumping detection

Live codes are watched, per account, for the two clearest signs above:

  • If fewer than 1 in 5 of the codes sent over an hour are entered, once 25 or more went out, new codes pause for 6 hours.
  • If most of an hour’s codes go to one number range (the same +1 area code and exchange, at least 10 numbers), codes to that range pause for 24 hours.

A paused request answers 403 SENDING_PAUSED with channel “verify” in its details and costs nothing. Your other messages keep going, and the account owner gets an email. The owner can resume codes early from the Verify page of the dashboard or with DELETE /v1/verify/pause, and GET /v1/send-limit shows any pause. Treat the detector as a backstop: a CAPTCHA and rate limits on your own form still come first.

HonkIO Auth runs the same two checks on the sign-in codes it texts, and adds a third: because it sees the end user’s network, it stops a network that triggers more than 10 texts in 10 minutes.

What a code costs

A HonkIO verification costs $0.25 plus the SMS that carries the code, billed per segment at $0.03: $0.28 for a one-segment code, in CAD, from your prepaid balance. A code fits in one segment unless your app name is long or uses characters outside the standard SMS set. Every price is on the pricing page.

A code the carrier refuses is refunded in full, and a request refused by a pause or a limit is not charged. With a test key nothing is sent or charged and the code is always zeros (000000 for six digits), so you can build the whole flow before you buy a number. The Verify docs have the calls and every error code.

Under CASL, a code whose only purpose is to confirm a number or sign someone in is generally not a commercial message, so it does not need marketing consent. Keep promotions out of it; the CASL guide for developers explains where the line is.

Questions

What is SMS pumping?
A fraud in which someone uses your verification form to send texts to numbers they earn money from. You pay for every text and they are paid for the traffic. They do not need the codes, so no account has to be created for it to cost you.
How do I know if my verification form is being pumped?
The clearest sign is codes nobody enters: sends rise while completed verifications stay flat. Many numbers in one number range, bursts from a few networks, and SMS spend that grows faster than sign-ups are the other usual signs.
How long should a verification code stay valid?
A few minutes is enough to type it. NIST treats this kind of sign-in as invalid unless it is completed within 10 minutes. HonkIO Verify codes are valid for 10 minutes by default, and you can set anything from 1 to 60.
Does a CAPTCHA stop SMS pumping?
It makes your form harder to automate, which is why MITRE ATT&CK lists it as a mitigation. Combine it with rate limits per network and per number, codes only to the countries you serve, and a spending limit or billing alert.
What does a HonkIO verification cost?
$0.25 per verification plus the SMS that carries the code, billed per segment at $0.03: $0.28 for a one-segment code, in CAD. A code the carrier refuses is refunded, a paused request costs nothing, and test codes are free.

Sources

The laws, regulator guidance and standards this guide draws on, checked in November 2026. If something has changed, tell us at support@honkio.ca and we will correct it.

  1. SMS Pumping, technique T1496.003 (MITRE ATT&CK)
  2. API4:2023 Unrestricted Resource Consumption (OWASP API Security Top 10)
  3. NIST SP 800-63B, Digital Identity Guidelines: Authentication and Authenticator Management
  4. Canada’s Anti-Spam Legislation, S.C. 2010, c. 23 (Justice Laws)

Read the Verify docs

Send your first message this afternoon.