Glossary
SIM swap: a takeover of someone's phone number
A SIM swap moves a phone number to a SIM held by an attacker, so they receive the texts and calls. How the fraud works and how to reduce SMS code risk.
Updated 2026-11-23
A SIM swap is an account takeover technique in which an attacker has the victim's phone number transferred to a SIM card they control. From then on, calls and text messages for that number reach the attacker, including the one-time codes that banks, exchanges and email providers send by SMS.
How it works
The number belongs to the subscriber, and the SIM is just the card that tells the network where to send it. Operators let customers get a replacement SIM when a phone is lost. Attackers abuse that process:
- They collect personal data about the victim from leaks, phishing or social media.
- They contact the operator, or a corrupt employee, and ask for the number to be moved to a new SIM.
- The victim's phone loses signal.
- The attacker uses password-reset flows that send an SMS code to the number.
Related but different terms:
| Term | What changes |
|---|---|
| SIM swap | Same operator, new SIM for the same number |
| Port-out fraud | The number moves to another operator, see mobile number portability |
| SIM cloning | The SIM's secrets are copied, rare on modern cards |
Some operators and aggregators offer an API that reports the time of the last SIM change for a number, which fraud teams use as a signal. The availability depends on the country and the operator.
Because SMS codes travel over the telephone network, they are only as safe as the account at the operator. Standards bodies such as NIST treat SMS as a restricted authenticator for that reason.
Why it matters for validation
Basic validation cannot see a swap, and Qelka does not claim to. What it can give you are the surrounding signals on a number:
line_typetells you if the number is mobile orvoip, which changes how an SMS code travels. See line type.- On the
livelevel,carrierandportedshow the current operator and whether the number moved between operators, useful context after a number change. See the phone API.
Use those as inputs to a wider risk decision, never as a swap detector.
Practical protections for your product:
- Treat a change of phone number as a sensitive event: confirm by email, delay withdrawals.
- Offer app-based or hardware-based second factors.
- Rate-limit code requests, see rate limiting.
- Log the number, carrier and time at each verification to spot a sudden change.
Related
Frequently asked questions
What is a SIM swap?
Can a phone validation API detect a SIM swap?
ported flag, which describes a move between operators, not a SIM replacement.How do I protect users from SIM swap attacks?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time