Tutorial 3.4: Multi-Factor Authentication and Authentication Technologies
Learning Objectives
After completing this tutorial, you should be able to:
- Explain the principles of multi-factor authentication and its role in modern security.
- Compare two-factor and three-factor authentication, identifying the factors used in each.
- Analyze the HOTP and TOTP one-time password algorithms, including their strengths and limitations.
- Evaluate hardware tokens, software tokens, and authenticator applications for different use cases.
- Design an adaptive authentication strategy that balances security and user experience.
- Assess the security properties of push authentication and risk-based authentication.
- Compare authentication technologies, including FIDO2, U2F, and smart cards.
- Implement MFA best practices for enterprise and consumer environments.
- Analyze real-world MFA deployments and identify security gaps.
- Troubleshoot common MFA deployment issues and propose remedies.
Overview
In Tutorial 3.3, we examined password-based authentication, the most common but also one of the most vulnerable
authentication mechanisms. We learned that passwords alone are insufficient to protect modern systems against credential
theft, phishing, and brute-force attacks. This tutorial extends that foundation by introducing multi-factor
authentication (MFA) and a range of authentication technologies that provide stronger assurance.
Multi-factor authentication requires users to present two or more independent authentication factors from different
categories: something you know (knowledge), something you have (possession), and something you are
(inherence). By combining factors, MFA dramatically increases the difficulty of unauthorized access. An attacker would
need to compromise multiple, independent factors to gain access—a much harder task than stealing a single password.
We begin this tutorial by exploring the fundamental principles of MFA, including the different factor categories and the
concept of authentication assurance levels. We then examine the most common MFA implementations: two-factor
authentication (2FA) and, in high-security environments, three-factor authentication (3FA).
A significant portion of this tutorial is devoted to one-time passwords (OTPs). We analyze the two
primary OTP algorithms—HOTP (HMAC-based One-Time Password) and TOTP (Time-based One-Time
Password)—in depth. We examine how they work, their security properties, and their limitations. We also discuss
hardware tokens (such as YubiKeys and smart cards) and software tokens (authenticator
applications like Google Authenticator and Microsoft Authenticator), comparing their strengths, weaknesses, and
appropriate use cases.
Beyond OTPs, we explore push authentication, a more user-friendly alternative that relies on mobile
device notifications and user approval. We also examine adaptive authentication and risk-based
authentication, which dynamically adjust authentication requirements based on context—such as user location,
device type, and behavior patterns. These modern approaches balance security with usability, applying stronger authentication
only when the risk level warrants it.
The tutorial concludes with a comprehensive comparison of authentication technologies, including FIDO2/WebAuthn, U2F,
smart cards, and biometrics. We discuss the security considerations and best practices for deploying MFA, including how
to handle account recovery, user education, and fallback mechanisms. Two detailed case studies illustrate how MFA is
deployed in practice: one from a financial services organization and one from a large technology company that has
successfully implemented passwordless authentication.
By the end of this tutorial, you will have a comprehensive understanding of MFA and authentication technologies, enabling
you to design, deploy, and evaluate multi-factor authentication solutions for a wide range of environments.
1. Principles of Multi-Factor Authentication
1.1 What Is Multi-Factor Authentication?
Multi-factor authentication (MFA) is an authentication method that requires the user to provide two or
more independent pieces of evidence (factors) from different categories to prove their identity. The three primary
categories of authentication factors are:
- Knowledge factors: Something the user knows (e.g., password, PIN, security question).
- Possession factors: Something the user has (e.g., hardware token, smart card, mobile device).
- Inherence factors: Something the user is (e.g., fingerprint, facial recognition, iris scan).
By combining factors from different categories, MFA ensures that even if one factor is compromised, the attacker cannot
gain access without the other factor(s). This is the fundamental security advantage of MFA over single-factor
authentication.
1.2 The MFA Security Triangle
MFA security can be understood through the lens of three key properties:
- Independence: The factors must be independent, meaning compromise of one factor does not compromise
another. For example, a password (knowledge) and a hardware token (possession) are independent.
- Resistance to compromise: Each factor should be resistant to theft, duplication, or forgery.
- Verification: The system must verify each factor independently and securely.
When these properties are satisfied, MFA provides a significant security improvement over single-factor authentication.
1.3 Authentication Assurance Levels (AAL) and MFA
As discussed in Tutorial 3.2, the NIST Digital Identity Guidelines (SP 800-63B) define three Authentication Assurance
Levels (AALs):
- AAL 1: Single-factor authentication (typically password).
- AAL 2: Two-factor authentication (e.g., password + OTP or password + hardware token).
- AAL 3: Three-factor authentication or hardware-based cryptographic authentication with high
phishing resistance (e.g., FIDO2 security keys).
MFA is required to achieve AAL 2 or AAL 3. The choice of AAL should be based on a risk assessment: higher-value assets
and higher-risk transactions require higher AALs.
Key Takeaway: MFA combines two or more independent authentication factors to achieve stronger security
than any single factor alone. The independence and resistance to compromise of each factor are critical to MFA's
effectiveness.
2. Two-Factor and Three-Factor Authentication
2.1 Two-Factor Authentication (2FA)
Two-factor authentication (2FA) is the most common form of MFA. It requires exactly two factors from
different categories. The most common 2FA implementations are:
- Knowledge + Possession: Password (knowledge) + one-time code from a mobile app or SMS (possession).
- Knowledge + Inherence: Password + fingerprint or facial recognition.
- Possession + Inherence: Hardware token (possession) + biometric (inherence)—though this is less
common as a standalone 2FA method.
The vast majority of consumer and enterprise MFA deployments use 2FA. It provides a significant security improvement over
passwords alone while remaining relatively easy to deploy and use.
2.2 Three-Factor Authentication (3FA)
Three-factor authentication (3FA) requires all three factor categories: knowledge, possession, and
inherence. For example, a system might require a password (knowledge), a hardware token (possession), and a fingerprint
scan (inherence).
3FA is used in high-security environments such as government facilities, military systems, and critical infrastructure.
It provides the highest level of assurance but comes at a higher cost and with greater usability challenges.
2.3 Comparison of 2FA and 3FA
| Aspect |
2FA |
3FA |
| Number of factors |
2 |
3 |
| Typical factors |
Knowledge + Possession |
Knowledge + Possession + Inherence |
| Security level |
High |
Very high |
| Usability |
Moderate |
Low |
| Cost |
Low to moderate |
High |
| Common use cases |
Enterprise logins, online banking, email |
Military, government, critical infrastructure |
3. One-Time Passwords: HOTP and TOTP
3.1 What Is a One-Time Password?
A one-time password (OTP) is a password that is valid for only a single authentication session or
transaction. OTPs are a common implementation of the "possession" factor in MFA, as they are typically generated by a
device (hardware or software) that the user possesses.
OTPs can be generated using two primary algorithms: HOTP (HMAC-based One-Time Password) and
TOTP (Time-based One-Time Password). Both are specified in RFC 4226 and RFC 6238, respectively.
3.2 HOTP: HMAC-Based One-Time Password
HOTP is an event-based OTP algorithm. It generates a password based on a shared secret and a counter that increments
with each authentication attempt.
HOTP(K, C) = Truncate(HMAC-SHA-1(K, C))
Where:
K = shared secret key
C = counter (incremented after each successful authentication)
HMAC-SHA-1 = HMAC using SHA-1 as the hash function
Truncate = a function that extracts a 6- to 8-digit number from the HMAC output
Workflow:
- The user and server share a secret key (K).
- Both maintain a counter (C), starting at 0.
- When authentication is requested, the user's device computes HOTP(K, C) and displays the OTP.
- The user enters the OTP and the server computes HOTP(K, C) and compares it.
- If they match, authentication succeeds, and both increment the counter.
Security considerations:
- Counter synchronization: If the counter gets out of sync (e.g., the user generates an OTP but does
not authenticate), the server may need to allow a "look-ahead" window of counter values.
- Secret key security: The shared secret must be securely stored on both the client and server.
- Replay attacks: An OTP that has been used cannot be reused because the counter has advanced.
3.3 TOTP: Time-Based One-Time Password
TOTP is a time-based OTP algorithm. Instead of a counter, TOTP uses the current time (divided by a time step, typically
30 seconds) as the moving factor.
TOTP(K, T) = HOTP(K, T)
Where:
K = shared secret key
T = floor((current Unix time) / (time step))
Time step = typically 30 seconds
Workflow:
- The user and server share a secret key (K).
- The user's device computes TOTP(K, T) using the current time and displays the OTP.
- The user enters the OTP, and the server computes TOTP(K, T) for the current time and, optionally, a small time window
(e.g., ±1 time step) to account for clock drift.
- If they match, authentication succeeds.
Security considerations:
- Clock synchronization: The user's device and the server must have reasonably synchronized clocks.
- Time window: A short time window (e.g., 30 seconds) limits the window for replay attacks.
- Secret key security: As with HOTP, the shared secret must be securely stored.
3.4 HOTP vs. TOTP Comparison
| Feature |
HOTP |
TOTP |
| Driving factor |
Event counter |
Time |
| Validity |
Until next use (counter advances) |
Limited time (typically 30 seconds) |
| Clock synchronization |
Not required |
Required |
| Counter synchronization |
Required (with look-ahead) |
Not applicable |
| Replay risk |
Low (counter advances) |
Low (time-limited) |
| Use case |
Hardware tokens with button press |
Authenticator apps (Google, Microsoft) |
Practical Note: TOTP is the dominant OTP algorithm for authenticator applications because it is more
user-friendly (no button press required) and easier to implement at scale. HOTP is still used in some hardware tokens
where a button press is an acceptable interaction.
4. Hardware Tokens and Software Tokens
4.1 Hardware Tokens
A hardware token is a physical device that generates OTPs or performs cryptographic authentication.
Hardware tokens are a possession factor: the user must have the token in their possession to authenticate.
Types of hardware tokens:
- OTP tokens: Generate numeric codes (HOTP or TOTP) displayed on a small screen. Examples: RSA
SecurID, YubiKey with OTP mode.
- Smart cards: Cryptographic cards (e.g., PIV/CAC) that store digital certificates and perform
cryptographic operations. Require a smart card reader.
- Security keys: USB or NFC devices that support FIDO2/WebAuthn, U2F, or other cryptographic
protocols. Examples: YubiKey, Google Titan.
- Connected tokens: Tokens that connect to a device via USB, NFC, or Bluetooth.
- Disconnected tokens: Tokens that display OTPs on a screen; the user manually types the code.
Advantages:
- High security: tokens are resistant to phishing and remote theft.
- No reliance on a mobile device or network connectivity.
- Tamper-resistant: private keys never leave the device.
Disadvantages:
- Cost: hardware tokens have a per-user cost.
- Loss/theft: users must protect the token; lost tokens require replacement.
- Inconvenience: users must carry the token and have it available when authenticating.
4.2 Software Tokens
A software token is an application (typically on a mobile device or computer) that generates OTPs or
performs cryptographic authentication. Software tokens are a possession factor because the user must have the device
with the installed software.
Types of software tokens:
- Authenticator apps: Generate TOTP codes (e.g., Google Authenticator, Microsoft Authenticator,
Authy).
- Mobile apps with push authentication: Receive push notifications for approval (e.g., Duo Mobile,
Microsoft Authenticator).
- Desktop applications: Software tokens on laptops or desktops (less common).
- FIDO2 authenticators: Software-based FIDO2 authenticators (e.g., Windows Hello, Android
fingerprint).
Advantages:
- Low cost: no special hardware required.
- Convenient: users already carry their mobile devices.
- Easy to deploy and manage.
Disadvantages:
- Security relies on the security of the device (malware, device theft).
- Phishing resistance is lower than hardware tokens (though push authentication helps).
- Requires a mobile device with a battery and network connectivity.
4.3 Comparison of Token Types
| Aspect |
Hardware Token (OTP) |
Hardware Token (FIDO2) |
Software Token (TOTP) |
Software Token (Push) |
| Security |
High |
Very high (phishing-resistant) |
Moderate-High |
High |
| Phishing resistance |
Low (OTP can be phished) |
High (cryptographic binding) |
Low (OTP can be phished) |
Moderate (user approval) |
| Cost |
High |
High |
Low |
Low |
| Convenience |
Low |
Moderate |
High |
High |
| Network required |
No |
No |
No (for generation) |
Yes (for push) |
| Use case |
Legacy systems, high-security |
Modern web, passwordless |
Consumer MFA, enterprise |
Enterprise, user-friendly MFA |
5. Authenticator Applications and Push Authentication
5.1 Authenticator Applications
Authenticator applications are mobile apps that generate TOTP codes based on a shared secret. The most
popular authenticator apps include Google Authenticator, Microsoft Authenticator, Authy, and Duo Mobile.
Workflow:
- The user enables MFA for their account and scans a QR code (which encodes the shared secret) with the authenticator app.
- The app stores the secret and generates TOTP codes every 30 seconds.
- When logging in, the user enters the current code displayed by the app.
- The server verifies the code and grants access.
Security considerations:
- The shared secret must be securely transmitted and stored.
- The app should be protected by a PIN or biometric authentication.
- Account recovery requires backup codes or a recovery process.
5.2 Push Authentication
Push authentication is a more user-friendly alternative to OTP-based authentication. Instead of typing
a code, the user receives a push notification on their mobile device and approves the authentication request with a
single tap (or with biometric verification).
Workflow:
- User attempts to log in.
- The authentication server sends a push notification to the user's mobile device.
- The user views the notification, sees the request details (e.g., login location, application), and approves it.
- The device sends a cryptographic approval to the server, and access is granted.
Advantages:
- Excellent user experience: no codes to type.
- Reduced risk of OTP phishing (the user sees the context of the request).
- Fast and efficient.
Disadvantages:
- Requires a mobile device with network connectivity (Wi-Fi or cellular).
- Fatigue: users may approve requests without paying attention (though biometric verification helps).
- Push notification delivery relies on third-party services (e.g., Apple Push Notification Service, Firebase Cloud
Messaging).
5.3 Number Matching and Biometric Verification
To address the risk of "push bombing" (where attackers send many notifications hoping the user approves one), modern
push authentication systems incorporate number matching: the user must enter a number displayed on the
login screen into their authenticator app. This ensures that the user is actively authenticating and not just approving
a random request.
Additionally, many push authentication systems require biometric verification (fingerprint, Face ID)
before approving the request, adding a third factor (inherence) to the authentication process.
Key Takeaway: Push authentication provides a superior user experience while maintaining strong security.
Number matching and biometric verification further enhance security by preventing accidental or malicious approvals.
6. Adaptive and Risk-Based Authentication
6.1 What Is Adaptive Authentication?
Adaptive authentication (also known as risk-based authentication or
contextual authentication) is a method that dynamically adjusts authentication requirements based on
the risk level of the authentication request. Instead of applying the same authentication requirements to every login,
adaptive authentication analyzes contextual signals and applies stronger authentication only when the risk is elevated.
6.2 Risk Factors
Adaptive authentication systems evaluate a range of risk signals, including:
- Location: Is the user logging in from a familiar location (e.g., home office) or an unusual
location?
- Device: Is the user using a known, trusted device or an unrecognized device?
- Time: Is the login occurring during the user's normal work hours or at an unusual time?
- Behavior: Is the user's behavior consistent with their typical patterns (e.g., typing speed, mouse
movements)?
- IP address: Is the IP address from a known or reputable network, or from a suspicious source
(e.g., VPN, Tor, high-risk country)?
- Device health: Is the device up-to-date with security patches and anti-malware?
- Previous activity: Has there been any suspicious activity on the account recently?
6.3 Risk Scoring and Policy Enforcement
Adaptive authentication systems assign a risk score to each authentication request based on the
combination of risk factors. The system then enforces policies based on the risk score:
- Low risk: Standard authentication (e.g., password only or password + MFA if configured).
- Medium risk: Step-up authentication (e.g., require MFA or additional verification).
- High risk: Challenge (e.g., require biometric verification, additional security questions, or
block access).
┌─────────────────────────────────────────────────────────────────────────────┐
│ ADAPTIVE AUTHENTICATION FLOW │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ User Request ──► Collect Context ──► Risk Assessment ──► Policy Decision │
│ (login) (location, device, (risk score) (permit, step- │
│ time, behavior) up, block) │
│ │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ Low Risk: Password + MFA (if configured) │ │
│ │ Medium Risk: MFA required (e.g., OTP or push) │ │
│ │ High Risk: MFA + biometric, security questions, or block │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
Figure 1: Adaptive authentication flow with risk-based decisioning.
6.4 Benefits and Challenges
Benefits:
- Improved user experience: Users experience less friction for low-risk logins.
- Stronger security: High-risk requests receive stronger authentication.
- Reduced MFA fatigue: Users are not constantly challenged with MFA.
- Compliance: Demonstrates a risk-based approach to security.
Challenges:
- Complexity: Risk scoring models require tuning and continuous improvement.
- Privacy concerns: Collecting user location, device, and behavior data raises privacy issues.
- False positives: Users may be challenged unnecessarily, leading to frustration.
- Integration: Requires integration with identity and access management (IAM) systems.
Best Practice: Adaptive authentication is a cornerstone of Zero Trust security. Organizations should
implement adaptive authentication to balance security and user experience, and should continuously monitor and refine
their risk models.
7. Authentication Technologies Comparison
7.1 FIDO2 and WebAuthn
FIDO2 is a set of standards developed by the FIDO Alliance that enables passwordless authentication
using public-key cryptography. FIDO2 includes:
- WebAuthn: A W3C standard that defines a web API for creating and using public-key credentials.
- CTAP (Client-to-Authenticator Protocol): A protocol for communication between the client
(browser/OS) and the authenticator (security key or platform authenticator).
FIDO2 authenticators can be:
- Platform authenticators: Built into the device (e.g., Windows Hello, Android biometrics, Touch ID).
- Roaming authenticators: External security keys (e.g., YubiKey, Google Titan).
Security properties:
- Phishing-resistant: FIDO2 credentials are cryptographically bound to a specific relying party
(website), preventing phishing attacks.
- Passwordless: No need for passwords—authentication is based on public-key cryptography.
- Biometric support: FIDO2 supports biometric verification as an additional factor.
7.2 U2F (Universal 2nd Factor)
U2F is a precursor to FIDO2. It provides strong second-factor authentication using a security key.
U2F is based on public-key cryptography and is phishing-resistant. While U2F is still widely supported, it has been
superseded by FIDO2, which provides broader capabilities (including passwordless authentication).
7.3 Smart Cards
Smart cards are plastic cards with embedded chips that store digital certificates and perform
cryptographic operations. Smart cards are used in government (PIV, CAC), enterprise, and healthcare environments.
They require a smart card reader and typically use PKI (Public Key Infrastructure) for authentication.
7.4 Comparison of Authentication Technologies
| Technology |
Type |
Phishing Resistance |
Passwordless |
MFA Support |
Cost |
Use Case |
| Password + OTP (TOTP) |
2FA |
Low (OTP can be phished) |
No |
Yes (2 factors) |
Low |
Consumer MFA, enterprise |
| Password + Push |
2FA |
Moderate (user approval) |
No |
Yes (2 factors) |
Low |
Enterprise, user-friendly MFA |
| FIDO2 Security Key |
Passwordless / 2FA |
High (cryptographic binding) |
Yes |
Yes (with PIN/biometric) |
High |
Enterprise, high-security |
| FIDO2 Platform |
Passwordless / 2FA |
High (cryptographic binding) |
Yes |
Yes (with biometric) |
Low (built-in) |
Consumer, enterprise |
| Smart Card (PKI) |
2FA / 3FA |
High |
Yes |
Yes (with PIN) |
High |
Government, high-security |
| U2F Security Key |
2FA |
High |
No |
Yes (2 factors) |
High |
Enterprise, 2FA |
8. Security Considerations and Best Practices
8.1 MFA Deployment Best Practices
- Use MFA for all users: Make MFA mandatory for all accounts, especially privileged accounts.
- Choose the right MFA methods: Use phishing-resistant methods (FIDO2) for high-risk accounts and
provide multiple options for users.
- Implement adaptive authentication: Use risk-based policies to balance security and usability.
- Provide backup methods: Users should have backup MFA methods (e.g., backup codes, recovery email)
in case they lose their primary device.
- Secure account recovery: The account recovery process should be as secure as the primary
authentication process.
- User education: Train users on MFA best practices and how to recognize phishing attempts.
- Monitor and audit: Regularly review MFA usage and logs for anomalies.
- Plan for scale: Ensure that the MFA solution can handle the organization's scale (number of users,
authentication requests).
8.2 MFA Security Threats
While MFA significantly improves security, it is not immune to attacks. Common MFA threats include:
| Threat |
Description |
Mitigation |
| Phishing |
Attackers trick users into providing their OTP or approving a push request. |
Use FIDO2 (phishing-resistant), educate users, implement number matching. |
| SIM swapping |
Attackers take over the user's phone number to intercept SMS OTPs. |
Avoid SMS OTP; use authenticator apps or hardware tokens. |
| Man-in-the-Middle |
Attackers intercept authentication traffic. |
Use TLS, mutual authentication, and FIDO2. |
| Session hijacking |
Attackers steal session tokens after authentication. |
Use short-lived tokens, token binding, and secure storage. |
| Token theft |
Attackers steal hardware tokens or compromise mobile devices. |
Protect devices with PIN/biometric, report lost tokens, use FIDO2 with PIN. |
| Push bombing |
Attackers send many push requests hoping the user approves one. |
Implement number matching and rate limiting. |
8.3 Account Recovery and Backup Methods
Account recovery is a critical but often overlooked aspect of MFA. Users may lose their phone, reset their device, or
forget their authenticator app. Organizations must provide secure recovery mechanisms:
- Backup codes: One-time use codes provided when MFA is set up. Users should store them securely.
- Recovery email/phone: Use a secondary email or phone number for account recovery, but this can
weaken security if not properly protected.
- Identity verification: For high-risk accounts, require additional identity verification (e.g., ID
documents, video call).
- Admin assistance: Allow IT administrators to help with recovery, but ensure proper verification
and authorization.
Key Takeaway: MFA is a critical security control, but it must be implemented thoughtfully. Organizations
should use phishing-resistant methods where possible, implement adaptive authentication, and provide secure recovery
mechanisms.
9. Case Studies
9.1 Case Study: Financial Services MFA Deployment
Background: A large financial services firm with 25,000 employees and 5 million customers needed to
strengthen its authentication security following a series of credential theft incidents.
Requirements:
- MFA for all employees and customers.
- Phishing-resistant authentication for privileged accounts.
- Adaptive authentication to balance security and user experience.
- Compliance with financial regulations (FFIEC, GLBA).
Solution:
- Employees: Password + FIDO2 security keys (YubiKey) for all employees. Adaptive authentication
with risk-based scoring: low-risk logins require password only; medium-risk require password + YubiKey; high-risk
require additional verification.
- Customers: Password + TOTP (authenticator app) for customers. Adaptive authentication based on
transaction amount and location: low-risk (viewing balance) password only; medium-risk (transfers under $1,000) password
+ TOTP; high-risk (transfers over $1,000) require TOTP + biometric approval in the app.
- Privileged accounts: FIDO2 security keys with PIN, plus mandatory biometric verification (fingerprint).
Outcome:
- Credential theft incidents dropped by 95% in the first year.
- User satisfaction improved due to adaptive authentication (less friction).
- Compliance with financial regulations was achieved.
- The firm successfully scaled MFA to 5 million customers with minimal issues.
9.2 Case Study: Technology Company Passwordless Migration
Background: A global technology company with 50,000 employees decided to eliminate passwords and
implement passwordless authentication using FIDO2.
Challenges:
- Legacy applications that did not support FIDO2.
- User resistance to changing authentication methods.
- Need to support multiple device types (Windows, macOS, iOS, Android).
Solution:
- Phased approach: Start with a pilot group (10,000 employees), then expand to all employees.
- FIDO2 platform authenticators: Windows Hello, macOS Touch ID, Android fingerprint, iOS Face ID.
FIDO2 security keys for users who prefer them.
- Legacy application bridge: Use a federation gateway (Azure AD) to translate FIDO2 authentication to
legacy protocols.
- User education: Extensive training and communications on the benefits of passwordless authentication.
- Fallback: Provide MFA with TOTP as a fallback for users who cannot use FIDO2.
Outcome:
- Passwords were eliminated for 90% of employees within 18 months.
- Helpdesk password reset tickets dropped by 80%.
- Phishing incidents were effectively eliminated.
- User satisfaction increased due to the convenience of passwordless authentication.
10. Summary and Transition
In this tutorial, we explored multi-factor authentication (MFA) and a wide range of authentication technologies. We
began by understanding the fundamental principles of MFA: combining two or more independent factors from different
categories to achieve stronger security. We examined two-factor and three-factor authentication and their respective
use cases and security properties.
We delved deeply into one-time passwords, analyzing the HOTP and TOTP algorithms, their workflows, and their security
considerations. We compared hardware tokens and software tokens, evaluating their advantages, disadvantages, and
appropriate use cases. We also explored authenticator applications and push authentication, emphasizing their user
experience benefits and the security enhancements provided by number matching and biometric verification.
Adaptive authentication was presented as a key strategy for balancing security and user experience, dynamically applying
stronger authentication based on risk signals such as location, device, time, and behavior. We compared the major
authentication technologies, including FIDO2, WebAuthn, U2F, and smart cards, highlighting their security properties
and phishing resistance.
The tutorial also covered security considerations and best practices for deploying MFA, including the importance of
backup methods, secure account recovery, and user education. Two case studies illustrated how MFA and passwordless
authentication are deployed in practice in financial services and technology companies.
This tutorial has equipped you with a comprehensive understanding of MFA and authentication technologies. In the next
tutorial, Tutorial 3.5, we will explore biometric authentication systems, covering the science of
biometrics, different biometric modalities, performance metrics (FAR, FRR, CER), and the security and privacy
implications of biometric authentication.
Quiz
Answer the following questions to check your understanding. Click the "Answer" button to reveal the solution.
Q1. Which of the following is not one of the three primary authentication factor categories?
- A) Knowledge (something you know)
- B) Possession (something you have)
- C) Inherence (something you are)
- D) Context (something you do)
Answer
D) Context is not a primary factor category; it is a consideration in adaptive authentication. The three primary factors are knowledge, possession, and inherence.
Q2. TOTP is a time-based OTP algorithm. What is the typical time step used in TOTP?
- A) 10 seconds
- B) 30 seconds
- C) 60 seconds
- D) 120 seconds
Answer
B) The typical time step for TOTP is 30 seconds, as specified in RFC 6238.
Q3. Which of the following authentication technologies is considered phishing-resistant?
- A) Password + TOTP
- B) Password + SMS OTP
- C) FIDO2/WebAuthn
- D) Password + security question
Answer
C) FIDO2/WebAuthn is phishing-resistant because credentials are cryptographically bound to a specific relying party (website).
Q4. In adaptive authentication, a high-risk login request would most likely trigger:
- A) No authentication required
- B) Standard password authentication
- C) Step-up authentication (e.g., MFA, biometrics)
- D) Automatic access without any verification
Answer
C) Adaptive authentication applies stronger authentication (step-up) for high-risk requests.
Q5. Which of the following is a disadvantage of SMS-based OTP for MFA?
- A) It is too expensive
- B) It is vulnerable to SIM swapping attacks
- C) It requires special hardware
- D) It cannot be used with mobile phones
Answer
B) SMS-based OTP is vulnerable to SIM swapping attacks, where attackers take over the user's phone number.
Q6. What is the primary difference between HOTP and TOTP?
- A) HOTP uses a shared secret; TOTP does not
- B) HOTP is event-based (counter), TOTP is time-based
- C) HOTP uses SHA-1; TOTP uses SHA-256
- D) HOTP is more secure than TOTP
Answer
B) HOTP is event-based (counter-driven), while TOTP is time-based.
Q7. Which NIST Authentication Assurance Level (AAL) requires two-factor authentication?
- A) AAL 1
- B) AAL 2
- C) AAL 3
- D) AAL 0
Answer
B) AAL 2 requires two-factor authentication. AAL 1 is single-factor, and AAL 3 requires three-factor or hardware-based authentication.
Q8. A YubiKey that uses FIDO2 is an example of which type of authentication factor?
- A) Knowledge
- B) Inherence
- C) Possession
- D) Context
Answer
C) A YubiKey is a possession factor—something the user has.
Q9. What is "push bombing" in the context of push authentication?
- A) An attacker sends many push notifications hoping the user approves one
- B) A denial-of-service attack on the push notification service
- C) A user receives a push notification for a legitimate login
- D) A push notification that includes malicious content
Answer
A) Push bombing is when an attacker sends many push notifications, hoping the user inadvertently approves one.
Q10. Which of the following is a recommended best practice for MFA deployment?
- A) Use MFA only for privileged accounts
- B) Make MFA optional for all users
- C) Use phishing-resistant methods (e.g., FIDO2) for high-risk accounts
- D) Rely only on SMS OTP for MFA
Answer
C) Using phishing-resistant methods like FIDO2 for high-risk accounts is a best practice. MFA should be mandatory for all users, not just privileged accounts.
Q11. What is the role of a smart card in authentication?
- A) It generates TOTP codes
- B) It stores digital certificates and performs cryptographic operations
- C) It provides push notifications
- D) It captures biometric data
Answer
B) A smart card stores digital certificates and performs cryptographic operations for authentication.
Q12. Which MFA method is most resistant to phishing attacks?
- A) Password + TOTP
- B) Password + SMS OTP
- C) FIDO2/WebAuthn
- D) Password + security questions
Answer
C) FIDO2/WebAuthn is designed to be phishing-resistant, as credentials are cryptographically bound to the relying party.
Exercises
These exercises are designed to help you apply the concepts from this tutorial. Attempt each exercise before revealing the sample solution.
Exercise 3.4-1: OTP Algorithm Comparison
Compare HOTP and TOTP for an enterprise deployment. Consider the following scenarios and recommend the most appropriate OTP algorithm for each:
- A customer-facing banking application with 5 million users.
- A government employee authentication system with strict security requirements and no network connectivity.
- A corporate VPN access system with 1,000 employees who travel frequently.
- Justify your recommendations with security and usability arguments.
Sample Solution
- Banking application: TOTP. TOTP is more user-friendly (no button press required) and is widely supported by authenticator apps. It scales well and is suitable for consumer use.
- Government employee authentication: HOTP (with hardware tokens). Government systems often require high security and may operate in environments without reliable time synchronization. HOTP tokens with a button press provide strong security and do not depend on network or time.
- Corporate VPN: TOTP. VPN users need a convenient and fast authentication method. TOTP is easy to use and works well with mobile authenticator apps. It also handles the scale of 1,000 users efficiently.
- Justification: TOTP prioritizes user experience and is suitable for most enterprise and consumer scenarios. HOTP is preferred when time synchronization is unreliable or when a hardware token with a button press is required for policy or security reasons.
Exercise 3.4-2: MFA Architecture Design
Design an MFA architecture for a university with 30,000 students and 5,000 faculty/staff. The university uses a central identity system (Azure AD) and supports a mix of on-premises and cloud applications. Include:
- The authentication factors and MFA methods to be used.
- How adaptive authentication will be implemented.
- How account recovery and backup methods will be handled.
- How the architecture will support passwordless authentication in the future.
- How the architecture will address phishing risks.
Sample Solution
- Factors and methods: Password (knowledge) + TOTP (possession) for students; password + FIDO2 (possession) or password + push (possession) for faculty/staff. Backup codes provided for all users.
- Adaptive authentication: Azure AD Conditional Access with risk-based policies. Low-risk (campus network, trusted device): password only. Medium-risk (off-campus, new device): require MFA (TOTP or push). High-risk (unusual location, multiple failed attempts): require step-up (FIDO2 or biometric).
- Account recovery: Backup codes (stored securely by users). Self-service password reset with MFA verification. IT helpdesk assisted recovery with identity verification.
- Passwordless future: The architecture supports FIDO2 (WebAuthn) for passwordless authentication. As applications support FIDO2, users can transition to passwordless login.
- Phishing risk: Use FIDO2 for faculty/staff (phishing-resistant). Educate students on phishing. Implement number matching for push authentication to prevent push bombing.
Exercise 3.4-3: Risk-Based Authentication Policy
Develop a risk-based authentication policy for an e-commerce company. The policy should define:
- Risk factors and how they are scored.
- Risk levels (low, medium, high) and the corresponding authentication requirements.
- How the policy will handle user experience versus security trade-offs.
- What happens when a user's risk score changes during a session.
- How the policy will be monitored and refined over time.
Sample Solution
- Risk factors: Location (familiar vs. new), device (trusted vs. unknown), time of day (normal vs. unusual), transaction amount (low vs. high), previous activity (suspicious patterns). Scoring: each factor contributes to a total risk score.
- Risk levels:
- Low: Score 0-20. Authentication: Password only (or password + MFA if user has MFA enabled).
- Medium: Score 21-60. Authentication: Password + MFA (TOTP or push).
- High: Score 61-100. Authentication: Password + MFA + biometric verification or security questions. Alternatively, block access and require manual review.
- User experience vs. security: Prioritize user experience for low-risk users (minimal friction). Apply stronger authentication only when risk is elevated. Provide clear feedback to users about why they are being challenged.
- Session risk changes: If a user's risk score increases during a session (e.g., they attempt a high-value transaction from a new location), the system triggers a step-up authentication.
- Monitoring and refinement: Regularly review risk policy effectiveness using metrics: false positive rate, user friction, and security incidents. Adjust risk scoring models based on data and feedback.
Exercise 3.4-4: MFA Threat Analysis
An organization is deploying MFA using password + SMS OTP. Analyze the security threats to this MFA method and propose countermeasures for each threat. Consider:
- Phishing attacks targeting OTP codes.
- SIM swapping attacks.
- Man-in-the-middle attacks.
- User fatigue and social engineering.
- What alternative MFA method would you recommend and why?
Sample Solution
- Phishing attacks: Attackers create fake login pages to steal OTPs. Countermeasures: Use FIDO2 or push authentication with number matching. Educate users on phishing. Implement browser security controls.
- SIM swapping: Attackers take over the user's phone number to intercept SMS OTPs. Countermeasures: Avoid SMS OTP altogether. Use authenticator apps (TOTP) or hardware tokens. Use SIM PIN and carrier-level protections.
- Man-in-the-middle: Attackers intercept authentication traffic. Countermeasures: Use TLS, mutual authentication, and FIDO2. Implement proper certificate validation.
- User fatigue: Users may become accustomed to MFA and approve requests without checking. Countermeasures: Implement number matching and biometric verification. Educate users on security awareness.
- Recommendation: Replace SMS OTP with TOTP (authenticator app) or push authentication with number matching. For high-risk accounts, deploy FIDO2 security keys. SMS OTP is not recommended for any application due to its known vulnerabilities.
Exercise 3.4-5: MFA Implementation Plan
You are the security lead for a mid-sized healthcare organization with 2,500 employees. The organization needs to implement MFA for all employees to comply with HIPAA and improve security. Develop an implementation plan that includes:
- Phased rollout strategy.
- MFA method selection and justification.
- User communication and training plan.
- Helpdesk support plan.
- Fallback and contingency plans.
- Success metrics and monitoring.
Sample Solution
- Phased rollout: Phase 1 (Months 1-2): Pilot with IT and security teams. Phase 2 (Months 3-4): Roll out to privileged accounts (system administrators, executives). Phase 3 (Months 5-7): Roll out to all employees. Phase 4 (Months 8-12): Enforce MFA and refine.
- MFA method: Password + TOTP (authenticator app) for all employees. Privileged accounts: FIDO2 security keys (phishing-resistant). Justification: TOTP is cost-effective and widely supported. FIDO2 provides the highest security for privileged users.
- Communication and training: Multi-channel communication (email, intranet, town halls). Training videos and FAQs. Hands-on workshops for employees. Regular reminders and updates.
- Helpdesk support: Dedicated MFA support team. Self-service reset and recovery. Escalation procedures for complex issues.
- Fallback: Backup codes for TOTP. IT-assisted recovery with identity verification. Temporary bypass for emergency situations (with approval).
- Success metrics: MFA enrollment rate (target 100%), helpdesk tickets related to MFA (target <10% of total), security incidents (target 90% reduction in credential-related incidents).
Homework
These homework questions require deeper analysis, research, and application. Answer each question comprehensively.
Homework 3.4-1: MFA Technology Comparison
Write a 1,000–1,250 word comparative analysis of three MFA technologies: (1) TOTP authenticator apps, (2) push authentication, and (3) FIDO2 security keys. Your analysis should cover:
- How each technology works (protocol, workflow).
- Security properties (phishing resistance, vulnerability to attacks).
- Usability (user experience, convenience).
- Cost and deployment considerations.
- Appropriate use cases for each technology.
- Recommendations for an enterprise that is considering MFA deployment.
Sample Answer
Comparative Analysis: TOTP, Push, and FIDO2
- TOTP Authenticator Apps: Time-based OTP generation using a shared secret. Workflow: secret exchange (QR code), OTP generation every 30 seconds, user enters code. Security: moderate; vulnerable to phishing and man-in-the-middle. Usability: good; users must type a code. Cost: low. Use case: consumer MFA, enterprise MFA where phishing risk is acceptable.
- Push Authentication: User receives a push notification and approves or denies. Workflow: user logs in, server sends push, user approves. Security: high; number matching and biometric verification enhance security. Usability: excellent; no codes to type. Cost: low (requires mobile app). Use case: enterprise MFA, where user experience is a priority.
- FIDO2 Security Keys: Public-key cryptography with phishing-resistant credentials. Workflow: user taps key, cryptographic authentication. Security: very high; phishing-resistant, resistant to replay and MitM. Usability: good; requires hardware key. Cost: high (per-user hardware cost). Use case: privileged accounts, high-security environments, passwordless authentication.
- Recommendation: For most enterprises, a combination is ideal: TOTP or push for general users, FIDO2 for privileged users. FIDO2 provides the highest security and should be used where risk is high.
Homework 3.4-2: Adaptive Authentication Policy Design
Design a detailed adaptive authentication policy for a global e-commerce company with 50 million customers and 10,000 employees. The policy must balance security with user experience and consider:
- Risk factors and scoring model.
- Risk levels and corresponding authentication requirements.
- How the policy handles sensitive actions (e.g., high-value transactions, account changes).
- How the policy protects against passwordless authentication abuse.
- How the policy will be implemented and monitored.
Sample Answer
Adaptive Authentication Policy – E-Commerce
- Risk factors: User location (geolocation, country), device (trusted, new, compromised), login time (normal business hours vs. odd hours), transaction value (low, medium, high), previous login history (anomalies), and customer behavior patterns (e.g., browsing to purchase ratio).
- Risk scoring: Each factor contributes points (e.g., location: familiar +0, new country +20, high-risk country +40; device: trusted +0, new +15, compromised +50). Total score determines risk level.
- Risk levels: Low (0–20): Password only. Medium (21–50): Password + MFA (TOTP or push). High (51–80): Password + MFA + biometric verification or security questions. Very high (81–100): Block access and trigger manual review.
- Sensitive actions: High-value transactions (>$1,000) trigger step-up authentication (MFA + biometric). Account changes (email, password, shipping address) require MFA + security code.
- Monitoring: Real-time monitoring of authentication events. Regular review of risk policy effectiveness. Continuous refinement of scoring models using machine learning.
Homework 3.4-3: MFA Deployment Case Study Analysis
Research a real-world MFA deployment or breach related to MFA. Write a 750–1,000 word analysis that includes:
- A description of the organization and its MFA deployment.
- The MFA methods used and why they were chosen.
- Any security incidents or challenges encountered.
- How the organization addressed the challenges.
- Lessons learned for MFA deployment.
- Recommendations for organizations planning MFA deployment.
Sample Answer
Note: This is a research assignment. The sample answer below provides an outline.
Sample Outline: Google's MFA Deployment
- Background: Google deployed MFA for its employees and users following a series of phishing attacks.
- Methods: Google Authenticator (TOTP), push notifications, and FIDO2 security keys.
- Challenges: User resistance, deployment complexity, and balancing security with usability.
- Solutions: Phased rollout, user education, and supporting multiple MFA options.
- Lessons: MFA should be mandatory, user education is critical, and multiple methods support user needs.
- Recommendations: Adopt FIDO2 for high-risk users, provide backup methods, and continuously monitor MFA logs.
Homework 3.4-4: Passwordless Authentication Implementation
Develop a plan for transitioning an enterprise from password-based authentication to passwordless authentication using FIDO2/WebAuthn. Your plan should cover:
- A phased transition strategy.
- Technical requirements and integration with existing systems.
- User onboarding and credential management.
- Fallback mechanisms for users who cannot use FIDO2.
- Security considerations and risk mitigation.
- Success metrics and monitoring.
Sample Answer
Passwordless Transition Plan
- Phased approach: Phase 1 (Months 1-3): Pilot with IT and power users. Phase 2 (Months 4-6): Roll out to early adopters. Phase 3 (Months 7-12): General rollout. Phase 4 (Months 13-18): Enforce passwordless and phase out passwords.
- Technical requirements: Identity system (Azure AD or Okta) with WebAuthn support. FIDO2 platform authenticators (Windows Hello, Touch ID) and/or security keys. Legacy application bridge.
- User onboarding: Users self-register their FIDO2 credential during setup. Provide clear instructions. Provide backup methods (backup codes, TOTP).
- Fallback: TOTP or SMS for users who cannot use FIDO2 (e.g., devices without biometrics).
- Security: FIDO2 provides phishing-resistant authentication. Implement step-up authentication for high-risk actions. Monitor credential loss and revocation.
- Success metrics: Passwordless usage rate, helpdesk ticket reduction, security incidents related to credentials.
Homework 3.4-5: MFA Research Paper
Write a research-style paper (1,500–2,000 words) on a topic related to multi-factor authentication. Possible topics include:
- Usability challenges in multi-factor authentication
- Phishing-resistant authentication: FIDO2 and beyond
- The role of biometrics in MFA: opportunities and risks
- Adaptive authentication: machine learning and risk scoring
- MFA in the cloud: challenges and solutions
- Zero Trust and MFA: the future of identity
Your paper should include an abstract, introduction, literature review, analysis, discussion, and conclusion, with at least 10 references.
Sample Answer
Note: This is a research assignment. The sample answer below provides an outline.
Sample Outline: Usability Challenges in Multi-Factor Authentication
- Abstract: MFA improves security but creates usability challenges that can lead to user frustration and adoption barriers.
- Introduction: The need for MFA and the usability-security trade-off.
- Literature review: Studies on MFA usability, user behavior, and adoption rates.
- Analysis: Key challenges: password fatigue, MFA fatigue, device dependence, and account recovery.
- Discussion: Balancing security and usability: adaptive authentication, push authentication, and passwordless options.
- Conclusion: Recommendations for usability-friendly MFA: user education, multiple methods, and risk-based approaches.
Summary
This tutorial provided a comprehensive exploration of multi-factor authentication (MFA) and authentication technologies.
We began by understanding the principles of MFA, combining factors from different categories—knowledge, possession, and
inherence—to achieve stronger security. We examined two-factor and three-factor authentication and their respective use
cases.
We delved deeply into one-time passwords, analyzing HOTP (counter-based) and TOTP (time-based) algorithms, their workflows,
and security considerations. We compared hardware tokens (security keys, smart cards) and software tokens (authenticator
apps, push authentication), evaluating their strengths, weaknesses, and appropriate use cases.
Push authentication was highlighted for its excellent user experience, and we discussed the importance of number matching
and biometric verification to prevent push bombing. Adaptive authentication was presented as a key strategy for balancing
security and user experience, dynamically applying stronger authentication based on risk signals.
We compared the major authentication technologies, including FIDO2/WebAuthn, U2F, and smart cards, emphasizing the
phishing resistance of FIDO2. The tutorial also covered security considerations and best practices for deploying MFA,
including backup methods, secure account recovery, and user education.
Two case studies illustrated real-world MFA deployments: one from financial services and one from a technology company
that successfully implemented passwordless authentication. These case studies demonstrated the practical benefits of MFA
and the importance of a phased, user-friendly approach.
This tutorial has equipped you with a comprehensive understanding of MFA and authentication technologies. In the next
tutorial, Tutorial 3.5, we will explore biometric authentication systems, covering the science of
biometrics, different biometric modalities, performance metrics, and the security and privacy implications of biometric
authentication.
© 2026 COMP400 – Computer and Network Security • School of Computing and Information Systems, TrustOpen University • Unit 3: Authentication and Access Control