SMS pumping
| Class | Impact |
|---|---|
| Also known as | SMS toll fraud, artificially inflated traffic (AIT) |
| MITRE ATT&CK | T1496.003 Resource Hijacking: SMS Pumping |
| Typical severity | Medium to High, by the size of the bill |
| Affects | Sign-up, sign-in, password reset and any other form that texts a code or a link to a phone number the visitor types in |
A sign-up form asks for a phone number and texts a one-time code to it. The app's owner pays for every text. In SMS pumping, bots submit phone numbers to that form at scale, all from ranges controlled by one mobile operator, and the operator shares the revenue from those messages with the people behind the script.123 The codes are never entered; the attackers earn from the texts themselves and take no data.1
How the money moves
The attacker first obtains a block of phone numbers from a telecom operator, then makes the victim's messaging service send texts to that block; the operator pays the attacker part of what it earns.4 Because the numbers come in blocks, the requests often show neighbouring numbers. A typical burst is 50 code requests within a few minutes, to numbers ending 1000, 1001, 1002 and onward.2
The voice version is international revenue share fraud (IRSF), also called toll fraud. An app that can place calls, such as a verification service with a voice channel, is made to call the fraudster's international premium-rate numbers (numbers billed at a higher rate per minute), and the app owner pays for every minute.1
Where it hits
Any public form that sends an automatic text is a target: phone verification at sign-up, SMS second factors, Account recovery by text, links to download an app, lead forms, order notifications and two-way chatbots.25 Behind the form, the text often goes out through a service such as Twilio, Amazon SNS or Amazon Cognito.4
Attacks come in two shapes. One is a sudden spike against a single code form, which can happen overnight and show up on the bill first. The other spreads small numbers of requests across many sources and adds up over days or weeks inside normal traffic. In the chatbot form, bots draw a two-way messaging number into an automatic reply loop.2 The attacker's aim is the victim's bill, which makes SMS pumping a kind of Denial of wallet.
Twitter, 2022
In a Twitter Spaces discussion on 20 December 2022, Elon Musk said the company had been losing about $60 million a year on SMS outside North America, because operators created large numbers of bot accounts and triggered two-factor texts to them again and again. He said he told staff to cut off any operator with more than 10 percent fraud, which came to 390 operators.6 The figure comes from Musk alone. On 15 February 2023 Twitter announced that SMS two-factor authentication would be kept only for Twitter Blue subscribers, citing abuse of phone-number based 2FA by bad actors, and switched it off for everyone else after 20 March 2023.7
Signs
The clearest signal is the conversion rate: codes entered correctly divided by codes sent. Pumped codes are never entered, so the rate falls, often for one country the app has few users in.1 In Amazon Cognito the same gap shows in CloudTrail, the AWS log of API calls, as many more SignUp and ResendConfirmationCode events than ConfirmSignUp events; an alarm in CloudWatch, the AWS monitoring service, on more than 1,000 texts in one hour catches a burst by volume.5 Sequential numbers and a rising SMS bill without new customers point the same way.2
Defences
No provider filter catches every attack, and rate limits slow attackers more than they stop them; the aim is to make the form not worth the effort.1 Blunt rules can also block real customers during a legitimate surge, so stricter limits go on the countries where the app expects few users.21
- Send texts only to the countries the app serves. Google Identity Platform enforces a region allow list from the moment it is saved, based on the number's region code, and recommends allow lists over deny lists.3 Twilio has the same control as Geographic Permissions in Verify.1
- Limit texts per user, per IP address, per device and per number range, with growing waits between resends to the same number.1 Supabase Auth caps the whole project at 30 texts an hour by default and allows one code request per user each 60 seconds.8 See Rate limiting.
- Put a CAPTCHA on every form that sends a text.4 Supabase's phone sign-in guide pairs it with rate limits as the way to keep SMS costs down.9
- Look up the line type and send only to mobile numbers; block operators that cause inflated traffic. Turn off the voice channel if the app does not need it, or show "call me instead" only after three timed text attempts.1
- Twilio Verify Fraud Guard blocks a destination prefix when its traffic jumps.2 Google's reCAPTCHA SMS defense scores each number for toll fraud and sends nothing when the score is above a threshold set between 0.0 and 1.0; Google suggests starting at 0.7 or lower, such as 0.5.10
- Amazon SNS has an Account spend limit for SMS, with a default quota of 1.00 USD a month. SNS stops sending within minutes of passing it, so the bill can end above the cap.11 See Spending limits and budget alerts.
In the app's own route, the cheap checks come before the paid call:
// Example order of checks before a code is texted
if (!ALLOWED_COUNTRIES.has(countryOf(phone))) return reject("country");
if (!(await captchaPassed(req))) return reject("captcha");
if (await textedRecently(phone, 60)) return reject("wait");
await sendCode(phone);Prompt for a coding agent
Find every route, server action and form in this project that sends a text message or starts a phone call: sign-up, sign-in codes, two-factor, password reset, invites, notifications. For each, make sure that before the paid call it checks a CAPTCHA token on the server, rejects phone numbers outside a list of allowed countries kept in one config value, limits requests per IP address and per phone number with a growing wait between resends, and logs codes sent and codes confirmed so the ratio can be watched. Do not change what real users see beyond these checks. List each file you changed and any sending path you could not protect.
In SecFlash
SecFlash reports a Supabase project whose sign-up and login have no CAPTCHA as SF-CLD-533 on the Cloud page, and a sign-up, password-reset or one-time-code route with no rate limit in the code as SF-SEC-727 on the Security page. When the live API accepts calls without any limit, it reports SF-EXP-208 on the Exposure page.
See also
- Denial of wallet
- Rate limiting
- CAPTCHA and bot protection
- Spending limits and budget alerts
- Card testing
- Business logic flaws
- Category: Availability and abuse
References
- a b c d e f g h i Twilio (n.d., read 22 November 2026). "Preventing Fraud in Verify". Twilio Docs.
- a b c d e f g Twilio (2024, updated since). "What Is SMS Pumping Fraud and How to Stop It". Twilio Blog.
- a b Google Cloud (n.d., read 22 November 2026). "Use SMS regions to protect your app from SMS abuse". Identity Platform documentation.
- a b c MITRE (25 September 2024, modified 15 April 2025). "Resource Hijacking: SMS Pumping, T1496.003". MITRE ATT&CK.
- a b AWS (updated 10 September 2025). "Reduce risks of user sign-up fraud and SMS pumping with Amazon Cognito user pools". AWS Security Blog.
- back Priezkalns, E. (12 January 2023). "Elon Musk Says Twitter Lost $60mn a Year Because 390 Telcos Used Bot Accounts to Pump A2P SMS". Commsrisk.
- back Twitter (15 February 2023). "An update on two-factor authentication using SMS on Twitter". Twitter Blog.
- back Supabase (n.d., read 22 November 2026). "Rate limits". Supabase Docs.
- back Supabase (n.d., read 22 November 2026). "Phone Login". Supabase Docs.
- back Google Cloud (n.d., read 22 November 2026). "Enable reCAPTCHA SMS defense for SMS-based authentication". Identity Platform documentation.
- back AWS (n.d., read 22 November 2026). "Setting SMS messaging preferences in Amazon SNS". Amazon SNS Developer Guide.
External links
- API4:2023 Unrestricted Resource Consumption, OWASP API Security Top 10, which counts SMS among the paid resources an API must cap