Which MFA Methods Are Most Resistant to Bypass Attacks? MFA Security Guide
See MFA methods ranked from weakest to strongest, learn common bypass techniques, and try a lab test that shows why passkeys resist real-time phishing.
The Uber Breach That a Single Tap Could Have Stopped
In September 2022, an attacker breached Uber's internal systems by sending an MFA fatigue attack — bombarding a contractor with push notification requests until the exhausted user finally clicked "Approve." The attacker had already stolen the contractor's password from a dark web marketplace, but the second factor was all that stood between them and Uber's network. MFA would have stopped the attack cold — if it had been implemented with number matching instead of simple push approvals.
Multi-Factor Authentication (MFA) is a security mechanism that requires users to provide two or more verification factors. MFA combines something you know (password), something you have (device, token), and something you are (biometric).
What Is MFA?
Multi-factor authentication (MFA) verifies your identity using two or more independent factors from different categories: something you know, such as a password; something you have, such as a security key; or something you are, such as a fingerprint. With MFA, a stolen password alone is not enough to sign in.
Passwords can be reused, exposed in breaches, or entered on fake sign-in pages. Adding a security question gives you another secret to protect, but it does not add a different factor.
Of the methods ranked below, only FIDO2/WebAuthn passkeys and hardware security keys resist real-time phishing proxies. Codes and push-based sign-ins can be relayed.
Prerequisites
Before studying MFA security, you should understand:
Authentication Factors
Something You Know (Knowledge)
Something You Have (Possession)
Something You Are (Inherence)
MFA Methods Ranked by Security
1. Hardware Security Keys (Most Secure)
FIDO2/WebAuthn security keys are the gold standard:
// WebAuthn registration example
const publicKeyCredentialCreationOptions = {
challenge: new Uint8Array(32),
rp: { name: "SecureApp", id: "secureapp.com" },
user: {
id: new Uint8Array(16),
name: "user@example.com",
displayName: "User"
},
pubKeyCredParams: [{ alg: -7, type: "public-key" }],
authenticatorSelection: {
authenticatorAttachment: "cross-platform",
residentKey: "required",
userVerification: "required"
}
};
const credential = await navigator.credentials.create({
publicKey: publicKeyCredentialCreationOptions
});
Security: Excellent — phishing-resistant, cannot be copied or intercepted.
2. TOTP Authenticator Apps (Strong)
Time-based One-Time Passwords (Google Authenticator, Authy, Microsoft Authenticator):
import pyotp
import qrcode
# Generate TOTP secret
secret = pyotp.random_base32()
totp = pyotp.TOTP(secret)
# Generate QR for user setup
uri = totp.provisioning_uri("user@example.com", issuer_name="SecureApp")
qrcode.make(uri)
# Verify code
code = input("Enter 6-digit code: ")
if totp.verify(code, valid_window=1):
print("Valid!")
Security: Strong — codes expire after 30 seconds, but vulnerable to phishing and session interception.
3. Push Notifications (Moderate)
Duo Security, Microsoft Authenticator push, Okta Verify:
Security: Moderate — vulnerable to MFA fatigue attacks where users are bombarded with push notifications until they accept.
4. SMS/Text Message Codes (Weakest MFA)
Security: Weak — vulnerable to SIM swapping, SS7 attacks, and interception.
# SMS-based MFA vulnerabilities:
# 1. SIM swapping — Attacker ports victim's number to their SIM
# 2. SS7 protocol attacks — Intercept SMS messages
# 3. SMS intercept malware — Android malware reads SMS
# 4. Social engineering — Trick user into sharing code
Which MFA Methods Are Most Resistant to Bypass Attacks?
FIDO2/WebAuthn passkeys and hardware security keys are the most resistant to sign-in bypass among the methods below. This practical ranking runs from weakest (6) to strongest (1). It is not an official NIST ranking.
| Rank | Method | How attackers beat it | Phishing-resistant? | NIST AAL |
|---|---|---|---|---|
| 6 | SMS / voice codes | Phone-number takeover or code interception | No | Restricted authenticator (NIST SP 800-63B-4); not phishing-resistant |
| 5 | Email OTP | Inbox compromise or real-time code relay | No | Weak; not phishing-resistant |
| 4 | TOTP authenticator app | A phishing proxy relays a valid code before it expires | No | Can contribute to AAL2 when paired with a second factor, such as a password |
| 3 | Push notification (approve/deny) | Repeated prompts or an approval during a relayed sign-in | No | Not phishing-resistant; approval-only push can be fatigue-attacked |
| 2 | Push with number matching | A phishing page presents the number from a relayed sign-in | No | AAL2 is possible with a second factor and a flow that meets NIST's requirements |
| 1 | Passkey or FIDO2 hardware key | Post-login session theft or weak recovery, rather than phishing the factor | Yes | AAL2 is possible with synced passkeys; qualifying device-bound credentials can reach AAL3 |
An Authentication Assurance Level (AAL) applies to the whole sign-in, not just the authenticator. Under NIST SP 800-63B-4 (finalized July 2025), AAL1 can be single-factor, AAL2 requires two distinct factors, and AAL3 adds phishing resistance and a hardware-protected, non-exportable key.
CISA identifies FIDO2/WebAuthn and PKI-based MFA, such as Personal Identity Verification (PIV) smart cards, as phishing-resistant options. Of the methods in the table, only the FIDO2/WebAuthn option qualifies. Use SMS only as a last resort.
SMS and email: A SIM swap transfers control of a phone number to someone else, and weaknesses in phone-network signaling such as SS7 can expose text codes. Email codes instead depend on the security of the recipient's inbox. Neither type of code is bound to the site where it is entered.
TOTP: A time-based one-time password expires quickly, but it does not identify the site that received it. A real-time adversary-in-the-middle (AiTM) proxy, such as Evilginx, can relay a valid code before it expires.
Push: Repeated prompts, known as push bombing, can wear someone down until they approve one. Number matching makes blind approval harder, but a relayed sign-in can still present the matching number to the user.
Passkeys and hardware keys: WebAuthn binds the authentication response to the relying party and the expected origin. A lookalike site cannot use the passkey to sign in to the real one. A stolen session cookie, however, can still grant access after a legitimate login if the service accepts it as a bearer credential.
MFA Bypass Techniques
MFA Fatigue
Bombarding users with push notifications until they accept:
# Automated MFA fatigue tool
# Sends repeated push notifications to the victim's phone
# Most users eventually click "Approve" out of frustration
# In 2022, Uber was breached using MFA fatigue against a contractor
# The contractor accepted a push notification after multiple attempts
SIM Swapping
# Steps attackers take:
# 1. Collect target's personal info (OSINT)
# 2. Call target's mobile carrier
# 3. Claim phone was lost/stolen
# 4. Request SIM transfer to attacker's SIM
# 5. Now receives all SMS, including MFA codes
Session Cookie Theft
# After MFA, the server issues a session cookie
# Stealing the cookie bypasses MFA on subsequent requests
# Methods:
# - Malicious browser extension
# - Malware on endpoint
# - Session token in URL
# - Cross-Site Scripting (XSS)
OAuth Token Theft
# MFA often happens during initial login
# OAuth tokens may be reused across sessions
# Stealing a valid OAuth token bypasses MFA entirely
# Token in memory
# Token in browser storage
# Token in mobile app storage
Backup Code Exploitation
# Almost all MFA systems provide backup codes
# Backup codes are often:
# - Stored insecurely (email, cloud storage)
# - Printed and left accessible
# - Captured during account setup
# - Not regenerated after use
Man-in-the-Middle (Evilginx)
# Evilginx-style reverse proxy attack:
# 1. Attacker sets up proxy (e.g., secure-login.company.com)
# 2. Victim enters credentials on fake page
# 3. Proxy forwards to real site
# 4. Victim enters MFA code
# 5. Attacker captures session cookie
# 6. Bypasses all future MFA
Worked Example: Testing Your Own MFA in a Lab
All testing in this example is on accounts you own in an isolated lab, never against real users or real services. This test checks origin binding without an interception proxy or credential or session capture.
Sample output (illustrative):
Password + TOTP at the legitimate lab origin: accepted
Passkey at the legitimate lab origin: accepted
Passkey request from an unrelated lab origin: rejected
TOTP relay (tabletop only): a valid code could be relayed and a resulting session exposed
What this proves: The important difference is origin binding, not how well the user keeps a code secret. TOTP checks whether the code is valid for the time window. WebAuthn also checks who the sign-in is for. This test does not establish that the resulting session or the account recovery flow is safe.
Defending MFA
Phishing-Resistant MFA
// WebAuthn with conditional mediation
if (PublicKeyCredential.isConditionalMediationAvailable) {
const credential = await navigator.credentials.get({
publicKey: {
challenge: serverChallenge,
allowCredentials: allowedCredentials,
userVerification: "required"
},
mediation: "conditional"
});
}
Number Matching
# Microsoft Authenticator number matching
# Instead of "Approve sign-in?", user must type the displayed number
# e.g., "Are you trying to sign in? Enter the number: 538"
# Prevents MFA fatigue attacks
# User must actively engage with the prompt
Geographic and Behavioral Anomaly Detection
def evaluate_login_risk(request):
risk_score = 0
# Geographic anomaly
if is_unusual_location(request.ip_address):
risk_score += 30
# Device anomaly
if is_unusual_device(request.user_agent):
risk_score += 20
# Time anomaly
if is_unusual_time(request.timestamp):
risk_score += 15
# Behavioral anomaly
if is_unusual_typing_speed(request.typing_pattern):
risk_score += 25
return risk_score
# High risk = require additional verification
def should_require_mfa(request):
return evaluate_login_risk(request) > 50
MFA Audit and Monitoring
# Audit MFA status in Azure AD
Get-MsolUser -All | Select-Object UserPrincipalName, StrongAuthenticationRequirements
# Check which users have no MFA
Get-MsolUser -All | Where-Object {
$_.StrongAuthenticationRequirements.Count -eq 0
} | Select-Object UserPrincipalName
# Audit MFA method distribution
Get-MsolUser -All | ForEach-Object {
$_.StrongAuthenticationMethods.MethodType
} | Group-Object | Sort-Object Count -Descending
MFA Security Best Practices: A Rollout Order That Works
For a small team, plan recovery before enforcing changes. Then prioritize the rollout in this order:
Recovery: For a lost phone, use a pre-enrolled backup or verified recovery, then revoke the lost device's factor and any exposed sessions. For a planned device replacement, verify with the existing factor and test the replacement before removing the old one. For a departed employee, disable the account and revoke active sessions and tokens rather than just recovering the device.
Real-World Examples
Uber Breach (2022): Attacker used MFA fatigue to breach Uber's internal systems. After purchasing a contractor's credentials on the dark web, the attacker sent repeated MFA push notifications until the contractor accepted.
Twitter Hack (2020): Attackers used social engineering to bypass MFA by convincing Twitter employees to provide access through internal tools, demonstrating that MFA does not protect against all attack vectors.
RSA SecurID Breach (2011): The theft of RSA's SecurID seed values rendered their hardware tokens useless, showing that even hardware MFA can be compromised if the underlying secrets are stolen.
MFA vs 2FA vs Passwordless
| Approach | What it is | Phishing-resistant? | Best for |
|---|---|---|---|
| 2FA | Exactly two independent factors | Depends on the method | Adding a second factor to password sign-in |
| MFA | Two or more independent factors; includes 2FA | Depends on the method and allowed fallbacks | Setting sign-in requirements across users and roles |
| Passwordless | A FIDO2/WebAuthn passkey or security key in place of an account password | Yes, for this FIDO2 flow | Signing in without a password |
Passwordless does not automatically mean MFA. A passkey can satisfy MFA on its own when sign-in requires local user verification, such as a PIN or biometric. A touch that only confirms user presence is not a second factor.
Common Mistakes
Using SMS as the primary MFA method: SMS is the weakest MFA and should only be used when no other option exists.
Not having backup methods: If a user loses their phone, they need alternative verification methods.
No MFA recovery process: Poorly designed account recovery can bypass MFA entirely.
Not enforcing MFA for all users: Privileged accounts are often targeted first.
Session cookies that never expire: Long-lived sessions bypass MFA on subsequent requests.
Treating push approval as phishing-resistant: Approve/deny push is vulnerable to fatigue, and a relayed sign-in can still trigger a real prompt. Number matching reduces blind approvals but does not bind the sign-in to the legitimate origin.
Enrolling MFA but leaving recovery unprotected: An email-only reset or unchecked helpdesk override can let someone replace the second factor. Protect recovery with independent identity verification and log and alert on resets.
MFA Methods Cheat Sheet
Choose a Method
| Method | Strength | Beaten by | Use it when |
|---|---|---|---|
| Passkey or FIDO2 hardware key | Origin-bound sign-in | Stolen sessions or weak recovery, not code relay | The service supports it, especially for privileged access |
| Push with number matching | Reduces blind approvals | Real-time relay or targeted social engineering | You need to keep push while moving to FIDO2 |
| Push notification (approve/deny) | Adds a device approval | Push fatigue or a relayed sign-in | A legacy system offers no stronger option and an upgrade is planned |
| TOTP authenticator app | Generates codes offline without a carrier | Real-time code relay | The service supports TOTP but not FIDO2 |
| Email OTP | Adds an inbox check | Inbox compromise or code relay | It is the only additional check the service offers |
| SMS / voice codes | Adds a phone-number check | SIM swap, interception, or code relay | There is no stronger option |
Defend Against a Bypass
| Attack | What stops it | What does not stop it |
|---|---|---|
| SIM swap | Remove phone-number-based sign-in and recovery | Sending another code to the same number |
| MFA fatigue | Replace approve/deny push; use number matching and prompt limits if push remains | Unrestricted approve/deny prompts |
| AiTM proxy | FIDO2/WebAuthn or properly configured PIV, without a relayable fallback | SMS, email OTP, TOTP, or push with number matching |
| Session cookie theft | Harden endpoints and browsers; bind sessions to devices where supported to block replay and revoke exposed sessions | MFA at initial sign-in alone |
| Backup-code theft | Store codes offline or in a protected vault; invalidate and replace exposed codes | A strong primary factor if a stolen backup code can stand in for it |
| SS7 interception | Remove SMS from sign-in and recovery | Resending the text or shortening the code's lifetime |
Best Practices
Troubleshooting MFA Problems
| Problem | Likely cause | Fix |
|---|---|---|
| Codes always rejected | Device or server clock drift, or the wrong account entry | Enable automatic time and try a fresh code for the correct account. Admins should check server time and the configured TOTP window. |
| Push never arrives | No data connection, notifications are blocked, or the device registration is stale | Check connectivity and app permissions. If needed, use a pre-enrolled backup to re-enroll the device. |
| "MFA not offered" on a site | MFA is unsupported, hidden in security settings, or managed by single sign-on (SSO) | Check the account's security settings and the SSO provider. Ask the site or your administrator what is supported. |
| Lost phone, no backup | The lost device held the only enrolled factor | Use the provider's official recovery process or contact your administrator for verified recovery. Revoke the lost device's factor once you regain access. |
| New phone, authenticator not transferred | The app's codes or push registration did not move with the phone | Use the app's supported transfer process if you still have the old phone, or use a backup factor to enroll the new one. Test it before removing the old entry. |
| Number matching prompt never appears | The app is outdated or the sign-in flow is not covered by the policy | Update the app and have your administrator verify that number matching is enforced for that account and flow. |
| Hardware key not recognized | Unsupported browser or connection, or the key is enrolled on a different account | Try a supported browser and USB or NFC connection. Confirm that the key is registered to the account you are signing in to. |
| Locked out after recovery-code use | The one-time code was consumed and normal MFA was not restored | Use another unused code or start verified recovery. Once signed in, enroll a working factor and generate fresh recovery codes. |
Keep Learning
Summary
MFA significantly improves security over passwords alone, but not all MFA methods are equally secure. Hardware security keys (FIDO2/WebAuthn) are the most secure, followed by TOTP authenticator apps. SMS is the weakest MFA and should be avoided. MFA fatigue, SIM swapping, and session cookie theft are common bypass techniques that require additional defenses like number matching and anomaly detection. Only FIDO2/WebAuthn passkeys and hardware security keys resist real-time phishing proxies — every other method can be bypassed, so choose the method by what it resists, not by convenience.
Knowledge Check
Answers: 1. Something you know, something you have, and something you are. 2. They use public-key cryptography bound to the real origin, so a phishing site cannot reuse the authentication response. 3. MFA fatigue uses repeated prompts to pressure someone into approving a sign-in. 4. SMS codes can be stolen by SIM swap, SS7 interception, or malware that reads texts. 5. Number matching requires the user to enter or match the number shown at sign-in instead of blindly approving. 6. FIDO2/WebAuthn passkeys and hardware keys bind the response to the legitimate relying party and origin. 7. Number matching blocks blind approval, but a real-time proxy can relay the number. 8. Someone who controls the inbox could reset MFA, enroll a replacement factor, and take over the account.
Frequently Asked Questions
Continue Learning
Multi-Factor Authentication Explained: Beyond Passwords
Understand multi-factor authentication types, how they work, implementation best practices, and why MFA is critical for modern security.
Security · BeginnerPassword Security Best Practices: Strong Authentication Guide
Master password hygiene, multi-factor authentication, password manager usage, and strategies to protect your accounts from credential theft.
Security · BeginnerPassword Security Guide: Best Practices for Strong Authentication
Everything you need to know about password security, including creating strong passwords, using password managers, multi-factor authentication, and defending against attacks.
Security · IntermediateCredential Stuffing: Automated Account Takeover Attacks
Learn about credential stuffing attacks that use leaked credentials from data breaches to automate account takeover across different services.
Related Security Tools
Base64 Encoder / Decoder for Security
Encode and decode Base64 in real-time. Learn why attackers use Base64 to obfuscate malware payloads, PowerShell commands, and phishing data, and how to decode them for analysis.
Web ApplicationDirBuster
This how-to guide shows you how to install DirBuster in Kali Linux and use its normal GUI workflow or headless mode in an authorized lab. DirBuster is a multi-threaded Java application from OWASP that brute forces directory and file names on web servers. Version 1.0-RC1 is still shipped on Kali Linux, but it is discontinued and no longer maintained by OWASP.
Password AttacksHydra
Hydra is a parallelized login cracker that supports numerous protocols including FTP, HTTP, HTTPS, SMB, SSH, and many more. It performs rapid dictionary attacks against login pages and services to test password strength.
Sniffing & SpoofingNetcat
Learn how to use Netcat (nc) in Kali Linux to open a TCP or UDP connection, check a port, and see what a service sends back. Follow the examples to send your first message, inspect HTTP and SMTP responses, and transfer a test file without exposing sensitive data.