SIM Swapping Attack: How to Prevent Losing Your Number
A sim swapping attack how to prevent guide starts with a fact that surprises most people: your phone number is the weakest link in your security, not your password. A SIM swap lets an attacker take over your number, receive your text codes, and reset your email, your bank and your crypto accounts.
The whole attack takes a phone call.
The attack works because phone carriers are the softest target in the chain. An attacker calls your carrier, pretends to be you, and asks to move your number to a new SIM card. If the carrier’s checks are weak, the number moves in minutes.
Your phone goes silent, and the attacker’s phone starts receiving your messages.
This guide explains how SIM swapping works, the carrier protections that stop it, and the account changes that make the attack useless even if it succeeds. The carrier steps take an hour. The account steps take an afternoon. Together, they close the hole that most people do not know they have.
The Short Answer: Carrier PIN Plus Authenticator Apps, Not SMS
Call your carrier today and set three things: an account PIN or passcode, a port-out block, and a SIM-change lock. Verizon calls it Number Lock, T-Mobile calls it Account Takeover Protection, AT&T calls it Wireless Account Lock, and Google Fi calls it Number Lock.
Then remove SMS from your security wherever you can. Replace SMS two-factor codes with an authenticator app or a security key, starting with your email and your bank. If an attacker takes your number, they will find that the codes they receive are useless, because the accounts no longer use them.
Key Takeaways
A SIM swap moves your phone number to an attacker’s SIM card, giving them your text messages and calls.
US carriers must now notify customers promptly of SIM changes and port-out requests, under FCC rules adopted in November 2023.
A carrier account PIN is different from a SIM PIN — you need the account PIN, and ideally a port-out block too.
SMS two-factor codes are the weakest method, because they are exactly what a SIM swap steals.
Authenticator apps and security keys make a SIM swap useless, because the codes no longer travel by text.
How a SIM Swap Actually Works
A SIM swap is a social engineering attack on your phone carrier, not a technical attack on your phone. The attacker gathers personal details about you from social media, data breaches and public records: your name, address, date of birth, and sometimes the last four digits of your Social Security number.
Then they call your carrier or visit a store, pretend to be you, and ask to move your number to a new SIM card.
If the carrier’s identity checks are weak, the number moves in minutes. Your phone loses service and shows no signal. The attacker’s phone starts receiving your calls and texts, including the two-factor codes your accounts send by SMS.
From there, the attacker resets your email password, then your bank password, then anything else using SMS codes.
The attack is fast because the attacker does the work in advance. By the time your phone goes silent, they already have a list of your accounts and the order in which to reset them. The first hour is when the damage happens, which is why prevention matters more than response.
Why SMS Codes Are the Weak Link
SMS two-factor authentication was designed for convenience, not security. The code travels through the phone network, and whoever controls your number receives it. A SIM swap does not need to break any encryption or steal any password. It just needs to convince a carrier employee that the attacker is you.
The US Federal Communications Commission adopted rules in November 2023 requiring carriers to notify customers promptly when a SIM is changed or a number is ported out. That helps, but a notification is not a block. It arrives after the swap, and the attacker may already have your codes by the time you read it.
Carrier Protections: Set Them Today
The most important step is a carrier account PIN or passcode. This is a number you set with your carrier, and it is required before any change can be made to your account, including a SIM swap or a port-out. It is different from a SIM PIN, which locks the SIM card itself.
You need the account PIN, and it should not be your birthday, your address or any other detail an attacker can find.
The second step is a port-out block. This is a setting that prevents your number from being moved to another carrier without your explicit permission. Most major carriers offer it, though they call it different names and bury it in different menus. Ask your carrier to enable it, and confirm it is on.
The third step is a SIM-change lock, if your carrier offers one. Verizon Number Lock, T-Mobile Account Takeover Protection, AT&T Wireless Account Lock and Google Fi Number Lock all do the same job: they block SIM changes until you unlock the setting in the carrier’s app or website. Turn it on and leave it on.
What to Ask Your Carrier, Word for Word
Call your carrier and say: I want to set an account PIN, enable a port-out block, and turn on SIM-change protection. Ask them to confirm each one is active, and ask whether there are any other account-change protections available.
Write down the name of the person you spoke to and the date, because carrier settings have a habit of being reset.
If your carrier cannot offer a SIM-change lock, ask what it can offer. Some carriers let you add a note to your account requiring in-store verification with photo ID for any change. That is not as strong as a lock, but it is far better than nothing, and it slows an attacker down.
Account Changes That Make a Swap Useless
Carrier protections are the first line of defence, but they are not enough on their own. The second line is to remove SMS from your security wherever you can. Replace SMS two-factor codes with an authenticator app or a security key, starting with your email, your bank and your password manager.
If an attacker takes your number, the codes they receive will be useless.
Use a separate email address for account recovery, and protect it with an authenticator app. Do not use your main email address as the recovery address for your bank, because an attacker who resets your email can then reset everything else. A recovery email only you know about, on a different provider, breaks that chain.
Limit the personal details you share publicly. Your date of birth, your address, your mother’s maiden name and your pet’s name are all answers to security questions, and an attacker can find them on social media or in a data breach.
Remove them from public profiles, and use a password manager to generate random answers to security questions.
If Your Phone Suddenly Loses Service
If your phone suddenly shows no service, and you have not changed anything, treat it as a possible SIM swap. Do not wait to see if it comes back. Call your carrier from another phone, or go to a store with photo ID, and ask whether your number has been moved.
If it has, ask them to move it back.
Then, from a device you trust, change the password on your email account first, then your bank, then everything else that uses SMS codes. Check each account for new forwarding rules, new devices and new recovery addresses, because an attacker may have set those up during the window when they controlled your number.
Report the incident to the carrier, to the FTC, and to the police if money was stolen. The carrier’s fraud team can trace the swap, and the FTC’s report helps investigators connect cases. If your bank account was accessed, call your bank immediately and ask for a hold on the account.
Speed matters more than completeness in the first hour.
Carrier SIM-Swap Protections Compared
The names differ by carrier, but the protections do the same job.
Carrier
SIM-change lock
Account PIN
Port-out block
Verizon
Number Lock
Account PIN
Port-out block
T-Mobile
Account Takeover Protection
Account PIN
Port-out block
AT&T
Wireless Account Lock
Account passcode
Port-out block
Google Fi
Number Lock
Account PIN
Port-out block
Smaller carriers
Varies, ask
Account PIN
Ask for it
Prepaid carriers
Often limited
Account PIN
Ask for it
Your SIM-Swap Prevention Checklist
Work through this checklist today. The carrier steps take less than an hour.
Set a carrier account PIN or passcode, and do not use your birthday or address.
Turn on your carrier’s SIM-change lock and a port-out block.
Replace SMS two-factor codes with an authenticator app or a security key.
Use a separate recovery email, protected with an authenticator app.
Remove personal details from public profiles and use random security answers.
Know what to do if your phone loses service: call the carrier from another phone.
Frequently Asked Questions
What is a SIM swap attack?
A SIM swap is an attack where a criminal convinces your phone carrier to move your number to a SIM card they control. They then receive your calls and texts, including two-factor codes, and use them to reset your email, bank and other accounts.
It is a social engineering attack on the carrier, not a hack.
How do I know if I have been SIM swapped?
Your phone suddenly loses service and shows no signal, even though you have not changed anything. You may also receive a notification from your carrier about a SIM change or port-out. If that happens, call your carrier from another phone and ask whether your number has been moved.
What is the difference between an account PIN and a SIM PIN?
An account PIN is a passcode on your carrier account, required before any change can be made, including a SIM swap. A SIM PIN locks the SIM card itself, so it cannot be used in another phone without the PIN.
You need the account PIN to stop a swap; the SIM PIN is an extra layer.
Can a SIM swap happen if I have two-factor authentication?
Yes, if your two-factor codes arrive by SMS. A SIM swap gives the attacker your number, so they receive the codes. If your codes come from an authenticator app or a security key, a SIM swap is useless, because the codes never travel by text.
Should I use a separate phone number for banking?
It can help. A second number, on a different carrier or a virtual number, that you never share publicly, is harder for an attacker to target. If you do this, protect that number with the same carrier PIN and SIM-change lock as your main number.
What should I do if my carrier will not add a SIM lock?
Ask for a port-out block and an account PIN, and ask for a note on your account requiring in-store verification with photo ID for any change. If your carrier offers none of these, consider switching to a carrier that does. The protections are free, and they are worth the move.
Conclusion
A sim swapping attack how to prevent guide comes down to two ideas: make the carrier hard to fool, and make the number useless to steal. The carrier PIN, the SIM-change lock and the port-out block do the first; the authenticator app and the separate recovery email do the second.
Set the carrier protections today, while your phone still works. Replace the SMS codes over the next week. Then forget about it, because the attack that would have taken your accounts will find nothing worth stealing.
Ayesha is the co-founder of occcy and the editor behind its entertainment and lifestyle coverage. She believes good writing should feel like a conversation with a smart friend, clear, warm, and genuinely helpful.