Two-factor authentication prevents most password-based hacking, but it does not prevent all hacking. It stops credential stuffing, password guessing and reuse of a leaked password, yet SMS codes can be phished or SIM-swapped, push approvals can be fatigued, and session cookies can be stolen after login. Phishing-resistant methods such as passkeys and security keys close most of those gaps.
Key takeaways
- 2FA stops most password attacks: CISA says MFA makes you 99% less likely to get hacked, based on Microsoft research on account compromise.
- Not all 2FA is equal: passkeys and security keys resist phishing, while SMS and app codes can be relayed by a fake login page.
- 2FA protects the sign-in, not the session: stolen session cookies, malware and account recovery abuse can still get an attacker in.
You turned on two-factor authentication, so your accounts are safe now — right? Mostly. 2FA is the single best step most people can take, and the data behind it is strong. But it is not a force field, and the method you choose decides how much protection you actually get.
Does two-factor authentication prevent hacking?
Two-factor authentication prevents most hacking that starts with a stolen password, but it does not prevent all hacking. It stops credential stuffing, password guessing and reuse of a leaked password cold, because the attacker still lacks the second factor.
It does not stop every attack. SMS codes can be phished or redirected by a SIM swap, push approvals can be worn down by repeated prompts, and a stolen session cookie can let an attacker in after you have already logged in.
The honest answer is that 2FA turns a stolen password from a disaster into a nuisance — unless you use a phishing-resistant method, in which case it closes most of those gaps too.
CISA puts it simply: users who enable MFA are significantly less likely to get hacked, because even if one factor is compromised, unauthorized users cannot meet the second requirement. CISA's former director described MFA as making you 99% less likely to get hacked, a figure drawn from Microsoft research that found MFA blocked 99.22% of account compromises in the population studied.
How does two-factor authentication work?
Two-factor authentication, or 2FA, asks for two different kinds of proof before letting you in. The three kinds of factor are something you know (a password), something you have (a phone, a security key), and something you are (a fingerprint or face).
Two passwords are not 2FA, because both are things you know. A password plus a code from an authenticator app is 2FA, because the code proves you hold the phone. A password plus a security question is not, for the same reason: both are knowledge.
The point is that an attacker who steals one factor still lacks the other. That is why 2FA works so well against the most common attacks: password leaks, phishing for passwords alone, and automated guessing. Our guide to how to know if your phone is hacked explains what to check when the device holding your second factor may itself be compromised.
What hacking does 2FA actually stop?
The evidence is strongest where the attack is automated and password-based. Microsoft researchers studied Azure Active Directory accounts and found that MFA reduced the risk of compromise by 99.22% across the population, and by 98.56% even for accounts whose passwords had already leaked. Those figures measure mostly automated, password-based attacks — and that is most of what ordinary users face.
That is why CISA, NIST and every major platform recommend it. It is cheap, it works against the attacks most people actually face, and it raises the cost of attacking you from near zero — a leaked password list — to a targeted, real-time operation. Most attackers move on to easier targets.
Which 2FA methods stop hackers, and which do not?
All second factors count as 2FA, but they are not equal. The difference is whether the proof can be stolen and reused on a fake site. NIST's digital identity guidelines, SP 800-63B-4, draw this line explicitly: authenticators that need manual entry of a code shall not be considered phishing-resistant.
| Method | How it works | Phishing-resistant? | Main weakness |
|---|---|---|---|
| Passkeys / security keys | Cryptographic key tied to the real site | Yes | Loss of the key; needs a backup |
| Authenticator app codes | 6-digit code, changes every 30 seconds | No | Code can be relayed in real time |
| Push approval | Tap approve on your phone | No | MFA fatigue / push bombing |
| SMS / voice codes | Code sent to your phone number | No | SIM swap, interception, phishing |
| Email codes | Code sent to your inbox | No | Email is itself password-protected |
Passkeys and FIDO2 security keys are the strongest common option. They use public-key cryptography tied to the real website's address, so a look-alike page gets nothing usable — the browser simply will not offer the credential to the wrong site. NIST requires a phishing-resistant option at authentication assurance level 2, as set out in NIST SP 800-63B-4.
Authenticator app codes are better than texts because there is no phone number to hijack, but a fake login page can still collect the code and use it at once. Push approvals are convenient, but attackers can flood you with prompts.
SMS is the weakest: NIST lists it as a restricted method, and CISA says text or voice should be used only as a last resort. Email codes are worse still — NIST says email shall not be used as an out-of-band authentication channel, because the inbox is protected by only a password.
How do hackers bypass two-factor authentication?
Attackers rarely break 2FA itself. They go around it, through the process, the recovery flow, or the session that follows a successful login.
Adversary-in-the-middle phishing
A fake login page collects your password and one-time code, then relays both to the real site within seconds and passes the session back to you. You see a normal login; the attacker gets your session. This defeats SMS and app codes, but not passkeys, because the credential is bound to the genuine domain.
SIM swap
An attacker convinces your mobile carrier to move your number to their SIM card, then receives your SMS codes. This is a carrier process failure, not a password failure, and it is why SMS codes are the weakest method. A carrier account PIN and a port freeze help, but moving to an app or a key removes the risk entirely.
Push fatigue
An attacker who already has your password triggers sign-in after sign-in, flooding your phone with approval prompts late at night. Eventually you tap approve to stop the noise, or by mistake. Number matching — typing the number shown on the login screen into your phone — blunts this, because a blind tap no longer works.
Session cookie theft
Once you log in, the site gives your browser a session cookie. Malware or a malicious browser extension can steal that cookie, and the attacker replays it without ever needing your password or your second factor. This is why 2FA protects the sign-in, not the session: short session lifetimes, re-authentication for sensitive actions, and keeping your device clean all matter.
Account recovery and help-desk abuse
Many bypasses target recovery: a weak backup email, a help-desk reset with little verification, or a legacy protocol that skips MFA. Attackers also exploit accounts and services that were exempted from MFA, such as old service accounts. CISA recommends starting MFA rollout with IT administrators and the help desk, then remote access, email and the identity provider, then everyone else.
Real cases: when 2FA failed — and when it worked
Real cases make the pattern concrete. In 2022, Uber suffered a breach after an attacker who had an employee's password bombarded them with push approvals until one was accepted, then used the session to reach internal systems. The second factor was present; the human under fatigue was the weak point.
Phishing kits that relay codes in real time have been used against Microsoft 365 and Google accounts for years, and joint CISA, NSA and FBI phishing guidance warns that one-time codes alone do not protect against them. The guidance recommends phishing-resistant MFA — passkeys or security keys — as the fix.
On the other side, the Microsoft study behind the 99% figure shows what happens at scale when 2FA is on: automated takeover attempts fail almost every time. The method matters, but the biggest gap is still accounts with no second factor at all. An attacker with a leaked password list will try the accounts without 2FA first.
How should you choose and set up 2FA?
Start with email, then banking, cloud storage, password manager and social media. Email comes first because it is the route used to reset every other password — if an attacker owns your inbox, they can reset almost anything else.
Pick the strongest method each service offers: passkey first, then a hardware security key, then an authenticator app, then push with number matching, and SMS only if nothing better exists. Register a backup key or a second device before you need it, and store recovery codes offline — printed and filed, not in a note on your phone.
Use a password manager so every password is unique. 2FA cannot help if the same password opens ten accounts and the attacker only needs one weak recovery flow. Check whether a password you use already appears in known breaches with our free pwned password checker.
If it has leaked, generate a strong replacement with the password generator. CISA's advice is to enable MFA on email, banking and social media first, as set out in its guidance for individuals and families.
What should businesses do beyond turning on 2FA?
For a business, 2FA is a baseline, not a finished control. Require phishing-resistant MFA for administrators, remote access and email first, and remove MFA exemptions for legacy protocols and service accounts — attackers look for exactly those gaps.
Enforce number matching on push approvals, shorten session lifetimes, and require re-authentication for sensitive actions such as changing a password, adding a recovery method, or approving a payment.
Monitor for impossible travel, token replay and help-desk resets, and train staff that a login prompt they did not start is an incident to report. Our small business cybersecurity checklist puts MFA alongside patching, backups and access reviews.
The bottom line
Does two-factor authentication prevent hacking? For the attacks most people face — leaked passwords, guessing and automated takeover — yes, overwhelmingly. For targeted phishing, SIM swaps, push fatigue and session theft, ordinary code-based 2FA is not enough on its own.
Turn 2FA on everywhere, starting with email, and choose the strongest method offered. Passkeys and security keys are the upgrade that closes the remaining gaps, and they are now available on most major services. Pair them with unique passwords and a clean device, and a stolen password stops being a break-in.
Frequently asked questions
Does two-factor authentication stop hackers completely?
No. It stops most password-based attacks, including credential stuffing and use of a leaked password. It does not stop phishing of SMS or app codes, push fatigue, malware on your device, or theft of your session after you log in. Phishing-resistant 2FA closes most of those gaps.
Is two-factor authentication worth it if it can be bypassed?
Yes. Any second factor is far better than a password alone, and the bypasses need a targeted, real-time attack. CISA says MFA makes you 99% less likely to get hacked, and Microsoft research found MFA blocked 99.22% of account compromises in its study population.
Which two-factor authentication method is safest?
Passkeys and FIDO2 security keys are safest because they are tied to the real website and cannot be used on a fake one. Authenticator app codes come next, then push approvals with number matching. SMS and voice codes are the weakest and should be a last resort.
Can hackers bypass two-factor authentication with phishing?
Yes, for code-based methods. A fake login page can collect your password and one-time code and relay both to the real site within seconds. This is called adversary-in-the-middle phishing. Passkeys and security keys resist it because the browser will not offer the credential to the wrong site.
Is SMS two-factor authentication safe?
SMS 2FA is better than no 2FA, but it is the weakest common method. Codes can be phished, intercepted, or redirected by a SIM swap, where an attacker moves your number to their SIM. NIST lists SMS as a restricted authenticator and says services using it must offer an alternative.
What is MFA fatigue?
MFA fatigue, also called push bombing, is when an attacker who already has your password triggers many push approval requests, hoping you tap approve by mistake or just to stop the noise. Number matching, where you type the number shown on the login screen, blunts this attack.
Does two-factor authentication protect against malware?
No. If malware is already on your device, it can steal session cookies, read codes, or log keystrokes after you authenticate. 2FA protects the sign-in; device security, updates and antivirus protect the device itself.
Should I use two-factor authentication on every account?
Yes, starting with email, banking, cloud storage and social media. Email matters most because it is how you reset almost every other password. Use the strongest method each service offers, and keep backup codes somewhere safe and offline.
Sources
- CISA — Individuals and Families: use multifactor authentication
- CISA — More Than a Password campaign
- NIST — SP 800-63B-4, Digital Identity Guidelines: Authentication
- CISA, NSA, FBI, MS-ISAC — Phishing Guidance: Stopping the Attack Cycle at Phase One
- Microsoft Research — Your Pa$$word Doesn't Matter (MFA study)
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against CISA MFA guidance, NIST SP 800-63B-4, and joint CISA/NSA/FBI phishing guidance.
How we write and fact-check →