Multifactor Authentication (MFA)
Why MFA
- All your creds are belong to us! Analysis of MFA impact on password attacks by Microsoft Threat Intelligence.
- It's Time to Hang Up on Phone Transports for Authentication Microsoft Threat Intelligence advice: use MFA; do not use smartphones for MFA.
- Account takeover prevention rate by challenge type. A slide summarizing the (estimated) effectiveness of various MFA techniques (challenge type) as a function of the attack type (automated bot, bulk phishing, targeted). It can be seen that security keys are "perfect" even for targeted attacks (i.e., the most sophisticated ones).
Notable incidents mostly due to lack of MFA
MFA attacks
Always keep in mind that everything but security keys can be phished (e.g., with specialized proxies like Evilginx).
- The Rise of One-Time Password Interception Bots
- SIM Swap at Krebs on Security
- Real-World SS7 Attack — Hackers Are Stealing Money From Bank Accounts SMS redirection in the phone network (SS7 vulnerability).
- Lapsus$ and SolarWinds hackers both use the same old trick to bypass MFA "MFA bombing".
- 3 Examples of Typical Smishing and Vishing Attacks in 2022
Extremely interesting MFA bypass: Wi-Fi.
- The Nearest Neighbor Attack: How A Russian APT Weaponized Nearby Wi-Fi Networks for Covert Access. Attacker has passwords for organization O1 but O1 has MFA enabled...Attacker penetrates organization O2 that is in physical proximity of O1, i.e., wireless cells of O1 span over computers in O2. By taking control of a node in O2, the Attacker can authenticate to access points of O1 (for which there is usually no way to enforce MFA).
Misuse of phone number: - FTC fines Twitter $150M for using 2FA info for targeted advertising
Passwordless
- Passwordless login with passkeys at Google. Less technical description: So long passwords, thanks for all the phish. User experience: Sign in with a passkey instead of a password.
- Google passkeys are a no-brainer. You’ve turned them on, right?
- Passwordless authentication options for Azure Active Directory Microsoft scenario (very complex, as always).
- Passkeys vs Security Keys FAQ by Yubico, manufacturer of security keys.
- Passkeys.dev Description of passkey support across browsers and operating systems.
- Can Passkeys Replace Passwords: Timely idea faces deployment challenges An excellent analysis of the practical usability problems in deploying this technology (usability is a central issue in cybersecurity).
- Web Authentication and Passkeys Concise and straight to the point analysis of passkeys (from "Network security: a systems approach" by Davies).
Security keys
What they store
I have generated this subsection with Microsoft Edge Copilot and then carefully reviewed, edited and simplified its output. The point is that there are lots of different protocols involved and the relation between them is complex.
The details about what is stored on a security key—and how that information is handled—are formally defined in the FIDO U2F (Universal 2nd Factor) specifications and its successor standards (collectively under the FIDO2 umbrella, which includes the WebAuthn standard and CTAP2).
According to the FIDO U2F specifications (notably the FIDO U2F V1.2 Proposed Standard):
-
The security key generates a unique asymmetric key pair during registration. The private key is kept securely within the hardware and is never transmitted or exposed externally.
-
The corresponding public key is sent to the relying party (the online service) during the registration process. This public key is used later to verify authentication attempts by ensuring that the security key’s response is valid.
-
Along with the key pair, a key handle is created. This is essentially an opaque identifier that the security key associates with the stored private key. When performing an authentication, the relying party supplies this key handle to signal which credential the key should use. In some implementations, the key handle can encapsulate additional metadata or be an encrypted blob that ties the relying party’s context to the key stored on the device.
In the FIDO U2F model, security keys were used solely as a second factor to complement passwords. However, FIDO2, incorporating the WebAuthn API standardized by the W3C, has taken authentication into a new era by enabling passwordless flows and richer multi-factor authentication options. TInstead of merely verifying the possession of a hardware key during login, platforms can now directly leverage built-in authenticators (like fingerprint sensors and facial recognition) or external security hardware through a uniform web API.
WebAuthn acts as the bridge between web applications and a wide variety of authenticators. By providing a standardized interface, it allows websites to prompt the user for a biometric verification or a tap on a security key directly from the browser—improving user experience significantly while maintaining strong cryptographic protections. This web API is natively supported in modern browsers and operating systems, which streamlines the integration process for developers and encourages broader adoption.
In addition, FIDO2 introduces the Client To Authenticator Protocol 2 (CTAP2), which complements WebAuthn by facilitating communication between the client (such as a browser or operating system) and the authenticator—whether it is an external security key connected via USB, NFC, or Bluetooth, or a platform authenticator embedded within the device.
How is the website identified
(this was written by myself)
In the lectures we said that the security key stores a keypair associated with the DNS name of a website and that at login time the browser provides the DNS name. This is actually a simplification as things are actually more complex, albeit from our point of view equivalent.
At linking time, the security key stores a keypair associated with an opaque key handle generated by the key itself. This key handle is passed to the browser and then to the website. The website stores this key handle and associates it with the username.
Later, at login time, the website passes the key handle to the browser and then to the security key. A malicious website will not be able to provide the correct key handle.
I have generated the following with Microsoft Edge Copilot as above...
When a security key registers a credential for a website, it essentially “binds” that credential to the website’s identity (often the DNS name, represented as an AppID or, in WebAuthn, a relying party identifier or “rpId”). However, the key doesn’t store a visible DNS name as a plain text field. Instead, here’s what happens under the hood:
-
The website (the relying party) provides an identifier. Under the original U2F standard, this was called the AppID—typically a URL (which includes a DNS name). In the evolution to WebAuthn, the identifier is known as the relying party ID (rpId). This value tells the security key which domain (or website) owns the registration. The security key then creates a new asymmetric key pair and binds that pair to the provided identifier.
-
The security key generates a key handle, an opaque blob that effectively serves as a “pointer” to the stored private key and its association with the provided relying party identifier. THis key handle is passed to the browser and then to the website.
-
Later, when you attempt to authenticate (log in) to that same website, the browser supplies both the key handle (provided by the website, that obtained this handle when the security key was associated with the website) and the current relying party identifier (typically derived from the website’s DNS name). The security key then decrypts or looks up the stored record tied to that key handle to verify that it was indeed registered for that specific domain. If the passed-in identifier doesn’t match the one originally recorded, the security key will refuse to sign the authentication challenge. This mechanism prevents the possibility of credentials being misused on another website.
In summary, while the security key doesn’t “know” the DNS name in a way that a human-readable field would reveal, its internal credential store and the way it processes key handles ensure that only the matching website (specified by its DNS-derived identifier) can successfully invoke the associated private key during an authentication ceremony. This ties each credential securely to its intended relying party, whether that’s referred to as an AppID in U2F or an rpId in WebAuthn.