TweetAttacks

File 11 · Setup guide

How to protect your phone number from SIM swaps

A SIM swap moves your phone number to an attacker's SIM, along with every text code sent to it. Here's how to lock your number with your carrier and take SMS out of your X security.

Short answer

Turn on your carrier's number lock and SIM change protection, set an account PIN or passcode that isn't your birthday or the last digits of your number, and stop relying on text messages for important logins. On X, use an authenticator app, security key or passkey instead of SMS, so a stolen number can't be used to get into your account.

Key takeaways

  • A SIM swap moves your number to a SIM card the attacker controls; a port-out moves it to another carrier.
  • Major US carriers offer free locks for both, but you usually have to switch them on yourself.
  • US FCC rules adopted in 2023 require carriers to authenticate customers before SIM changes and port-outs, and to notify them.
  • The best defense for X is not to use SMS codes at all.

A SIM swap doesn't need your phone, your password or any malware. The attacker talks or tricks their way into getting your mobile number moved to a SIM card they control. From then on, every text message meant for you goes to them, including login codes and password reset codes. For accounts that rely on SMS, that's often enough to take over.

How does a SIM swap attack work?

The attacker convinces your carrier, by social engineering or with help from an insider, to move your number to their SIM card or to another carrier.

The usual sequence:

  1. They collect details about you: name, number, address, sometimes the last digits of a card or ID, often from data breaches.
  2. They contact your carrier, in a store, on the phone or online, pretending to be you with a lost or broken phone.
  3. The carrier activates your number on their SIM or eSIM, or approves a port-out to another carrier.
  4. Your phone loses service. Their phone starts receiving your texts and calls.
  5. They request password resets and login codes for your email, X, banking and crypto accounts.

The whole process can take less than an hour, and it often happens at night or on weekends, when you're slower to notice.

How do you lock your number with your carrier?

Turn on number lock (port-out protection) and SIM change protection in your carrier's app or account settings, and set a strong account PIN.

Names and menus as of November 2026 at the three largest US carriers:

Carrier Feature names Where to find it
AT&T Wireless Account Lock AT&T app, from a device active on the account
Verizon Number Lock and SIM Protection My Verizon, account security settings
T-Mobile SIM Protection and Number Lock (port-out protection) T-Mobile app or account, under privacy or security settings

Menus move often, so search your carrier's help pages for these names if you can't find them. Carriers in other countries offer similar options under names like "port-out PIN" or "SIM lock"; ask your carrier what it has.

While you're in the account:

  • Set an account PIN or passcode that's random, not your birthday or the last four digits of your number.
  • Remove authorized users who no longer need access.
  • Check the email address on the account, and make sure it has its own strong two-factor protection.

What do US rules require of carriers?

FCC rules adopted in late 2023 require wireless carriers to use secure authentication before a SIM change or port-out, and to notify customers immediately when one is requested.

The rules also require carriers to offer a clear way for customers to report fraud, to investigate it, and to provide documentation of it on request at no cost. They set a baseline rather than prescribing exact methods, and the compliance date for some provisions was delayed after industry petitions. In practice, the protections you switch on yourself are still the strongest layer.

How do you take SMS out of your X security?

Switch X's two-factor authentication to an authenticator app, security key or passkey, and remove SMS as a method if you have it.

X has limited text-message two-factor to X Premium subscribers since March 2023, so many accounts already use something else. If yours still uses SMS, follow our guide to setting up 2FA and passkeys on X. A security key or passkey is best, since it can't be phished either.

Also consider the phone number on your X account. X uses it for password resets and account recovery. Keep it if you rely on it, but make sure your email account, which can also reset your X password, is just as well protected.

What should you do if your number is hijacked?

Contact your carrier from another phone at once, then secure your email and X from a trusted device.

  1. Call your carrier using another phone or visit a store with ID. Say your number was moved without permission and ask them to restore it and lock it.
  2. From a trusted computer, change the password on your email account and sign out of other sessions.
  3. Change your X password and log out of all other sessions.
  4. Check every account that uses your number for codes: banks, payment apps, cloud storage.
  5. Ask the carrier for documentation of the fraudulent change; US rules require them to provide it on request.

If someone already got into X, follow our first hour after a hack checklist.

Which accounts depend on your phone number?

Make a list of every account that can be reset by text message, then move the important ones to app-based or key-based codes.

Email, X and other social accounts, banking, payments and cloud storage are the priorities. For each, check whether an authenticator app or security key is offered, and switch. Run the 5-minute security check to see how your X setup scores.

Questions

What is the difference between a SIM swap and port-out fraud?

In a SIM swap the attacker gets your carrier to move your number to a new SIM card on the same carrier. In port-out fraud they move your number to a different carrier. Both end the same way: your texts and calls go to them.

How do I know if my SIM has been swapped?

Your phone suddenly shows no service or emergency calls only while others around you have signal, and you may get a text or email from your carrier about a SIM change. Call your carrier from another phone immediately.

Will a number lock stop me switching carriers?

Only until you turn it off. When you want to switch, disable the lock in your carrier's app or account and request a transfer PIN, then turn protection on with the new carrier.

Does an eSIM protect me from SIM swaps?

Not by itself. An attacker who fools the carrier can move your number to a new eSIM just as easily as to a physical card. Carrier locks and PINs are what matter.

Sources

TweetAttacks is independent and not affiliated with X Corp. Settings names can change when X updates its apps; if a menu has moved, search its name in X's settings.

Read next