Does MFA stop account takeover?

Intermediate4 min readUpdated

GET /learn/account-attacks/does-mfa-stop-account-takeover/ Accept text/html text/markdown

Short answer

MFA stops most attacks that rely on a stolen password alone, such as credential stuffing and password spraying. It does not stop real-time phishing relays that capture codes, push spam that wears users down until they approve, SIM swaps that redirect SMS codes, or stolen session cookies used after login. Passkeys and other FIDO2 methods resist phishing because they work only on the real domain.

With passwords alone, a leaked list is enough to get into an account. MFA adds a second requirement, so the attacker must also obtain the second factor or find a way to skip it. Each MFA method can be beaten in different ways, and the method you choose decides which attacks still work.

What MFA stops

Any second factor defeats attacks that use only a password: credential stuffing, password spraying and brute force. The attacker's tool may find the right password and still fail to log in. When MFA is optional, the accounts without it stay exposed, so asking for a second factor on risky logins (new device, unusual network, scripted behaviour) protects users who never turned it on.

How do attackers get around MFA?

Real-time phishing relays are the most direct route. A phishing page sits between the victim and the real site. It shows the real login, passes the password to the real site, asks for the one-time code, and passes that on too. The real site then issues a session cookie, which the relay captures. MITRE ATT&CK describes the method as adversary-in-the-middle (T1557). It works against SMS codes, authenticator app codes and push approvals, because the victim does every step themselves.

MFA fatigue needs only the password. The attacker triggers push notifications again and again, often late at night, until the user taps approve to make them stop. MITRE lists this as MFA request generation (T1621). Number matching, where the user must type a number shown on the login screen into the app, stops approvals given without looking. It does not stop a phishing relay, since the relay page can show the number too.

SIM swaps target SMS and voice codes. The attacker persuades the mobile carrier, or an insider there, to move the victim's number to a new SIM card. From then on, the codes go to the attacker. NIST SP 800-63B-4 classes authentication over the phone network as "restricted" and asks verifiers to consider signs such as a recent device swap or number port before sending a code (NIST SP 800-63B).

Stolen session cookies skip MFA altogether. After login, the session cookie is the credential. Infostealer malware copies cookies from the browser, and the attacker loads them into their own browser. The site sees a valid session and does not ask for MFA again. Session hijacking and cookie theft covers the defences.

Weak recovery and fallback paths are the last gap. If "lost your phone?" sends a code by SMS or a link to an email account the attacker controls, MFA is only as strong as that path. The same applies to support agents who can remove MFA after a convincing phone call.

How do MFA methods compare?

Method Real-time phishing relay Push fatigue SIM swap Stolen session cookie
SMS or voice code Vulnerable Not applicable Vulnerable Vulnerable
Authenticator app code Vulnerable Not applicable Resists Vulnerable
Push approval Vulnerable Vulnerable Resists Vulnerable
Push with number matching Vulnerable Cuts blind approvals Resists Vulnerable
Passkey or FIDO2 security key Resists Not applicable Resists Vulnerable

Why do passkeys and FIDO2 resist phishing?

Passkeys and FIDO2 security keys use public key cryptography through the Web Authentication API. At registration, the authenticator creates a key pair for your domain and gives the site only the public key. At login, the browser tells the authenticator which domain is asking, and the authenticator signs the site's challenge only with a credential registered to that domain. A lookalike phishing domain gets nothing it can replay on the real site, and there is no code for the user to type into the wrong page. NIST calls this verifier name binding and counts it as phishing resistant, while it does not count SMS, authenticator app codes or push approvals as phishing resistant. The FIDO Alliance passkeys page explains the user side.

Passkeys still depend on the rest of the system. A passkey account that can be recovered by SMS falls back to SMS-level security.

What to do

  • Offer passkeys to all users, and require phishing-resistant MFA for admins and staff.
  • Keep SMS as a fallback rather than the main method, and check for a recent SIM change if your SMS provider offers that data.
  • Use number matching for push approvals, cap the number of pushes per hour, and alert when a user denies several in a row.
  • Ask for MFA again before email, phone, password, MFA and payout changes, so a stolen session cannot make them.
  • Make account recovery at least as strong as login, as set out in how to prevent account takeover.
  • Watch what happens after login, since MFA says nothing about a session that was hijacked later. Signs of account takeover lists the patterns.

Tools that help

StopBots is published by Kairal, which is one of the tools listed. The list is not a ranking.

  • SimpleWebAuthn is a set of open-source TypeScript libraries for passkey registration and login in the browser and on Node.js servers.
  • py_webauthn is an open-source Python library for the server side of WebAuthn, suited to Django, Flask or FastAPI backends.
  • Twilio Verify sends and checks one-time codes over SMS, voice, email and other channels through one API, for teams that need codes as a fallback.
  • Kairal connects device, network and behavioural signals across the customer journey, from first visit to login and checkout, to detect account takeover.

Common questions

Is SMS-based MFA better than no MFA?

Yes. SMS codes still stop attacks that use a password alone, such as credential stuffing and password spraying. Treat SMS as the minimum and offer stronger methods alongside it.

Do passkeys stop session hijacking?

No. A passkey protects the login step. Once the site has issued a session cookie, malware that copies the cookie can use it without the passkey, which is why sessions also need binding to the device.

What is the difference between 2FA and MFA?

2FA means exactly two factors and MFA means two or more. In practice both terms are used for any login that asks for something beyond the password.