Why SMS 2FA Codes Aren't Safe & What to Use
In this article
Text message two-factor authentication (2FA) codes are not safe because SIM swapping lets attackers intercept them, and phishing can trick you into forwarding them. Instead, use an authenticator app (like Google Authenticator or Authy) or a hardware security key (like YubiKey). These methods are phishing-resistant and don't rely on your phone number.
What You'll Need
- A smartphone or tablet to install an authenticator app
- Access to the accounts you want to secure (email, banking, social media, etc.)
- Your current login credentials (username and password)
- Optional: a hardware security key (e.g., YubiKey) if you want the strongest protection
Step-by-Step
- Understand why SMS is weak. SMS codes are sent over cellular networks. Attackers can trick your mobile carrier into transferring your phone number to their SIM card (SIM swapping). Once they control your number, they receive your 2FA codes. Also, phishing sites can ask you to enter the code you just received, and you might do it without realizing it's a fake.
- Choose an authenticator app. Popular options include Google Authenticator, Microsoft Authenticator, Authy, and 1Password (if you already use a password manager). These apps generate time-based one-time passwords (TOTP) locally on your device, so no codes are sent over the network.
- Install the app on your phone. Go to your device's official app store (Apple App Store or Google Play Store) and download the app you chose. Do not download from third-party websites.
- Enable 2FA on your important accounts. For each account (email, bank, social media, etc.), go to the security or privacy settings. Look for "Two-Factor Authentication," "Two-Step Verification," or "Security Key." The exact label varies by service.
- Select "Authenticator App" as your method. When prompted, choose the option to use an authenticator app instead of SMS. The service will show a QR code on the screen.
- Scan the QR code with your authenticator app. Open the app, tap the plus icon or "Add account," and scan the QR code. The app will then display a 6-digit code that changes every 30 seconds.
- Enter the code from the app. Type the current code from the app into the website or service. This confirms that your app is correctly linked.
- Save backup codes. Most services provide one-time backup codes during setup. Write them down and store them in a secure place (like a password manager or a safe). You'll need these if you lose your phone.
- Remove SMS as a 2FA method (if possible). After setting up the app, go back to the security settings and disable SMS 2FA if the service allows it. Some services force you to keep it as a backup, but you can at least make the app your primary method.
- Consider a hardware security key for critical accounts. For your primary email and financial accounts, a hardware key (like YubiKey) is even safer. It requires physical possession of the key to log in. To set it up, plug the key into a USB port or tap it on your phone (NFC), then follow the service's instructions under "Security Key" or "Hardware Token."
- Update your recovery options. Ensure your recovery email and phone number are current. If you lose access to your authenticator app, these are your lifelines.
Common Mistakes
- Keeping SMS as the only 2FA method. Even if you add an app, leaving SMS enabled means an attacker could still use it to bypass your app.
- Not saving backup codes. If you lose your phone without backup codes, you may be locked out permanently.
- Using the same authenticator app on a phone without a lock screen. If someone steals your phone, they can open the app and get your codes. Set a strong PIN or biometric lock.
- Entering codes into phishing sites. Always check the URL of the site before entering any code. Even with an app, if you type the code into a fake site, the attacker can use it.
- Choosing an app that doesn't support backup/export. Some apps (like Google Authenticator) don't sync your codes to the cloud. If you lose your phone, you lose access. Apps like Authy offer encrypted backups.
Tips
- Use a password manager that supports TOTP. If you already use 1Password or Bitwarden, you can store your 2FA codes there. This means you only need to remember one master password.
- Set up 2FA on your email first. Your email is often the key to resetting other passwords. Protect it with an authenticator app or hardware key before anything else.
- Keep your phone's operating system updated. Security patches help prevent malware that could steal your authenticator codes.
- If you use a hardware key, buy a spare. Register both keys with your accounts. Keep one in a safe place at home and carry the other with you.
- Check your carrier for SIM swap protection. Some carriers let you set a PIN or account lock that makes it harder for someone to port your number. Contact your carrier to see what they offer.
Troubleshooting
- My authenticator app codes aren't working. First, check that your phone's time is set to automatic. TOTP codes rely on accurate time. Go to your phone's settings and ensure "Set time automatically" is enabled.
- I lost my phone and didn't save backup codes. Try to recover your account using your recovery email or phone number. Many services offer a "Forgot your 2FA?" link. You may need to wait a few days for account recovery.
- I switched to a new phone and can't transfer my codes. If you use Authy, you can restore from your encrypted backup using your master password. For Google Authenticator, you must either export your accounts to the new phone (if you have the old phone) or use backup codes to re-enable 2FA on each account.
- My hardware key isn't recognized. Try a different USB port or use the NFC tap if your phone supports it. Make sure the key is inserted correctly and the service supports hardware keys. Some services only allow them on desktop browsers.
- I can't disable SMS 2FA. Some services require you to keep SMS as a backup. In that case, at least ensure your authenticator app is the primary method and set a strong PIN on your carrier account to reduce SIM swap risk.
Frequently Asked Questions
Is SMS 2FA better than no 2FA?
Yes, SMS 2FA is better than nothing, because it stops many automated attacks. However, it's not secure against targeted attacks like SIM swapping. If you can, switch to an authenticator app.
Can I use the same authenticator app for multiple accounts?
Yes, that's the point. You can add as many accounts as you want to one authenticator app. Each account gets its own code.
What if I don't have a smartphone?
You can use a hardware security key, which works on computers and some phones via USB or NFC. Some services also offer software tokens for desktop (like Authy's desktop app).
Are authenticator apps really safer than SMS?
Yes, because the code is generated locally on your device and never transmitted over a network. An attacker can't intercept it unless they physically have your phone or trick you into entering it on a fake site.
What's the difference between a push notification and an authenticator app?
Push notifications (like Microsoft Authenticator's "Approve" button) are also safer than SMS because they don't rely on your phone number. However, they can be phished if you accidentally approve a request. Authenticator apps require you to type a code, which is slightly more phishing-resistant.
Do I need to buy a hardware key?
No, an authenticator app is sufficient for most people. A hardware key is recommended for high-value accounts like your primary email, bank, or cryptocurrency exchange, but it's not required for everyone.