ZTGIT

Phishing-resistant MFA: why SMS is not enough

ZTGIT team

Phishing-resistant MFA: why SMS is not enough

The problem: a second factor that can be relayed

MFA adds a second proof on top of the password. That alone stops the most common attack: someone holding only a leaked password cannot get in. But most second factors share a weakness: the person carries the factor to the site, by typing a code or tapping “approve”.

Whatever a person carries, a fake page can receive. The attack looks like this:

  1. The victim gets a link to a page that looks exactly like the company login.
  2. The fake page forwards the username and password to the real site, in real time.
  3. The real site asks for the second factor; the fake page asks the victim for the same thing.
  4. The victim types the code. The fake page relays it and keeps the open session.

From the real site’s point of view, this was a normal login with a correct password and correct MFA. The code was valid. It just went to the wrong recipient.

Every typed code is exposed to the relay above. SMS adds problems of its own:

  • the phone number can be moved to another SIM by social engineering at the carrier;
  • the message travels and shows up outside the control of the person logging in;
  • the same number is often the account recovery channel, which turns the phone into a master key.

Authenticator app codes (TOTP) remove the carrier risks, but they are still typed. Push “approve or deny” prompts replace the code with a tap and bring a different risk: a person worn down by repeated prompts approves one they did not start. Number matching helps, but it does not stop the relay.

None of this makes SMS useless. It is still better than a password alone. It just should not be the factor protecting the accounts that matter most.

How FIDO2 and WebAuthn fix it

FIDO2 is the family of standards; WebAuthn is the part the browser implements. The core idea is simple: there is no code to relay.

  • At registration, the device creates a key pair for that site. The private key stays on the device; the site stores only the public key.
  • At login, the site sends a challenge. The device signs it after a local gesture (touch, PIN or biometrics).
  • The browser includes the address of the requesting site in what gets signed. A credential created for the real domain is not used on a look-alike one.

The fake page can copy the look, but it lives at a different address. The browser does not offer the credential, and the victim has nothing to type and hand over. Protection no longer depends on the person spotting the scam.

Passkeys: same standard, easier to use

“Passkey” is the user-facing name for a FIDO2 credential. There are two main kinds:

  • synced: stored in the operating system’s vault or a password manager, and available across the same person’s devices;
  • device-bound: stored on a physical security key or a device chip, and never leave it.

Synced passkeys make rollout and recovery easier. Device-bound ones give tighter control over where the credential lives, which matters for administrators and privileged accounts. Many organizations use both, matched to the risk of each account.

Where SSO fits in

Enabling FIDO2 application by application does not scale. With SSO, authentication happens at a single identity provider, and applications trust it through OIDC or SAML.

That concentrates the decision: the provider requires the phishing-resistant factor, and every application behind it inherits the protection. It also concentrates the risk, so the provider must be treated as a critical system. The full vocabulary is in MFA, SSO, OIDC and SAML: the identity vocabulary.

Two things to watch:

  • Fallback factors. If the provider accepts FIDO2 or SMS, the attacker picks SMS. Remove weak options from sensitive accounts.
  • Recovery. If losing a key leads to a code by SMS or email, recovery becomes the back door. Register more than one strong credential and handle recovery with human verification.

In a zero trust model, strong identity is the starting point, not the finish line: access is still evaluated on every request, as described in Zero trust in practice.

Takeaways

  • Any code a person types can be relayed by a fake page.
  • FIDO2, WebAuthn and passkeys bind the login to the site’s address.
  • Start with admin accounts and the SSO provider.
  • Remove weak factors from sensitive accounts, or attackers will pick the weakest.
  • Make account recovery as strong as the login.

From the blog