On this page
SMS pumping is a type of OTP fraud in which bots use your sign-up, login or “resend code” button to send thousands of verification codes to numbers the attackers control. Every message is billed to you, and the attackers earn a share of the SMS fees. You stop it with layers: checks in your own app that make abuse slow and expensive, and limits at the OTP API that block it before a message is sent.
This guide explains how SMS pumping works at a high level, the warning signs to watch for, what an attack can cost, and the defences that work, including the OTP Firewall built into every Bulk SMS Iraq account.
What is SMS pumping?
SMS pumping is also known as artificially inflated traffic (AIT) or SMS toll fraud. The target is any public form that sends a text message on request. Verification codes are the easiest route, because sign-up and login screens are open to anyone and must respond quickly.
No user account is stolen and no data leaks. The damage is financial: your balance pays for messages that no real person ever reads. Because each fake request looks like a normal sign-up attempt, the attack often goes unnoticed until the bill or the balance alert arrives.
How SMS pumping works
We will not describe attacker tooling, but the pattern is simple to recognise:
- A bot finds your formSign-up, login, password reset or the “resend code” button. Any endpoint that sends a code without strong checks is a candidate.
- It requests codes in bulkThe bot submits thousands of phone numbers, often in sequences or unusual number ranges, sometimes from many IP addresses.
- Messages go to numbers the attackers profit fromThe fees for those messages are shared with the attackers somewhere along the delivery chain.
- You pay for every messageNo one ever enters a code. Your sign-up numbers stay flat while your message count rises.
Warning signs of OTP fraud
Most attacks leave the same traces in your logs and dashboards:
- Sudden spikes. Code requests jump far above your normal hourly or daily pattern, sometimes at night when nobody is watching.
- Sequential numbers. Requests go to consecutive or near-consecutive numbers, such as a block ending 0001 to 0050.
- Many codes never verified. The ratio of codes sent to codes verified drops sharply. This is the clearest single signal.
- Unusual prefixes or countries. Traffic appears for country codes you do not serve, or for number ranges that your real customers do not use.
- Repeated requests from few sources. One IP address, device or session asks for codes again and again.
- Odd timing. Requests arrive at a steady machine pace rather than the uneven rhythm of real people.
What an SMS pumping attack costs
The cost depends on the price per SMS and how long the attack runs. Here is one night of 10,000 fake SMS codes without protection:
| Price basis | Price per SMS | Cost of 10,000 fake codes |
|---|---|---|
| Bulk SMS Iraq Startup plan, Asiacell/Korek | $0.09 (150 IQD) | $900 |
| Bulk SMS Iraq Startup plan, Zain | $0.22 (365 IQD) | $2,200 |
| Global list price (Twilio, checked 27 Nov 2026) | $0.503 | $5,030 |
The same 10,000 codes on WhatsApp at $0.01 would cost $100, which is one reason attackers prefer SMS. Keep countries you do not serve switched off, so traffic cannot be pushed to destinations your customers never use.
Defence in depth: what to do in your app
No single control stops every bot. Combine several, so an attacker who passes one still hits the next.
Also validate phone numbers before you call the API. If your app serves only Iraq, accept only Iraqi mobile numbers on Zain (078x/079x), Asiacell (077x) and Korek (075x). Finally, watch your sign-up funnel: alert your team when codes sent rise without verified sign-ups rising with them.
For the full flow, read how OTP verification works, and compare channels in WhatsApp OTP vs SMS OTP in Iraq.
What the Bulk SMS Iraq OTP Firewall does
Every request to our OTP API passes the OTP Firewall before anything is sent. It is built into every account, on both the Startup and Standard plans, at no extra cost. Blocked requests are never charged.
The firewall checks each request in six layers:
- Per phone number: at most 2 codes to the same number in 30 seconds, plus hourly and daily caps per number.
- Per IP address: requests are rate-limited per IP, and addresses that show abuse are blacklisted automatically.
- Per minute, hour and day: speed limits on your API key, and daily and monthly quotas on your account, cap the damage of any attack.
- Behaviour monitoring: we watch for sudden spikes, sequential numbers, unusual prefixes and many codes that are never verified.
- Number and country checks: invalid numbers and countries you have not enabled are rejected before sending.
- Code security: every code is single-use, expires after 30 minutes and locks after 5 wrong attempts.
When something looks wrong, the firewall slows down or blocks the traffic, and our team alerts you on WhatsApp or email. Hourly and daily caps are set with you based on your traffic, and we can whitelist test numbers you need to use many times.
Firewall error codes your app should handle
When a rule triggers, the API returns a JSON error with a clear code: HTTP 429 when you should slow down (for example 1300) and HTTP 403 when a request is blocked (for example 1907 or 1903).
| Scope | Rule | API error |
|---|---|---|
| Same phone number | 2 codes per 30 seconds | 1907 |
| Same phone number | Hourly cap | 1906 |
| Same phone number | Daily cap | 1905 |
| Your API key | Requests per minute | 1008 · 1300 |
| Your account | Daily and monthly quota | 1301 · 1302 |
| IP address | Rate limit and blacklist | 1903 |
| Destination | Valid number, allowed country | 1216 · 1904 |
| Behaviour | Suspicious activity, API abuse | 1900 · 1902 |
| The code itself | 30-minute expiry, 5 attempts, single use | 1507 · 1508 |
Show real users a calm message, such as “Please wait a moment before requesting a new code”, and log the error code on your server. All codes are listed in the API documentation.
Incident checklist: if you think you are under attack
- Confirm the patternCompare codes sent with codes verified for the last few hours, and look for sequential numbers, unusual prefixes and repeated IP addresses.
- Slow the entry pointTurn on or tighten your CAPTCHA and resend timer on the affected form, and temporarily lower your own per-IP limits.
- Switch to WhatsApp firstIf you send SMS directly, set
"channel": "whatsapp"with"fallback": "sms"so most codes stop costing SMS prices. - Restrict destinationsDisable countries you do not serve and reject number ranges your customers do not use.
- Contact our teamSend us the time window and examples. We review the numbers and IP addresses with you and adjust limits or quotas for your account.
- Review and hardenOnce traffic is normal, keep the stricter settings that did not affect real users, and add an alert on the sent-to-verified ratio.
Banks and fintech apps, where codes also protect payments, can find more on typical setups on our banks and fintech page.
Seeing more codes than sign-ups? Our team in Erbil can review your OTP traffic and limits with you.
Contact usFrequently asked questions
What is SMS pumping?
SMS pumping, or artificially inflated traffic (AIT), is fraud where bots trigger large numbers of OTP messages to numbers the attackers control, so they can earn a share of the SMS fees. The business that sends the codes pays the bill.
How do I know if my app is being hit by SMS pumping?
Look for a sudden rise in codes sent without a matching rise in verified sign-ups, requests to sequential or unusual numbers, and traffic to countries you do not serve. Many codes sent but few verified is the classic sign.
Do I pay for OTP requests the firewall blocks?
No. A blocked request is never sent, so it is never charged. The OTP Firewall is included in every Bulk SMS Iraq account at no extra cost.
Will rate limits block my real users?
The limits sit well above normal use, because a real person rarely needs more than one or two codes. If someone hits a limit they can try again a little later, and we can whitelist your test numbers.
Does sending OTP on WhatsApp help against SMS pumping?
Yes. Pumping profits from SMS fees, so when most codes go out on WhatsApp there is little left for attackers to earn. Keep SMS as a fallback with the same rate limits.


