NewBulkSMSIraq is now an official Meta Tech Partner for WhatsApp in Iraq.Read the news
OTP & verification

How to Stop SMS Pumping (OTP Fraud) in Your App

SMS pumping turns your “send code” button into someone else’s income. Here is how to recognise it, what it costs and the layered defences that stop it, in your app and at the API.

Bulk SMS Iraq logoBulk SMS Iraq teamErbil, Kurdistan Region 6 min readUpdated
SMS pumping protection: a shield blocking fake OTP requests before they reach a phone
On this page
  1. What is SMS pumping?
  2. How SMS pumping works
  3. Warning signs of OTP fraud
  4. What an SMS pumping attack costs
  5. Defence in depth: what to do in your app
  6. What the Bulk SMS Iraq OTP Firewall does
  7. Incident checklist: if you think you are under attack

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:

  1. 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.
  2. It requests codes in bulkThe bot submits thousands of phone numbers, often in sequences or unusual number ranges, sometimes from many IP addresses.
  3. Messages go to numbers the attackers profit fromThe fees for those messages are shared with the attackers somewhere along the delivery chain.
  4. 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 basisPrice per SMSCost 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.

Add a bot checkPut a CAPTCHA or a similar challenge before the “send code” button, especially on sign-up and password reset.
Show a resend timerLet users request a new code only after 30–60 seconds, with a visible countdown.
Rate-limit on your sideLimit code requests per phone number, per IP address and per device or session, and block clear repeat offenders.
Verify on your serverCall the send and verify endpoints from your backend only. Never put your API key in a mobile app or website code.
Don’t reveal accountsShow the same message whether or not a number is registered, so bots cannot use your form to test numbers.
Send WhatsApp firstPumping profits from SMS fees. With most codes on WhatsApp and SMS only as fallback, there is little left to steal.

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).

ScopeRuleAPI error
Same phone number2 codes per 30 seconds1907
Same phone numberHourly cap1906
Same phone numberDaily cap1905
Your API keyRequests per minute1008 · 1300
Your accountDaily and monthly quota1301 · 1302
IP addressRate limit and blacklist1903
DestinationValid number, allowed country1216 · 1904
BehaviourSuspicious activity, API abuse1900 · 1902
The code itself30-minute expiry, 5 attempts, single use1507 · 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

  1. Confirm the patternCompare codes sent with codes verified for the last few hours, and look for sequential numbers, unusual prefixes and repeated IP addresses.
  2. Slow the entry pointTurn on or tighten your CAPTCHA and resend timer on the affected form, and temporarily lower your own per-IP limits.
  3. Switch to WhatsApp firstIf you send SMS directly, set "channel": "whatsapp" with "fallback": "sms" so most codes stop costing SMS prices.
  4. Restrict destinationsDisable countries you do not serve and reject number ranges your customers do not use.
  5. 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.
  6. 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 us

Frequently 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.

Share:

Ready to send your first code?

Get an API key today. Our team in Erbil helps you go live, in English, Arabic or Kurdish.