The three kinds of factor
Security standards sort proofs of identity into three kinds: something you know, such as a PIN or password; something you have, such as a token or a device; and something you are, such as a fingerprint.1 Two-factor authentication means two of these kinds, not two of the same. A password plus a security question is still one factor, because both are things you know.
CISA says that using multi-factor authentication “makes you 99% less likely to be hacked”, because “even if one credential becomes compromised, unauthorized users will be unable to meet the second authentication requirement.”2
The kinds of 2FA, compared
| Method | How it works | Phishing-resistant |
|---|---|---|
| Text message code | A code is sent to your phone number | No, and exposed to SIM swaps |
| Authenticator app | An app shows a new code every 30 seconds | No |
| Push prompt | You approve a sign-in on your phone | No |
| Passkey or security key | Your device signs in with a key tied to the real site | Yes |
Authenticator apps use an open standard called TOTP, which turns a shared secret and the current time into a short-lived code.3 Text message codes depend on the phone network, and NIST marks them as restricted: services that offer them should offer another option too, and watch for signs such as a SIM change or a ported number.4
Which 2FA stops phishing
A phishing page can ask for your code just as easily as your password, then pass both to the real site within seconds. NIST says codes you type in “SHALL NOT be considered phishing-resistant because the manual entry does not bind the authenticator output to the specific session.”4 The methods that do resist it bind the sign-in to the real site’s name, which is what WebAuthn, the standard behind passkeys and security keys, does.4
CISA names FIDO/WebAuthn as the phishing-resistant authentication that is widely available today, and says that any MFA is better than no MFA.5 So turn on whatever a service offers today, and move to a passkey or a security key where you can.
How to set it up
- Open the security settings of the account, and look for two-factor authentication, two-step verification or sign-in options.
- Add a passkey or a security key if the service supports one. Otherwise, point an authenticator app at the QR code it shows.
- Save the recovery codes the service gives you somewhere safe and offline, so losing your phone doesn’t lock you out.
- Start with your email account. Password resets for everything else go there, so it is the one an attacker wants most.
Related terms
Sources
- NIST Computer Security Resource Center, Glossary: multi-factor authentication, definitions from NIST SP 800-63-4 and NIST SP 800-171r3.
- CISA, Multifactor authentication.
- IETF, RFC 6238: TOTP, Time-Based One-Time Password Algorithm (May 2011).
- NIST, SP 800-63B-4: Authentication and Authenticator Management, sections 3.1.3.3 and 3.2.5.
- CISA, More than a password (November 2022).
Questions about two-factor authentication
Is two-factor authentication the same as multi-factor authentication?
Two-factor authentication is multi-factor authentication with exactly two factors. Multi-factor authentication covers two or more. In everyday use the terms mean the same thing.
Can 2FA be hacked?
Codes can be phished, and text message codes can be stolen with a SIM swap. Passkeys and security keys resist phishing because they only work on the site they were made for. Any 2FA still stops someone who only has your password.
Is SMS 2FA better than nothing?
Yes. CISA says any MFA is better than no MFA. If a service offers an authenticator app, a passkey or a security key, those are stronger choices.
What happens if I lose my phone?
You sign in with a recovery code, a second registered key, or the service’s account recovery. Set up a backup method and keep your recovery codes before you need them.
Does Secria support two-factor authentication?
Yes. Every Secria account can add a second step at sign-in with an authenticator app, a passkey or a security key such as a YubiKey.