Stop Using SMS for Two-Factor Authentication
In this article
Yes, you should stop using SMS for two-factor authentication (2FA) whenever a more secure option is available. SMS-based 2FA is vulnerable to SIM-swapping attacks, SS7 protocol flaws, and phishing, whereas app-based authenticators or hardware keys provide significantly stronger protection for your online accounts.
Why SMS 2FA Is Considered Insecure
SMS 2FA works by sending a one-time code to your phone number via text message. The problem is that your phone number is not a secret—it is often publicly available or easy to obtain through social engineering. Attackers can exploit this in several ways:
- SIM swapping: An attacker convinces your mobile carrier to transfer your phone number to a SIM card they control. Once they have your number, they receive your 2FA codes.
- SS7 protocol vulnerabilities: The Signaling System No. 7 (SS7) network, used by telecoms to route calls and texts, has known weaknesses that can allow attackers to intercept SMS messages.
- Phishing: Attackers trick you into entering the code on a fake website, then use it immediately to access your account.
These are not theoretical risks. SIM-swapping attacks have become increasingly common and have been used to steal cryptocurrency and take over social media accounts. Even the U.S. National Institute of Standards and Technology (NIST) has deprecated SMS as an out-of-band verification method, recommending it only when the user confirms the number and the carrier does not allow porting without verification.
How SMS 2FA Actually Works
When you enable SMS 2FA, the service provider generates a one-time passcode (OTP) and sends it to your registered phone number via SMS. You then enter that code into the login page to prove you have access to the phone. The code is typically valid for a short period (often 30 seconds to 5 minutes) and can only be used once.
The security relies on the assumption that only you have access to your phone and SIM card. However, that assumption fails when an attacker can port your number or intercept the SMS. Additionally, SMS messages are not encrypted, so they can be read by anyone who gains access to the telecom network or your device.
What Are the Safer Alternatives?
Several alternatives provide stronger security than SMS, each with different trade-offs:
- Authenticator apps (TOTP): Apps like Google Authenticator, Authy, or Microsoft Authenticator generate time-based one-time passwords (TOTP) locally on your device. The secret key is stored on your phone, not sent over a network.
- Hardware security keys (U2F/FIDO2): Physical keys like YubiKey or Google Titan plug into your device via USB or NFC. They use cryptographic challenge-response, which is phishing-resistant because the key only works on the exact domain it was registered for.
- Push notifications: Some services send a notification to your phone asking you to approve or deny a login attempt. This is more secure than SMS because the approval is tied to your device, not your phone number.
- Email-based 2FA: This is generally weaker than app-based methods because email accounts are often protected by the same password you are trying to protect, but it is still better than nothing.
How to Switch From SMS to a More Secure Method
Switching is usually straightforward, but the steps vary by service. In general, you will:
- Log into your account and go to the security or two-factor authentication settings.
- Choose the option to add a new authentication method (app or hardware key).
- Follow the instructions to scan a QR code with your authenticator app or register your hardware key.
- Once the new method is set up, remove the SMS option if the service allows it.
- Save backup codes provided by the service in a safe place (like a password manager).
If a service only offers SMS, consider using a virtual phone number or a prepaid SIM that is not linked to your identity, but this is not a perfect solution. The best approach is to use a service that supports TOTP or hardware keys.
Common Misconceptions About SMS 2FA
One common misconception is that SMS 2FA is better than no 2FA. While that is true, it gives a false sense of security. Another misconception is that SIM swapping is rare or only targets celebrities. In reality, anyone can be a victim if the attacker knows their phone number and can socially engineer the carrier.
Another misconception is that authenticator apps are inconvenient because you need to type a code. Many apps now offer auto-fill on mobile devices, and hardware keys are as simple as touching a button. The slight inconvenience is worth the significant security gain.
Why Do Some Services Still Use SMS?
Despite the risks, many services still offer SMS 2FA because it is easy to implement and familiar to users. It also works on any phone, even basic feature phones. For some users, especially in regions with limited internet access, SMS may be the only option. However, most major platforms now offer at least one alternative, and some have started to phase out SMS entirely.
For example, Google has been pushing users toward its prompt-based 2FA and hardware keys, and Twitter (now X) has allowed users to remove SMS 2FA if they have other methods enabled. The trend is moving away from SMS, but it will take time for all services to catch up.
What to Do If You Must Use SMS
If you are forced to use SMS for a particular account, take these precautions:
- Use a phone number that is not widely known.
- Add a PIN or password to your mobile carrier account to prevent unauthorized SIM swaps.
- Be wary of phishing attempts that ask for your SMS code.
- Monitor your phone for loss of service, which could indicate a SIM swap.
Remember that SMS 2FA is better than nothing, but it should be your last resort.
Frequently Asked Questions
Is SMS 2FA better than no 2FA?
Yes, SMS 2FA is significantly better than no 2FA because it adds a second factor that an attacker would need to bypass. However, it is the least secure form of 2FA, so if you have any alternative, use it.
Can I use an authenticator app on multiple devices?
Yes, most authenticator apps allow you to set up the same account on multiple devices by scanning the same QR code or by using a backup/export feature. Some apps, like Authy, sync across devices via an encrypted backup. Just be careful to protect your backup.
Are hardware keys expensive?
Hardware security keys typically cost between $20 and $50, which is a small price for protecting high-value accounts like email, banking, or cryptocurrency exchanges. Some companies even give them to employees for free.
What if I lose my phone with my authenticator app?
That is why you should save backup codes when you set up 2FA. Most services provide 8-10 one-time codes that you can use to log in if you lose your device. You can also set up a second authenticator app on another device as a backup.
Does SMS 2FA work internationally?
Yes, SMS 2FA works internationally as long as your phone has roaming service. However, roaming can be unreliable or expensive, and international SMS can be delayed. Authenticator apps work anywhere without a cellular connection.
Can I use a landline for SMS 2FA?
No, SMS 2FA requires a mobile phone number that can receive text messages. Some services offer voice calls as an alternative, but that is equally insecure and not recommended.