Free Numbers Pricing Reviews Feedback Terms & Policy API Docs Blog About
Log in Get Started
6 views 6 min read
Back to Blog
Security

SIM Swap Attacks Explained: How They Work and How to Protect Your Accounts

SIM Swap Attacks Explained: How They Work and How to Protect Your Accounts

A SIM swap attack is one of the few frauds that can defeat a perfectly implemented one-time password. The code is real, the message is real, and the phone in your hand is real; the problem is that the number now belongs to someone else. For Privacy Advocates, Software Developers and QA Teams who test verification flows every day, understanding this attack matters because it changes what you trust SMS to protect. This guide explains the mechanics, the warning signs and the practical defences that actually work.

Direct answer: A SIM swap attack happens when a fraudster persuades a mobile carrier to move your phone number onto a SIM they control. Once the swap completes, every OTP code and recovery message goes to the attacker, who can then reset passwords and take over accounts that rely on SMS.

What Is a SIM Swap Attack and Why It Works

Your phone number is an identity token. Banks, email providers and social networks use it to prove you are you, and the proof is a short code sent by SMS. A SIM swap breaks that chain by moving the number itself. The carrier believes it is helping a customer replace a lost SIM; the attacker walks away with the ability to receive every message addressed to your number.

Nothing about the encryption is broken. The attack targets the human process at the carrier and the assumption that possession of a number equals possession of an identity.

How a SIM Swap Attack Unfolds, Step by Step

  1. Reconnaissance. The attacker collects your name, address, date of birth and phone number from breaches, social media or data brokers.
  2. Carrier contact. They call or visit a carrier store, claim the SIM is lost or damaged, and request a replacement.
  3. Verification bypass. They answer security questions with the data they gathered, or they bribe or social-engineer a staff member.
  4. Swap completes. Your number is deactivated on your SIM and activated on theirs. Your phone loses service.
  5. Account takeover. They trigger password resets, receive the OTP codes, and change credentials before you notice.
  6. Monetisation. They move money, take over social accounts, or sell access to others.

The whole sequence can take less than an hour. The first signal many victims get is a sudden loss of mobile service.

Warning Signs You Should Not Ignore

  • Your phone suddenly shows no service in an area where coverage is normally fine.
  • You receive a carrier text confirming a SIM change or a number transfer you did not request.
  • You are locked out of an account and the recovery email has been changed.
  • You get a password reset email you did not trigger, followed by a code you did not request.
  • Your carrier account shows a new device or a new authorised user.

Any one of these is worth a call to your carrier from a different phone. Two together are an emergency.

How to Protect Your Accounts From a SIM Swap Attack

1. Add a carrier port-out PIN

Most carriers offer a port-out PIN or a account passcode that must be quoted before any SIM change or number transfer. Set one, store it offline, and never share it with anyone who contacts you first.

2. Move critical accounts to app-based 2FA

An authenticator app does not depend on the mobile network. Even if your number is swapped, the attacker cannot generate the code. Use it for email, banking and any account that can reset the others.

3. Keep backup codes offline

When you enable app-based 2FA, save the backup codes in a password manager and on paper. They are the recovery path when the phone is gone and the number is compromised.

4. Remove SMS as the primary factor

Where a service offers multiple second factors, make SMS the fallback rather than the default. This is especially important for the email account that can reset everything else.

5. Use a separate number for low-trust signups

Do not attach your primary number to every trial, download and newsletter. A rental virtual number keeps the number tied to your banking out of marketing databases and reduces the exposure surface.

What to Do If You Suspect a Swap

  1. Call your carrier immediately from another phone and ask them to freeze the number and reverse the change.
  2. Change the password on your email account first, then on financial accounts.
  3. Sign out of all sessions and revoke app passwords.
  4. Check recovery email addresses and phone numbers and remove anything unfamiliar.
  5. Enable app-based 2FA on every account that supports it.
  6. Report the incident to your carrier and, where money was taken, to the relevant authorities.

Speed matters. The longer the attacker holds the number, the more accounts they can reset.

Why Reliable Infrastructure and Privacy First Matter

For teams building verification systems, the lesson is not that SMS is useless. It is that SMS should be one layer, not the whole wall. Reliable infrastructure for delivering codes and a privacy first approach to storing numbers both reduce the blast radius of a swap. Fast delivery also helps: a code that expires quickly is less useful to an attacker who receives it late.

When you test flows, use numbers you control. You can provision a rental number from the SMS Feel registration page and read incoming codes through the developer REST API documentation. Keeping test numbers separate from personal lines is a small habit that pays off.

Frequently Asked Questions

Can a SIM swap attack be prevented completely?

Not completely, because it targets carrier processes and social engineering. You can make it much harder with a port-out PIN and much less damaging by moving critical accounts to app-based 2FA.

Does a virtual number protect against SIM swap?

It reduces exposure because your primary number is not used everywhere. It is not a substitute for app-based 2FA on accounts that matter.

How do I know if my number was swapped?

The most common sign is a sudden loss of service, often followed by password reset emails you did not request. Call your carrier from another line if you suspect it.

Is email-based 2FA safer than SMS?

It depends on the email account. If the email account itself is protected by app-based 2FA, email recovery is reasonable. If it is protected only by SMS, the chain is only as strong as the number.

What should developers do differently?

Offer multiple second factors, do not make SMS the only recovery path, and expire codes quickly. Test with controlled numbers so you can see exactly what users receive.

Conclusion

A SIM swap attack succeeds because the number is treated as proof of identity. Treat it as one signal among several, add a carrier PIN, move critical accounts to authenticator apps, and keep backup codes offline. For testing and privacy-friendly signups, create a free SMS Feel account and keep your primary line out of the test loop.

Related reading: more security guides on the SMS Feel blog.

Tags

#sim swap attacks #sim swap protection #otp security #two factor authentication #virtual numbers #privacy first #reliable infrastructure
Contact us