Skip to content

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:

  1. They collect personal data about the victim from leaks, phishing or social media.
  2. They contact the operator, or a corrupt employee, and ask for the number to be moved to a new SIM.
  3. The victim's phone loses signal.
  4. 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_type tells you if the number is mobile or voip, which changes how an SMS code travels. See line type.
  • On the live level, carrier and ported show 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.

Frequently asked questions

What is a SIM swap?
A SIM swap, also called SIM hijacking, is an attack in which a criminal convinces a mobile operator to move a victim's phone number to a SIM card the criminal controls. The victim's phone loses service, and the attacker receives the calls and SMS messages, including one-time codes sent to that number.
Can a phone validation API detect a SIM swap?
Not by itself. Validating a number checks its format and type. Detecting a swap needs signals from the operator about recent SIM changes. Qelka does not return that. Its live phone lookup returns the current carrier and a ported flag, which describes a move between operators, not a SIM replacement.
How do I protect users from SIM swap attacks?
Do not rely on SMS alone for high-value actions. Offer an authenticator app or a hardware key, add a delay or extra check after a phone number change, and notify users by email when a number or password changes. SMS codes remain acceptable for low-risk steps.

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