What is two-factor authentication (2FA)?
Short answer: two-factor authentication (2FA) means that besides your password you need a second proof: a code, a prompt on your phone or a physical key. If the password leaks, the door still stays shut. Not all 2FA is equal, though: an SMS code is the weakest kind, an authenticator app is better, and a passkey or security key is best. Below: how it works, the ranking and where to turn it on first.
Free course on this topicCybersecurity from Scratch: free courseStart the course →
How does 2FA work?
A password is something you know. The second factor is usually something you have: your phone or a key. A thief who bought your password from a leak still doesn't have your phone, so the login stops.
How much does that help? In Google's 2019 study even an SMS code stopped all bot attacks and 96% of bulk phishing. Against targeted attacks, where someone goes after you personally, the gap was big: SMS stopped 76%, an on-device prompt 90%, a security key 100%. So any 2FA beats none, but the type matters.
More in the lesson: 2FA: from SMS to passkeys
Which type of 2FA is the safest?
The ladder from worst to best:
- No 2FA. One password is enough to get in.
- SMS. Better than nothing, but the code can be intercepted with a SIM swap or tricked out of you by phishing.
- Authenticator app (Google Authenticator, Microsoft Authenticator and similar). It generates a new code on your phone every 30 seconds, and the carrier can't intercept it. But you can still type it into a fake site.
- Passkey or security key. The key is tied to the exact site address, so on a fake site it simply won't work, even if you believed the design. A hardware key like a YubiKey works the same way.
More in the lesson: 2FA: from SMS to passkeys
Why is SMS the weakest 2FA?
Because the code is tied to your number, and your number to a carrier that can be fooled. In January 2024 the X account of the SEC, the US financial regulator, was hijacked. Scammers talked the carrier into moving the SEC's number to their SIM card. 2FA on the account was off, the password was reset through the number, and a fake post about bitcoin ETF approval went out. Even SMS codes wouldn't have helped: they would have gone to the scammers.
That move is called a SIM swap. The scammer collects your data from leaks and social media, pretends to be you at the carrier and says the SIM is lost. Your phone suddenly loses signal, and your texts go to them. What helps: ask your carrier for a port-out PIN and a ban on SIM replacement without an in-person visit with ID, set a PIN on the SIM itself, and if the signal vanishes for no reason, call the carrier from another phone right away.
More in the lessons: 2FA: from SMS to passkeys, Email and phone number: the master keys
Can 2FA prompts be a trap?
Yes, if you tap without thinking. In 2022 the attacker who hit Uber spammed an employee with login requests until they tapped "Yes". The trick is called MFA fatigue: the scammer already has the password and just waits for you to give up. The right move when you get a prompt you didn't ask for: tap "No" and change the password right away, because someone knows it.
More in the lesson: 2FA: from SMS to passkeys
Where should you turn on 2FA first?
Start with email. Almost every service has a "Forgot password?" button, and the reset link goes to your inbox, so whoever owns your email can get in almost anywhere. Give it a unique password plus a passkey or authenticator. While you're in the settings, check that there's no mail forwarding or filters you didn't create, sign out of unfamiliar devices and revoke old app access.
Then your exchange or bank (a passkey instead of SMS) and your password manager (an authenticator app). Wherever there's something better, remove your phone number as a login method.
More in the lessons: Email and phone number: the master keys, 2FA: from SMS to passkeys
What if you lose your phone?
Plan this on day one, not after. When you turn 2FA on, save the backup codes on paper and keep them at home, and add a second method, for example an authenticator as a backup to a passkey. Without that, a lost or drowned phone can mean losing the account for good.
More in the lesson: 2FA: from SMS to passkeys
FAQ
What is 2FA in simple terms?
A second lock on your account. Besides the password you confirm the login with something you have, like a code on your phone or a key, so a leaked password alone isn't enough.
Is SMS two-factor authentication safe?
It's much better than no 2FA, but it's the weakest type: your number can be taken with a SIM swap and the codes go to the scammer. Use an authenticator app or a passkey where you can.
What happens if I lose my phone with 2FA on?
You sign in with a backup method or backup codes. That's why you save the codes on paper when you turn 2FA on. Without them, getting the account back can be very hard.
Lock your accounts in one evening
The free Brainax course «Cybersecurity from Scratch» has 16 short lessons: passwords and a password manager, 2FA and passkeys, your email and phone number, phishing, fake support and a plan if you get hacked. In the 2FA lesson you rank the methods by strength yourself. Start the lesson
Free course on this topicCybersecurity from Scratch: free courseStart the course →
Articles on this topic
- How to Spot a Phishing Email: 6 Signs and Real Examples
- What Is Malware? Types, Infections and How to Protect Yourself
- What Is a Passkey? Why It Beats Passwords and SMS Codes
- Cybersecurity for Beginners: Accounts, Phone and Money