0Pricing
Cyber Security Academy · Lesson

Multi-Factor Authentication

Explore TOTP, hardware keys, push notifications, and why MFA dramatically reduces account takeover risk.

Multi-Factor Authentication is a free Cyber Security Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cyber Security Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

What is MFA?

Multi-Factor Authentication (MFA) requires users to prove identity with two or more independent factors from different categories. Even if one factor is compromised (e.g., stolen password), the account remains protected.

The Three Factor Categories

Authentication factors:

  • Something you know — password, PIN, security question
  • Something you have — phone, hardware token, smart card
  • Something you are — fingerprint, face, voice (biometrics)

True MFA uses at least two different categories — not two passwords.

TOTP: Time-Based One-Time Passwords

TOTP generates a 6-digit code that changes every 30 seconds using a shared secret and the current time (RFC 6238). Apps: Google Authenticator, Authy, Microsoft Authenticator.

TOTP is secure against replay attacks but vulnerable to real-time phishing.

SMS OTP Vulnerabilities

SMS-based OTP is convenient but has significant weaknesses:

  • SIM swapping — attacker social-engineers carrier to transfer victim's number
  • SS7 attacks — nation-state interception of SMS at the telecom level
  • Real-time phishing — attacker relays OTP instantly from victim to target site

SMS OTP is better than no MFA but is the weakest form.

Hardware Security Keys (FIDO2)

Hardware security keys (YubiKey, Google Titan) use public-key cryptography. The device signs a challenge tied to the specific website, making them phishing-resistant — they won't work on fake sites.

This is the gold standard of MFA.

Push Notification MFA

Authenticator app sends a push notification: "Approve login from New York?" User taps approve or deny. Convenient but vulnerable to MFA fatigue attacks — attackers spam approval requests until a tired user accidentally approves.

MFA Fatigue Attacks

Also called push bombing: attacker has the password and sends dozens of MFA push notifications hoping the user approves one out of frustration or confusion. Countermeasure: require number matching in the push notification (user must enter a code shown on login screen).

Passkeys: Passwordless MFA

Passkeys (FIDO2/WebAuthn) combine "something you have" (device key) with "something you are" (biometric unlock) into a single phishing-resistant credential. No password needed. Supported by major platforms.

Conditional Access Policies

Modern identity platforms support conditional access: require MFA only when risk signals indicate it (unfamiliar location, new device, sensitive resource). Step-up authentication improves UX while maintaining security.

MFA Bypass Techniques

Attackers bypass MFA with:

  • Real-time phishing (AiTM) — proxy captures session cookie after MFA
  • SIM swapping — intercept SMS codes
  • MFA fatigue — spam push notifications
  • Social engineering helpdesk — disable MFA via support ticket

Implementing MFA

When implementing MFA:

  • Default to requiring MFA for all users
  • Offer multiple MFA options but make hardware keys and TOTP available
  • Educate users on MFA fatigue — if they didn't initiate a login, deny the push
  • Monitor for MFA bypass patterns in authentication logs

Quick Check: MFA

Which MFA method is phishing-resistant because it cryptographically binds authentication to the specific website?

Lesson Recap

MFA requires two factors from different categories (know/have/are). TOTP apps are good; hardware keys (FIDO2) are best — phishing-resistant. SMS OTP is weakest — vulnerable to SIM swapping. MFA fatigue attacks spam push notifications; number matching mitigates this. Passkeys combine hardware and biometrics into one seamless credential.

Frequently asked questions

Is the “Multi-Factor Authentication” lesson free?

Yes — the full text of “Multi-Factor Authentication” is free to read here on the web, and the Cyber Security Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cyber Security Academy course, upgrade to CoddyKit PRO.

What will I learn in “Multi-Factor Authentication”?

Explore TOTP, hardware keys, push notifications, and why MFA dramatically reduces account takeover risk. You practise Cyber Security Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cyber Security Academy?

No prior experience is required. Cyber Security Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Multi-Factor Authentication” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cyber Security Academy lesson?

Yes. Every Cyber Security Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Password Strength and Policies
  2. Password Hashing: bcrypt, Argon2, PBKDF2
  3. Multi-Factor Authentication
  4. Credential Stuffing and Password Spraying
← Back to Cyber Security Academy