← all articles

SMS two-factor authentication: how it fails and what actually works better

How SMS codes actually get to your phone

When a site texts you a six-digit code, it sends that message through the mobile network, to whatever SIM is currently registered as your phone number. Your phone is the last stop, never the first. Your carrier looks up which SIM card and which tower that number is attached to right now, and routes the text there. That routing step is the whole story. That’s why SMS 2FA has problems. The code doesn’t go to “you.” It goes to whoever the carrier currently believes owns that number.

That’s a meaningfully different security model from something like an authenticator app. The secret lives on your specific device and never has to be routed anywhere. SMS adds a middleman: the carrier’s network. That’s where most of the real-world attacks happen.

The SIM swap problem

A SIM swap is when someone convinces your carrier to move your phone number onto a SIM card they control. Usually that’s a support call, or a compromised employee account. Once that’s done, your number belongs to their device. Any SMS code meant for you, including password resets, now lands in their inbox instead.

This works because carrier support processes are built around convenience, not cryptographic proof. A support rep verifies your identity with a name, address, and the last four digits of a bill. That’s information that’s often already been leaked in some unrelated data breach years earlier. The attacker doesn’t need to break anything technical. They need to be convincing on a phone call, once.

This is why SIM swaps specifically target high-value accounts: crypto exchanges, email accounts that gate password resets for everything else, and financial apps. It’s not a mass-market attack. It takes individual effort, per victim. But for the accounts it does target, it’s devastating. SMS 2FA is often the only thing standing between an attacker and the account.

SS7 and network-level interception

There’s a second, less common but real weakness at the network level. SS7 is the decades-old signaling protocol carriers use to route calls and texts between each other globally. It was designed in an era when only a small number of trusted telecom operators had access to it. It has no real authentication built in. Anyone with access to the SS7 network can potentially intercept SMS messages in transit. Or track a phone’s location. That access isn’t limited to telecoms. In practice it includes some governments, some criminal groups who’ve bought or leased access, and some carriers with lax security.

This isn’t something the average account holder needs to lose sleep over. It requires specialized access that isn’t cheap or easy to get. It doesn’t scale to millions of targets. But it does mean something important. SMS codes can be intercepted without ever touching your phone or your carrier account. That matters for anyone whose threat model includes well-resourced adversaries, journalists and activists being the clearest example.

Malware and notification previews

A more mundane failure mode: your phone gets compromised by malware, or someone just has physical access to it while it’s unlocked. Either way, SMS codes are sitting in plain text in your messages app. Lock screen notification previews make this worse. A code can be read straight off the lock screen without ever unlocking the device, if you have previews enabled for that app.

None of this requires sophisticated tooling. It’s the same category of risk as writing a password on a sticky note, just digital.

Real-time phishing beats every one-time code

Here’s the attack that matters most and gets talked about least: real-time phishing relay. A fake login page looks identical to the real one. It asks for your username and password, just like normal. The moment you enter them, the attacker’s server logs into the real site with your credentials. That triggers the real SMS code, sent straight to your actual phone. The fake page then asks you to “verify” by entering that code. You type it in. It looks completely normal. The attacker relays it straight through to the real site, within seconds.

This defeats SMS 2FA. But it’s worth being precise here: it also defeats basic authenticator app codes the same way. A TOTP code typed into a phishing page gets relayed just as fast as an SMS code does. The one-time code isn’t the weak point in this attack. The fact that any static code can be relayed in real time is. This is the attack that phishing-resistant methods, further down, are specifically built to stop.

Why SMS 2FA is still worth turning on

None of this means SMS 2FA is worthless. Compare it to the realistic alternative for most accounts. That’s no second factor at all. A hardware key was never the thing on the other side of that comparison. A stolen or reused password alone gets an attacker straight in. SMS 2FA stops that outright. It also stops credential-stuffing attacks, where bots try leaked password lists against thousands of accounts. Those are the most common attacks by volume. SMS blocks all of them.

The attacks that beat SMS, SIM swaps, SS7 interception, real-time phishing, all require either targeting you specifically or a level of sophistication most opportunistic attackers don’t bother with. Turning on SMS 2FA on an account that currently has none is still a real improvement. The question isn’t “is SMS 2FA good.” It’s “which accounts need something better than SMS.” The answer depends on what’s actually at stake.

Authenticator apps: better, not perfect

Apps like Authy, Google Authenticator, or the built-in authenticator in a password manager generate a TOTP code: a six-digit number that changes every 30 seconds. It’s derived from a secret shared between the app and the service when you set it up. No network routing is involved. There’s no carrier to trick and no SS7 to exploit. The code is computed locally on your device, from a secret that was never sent over SMS in the first place.

This closes the SIM swap and SS7 problems entirely. It doesn’t close the real-time phishing problem, though. A TOTP code typed into a fake login page gets relayed just as effectively as an SMS code does. The gain from authenticator apps is specifically about removing the carrier as an attack surface, not about making codes unphishable.

Hardware security keys and passkeys: the phishing-resistant tier

Hardware security keys, and the passkeys that use the same underlying standard (FIDO2/WebAuthn), work differently. That specifically closes the phishing gap. When you register a key with a site, your device creates a cryptographic key pair tied to that exact domain. When you log in, the site sends a challenge. Your device signs it with the private key. That signature is checked against the public key on file. Critically, the browser or device checks the domain first. It has to match the one the key was registered with, before it will sign anything.

That domain check is the part a phishing page can’t fake. A fake login page at a lookalike domain simply won’t get a valid signature out of your key. The key knows it’s not talking to the real site. There’s no code for you to accidentally type into the wrong place. There’s no code at all. Just a signed challenge that only works where it was registered.

This is a real, mechanism-level improvement over both SMS and TOTP apps for the specific problem of phishing. It doesn’t make an account “unhackable.” It doesn’t protect against server-side breaches, malware that hijacks an already-open session, or someone with a court order compelling a service provider to hand over data. It closes one specific, common attack path very effectively.

Backup codes and recovery: the part people skip

Every method above needs a recovery plan. This is where people quietly undo their own security gains. If losing your authenticator app or security key means falling back to an SMS reset “just this once,” then SMS is still your real second factor, no matter what you’ve enabled day to day. Print or save the one-time backup codes most services offer. Store them somewhere offline. Treat losing a device as a solvable problem you planned for in advance, not an emergency that forces you back onto the weakest option available.

What to actually do, account by account

Not every account needs the same treatment. Pretending otherwise leads to advice nobody follows. For low-stakes accounts, SMS 2FA beats no 2FA and is fine to leave as is. For your primary email account, an authenticator app is a reasonable minimum, since it usually gates password resets for everything else. A hardware key is a solid upgrade if the service supports it. For financial accounts and crypto exchanges, where SIM swaps specifically target the account type, avoid SMS as your only option where the service lets you choose. Use a hardware key or passkey where it’s offered. None of this is a legal requirement, or a guarantee against every attack. It’s about matching the strength of the lock to what’s actually behind the door.

Want more breakdowns like this that explain the mechanism instead of just handing out a checklist? Head back to the homepage for the rest of what we cover.

from the team
Want a real mobile IP, not a datacenter VPN endpoint?

Shared VPN exit nodes get flagged and blocked. Singapore Mobile Proxy runs real 4G/5G mobile IPs that give you a residential-grade address carriers still trust.

see how it works →
read on
More from The Privacy Wire

VPN and tool reviews, realistic opsec guides, and privacy news for people who want to protect their data.

browse all articles →