Authentication and MFA

Learn how systems verify identity, why passwords alone fail, and which MFA methods actually resist phishing.

Beginner · about 4 hours · difficulty 2/5

Learn first: Hashing and Password Storage

Most breaches involve stolen or weak credentials. Strong authentication is one of the highest-value controls an organization can deploy.

Factors

  • Something you know (password, PIN)
  • Something you have (phone, hardware key)
  • Something you are (fingerprint, face)

MFA combines two or more different factors. Two passwords are not MFA.

MFA methods from weakest to strongest

  1. SMS codes: better than nothing, but vulnerable to SIM swapping and phishing.
  2. TOTP apps (Google Authenticator, Authy): better, still phishable by a fake login page that relays codes.
  3. Push notifications: convenient, but attackers spam prompts until a tired user approves ("MFA fatigue"). Number matching helps.
  4. FIDO2 / WebAuthn / passkeys: cryptographic, bound to the real site's origin, so a phishing site cannot use them. This is the gold standard.

Password guidance that works

Modern NIST guidance favors long passphrases, checking against breached-password lists, and not forcing periodic changes without a reason. Password managers make unique passwords practical.

Attacks to understand

Credential stuffing (reusing leaked passwords), password spraying (one common password across many accounts), phishing, adversary-in-the-middle kits that steal session cookies, and MFA fatigue. Defenses include MFA, rate limiting, lockouts, breached-password checks and anomaly detection.

Pitfalls

  • Protecting the login with MFA but leaving password reset or legacy protocols (like basic auth to email) without it.

Move on when you can compare MFA methods for a company and justify why admins should use hardware keys or passkeys.

Key concepts

  • Authentication factors
  • SMS, TOTP and push MFA
  • FIDO2, WebAuthn and passkeys
  • NIST password guidance
  • Credential stuffing and spraying
  • MFA fatigue and AiTM phishing

Mini project

Enable a passkey or hardware key on your own important accounts, then write a one-page policy recommending MFA methods for a 50-person startup.

Check yourself

Why can a phishing page defeat TOTP codes but not a FIDO2 security key?

Free resources