| Internet-Draft | Wi-Fi Phishing Resistance | December 2026 |
| RelunSec | Expires 7 June 2027 | [Page] |
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.¶
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.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
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.¶
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.¶
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.¶
The attack has three steps, none of which requires breaking cryptography:¶
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.¶
The attacker is assumed to:¶
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.¶
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.¶
In addition to the security goals, the following constraints come from the deployment environment:¶
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:¶
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).¶
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.¶
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.¶
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 |
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.¶
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.¶
The AP sends MFA-Request, protected with K_ap, containing:¶
"wlan-mfa v1 ap auth" || 0x00 || NetID || N_ap || CB¶
On receipt the station MUST, in this order:¶
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.¶
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.¶
The station acts as the FIDO2 platform and issues a CTAP2 authenticatorGetAssertion command [CTAP2] with:¶
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:¶
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.¶
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.¶
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.¶
The exchange above can be carried in two ways. This revision does not select between them or define encodings.¶
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.¶
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.¶
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.¶
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.¶
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:¶
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.¶
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.¶
SHA-256( "wlan-mfa v1 enroll device" || 0x00 ||
NetID || N_ap || N_sta || CB ||
SHA-256( SubjectPublicKeyInfo of DK ) )
¶
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.¶
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.¶
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:¶
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).¶
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.¶
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.¶
This entire document concerns security. This section reviews the goals of Section 4.2 against the design and records what is not achieved.¶
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.¶
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.¶
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".¶
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:¶