← Back to section · Digital Security

The Cryptographic Foundations of MFA: Why Factors Must Be Independent

The division into knowledge, possession and inherence factors is more than a management slogan. From the HMAC construction of TOTP, the inherent weakness of the SMS channel, to the missing context in push approvals — what determines each factor's real strength and the requirement of independence.

Published 22 November 2026 · 5 min read · PQ Frontier

The Cryptographic Foundations of MFA: Why Factors Must Be Independent
AI-generated site artwork
Video explainer · Authentication: From Passwords to Passkeys

Three factors: the structure behind the slogan

The classic division of multi-factor authentication (MFA) is: something you know (a password), something you have (an authenticator app or hardware key), and something you are (a fingerprint or face). The division is often recited as a compliance checklist, but its real meaning is cryptographic and attack-surface based: the three categories correspond to three entirely different ways of being compromised. Knowledge is stolen by guessing or phishing, possessions by physical access or channel hijacking, biometric traits by copying samples. Requiring “multiple factors” is, at bottom, requiring the attacker to defeat two unrelated attack paths at once — independence is the source of the security; the count is only the surface.

This also explains why some “two-factor” schemes are two-factor in name only. A password plus security questions is two knowledge factors, and one phishing page takes both. A password plus an SMS code can likewise be surrendered together through a real-time phishing proxy. When evaluating an MFA design, the first question should be: does the method that breaks factor A also break factor B along the way?

TOTP: the strengths and limits of a symmetric construction

The most widely deployed possession factor is the time-based one-time password (TOTP, RFC 6238) and its counter-based sibling HOTP (RFC 4226). The construction is simple: at enrolment the server and the authenticator share a random seed, and each side computes HMAC(seed, time step), truncated to a few digits. The time step is usually 30 seconds, and the two clocks need only be roughly synchronised. The crux is that HMAC is a symmetric construction — the verifier must hold the same secret as the generator.

This symmetry has two consequences. The first is relative robustness in the quantum view: HMAC’s security rests on the properties of the underlying hash function, with no factoring or discrete logarithms involved, so quantum computing offers only the generic Grover-style quadratic speedup — and against a six-digit code that lives for 30 seconds with rate-limited online verification, offline exhaustion is not even a coherent notion; TOTP’s short validity window gives quantum speedup nothing to act on. The second consequence is its genuine structural weakness: the seed must be stored on the server. If a server database leaks, password hashes are at least one-way, but TOTP seeds — if unencrypted or poorly key-managed — let an attacker generate all future codes for any account, evaporating the second factor wholesale. TOTP seeds should therefore be stored to key standards: encrypted, ideally behind an HSM or a separate key service. This is precisely the structural advantage of asymmetric schemes such as FIDO/passkeys: the server stores only a public key, and leaking it grants no impersonation ability.

SMS and push: weaknesses outside the cryptography

The cryptographic part of an SMS code — a random number — is unobjectionable; all of its problems live in the channel. The assumption “the user possesses this phone number” must survive three layers of reality: carrier issuance and replacement processes, the SIM itself, and signalling networks such as SS7. SIM-swap fraud can move a number to a new owner overnight, and signalling-level interception has been publicly demonstrated for years. NIST SP 800-63B long ago classified SMS as a “restricted” authenticator. The conclusion is not that SMS is useless — it still raises the bar against indiscriminate bulk attacks — but that it must not be treated as a high-strength factor protecting high-value accounts.

Push approval (tapping “yes” on a phone) has a different weakness: missing context. The user sees only an approval request, not the login’s location, device or transaction it belongs to. MFA fatigue attacks exploit exactly this, pushing requests repeatedly late at night until the user taps one away. The countermeasure is to put the context back: number matching — requiring the user to type a two-digit number shown on the login screen — upgrades “approval” into “proof that you are looking at that login screen”, at almost zero cost and with a completely different effect.

Biometrics: the most misunderstood factor

The inherence factor (fingerprints, faces) is the most special of the three, and the most misunderstood. Its real mode of operation is the opposite of what most people imagine: in a correctly designed system, the biometric never travels over the network as a secret — it unlocks a private key locally on the device. A phone’s face unlock opens the local key store; what is actually sent to the server is still that private key’s signature. In this sense the biometric is “the power-on password of a private key”: what it strengthens is really the possession factor, not an independent remote factor of its own.

This distinction has three practical consequences. First, biometrics cannot be reissued: a leaked password can be changed, a leaked seed can be reset, but a leaked fingerprint or face has no “issue me a new face” option — so any scheme that stores raw biometric templates centrally on a server is accumulating a liability that can never be written off; templates belong in the device’s secure enclave, and the server should only ever see signatures. Second, biometric matching is probabilistic, not exact comparison, with a trade-off between false accepts and false rejects; it suits convenient unlocking, not sole gatekeeping of high-value operations. Third, it cannot resist coerced unlocking or presentation attacks (photographs, masks, recordings), which need liveness detection and PIN fallback to cover. Put biometrics back in their real position — a local unlocking mechanism — and their value is neither overestimated nor underestimated.

One thread through deployment

Assembled, the engineering thread of MFA is clear: beyond the first factor, choose a second factor whose compromise mode is genuinely independent of it. In priority order, asymmetric, origin-bound passkeys and hardware keys are strongest; TOTP follows, with attention to seed protection; SMS should serve only as a fallback. For high-risk operations, add context-bearing confirmation on top — number matching, displayed transaction details. Quantum computing barely changes this ordering: MFA’s main constructions are either symmetric, or their risks live on the channel and human side. What does need updating for the quantum era is the signature algorithm inside passkeys and hardware keys — a separate account, settled elsewhere.

Tags: Multi-Factor AuthenticationTOTPHOTPAuthentication