BobWork Vault
2FA security

SMS 2FA: why text-message codes are the weakest second factor, and what to use instead

SMS 2FA sends a one-time code to a phone number, and it is the weakest common second factor because a number can be hijacked through a SIM swap, and a code can be phished or read by whoever holds the phone. It still beats a password alone. Where possible, switch to an authenticator app or a passkey.

By the BobWork team · · 6 min read

Add to Chrome — freeCreate a free account

What is SMS 2FA, and how does it work?

SMS 2FA is two-factor authentication where the second step is a short numeric code sent to your phone number by text message.

You enter your password, the site texts a code, and you type the code in. The idea is that a thief who steals only your password still cannot log in, because they do not have your phone.

That idea holds up against the most common attack, which is a leaked or reused password. The weakness is in what the code travels over and who can get at it. For the wider picture of how the factors fit together, see what 2FA is and 2FA vs MFA.

Why is SMS 2FA the weakest kind of two-factor authentication?

SMS 2FA is the weakest common option because the code is tied to a phone number, not to a device you control, and phone numbers can be taken over or the texts read by someone else.

An authenticator app generates codes on your device with no network involved. A passkey never sends a shareable secret at all. A text message, by contrast, passes through your carrier, shows up on a lock screen, and can be forwarded or redirected.

This is why NIST SP 800-63B, the US digital identity guideline, treats SMS and voice delivery of codes as a restricted authenticator type and tells organisations to weigh the risk of using it. CISA likewise recommends moving to phishing-resistant methods where you can. Neither says SMS is useless. They say it is the floor, not the goal.

The main ways SMS codes fail are below.

  • SIM swap: an attacker gets your number moved to a SIM they control.
  • Phishing: a fake login page asks for your code and passes it to the real site in real time.
  • Number recycling and porting: an old or transferred number ends up with someone else.
  • Lock-screen exposure: the code is readable on a locked phone, on a linked laptop, or in a synced message app.
  • Signal problems: no coverage abroad, delayed texts, or a lost phone means no code.

What is a SIM swap, and how does it defeat SMS 2FA?

A SIM swap is when an attacker persuades your mobile carrier, or a carrier employee, to move your phone number onto a SIM card the attacker controls.

From that moment, calls and texts to your number go to them. They start a password reset on your email or bank, the code arrives on their device, and your own phone simply loses service. You often notice only when your signal drops for no reason.

The attack does not need to break any encryption. It relies on social engineering a carrier, which is why it is hard for you to prevent on your own. You can reduce the exposure like this:

  1. Ask your carrier to add a PIN or passcode to your account that is required for any SIM change or port-out.
  2. Check whether your carrier offers a number lock or port-out protection, and turn it on.
  3. Do not use a phone number as the recovery method for your email account, because email resets unlock everything else.
  4. Treat sudden loss of signal on your phone as a possible incident and contact your carrier from another device.

These steps help, but they only make the number harder to steal. Moving the second factor off the number removes the problem.

Why is one phone for a team account so risky?

One phone for a team account is risky because the whole team's access then depends on a single person, a single SIM and a single screen.

Teams fall into this easily. A shared social media, ad or billing login is set up with SMS 2FA on whoever created it, and the codes keep arriving on that person's mobile. Several things then go wrong:

  • The holder is a bottleneck. If they are asleep, on a flight, or on leave, nobody else can log in.
  • Offboarding is blocked. When the holder leaves, the number leaves with them, and the account is stuck on their personal phone.
  • Codes get pasted into chats. People forward the text to a group chat so a colleague can get in, and the code and the password then sit in message history.
  • A personal SIM guards a business asset. A SIM swap on one employee's number now compromises the company's account.
  • You cannot audit it. Nobody can say who asked for a code or when.

Related guides cover the practical side: how to share SMS 2FA codes with a team and how to share 2FA codes with a team.

Is SMS 2FA still better than no 2FA?

Yes, SMS 2FA is still clearly better than no second factor, and turning it on is better than waiting for a perfect setup.

Most account takeovers start with a password that was reused or leaked in a breach. A text code stops that attacker, who does not have your phone. A SIM swap or a real-time phishing page takes more effort and targeting than replaying a stolen password, so SMS blocks a large share of the lazy, automated attacks.

Use SMS 2FA when it is the only second factor a service offers, such as some banks, telecoms and older platforms. In that case, enable it, then harden the number with the carrier PIN steps above.

The honest rule is simple: SMS is acceptable as a fallback and a poor choice as the main plan for anything valuable. High-value targets include email, banking, domain registrars, ad accounts and admin consoles. The more an attacker would gain, the less you should rely on a text.

What should you use instead of SMS 2FA?

Use an authenticator app for most accounts, a passkey or hardware security key where a service supports one, and keep SMS only as a last-resort fallback.

MethodMain riskWhen to use it
SMS codeSIM swap, phishing, tied to one phone numberOnly when nothing else is offered
Email codeOnly as safe as the email accountAs a fallback, with strong 2FA on the email itself
Authenticator app (TOTP)Phishable in real time; lost device without backupDefault choice for most accounts
Push approvalApproval fatigue if prompts are spammedWhen the service offers number matching
Passkey or security keyDevice loss without a recovery planTop choice for email, banking and admin accounts

An authenticator app stores a secret on your device and computes a fresh 6-digit code every 30 seconds, so there is no phone number to hijack. If you want the mechanics, read how authenticator apps work. Passkeys go further because they cannot be typed into a fake site; see what a passkey is.

How do you move from SMS 2FA to an authenticator app?

You switch by adding the authenticator app in the account's security settings, confirming it works, and only then removing or demoting the SMS option.

  1. Sign in to the account and open its security or two-step verification settings.
  2. Choose the authenticator app option and scan the QR code, or copy the setup key.
  3. Enter the 6-digit code the app shows to confirm the pairing.
  4. Save the backup or recovery codes the service shows you somewhere safe.
  5. Test a fresh sign-in with the app code before you do anything else.
  6. Remove SMS as a method if the service allows it, or leave it as the last fallback with a carrier PIN in place.

Do the accounts that matter most first: your email, then banking, then the logins that control money or customers. For a more detailed walkthrough, see how to set up 2FA. If you later change phones, moving an authenticator app to a new phone covers how to keep your codes.

How can a team handle 2FA without tying it to one phone?

A team can avoid the single-phone problem by storing the second factor in a shared password manager that every authorised teammate can use, instead of in one person's mobile.

BobWork Vault is a free password manager for teams that does this for authenticator (TOTP) codes. It stores the authenticator secret with the login and fills or copies the 6-digit code after the password, so the code does not depend on one person's device. You add the secret by scanning the QR code or uploading a QR screenshot, and a Google Authenticator export imports several accounts at once.

For accounts that can only use SMS, a login can record who holds the 2FA (SMS, email or app prompt, plus the teammate and a hint), and a 2FA map shows which logins depend on one person. A teammate can use "Ask for the code" to request it from the holder, who sends it back encrypted to that teammate only, and it expires in 10 minutes. Backup codes can be stored per login too. Teammates with Login only access never receive them.

If you want this in place for your own accounts, the share passwords with teammates page explains the sharing options.

Try BobWork Vault — free for your whole team

BobWork Vault is a free, zero-knowledge password manager for teams, made by BobWork (BobOffice, LLC). Shared folders, login-only access, 2FA codes and guided offboarding, end-to-end encrypted. Add it to Chrome or create a free account.

Keep reading

More: free password manager · free team password manager · free company password manager · company password manager · password management software · how to share passwords with teammates · compare password managers

Questions

Is SMS 2FA safe?

SMS 2FA is safer than a password alone, but it is the weakest common second factor. A SIM swap, a phishing page that relays your code, or someone reading your lock screen can defeat it. Use an authenticator app or a passkey for important accounts.

Can someone steal my 2FA code without my phone?

Yes. If an attacker swaps your SIM or ports your number, the texts go to their device. They can also trick you into typing the code into a fake login page, which passes it to the real site.

Should I turn off SMS 2FA?

Not if SMS is the only option, since it still beats no second factor. If the service also supports an authenticator app or a passkey, add that first, test it, and then remove SMS or leave it only as a last-resort fallback.

What is better than SMS 2FA?

An authenticator app is better for most accounts, and a passkey or hardware security key is better still because it resists phishing. Push approvals with number matching sit between them.

Can a team share one SMS 2FA number safely?

It is risky, because the number is tied to one person's SIM and phone. A safer approach is to move shared logins to authenticator codes stored in a team password manager, and to record who holds any remaining SMS codes.

How do I protect my phone number from a SIM swap?

Ask your carrier to add a PIN or passcode to your account for SIM changes and port-outs, enable any number lock it offers, and do not use your phone number as the recovery method for your email account.