Prove who you are with two or more different things: know, have, are. Codes, apps, keys and passkeys.
Multi-factor authentication (MFA) asks for two or more different kinds of proof before it lets you in: something you know (a password), something you have (a phone or key) and something you are (a fingerprint or face).
Passwords fail in predictable ways: they are reused, guessed, leaked and phished. MFA means that even when a password is lost, a second proof still stands in the way. The key word is different. Two passwords are not MFA, because one leak can reveal both.
Here are the common second steps and what they depend on:
| Method | How it works | Main weakness |
|---|---|---|
| SMS or voice code | A code is sent to your phone number | SIM swap, interception, phishing |
| Email code | A code is sent to your mailbox | Only as safe as the mailbox. Phishable |
| Authenticator app (TOTP) | App and server share a secret and compute a code from the time | Code can be typed into a fake site |
| Push approval | Tap Approve on a prompt | Prompt bombing (MFA fatigue) |
| Push + number matching | Type the number shown on the login screen | Live phishing proxy can relay the number |
| Security key, passkey (WebAuthn / FIDO2) | Device signs a challenge with a private key tied to the site | Lost device, so recovery must be safe |
When you enrol, the server and your app share a secret (usually via a QR code). After that, both sides compute the same six digits from the secret and the current 30-second time step, using a keyed hash (HMAC, defined in RFC 6238). The code never travels in advance, and an old code stops working when the step moves on. This is why both clocks must be roughly right.
At enrolment your device makes a key pair for this one website and sends only the public key. At login the site sends a random challenge, your device unlocks the private key with a fingerprint, face or PIN, and signs the challenge together with the site's address. A fake site has a different address, so the signature is useless to it. No secret ever crosses the wire.
| Level | Methods | Notes |
|---|---|---|
| Strongest | Passkeys, FIDO2 security keys | Phishing-resistant |
| Good | Authenticator app, push with number matching | Phishable by a live proxy |
| Fair | Plain push approval, email codes | Fatigue and mailbox risk |
| Weakest | SMS and voice codes | Better than nothing, but easy to attack |
Illustrative only: the six digits come from a made-up formula, not the real HMAC calculation of RFC 6238. The idea is the same, because the shared secret and the current 30-second step decide the code.
| Term | Meaning in easy words |
|---|---|
| MFA | Multi-factor authentication: two or more different kinds of proof |
| 2FA | Two-factor authentication: MFA with exactly two factors |
| Factor | A kind of proof: something you know, have or are |
| OTP | One-time password: a code that works once or for a short time |
| TOTP | Time-based OTP: a code computed from a shared secret and the clock (RFC 6238) |
| WebAuthn / FIDO2 | Web standards for logging in with public-key credentials on a device or key |
| Passkey | A WebAuthn credential that can be synced or stored on a device, replacing the password |
| SIM swap | Moving a victim's phone number to the attacker's SIM |
| MFA fatigue | Spamming approval prompts until the user taps Approve |
| Number matching | The user types a number from the login screen into the approval prompt |
| AiTM / phishing proxy | A fake site that relays traffic live to the real site and steals the session |
| Step-up authentication | Asking for another factor before a risky action |
| Recovery code | A one-time code used when the usual factor is lost |
| Choice | We gain | We lose |
|---|---|---|
| SMS codes | Everyone has a phone, easy to start | Weak against SIM swap and phishing |
| Authenticator app | Offline, no phone network | Setup effort, phishable |
| Push approval | One tap, easy | Fatigue attacks unless number matching |
| Passkeys / security keys | Phishing resistant, fast to use | Device loss handling, rollout effort |
| Adaptive MFA | Less friction for safe logins | Complex rules, more things to tune |
| Ask on every login | Higher assurance | Users get annoyed and look for shortcuts |