Internet-Draft Wi-Fi Phishing Resistance December 2026
RelunSec Expires 7 June 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-relunsec-wifi-yubikey-01
Published:
Intended Status:
Informational
Expires:
Author:
RelunSec
JoeCyberTech

Phishing-Resistant Multi-Factor Authentication for Wi-Fi Networks

Abstract

Password-based Wi-Fi networks, as deployed in homes and small offices, authenticate every station with one shared secret that users know and can be tricked into disclosing. "Evil twin" access points exploit this by imitating a network and asking the user for its password through a captive portal. Once the password is disclosed, nothing else stands between the attacker and the network.

This document describes a mechanism that adds a second, phishing-resistant factor to password-based Wi-Fi authentication. The second factor is a signature made by a FIDO2 hardware security key, or by a device-bound key whose enrollment was authorized by one. The signature is cryptographically bound to the password-authenticated key exchange in which it is used, and the access point authenticates itself with a long-term key that stations pin. As a result, a disclosed password alone is sufficient neither to join the network nor to impersonate it to an enrolled station. The document gives the threat model, the requirements, the protocol and its key schedule, the enrollment and recovery procedures, and the deployment considerations.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 7 June 2027.

▲

Table of Contents

1. Introduction

Most home and small-office Wi-Fi networks use a single shared password ("WPA-Personal"). The password is the only credential: whoever knows it can join the network, and whoever knows it can also operate an access point that stations will accept as the genuine network.

The cryptography protecting that password on the air has improved considerably. WPA3-Personal replaces the pre-shared-key handshake with Simultaneous Authentication of Equals (SAE) [IEEE80211], a password-authenticated key exchange of the Dragonfly family [RFC7664] that resists offline dictionary attack. The weakest point is therefore no longer the protocol but the person who knows the password. In an "evil twin" attack the attacker advertises the victim's network name, typically on an open network, optionally forces the victim's stations off the genuine network, and presents a web page that imitates a router or vendor dialog and asks for the Wi-Fi password. Tools that automate the whole attack are freely available. No property of SAE helps here, because the user types the password into the attacker's page rather than into the Wi-Fi protocol.

The Web met the same problem and addressed it with authenticators that sign a challenge scoped to the relying party and to the session, so that there is nothing a user can be tricked into typing [WEBAUTHN] [CTAP2]. This document applies that idea to password-based Wi-Fi: joining the network requires, in addition to the password, a signature from a credential that cannot be disclosed by its user and that is useless outside the exact exchange it was produced for.

Revision -00 of this document stated the idea. This revision turns it into a design that can be analyzed: it defines what is being defended against, shows why a naive "password, then insert a key" sequence is insufficient, and specifies the bindings that make the second factor effective.

1.1. Scope and Relationship to Other Standards Bodies

The IEEE 802.11 Working Group defines Wi-Fi link-layer security, including the authentication and key management (AKM) suites; the Wi-Fi Alliance defines the WPA3 certification programs. The IETF defines the Extensible Authentication Protocol (EAP) [RFC3748] and its methods, which Wi-Fi uses through IEEE 802.1X [IEEE8021X].

This document is Informational. It specifies the mechanism at the level of cryptographic inputs, outputs, and message semantics, independently of how the messages are carried. Section 7.7 discusses two ways of carrying them: as an EAP method, which is within the IETF's remit and needs no change to IEEE 802.11, and as a native 802.11 AKM, which would need to be specified by IEEE 802.11. Octet-level encodings are deliberately left to a future revision or to those bodies. The document is intended to inform that work, not to pre-empt it.

The mechanism targets networks that have no authentication server, no public key infrastructure, and no professional administrator. Managed networks are already served by certificate-based EAP methods and by the work cited in Section 3.2.

1.2. Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

2. Terminology

Access Point (AP)
The device that operates the Wi-Fi network; in a home, usually the router. In this document the AP also holds the enrollment database and verifies credentials; there is no separate authentication server.
Station (STA)
A device that joins the network, together with the software on it that performs Wi-Fi authentication (the supplicant).
Evil twin
An access point operated by an attacker that advertises the identity of a network it is not part of.
Authenticator
A FIDO2 roaming authenticator [CTAP2], such as a USB or NFC hardware security key. It holds private keys that cannot be exported and signs only after a test of user presence.
Authenticator Credential
A key pair created on an Authenticator for one network and registered with that network's AP.
Device Credential
A key pair generated and held by one station, registered with the AP in an exchange authorized by an Authenticator Credential (Section 8.3).
Network Identity Key
A long-term signature key pair generated by the AP, with which the AP authenticates itself to stations.
NetID
The 32-octet SHA-256 hash of the Network Identity Key's public key (Section 6.2). It, and not the network name, identifies the network in this mechanism.
Network password
The shared secret of a WPA-Personal network.
Phishing-resistant
Used in the sense of [NIST80063B]: the authentication protocol itself, without relying on the vigilance of the user, prevents disclosure of authentication secrets and valid authenticator outputs to an impostor verifier.

3. Problem Statement

3.1. Password Phishing with an Evil Twin

The attack has three steps, none of which requires breaking cryptography:

  1. The attacker advertises the target's network name (SSID) from its own equipment, usually as an open network so that stations and users can associate without credentials.
  2. The attacker makes the genuine network unattractive or unavailable, for example by jamming or, where management frame protection is not in use, by forging deauthentication frames. The user sees the familiar name and connects to it by hand.
  3. A captive portal imitating a router login page, a "firmware update" notice, or an operating system dialog asks for the Wi-Fi password. The attacker can check each submitted value against a previously captured handshake or against the genuine AP, and keep the portal up until a correct value is entered.

With the password the attacker can then (a) join the network as a station, reaching every device on it, and (b) operate an AP that completes the genuine handshake with the victim's stations, which will join it automatically and without any prompt, giving the attacker a man-in-the-middle position. Consequence (b) is easily overlooked and shapes the design that follows: a shared password authenticates the AP to the station exactly as weakly as it authenticates the station to the AP.

3.2. Why Existing Mechanisms Do Not Close the Gap

WPA3-Personal (SAE)
Prevents offline dictionary attack and provides forward secrecy, but the credential is still a human-known shared secret. It offers no defense once the secret has been disclosed.
SAE-PK
Defined by the Wi-Fi Alliance [WPA3]. The password encodes a fingerprint of an AP public key, and the AP signs the exchange, so knowing the password is not enough to impersonate the AP. This addresses consequence (b) above but not (a): a phished password still admits the attacker to the network.
Wi-Fi Easy Connect (DPP)
Replaces the password with per-device public keys provisioned out of band, for example by scanning a QR code [DPP]. It removes the phishable secret entirely and is the better choice where every device and the AP support it. It does not provide a user-held factor that can be carried between devices, and networks that keep a password for compatibility keep the exposure.
WPA3-Enterprise with certificate-based EAP
Phishing-resistant, but depends on an authentication server, a certification authority, and per-device certificate provisioning, which households do not operate.
EAP-FIDO
Work in progress in the EMU Working Group [I-D.ietf-emu-eap-fido] uses FIDO2 credentials inside a TLS tunnel whose server certificate is validated against a domain name. It is designed for managed networks with a realm and a publicly verifiable server identity. A home AP has neither, so the server authentication and relying-party scoping on which that design rests are not available. The mechanism here differs chiefly in how those two properties are obtained (Sections 6.2 and 7.4).

4. Threat Model and Security Goals

4.1. Attacker Capabilities

The attacker is assumed to:

  • be within radio range, and able to observe, inject, drop, replay, and relay any frame;
  • operate any number of APs advertising any SSID and BSSID, and any number of stations with any MAC address;
  • know the network password, having obtained it by phishing or otherwise (this is the defining assumption of this document);
  • be able to interact with the user through attacker-run web pages, including while the user's Authenticator is connected.

The attacker is assumed not to hold an enrolled Authenticator, not to have extracted a Device Credential from an enrolled station, not to have compromised the AP or its administrative interface, and not to have physical access to the AP. Section 10.2 discusses what happens when these assumptions fail.

4.2. Security Goals

G1. Password insufficiency for access.
An attacker who knows the network password cannot join a network operating in Required mode (Section 9.1).
G2. Password insufficiency for impersonation.
An attacker who knows the network password cannot cause an enrolled station to complete authentication with an AP that does not hold the Network Identity Key.
G3. Relay resistance.
A second-factor signature produced in one exchange is not accepted in any other exchange, including one conducted concurrently by an attacker positioned between the station and the genuine AP.
G4. Scope restriction.
A second-factor signature produced for one network is not accepted by another network or by a Web relying party, and no Web page can obtain a signature acceptable to a network.
G5. Downgrade resistance.
An attacker cannot cause an enrolled station to authenticate to the network with the password alone.
G6. Preservation of password protection.
The mechanism does not make offline or online guessing of the network password easier than it is under SAE.

The following are explicitly not goals: protection against an attacker who has compromised an enrolled station or the AP; availability against a radio-layer attacker; and hiding the existence of the network or the fact that it uses this mechanism.

5. Design Requirements

In addition to the security goals, the following constraints come from the deployment environment:

R1. No infrastructure.
The mechanism MUST work with the AP as the only network-side component, without certificates issued by a third party, Internet connectivity, or a domain name.
R2. Unmodified authenticators.
The mechanism MUST work with existing FIDO2 authenticators using only standard CTAP2 commands.
R3. No user gesture on routine reconnection.
Stations reassociate many times a day, when roaming, after sleep, and after the AP restarts. Requiring a key touch each time would lead users to disable the mechanism. Routine reconnection of an already-enrolled station MUST NOT require user interaction.
R4. Devices without a user or a port.
Many home devices have no USB or NFC interface and no user interface. A network MUST be able to accommodate them without giving up G1 for the rest of the network (Section 9.3).
R5. Recoverability.
Loss of an Authenticator MUST NOT permanently lock the owner out of their own network (Section 8.4).
R6. Optional deployment.
The mechanism is opt-in per network. A network that does not enable it behaves exactly as it does today.

6. Architecture

6.1. Why "Password, Then Key" Is Not Enough

The obvious construction runs the existing password handshake and then asks the station for an Authenticator signature over an AP-chosen challenge. It fails against the attacker of Section 4.1 in two ways.

First, the attacker can relay. Knowing the password, it completes one handshake with the victim's station while posing as the AP, and a second handshake with the genuine AP while posing as a station. It forwards the genuine AP's challenge to the victim and the victim's signature back. The user touches the key because their device is, as far as they can tell, reconnecting to their own network. The attacker is admitted.

Second, the attacker need not ask at all. An evil twin that knows the password completes the handshake and simply reports success without requesting a second factor. The station joins, and the attacker is in the path of all its traffic.

Three bindings repair this, and together they are the substance of this document:

  1. Channel binding. The value signed by the second factor includes a secret derived from the password-authenticated key exchange in which it is sent (Section 7.3). The two handshakes in the relay attack yield different secrets, so a signature made in one does not verify in the other (G3).
  2. AP authentication. The AP signs the same derived secret with the Network Identity Key, and the station checks the signature against a pinned public key before it uses any credential (Section 7.4). An evil twin that knows only the password cannot produce this signature (G2).
  3. Station-side policy. A station that has enrolled with a network records that fact and refuses to authenticate to that network in any other way (Section 9.2). This makes the first two bindings mandatory from the station's point of view (G5).

6.2. Network Identity

When the mechanism is first enabled, the AP generates the Network Identity Key. Implementations MUST support ECDSA with P-256 and SHA-256 (COSE algorithm ES256 [RFC9053]) for this key. The private key MUST NOT leave the AP, SHOULD be held in hardware-backed storage where the AP has it, and MUST survive restarts and firmware updates. It MUST be erased by a factory reset (Section 8.4).

The network is identified by:

   NetID = SHA-256( SubjectPublicKeyInfo of Network Identity Key )

where SubjectPublicKeyInfo is the DER encoding defined in [RFC5280]. The SSID is not part of the network's identity: it is not unique, it is chosen by whoever operates an AP, and it is exactly what an evil twin copies.

The FIDO2 relying party identifier for the network is the ASCII string:

   RPID = "wlan-mfa:" || base64url( NetID )

with base64url as in Section 5 of [RFC4648], without padding. Authenticators treat the relying party identifier as an opaque string and scope every credential to it. Web browsers only permit relying party identifiers that are valid domain names related to the page's origin [WEBAUTHN]; a string containing a colon is not one. Consequently no Web page can exercise a credential created for a network, and no network can exercise a credential created for a Web site, even on the same Authenticator (G4).

6.3. Credential Classes

Requirement R3 rules out a key touch on every association, while G1 requires that every association involve something an attacker cannot phish. The mechanism therefore uses two classes of credential, both of which satisfy the definition of phishing-resistant in Section 2.

Authenticator Credential
Held on a hardware security key and exercised with a user presence gesture. It is the root of authority for the network: it is used to enroll stations, and MAY be used directly to authenticate a single session on a station that is not to be enrolled, such as a visitor's device.
Device Credential
A key pair generated by a station for one network. The AP accepts its registration only within an exchange that is authenticated by an Authenticator Credential and in which the Authenticator's signature covers the new public key (Section 8.3). The station then uses it, without user interaction, for subsequent associations. The private key SHOULD be generated in and never leave hardware-backed storage (a TPM, secure enclave, or equivalent) where the station has it.

From the user's point of view this is the familiar model of approving a new device once with a security key. From the attacker's point of view there is, in both cases, no value the user can be persuaded to type or read out.

The AP MAY be configured to require a fresh Authenticator Credential assertion from an enrolled station at an interval chosen by the owner. The default SHOULD be never, because the Device Credential already meets G1.

7. Protocol

7.1. Overview

An authentication consists of a password-authenticated key exchange (PAKE) followed by two protected messages and a result.

   Station                                               Access Point
      |                                                       |
      |<----------- PAKE (network password) ----------------->|
      |              yields K_pake, transcript T1             |
      |                                                       |
      |   both sides derive  K_ap, K_sta, CB  from K_pake     |
      |                                                       |
      |<------ { MFA-Request }K_ap ---------------------------|
      |          NetID, N_ap, policy, credential list,        |
      |          SIG_ap = Sign(NIK; ... N_ap, CB)             |
      |                                                       |
      |  verify SIG_ap with pinned key for NetID, else abort  |
      |  obtain SIG_sta from Authenticator or Device key      |
      |                                                       |
      |------- { MFA-Response }K_sta ------------------------>|
      |          N_sta, credential id, SIG_sta over           |
      |          (NetID, N_ap, N_sta, CB) [, auth. data]      |
      |                                                       |
      |                 verify SIG_sta against enrolled key   |
      |                                                       |
      |<------ { MFA-Result }K_ap ----------------------------|
      |                                                       |
      |   both sides derive session keys from K_pake and T2   |
Figure 1: Authentication Exchange

7.2. Phase 1: Password-Authenticated Key Exchange

The station and the AP run a PAKE keyed with the network password. The PAKE MUST be balanced or augmented, MUST NOT allow more than one password guess per active run, and MUST reveal nothing that enables offline guessing; this preserves G6. It MUST provide explicit key confirmation before Phase 2 begins, so that the AP does not sign anything (Section 7.4) for a peer that does not know the password. Suitable choices are the Dragonfly exchange [RFC7664] as used by SAE and by EAP-pwd [RFC5931], and CPace [I-D.irtf-cfrg-cpace]. Which PAKE is used follows from the transport binding (Section 7.7).

Phase 1 outputs a shared secret K_pake and a transcript T1. T1 MUST contain every PAKE message as sent, the SSID, and the link-layer addresses of both parties as used in the exchange.

Running the PAKE first, rather than the public-key operations, has three purposes. It retains the password as a real factor. It encrypts everything that follows, so that credential identifiers are not visible to passive observers (Section 11). And it means that a party who does not know the password cannot make the AP perform signature operations or make a user's Authenticator blink.

7.3. Key Schedule

Keys are derived with HKDF [RFC5869] using SHA-256. Labels are ASCII strings without a terminator.

   PRK   = HKDF-Extract( salt = SHA-256(T1), IKM = K_pake )

   K_ap  = HKDF-Expand( PRK, "wlan-mfa v1 ap key",          32 )
   K_sta = HKDF-Expand( PRK, "wlan-mfa v1 sta key",         32 )
   CB    = HKDF-Expand( PRK, "wlan-mfa v1 channel binding", 32 )

K_ap protects messages from the AP and K_sta protects messages from the station, using an AEAD algorithm [RFC5116] with a per-direction message counter as the nonce. Implementations MUST support AEAD_AES_256_GCM.

CB is the channel binding value. It is never transmitted. It is a function of the PAKE secret and transcript, so two parties compute the same CB if and only if they ran the PAKE with each other. An attacker in the middle of two PAKE runs knows both CB values but cannot make them equal.

7.4. Phase 2a: Access Point Authentication

The AP sends MFA-Request, protected with K_ap, containing:

  • NetID;
  • N_ap, 32 octets from a cryptographically secure random source;
  • policy: which credential classes are acceptable for this station at this time, and whether user verification is required for Authenticator Credentials;
  • the list of credential identifiers of the enrolled Authenticator Credentials;
  • SIG_ap, a signature with the Network Identity Key over:
   "wlan-mfa v1 ap auth" || 0x00 || NetID || N_ap || CB

On receipt the station MUST, in this order:

  1. look up the pinned Network Identity public key for the network profile it is using, and check that its hash equals the received NetID;
  2. verify SIG_ap with that key, over the octet string above using its own value of CB.

If either check fails, the station MUST abort the authentication, MUST NOT send MFA-Response, MUST NOT invoke an Authenticator, and MUST NOT fall back to any other way of joining a network with that profile. The station SHOULD report to the user that a device nearby is imitating their network, and SHOULD NOT offer a way to proceed from that report.

This step achieves G2. It is also what makes it safe for the station to proceed to Phase 2b: because SIG_ap covers CB, the station knows that the holder of the Network Identity Key is the very party it ran the PAKE with, not someone behind a relay.

7.5. Phase 2b: Station Authentication

The station chooses N_sta, 32 octets from a cryptographically secure random source, and produces SIG_sta with one of the credential classes permitted by the policy.

7.5.1. With an Authenticator Credential

The station acts as the FIDO2 platform and issues a CTAP2 authenticatorGetAssertion command [CTAP2] with:

  • rpId set to RPID (Section 6.2), computed by the station from its pinned key, not taken from the AP's message;
  • allowList set to the credential identifiers received in MFA-Request;
  • the user presence option enabled, and user verification requested if the policy requires it;
  • clientDataHash set to:
   SHA-256( "wlan-mfa v1 assertion" || 0x00 ||
            NetID || N_ap || N_sta || CB )

CTAP2 treats clientDataHash as an opaque 32-octet value supplied by the platform, so no change to authenticators is needed (R2). The JSON client data structure of [WEBAUTHN] is not used.

MFA-Response, protected with K_sta, carries N_sta, the identifier of the credential that was used, the authenticator data, and the signature. The AP MUST:

  1. find the enrolled public key for the credential identifier;
  2. check that the relying party identifier hash in the authenticator data equals SHA-256(RPID);
  3. check that the User Present flag is set, and the User Verified flag if policy requires it;
  4. recompute clientDataHash from its own NetID, N_ap, and CB and the received N_sta, and verify the signature over the authenticator data concatenated with that hash;
  5. if the received signature counter is non-zero, check that it is greater than the stored value, and store it.

7.5.2. With a Device Credential

The station signs, with its Device Credential private key:

   "wlan-mfa v1 device auth" || 0x00 ||
   NetID || N_ap || N_sta || CB

MFA-Response carries N_sta, the identifier assigned to the Device Credential at enrollment, and the signature. The AP verifies the signature with the enrolled public key. No user interaction takes place.

7.5.3. Failure Handling

If verification fails, the AP MUST reject the authentication and MUST NOT derive or install session keys. Failures at this stage come from a peer that knows the network password, which is itself a signal worth surfacing: the AP SHOULD record them and SHOULD make them visible to the owner, since repeated occurrences indicate that the password has been disclosed.

7.6. Completion and Key Export

The AP sends MFA-Result, protected with K_ap, indicating success or failure. Let T2 be the concatenation of the plaintexts of MFA-Request and MFA-Response as sent. Both sides derive:

   MSK = HKDF-Expand( PRK, "wlan-mfa v1 msk" || SHA-256(T2), 64 )

The link-layer keys are derived from MSK in the usual way for the transport binding in use. They MUST NOT be derived from K_pake directly: deriving them from MSK ensures that a party which skipped or altered Phase 2 does not hold working session keys, even if an implementation error were to let the state machine advance.

7.7. Transport Bindings

The exchange above can be carried in two ways. This revision does not select between them or define encodings.

As an EAP method
The AP advertises an IEEE 802.1X AKM and runs the EAP server itself, as many AP implementations already can. Phase 1 is a PAKE carried in EAP, and Phase 2 is carried in further round trips of the same method. MSK is exported as the method's Master Session Key under the EAP key management framework [RFC5247], with a 64-octet EMSK derived in the same manner under a distinct label. This binding requires no change to IEEE 802.11 and can be implemented in existing supplicant and AP software. It would require an EAP Method Type (Section 12). Because the EAP server and the AP are the same entity, the "lying NAS" problem does not arise.
As a native IEEE 802.11 AKM
SAE provides Phase 1, and Phase 2 is carried in additional authentication or protected action frames before the 4-way handshake, with MSK taking the place of the SAE-derived PMK. This is the more efficient arrangement, and it allows the mechanism to be signalled in the RSN element, but it can only be specified by IEEE 802.11.

In either binding, the network MUST use management frame protection, and an AP operating in Required mode MUST NOT accept the password with any AKM that does not perform Phase 2.

8. Enrollment

Every mechanism of this kind is only as strong as its enrollment path. The procedures below are designed so that the network password is never sufficient to enroll anything.

8.1. Registering an Authenticator

An Authenticator Credential is created with CTAP2 authenticatorMakeCredential using RPID as the relying party identifier. Since browsers will not use such an identifier (Section 6.2), registration cannot be done from a Web page served by the AP. Two procedures are defined.

Direct
The owner inserts the Authenticator into a USB port on the AP, or presents it to an NFC reader on the AP, and confirms on the AP's administrative interface. The AP acts as the FIDO2 platform. This is the simplest procedure and the hardest to attack, because it requires physical access to the AP.
In-band
The owner opens a registration window from the AP's authenticated administrative interface. The window MUST close after one registration or after a short interval, which SHOULD NOT exceed five minutes. A station then runs Phase 1 and Phase 2a, creates the credential on a locally connected Authenticator, and sends the credential identifier and public key protected with K_sta. Both the station and the administrative interface display a short authentication string derived as HKDF-Expand(PRK, "wlan-mfa v1 sas", 4) and rendered as six decimal digits. The AP MUST NOT store the credential until the owner has confirmed on the administrative interface that the strings match.

The comparison in the in-band procedure is necessary: during the window the only thing a remote party needs is the password, which the attacker is assumed to have. The comparison ties the registration to the station that the owner is looking at.

The AP SHOULD refuse to enter Required mode until at least two Authenticators are registered (see Section 8.4). Attestation is not required; stations and APs SHOULD request attestation conveyance "none", which is sufficient for this purpose and avoids disclosing the Authenticator model.

8.2. Pinning the Network Identity Key

A station needs the Network Identity public key before it can perform Phase 2a. It obtains it in one of these ways, in decreasing order of preference:

  1. Out of band, from a QR code or NFC tag shown by the AP's administrative interface or printed on the AP, containing the SSID and NetID. The station then accepts only a key that hashes to that NetID.
  2. In band, during a registration or enrollment window, with the key authenticated by the same short authentication string comparison as above.
  3. From another of the user's devices, through a platform credential synchronization facility, if the user has opted in to one.

A station MUST NOT pin a key received in band outside a window confirmed by string comparison. In particular it MUST NOT pin "on first use" when it merely encounters a network with a known SSID that offers this mechanism, since that is precisely the situation an evil twin creates.

8.3. Enrolling a Station

A station that holds the pinned key and has access to a registered Authenticator enrolls itself as follows. No window needs to be open; possession of the Authenticator is the authorization.

  1. The station generates a Device Credential key pair (DK).
  2. The station and AP run Phases 1 and 2a.
  3. The station requests an assertion as in Section 7.5.1, but with clientDataHash set to:
   SHA-256( "wlan-mfa v1 enroll device" || 0x00 ||
            NetID || N_ap || N_sta || CB ||
            SHA-256( SubjectPublicKeyInfo of DK ) )
  1. The station sends the assertion, the DK public key, a human-readable device name, and a signature made with DK over the same clientDataHash value, as proof of possession.
  2. The AP verifies the assertion as in Section 7.5.1 and the proof of possession, stores the DK public key together with the name, the time, and the identifier of the authorizing Authenticator Credential, and returns an identifier for the new Device Credential.

Because the Authenticator's signature covers the hash of DK, a key touch authorizes that specific device key and no other, within that specific channel.

The AP's administrative interface MUST list enrolled Device Credentials with their names, enrollment times, and last use, and MUST allow each to be revoked individually.

8.4. Revocation and Recovery

Revoking an Authenticator Credential or Device Credential removes its public key from the AP. The AP MUST also terminate any current session established with it. Revoking an Authenticator Credential does not revoke the Device Credentials it authorized; the administrative interface SHOULD offer to do so, since a lost Authenticator may have been used by its finder while it was still registered.

If every registered Authenticator is lost, enrolled stations continue to work, but no new station can be enrolled. The owner can register a new Authenticator through the Direct procedure, which depends on access to the AP and its administrative credentials rather than on an existing Authenticator. If administrative access is also lost, the only recovery is a factory reset of the AP, performed with a physical control on the device. A factory reset MUST erase the Network Identity Key and all enrolled credentials. All stations must then re-pin and re-enroll; their old pins will, correctly, cause them to reject the reset AP until the user removes the old network profile.

Recovery mechanisms that depend only on knowledge, such as printed recovery codes or security questions, MUST NOT be provided: they would reintroduce a phishable secret that bypasses the mechanism.

9. Deployment and Backward Compatibility

9.1. Access Point Modes

Disabled
The mechanism is not advertised. Behavior is unchanged from today. This is the default.
Required
The AP completes authentication only through the exchange in Section 7. The network password alone admits no one. This is the only mode that achieves G1.
Transition
The AP offers the mechanism but also admits stations that authenticate with the password alone. This mode exists only to let the owner enroll devices before switching to Required mode. It provides G2 and G5 to enrolled stations, but it does not provide G1, because an attacker with the password simply joins as an unenrolled station. The administrative interface MUST say so plainly, and SHOULD prompt the owner to leave Transition mode once enrollment is complete.

9.2. Station Behavior and Downgrade Protection

A network profile on a station for which a Network Identity Key has been pinned is a "protected profile". For a protected profile the station:

  • MUST NOT associate using any AKM that does not perform the exchange in Section 7, regardless of what the AP advertises;
  • MUST NOT associate with an open network, or an opportunistically encrypted network, bearing the same SSID, whether automatically or because the user selected it from a list, without a warning that distinguishes it from the protected network;
  • MUST NOT remove the protection in response to anything received from the network; it is removed only by the user deleting the profile.

The second item addresses the original phishing vector directly. The evil twin's captive portal depends on the user's device joining an open network with a familiar name; a station that knows this name belongs to a protected network is in a position to say that the open one is not it.

These rules are analogous to pinning and strict transport policies on the Web, and they have the same sharp edge: a station pinned to a key that no longer exists cannot connect until the user intervenes (Section 8.4).

9.3. Devices That Cannot Participate

Devices that have no implementation of this mechanism cannot join a network in Required mode. Requirement R4 is met by separation rather than by exception: the AP SHOULD offer a second network with a different SSID and a different password for such devices, and SHOULD by default prevent stations on that network from initiating connections to stations on the protected network. The password of that second network remains phishable, and what it protects is limited to those devices.

Admitting individual legacy devices to the protected network by link-layer address is NOT RECOMMENDED: addresses are trivially forged, and an attacker with the password could then join by copying one.

Devices that implement the mechanism but have no USB or NFC interface and no display can still hold a Device Credential. They can be enrolled by a companion procedure in which another, already enrolled, station with an Authenticator authorizes the new device's key; the AP verifies the same enrollment assertion as in Section 8.3, with the new device supplying proof of possession in its own exchange. The details depend on how the new device's public key is conveyed to the companion (for example by QR code, as in [DPP]) and are left to a future revision.

9.4. Reconnection, Caching, and Multiple Access Points

Pairwise master key caching and fast transition MAY be used within their normal lifetimes; the cached key descends from MSK and therefore from a completed second-factor exchange. A full exchange with a Device Credential costs one signature and one verification on each side, in addition to the PAKE, and requires no user interaction.

In a network with several APs or mesh nodes, all of them present the same NetID. They either share the Network Identity private key and the enrollment database over a mutually authenticated and encrypted channel, or forward Phase 2 to one node that holds them. The provisioning of that channel is out of scope here. The compromise of any node that holds the key compromises the network's identity.

10. Security Considerations

This entire document concerns security. This section reviews the goals of Section 4.2 against the design and records what is not achieved.

10.1. Analysis Against the Goals

G1 (access)
In Required mode the AP releases MSK only after verifying a signature by an enrolled credential over fresh nonces and CB. The password lets an attacker reach Phase 2 but not pass it. Enrollment requires an Authenticator signature (Section 8.3), physical access to the AP, or owner confirmation of a short authentication string (Section 8.1); none follows from the password.
G2 (impersonation)
A station with a protected profile proceeds only after verifying SIG_ap, which requires the Network Identity private key.
G3 (relay)
Both signatures cover CB. An attacker between the station and the AP necessarily terminates two different PAKE runs, with different CB values, and can neither forward SIG_ap to the station nor SIG_sta to the AP. An attacker that instead forwards the PAKE messages unmodified is not in the middle of anything: it learns neither K_pake nor the session keys.
G4 (scope)
The relying party identifier is derived from NetID, is hashed into the authenticator data by the Authenticator itself, and has a form that browsers reject. The station computes it from its own pin, so an AP cannot induce a station to request an assertion for another network. Device Credential signatures include NetID and a domain separation label.
G5 (downgrade)
Enforced by station policy (Section 9.2), which the network cannot alter. Negotiation of the AKM is not relied upon.
G6 (password)
Phase 1 is a PAKE with the same guessing resistance as SAE. Phase 2 messages are encrypted under keys derived from K_pake but contain nothing that depends on the password, so they provide no additional verifier for guesses. Note, however, that the password is now the weaker of two factors and that the limits on unsuccessful attempts that APs apply to SAE remain necessary.

This analysis is informal. The design composes a PAKE with signature-based authentication under a derived binding value, which is a well-understood pattern, but the specific composition has not been formally verified. Symbolic or computational analysis is invited before any implementation is deployed.

10.2. Residual Risks

Compromised station
Software running on an enrolled station can use its Device Credential, and can extract it if it is not hardware-backed. This mechanism defends against phishing, not against malware. Revoking the Device Credential is the remedy.
Lost or stolen station or Authenticator
Possession plus the password grants access until the credential is revoked. Requiring user verification on the Authenticator narrows this for stolen Authenticators.
Administrative interface
Whoever controls the AP's administrative interface can open registration windows, register Authenticators by the Direct procedure, or disable the mechanism. The mechanism therefore inherits the strength of administrative authentication. The administrative interface MUST NOT be reachable from the legacy network of Section 9.3, MUST NOT use the network password or a default password as its credential, and SHOULD itself support phishing-resistant authentication. A user who can be talked into entering a Wi-Fi password on a captive portal can be talked into entering an administrative password there too.
Social engineering of enrollment
An attacker cannot enroll remotely, but can try to persuade the owner to open a window and confirm a string. Limiting windows to one registration and a few minutes, and showing the string on both ends, reduces but does not remove this. The Direct procedure is preferable where available.
Transition mode and legacy networks
As stated in Section 9.1 and Section 9.3, neither protects against a disclosed password. A network left in Transition mode indefinitely has gained the appearance of this mechanism without G1.
Denial of service
A radio-layer attacker can always prevent communication. An attacker with the password can additionally cause the AP to perform one signature per PAKE run, and can make stations display impersonation warnings. APs SHOULD rate-limit Phase 2 per peer and overall. The mechanism turns what would have been silent compromise into visible failure, which is the intended trade.
Unexpected Authenticator prompts
Stations MUST NOT invoke an Authenticator before SIG_ap has been verified, so that only the genuine AP can cause a touch prompt for the network's credential. Users should nevertheless be told when and why the station is asking for a touch.
Implementation side channels
Password-to-element conversion in Dragonfly-family PAKEs has a history of timing and cache side channels. Implementations MUST use constant-time hash-to-element methods. ECDSA signing on the AP MUST use deterministic or well-seeded nonces.
Cryptographic agility
Every label carries a version ("v1"). A change of hash, AEAD, or signature algorithm requires a new version and explicit negotiation that is itself covered by T1. Post-quantum signature algorithms depend on support in authenticators and are not addressed in this revision.

11. Privacy Considerations

NetID is a stable identifier for a network. It is sent only inside the channel established by Phase 1, so a passive observer does not learn it; an active party that knows the password does. If NetID were advertised in beacons, as a native AKM might wish to do in order to help stations select the right AP, it would allow a network to be recognized after its SSID changes.

Credential identifiers and Device Credential identifiers are stable per station and per Authenticator. They too are sent only inside the protected channel, and after the AP has authenticated itself in the case of those sent by the station. The list of Authenticator Credential identifiers in MFA-Request is, however, visible to anyone who knows the password; it reveals how many Authenticators are registered and lets that party recognize the network later. Because credentials are scoped to RPID, an Authenticator cannot be linked across networks or to Web accounts by its credential identifiers or public keys.

Nothing in the mechanism depends on a station's link-layer address, so it is compatible with address randomization. The AP necessarily learns which enrolled credential each session used, and the device names supplied at enrollment; this is inherent in per-device revocation and stays on the AP.

12. IANA Considerations

This document has no IANA actions.

If the EAP transport binding of Section 7.7 is specified in a future revision or a successor document, it will request an EAP Method Type from the "Method Types" registry of the "Extensible Authentication Protocol (EAP) Registry".

13. References

13.1. Normative References

[CTAP2]
FIDO Alliance, "Client to Authenticator Protocol (CTAP)", FIDO Alliance Proposed Standard, Version 2.1, , <https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html>.
[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC4648]
Josefsson, S., "The Base16, Base32, and Base64 Data Encodings", RFC 4648, DOI 10.17487/RFC4648, , <https://www.rfc-editor.org/info/rfc4648>.
[RFC5116]
McGrew, D., "An Interface and Algorithms for Authenticated Encryption", RFC 5116, DOI 10.17487/RFC5116, , <https://www.rfc-editor.org/info/rfc5116>.
[RFC5280]
Cooper, D., Santesson, S., Farrell, S., Boeyen, S., Housley, R., and W. Polk, "Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile", RFC 5280, DOI 10.17487/RFC5280, , <https://www.rfc-editor.org/info/rfc5280>.
[RFC5869]
Krawczyk, H. and P. Eronen, "HMAC-based Extract-and-Expand Key Derivation Function (HKDF)", RFC 5869, DOI 10.17487/RFC5869, , <https://www.rfc-editor.org/info/rfc5869>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC9053]
Schaad, J., "CBOR Object Signing and Encryption (COSE): Initial Algorithms", RFC 9053, DOI 10.17487/RFC9053, , <https://www.rfc-editor.org/info/rfc9053>.
[WEBAUTHN]
World Wide Web Consortium, "Web Authentication: An API for accessing Public Key Credentials Level 2", W3C Recommendation, , <https://www.w3.org/TR/webauthn-2/>.

13.2. Informative References

[DPP]
Wi-Fi Alliance, "Wi-Fi Easy Connect Specification", <https://www.wi-fi.org/discover-wi-fi/wi-fi-easy-connect>.
[I-D.ietf-emu-eap-fido]
Rieckers, J. and S. Winter, "EAP-FIDO", Work in Progress, Internet-Draft, draft-ietf-emu-eap-fido, <https://datatracker.ietf.org/doc/draft-ietf-emu-eap-fido/>.
[I-D.irtf-cfrg-cpace]
Abdalla, M., Haase, B., and J. Hesse, "CPace, a balanced composable PAKE", Work in Progress, Internet-Draft, draft-irtf-cfrg-cpace, <https://datatracker.ietf.org/doc/draft-irtf-cfrg-cpace/>.
[IEEE8021X]
IEEE, "IEEE Standard for Local and Metropolitan Area Networks -- Port-Based Network Access Control", IEEE Std 802.1X-2020, .
[IEEE80211]
IEEE, "IEEE Standard for Information Technology -- Telecommunications and Information Exchange between Systems -- Local and Metropolitan Area Networks -- Specific Requirements -- Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications", IEEE Std 802.11-2020, .
[NIST80063B]
National Institute of Standards and Technology, "Digital Identity Guidelines: Authentication and Authenticator Management", NIST SP 800-63B-4, , <https://doi.org/10.6028/NIST.SP.800-63B-4>.
[RFC3748]
Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J., and H. Levkowetz, Ed., "Extensible Authentication Protocol (EAP)", RFC 3748, DOI 10.17487/RFC3748, , <https://www.rfc-editor.org/info/rfc3748>.
[RFC5247]
Aboba, B., Simon, D., and P. Eronen, "Extensible Authentication Protocol (EAP) Key Management Framework", RFC 5247, DOI 10.17487/RFC5247, , <https://www.rfc-editor.org/info/rfc5247>.
[RFC5931]
Harkins, D. and G. Zorn, "Extensible Authentication Protocol (EAP) Authentication Using Only a Password", RFC 5931, DOI 10.17487/RFC5931, , <https://www.rfc-editor.org/info/rfc5931>.
[RFC7664]
Harkins, D., Ed., "Dragonfly Key Exchange", RFC 7664, DOI 10.17487/RFC7664, , <https://www.rfc-editor.org/info/rfc7664>.
[WPA3]
Wi-Fi Alliance, "WPA3 Specification", <https://www.wi-fi.org/discover-wi-fi/security>.

Changes from -00

This revision is a rewrite. The proposal of -00, that Wi-Fi networks accept a hardware security key in addition to the password, is unchanged. The following was added or changed:

Open Issues

Author's Address

RelunSec
JoeCyberTech