The Cybersecurity Course · Episode 3
Read time ~8 min · No prior knowledge

Two-factor
authentication (2FA)

A strong password can still leak, get phished or be stolen. Two-factor authentication is the second lock — the one that makes a stolen password useless on its own. But the methods are far from equal: the difference between an SMS code and a hardware key is the difference between a padlock and a safe. Here is the full hierarchy, the attacks that bypass the protection, and exactly where to start.

Contents
  1. Why the password isn't enough
  2. The hierarchy — not all 2FA is equal
  3. Three attacks that bypass 2FA
  4. Apps and backup codes
  5. Where to enable 2FA first
  6. Sources

Why the password isn't enough

After episode 2 you have unique, strong passwords. One of them could still end up in the wrong hands tomorrow — via a phishing page you didn't see through, a service that leaks, or malware on a borrowed computer. Two-factor authentication (2FA, sometimes MFA) means logging in requires something beyond the password: something you have (a phone, a security key) in addition to something you know.

The effect is dramatic. Microsoft's security research has long shown that multi-factor authentication stops the overwhelming majority of automated account attacks — the commonly cited figure is over 99 percent. The automated credential-stuffing wave from episode 1 simply bounces off an account with 2FA.

The hierarchy — not all 2FA is equal

There are four common methods, and the gap between best and worst is wide. From weakest to strongest:

MethodHow it worksWeakness
1. SMS codeA one-time code is sent to your number.Vulnerable to SIM swapping and telecom interception. After the breaches of US telecom carriers, the FBI and CISA have explicitly advised against SMS-based 2FA where better options exist.
2. TOTP appThe app generates a time-based six-digit code locally on your phone.The code can still be phished in real time (see AiTM below), but nothing travels over the phone network.
3. Push notificationYou approve the login with one tap in an app.Convenient — but opens the door to "MFA fatigue", where the attacker spams requests until you tap yes.
4. Hardware key / passkeyA physical key (e.g. YubiKey) or a passkey using the FIDO standard. The cryptography is bound to the correct web address.Practically phishing-proof. The weakness is the price and that a key can be lost — keep two.
Rule of thumb SMS 2FA still beats no 2FA at all. But if the service supports a TOTP app or passkeys — choose that. Your bank and email deserve the strongest option you can manage.

Three attacks that bypass 2FA

SIM swapping

The attacker persuades (or bribes) your mobile carrier's support desk to move your number to a new SIM card. From then on, your SMS codes land with the attacker. That's why SMS sits at the bottom of the hierarchy — and why your mobile subscription should have its own PIN with the carrier if they offer it.

AiTM phishing (Adversary-in-the-Middle)

A fake login page that relays everything you type — including your TOTP code — to the real service in real time, then steals the logged-in session. Ready-made toolkits for this are sold openly. Only method 4, hardware keys and passkeys, is immune: the cryptography refuses to work on the wrong domain.

MFA fatigue

The attacker already has your password and hits "log in" again and again until, out of sheer irritation (or half-asleep), you approve the push notification. Defence: never approve a request you didn't just initiate yourself — and treat it as proof that your password is loose. Change it immediately.

Important 2FA is an extra lock, not an excuse to get sloppy with passwords. The combination of a unique password + a strong second factor is what makes an account genuinely hard to take over.

Apps and backup codes

For TOTP codes we recommend, in descending order:

Your password manager from episode 2 can often store TOTP codes too. Purists object that both factors then live in the same vault — true, but the vault is itself protected by a passphrase plus 2FA, and convenience that makes you actually use 2FA everywhere counts for a lot.

Backup codes — your lifeline

When you enable 2FA you almost always receive a set of one-time codes. Save them. Lose your phone without backup codes and you can be permanently locked out of your own account — some services (notably Google) are unforgiving. Print them or copy them onto paper, store them at home in the same safe place as your passphrase, or as an encrypted note in your password manager.

Where to enable 2FA first

You don't need everything at once. Take them in this order — the first three tonight:

  1. Your email account. The master key. Can reset everything else.
  2. Your password manager. The vault holding every other key.
  3. Bank and payments. National e-ID schemes count — but enable extra protection where offered, and set a PIN on your mobile subscription against SIM swapping.
  4. Social media. Frequently hijacked to scam your contacts (episode 1, the Group List).
  5. Cloud storage and everything else that matters. Photos, documents, work.
Next time With passwords and 2FA in place, your accounts are hard to take technically. So the attacker goes after the human instead. Episode 4 covers phishing and social engineering — including what AI-generated scams have changed in the past year.

Sources

Want to dig deeper? These are the sources behind this episode.

  1. Microsoft Security — One simple action you can take to prevent 99.9% of attacks on your accounts.
  2. CISA — Mobile Communications Best Practice Guidance — the guidance advising against SMS 2FA.
  3. CISA — Turn on MFA — baseline MFA recommendations.
  4. FIDO Alliance — fidoalliance.org — the standard behind passkeys and security keys.
  5. Yubico — yubico.com — hardware keys.
  6. Ente — Ente Auth — authenticator app with encrypted sync.
  7. Aegis — getaegis.app — authenticator app for Android, local storage.
  8. Authy — authy.com — authenticator app with multi-device sync.
  9. OWASP — Multifactor Authentication Cheat Sheet — technical deep dive.
  10. NIST — SP 800-63B — authentication assurance levels and method requirements.
  11. Google — 2-Step Verification and backup codes — practical setup guide.
Next episode

Episode 4 — Phishing & social engineering

How to recognise phishing by email, SMS and phone — and what AI-generated scams have changed.