<?xml version="1.0" encoding="UTF-8"?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude"
     category="info"
     docName="draft-relunsec-wifi-yubikey-01"
     ipr="trust200902"
     submissionType="IETF"
     version="3"
     xml:lang="en"
     tocInclude="true"
     tocDepth="3"
     sortRefs="true"
     symRefs="true">

  <front>
    <title abbrev="Wi-Fi Phishing Resistance">Phishing-Resistant Multi-Factor Authentication for Wi-Fi Networks</title>
    <seriesInfo name="Internet-Draft" value="draft-relunsec-wifi-yubikey-01"/>
    <author fullname="RelunSec" surname="RelunSec">
      <organization>JoeCyberTech</organization>
      <address>
        <email>relunsec@insitetech.jp</email>
        <uri>https://joecybertech.com/</uri>
      </address>
    </author>
    <date year="2026" month="December" day="4"/>
    <area>Security</area>
    <keyword>Wi-Fi</keyword>
    <keyword>WPA3</keyword>
    <keyword>FIDO2</keyword>
    <keyword>evil twin</keyword>
    <keyword>phishing resistance</keyword>
    <keyword>multi-factor authentication</keyword>

    <abstract>
      <t>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.</t>
      <t>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.</t>
    </abstract>
  </front>

  <middle>

    <section anchor="intro">
      <name>Introduction</name>
      <t>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.</t>
      <t>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)
      <xref target="IEEE80211"/>, a password-authenticated key exchange
      of the Dragonfly family <xref target="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.</t>
      <t>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 <xref target="WEBAUTHN"/> <xref target="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.</t>
      <t>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.</t>

      <section anchor="scope">
        <name>Scope and Relationship to Other Standards Bodies</name>
        <t>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) <xref target="RFC3748"/> and its methods, which
        Wi-Fi uses through IEEE 802.1X <xref target="IEEE8021X"/>.</t>
        <t>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.
        <xref target="bindings"/> 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.</t>
        <t>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
        <xref target="existing"/>.</t>
      </section>

      <section anchor="reqlang">
        <name>Requirements Language</name>
        <t>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 <xref target="RFC2119"/>
        <xref target="RFC8174"/> when, and only when, they appear in all
        capitals, as shown here.</t>
      </section>
    </section>

    <section anchor="terms">
      <name>Terminology</name>
      <dl newline="true">
        <dt>Access Point (AP)</dt>
        <dd>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.</dd>
        <dt>Station (STA)</dt>
        <dd>A device that joins the network, together with the software
        on it that performs Wi-Fi authentication (the supplicant).</dd>
        <dt>Evil twin</dt>
        <dd>An access point operated by an attacker that advertises the
        identity of a network it is not part of.</dd>
        <dt>Authenticator</dt>
        <dd>A FIDO2 roaming authenticator <xref target="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.</dd>
        <dt>Authenticator Credential</dt>
        <dd>A key pair created on an Authenticator for one network and
        registered with that network's AP.</dd>
        <dt>Device Credential</dt>
        <dd>A key pair generated and held by one station, registered
        with the AP in an exchange authorized by an Authenticator
        Credential (<xref target="devenroll"/>).</dd>
        <dt>Network Identity Key</dt>
        <dd>A long-term signature key pair generated by the AP, with
        which the AP authenticates itself to stations.</dd>
        <dt>NetID</dt>
        <dd>The 32-octet SHA-256 hash of the Network Identity Key's
        public key (<xref target="netid"/>).  It, and not the network
        name, identifies the network in this mechanism.</dd>
        <dt>Network password</dt>
        <dd>The shared secret of a WPA-Personal network.</dd>
        <dt>Phishing-resistant</dt>
        <dd>Used in the sense of <xref target="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.</dd>
      </dl>
    </section>

    <section anchor="problem">
      <name>Problem Statement</name>

      <section anchor="attack">
        <name>Password Phishing with an Evil Twin</name>
        <t>The attack has three steps, none of which requires breaking
        cryptography:</t>
        <ol>
          <li>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.</li>
          <li>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.</li>
          <li>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.</li>
        </ol>
        <t>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.</t>
      </section>

      <section anchor="existing">
        <name>Why Existing Mechanisms Do Not Close the Gap</name>
        <dl newline="true">
          <dt>WPA3-Personal (SAE)</dt>
          <dd>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.</dd>
          <dt>SAE-PK</dt>
          <dd>Defined by the Wi-Fi Alliance <xref target="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.</dd>
          <dt>Wi-Fi Easy Connect (DPP)</dt>
          <dd>Replaces the password with per-device public keys
          provisioned out of band, for example by scanning a QR code
          <xref target="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.</dd>
          <dt>WPA3-Enterprise with certificate-based EAP</dt>
          <dd>Phishing-resistant, but depends on an authentication
          server, a certification authority, and per-device certificate
          provisioning, which households do not operate.</dd>
          <dt>EAP-FIDO</dt>
          <dd>Work in progress in the EMU Working Group
          <xref target="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
          <xref target="netid" format="counter"/> and
          <xref target="apauth" format="counter"/>).</dd>
        </dl>
      </section>
    </section>

    <section anchor="threat">
      <name>Threat Model and Security Goals</name>

      <section anchor="attacker">
        <name>Attacker Capabilities</name>
        <t>The attacker is assumed to:</t>
        <ul>
          <li>be within radio range, and able to observe, inject, drop,
          replay, and relay any frame;</li>
          <li>operate any number of APs advertising any SSID and BSSID,
          and any number of stations with any MAC address;</li>
          <li>know the network password, having obtained it by phishing
          or otherwise (this is the defining assumption of this
          document);</li>
          <li>be able to interact with the user through attacker-run web
          pages, including while the user's Authenticator is
          connected.</li>
        </ul>
        <t>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.  <xref target="residual"/> discusses what happens when these
        assumptions fail.</t>
      </section>

      <section anchor="goals">
        <name>Security Goals</name>
        <dl newline="true">
          <dt>G1.  Password insufficiency for access.</dt>
          <dd>An attacker who knows the network password cannot join a
          network operating in Required mode
          (<xref target="modes"/>).</dd>
          <dt>G2.  Password insufficiency for impersonation.</dt>
          <dd>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.</dd>
          <dt>G3.  Relay resistance.</dt>
          <dd>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.</dd>
          <dt>G4.  Scope restriction.</dt>
          <dd>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.</dd>
          <dt>G5.  Downgrade resistance.</dt>
          <dd>An attacker cannot cause an enrolled station to
          authenticate to the network with the password alone.</dd>
          <dt>G6.  Preservation of password protection.</dt>
          <dd>The mechanism does not make offline or online guessing of
          the network password easier than it is under SAE.</dd>
        </dl>
        <t>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.</t>
      </section>
    </section>

    <section anchor="requirements">
      <name>Design Requirements</name>
      <t>In addition to the security goals, the following constraints
      come from the deployment environment:</t>
      <dl newline="true">
        <dt>R1.  No infrastructure.</dt>
        <dd>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.</dd>
        <dt>R2.  Unmodified authenticators.</dt>
        <dd>The mechanism MUST work with existing FIDO2 authenticators
        using only standard CTAP2 commands.</dd>
        <dt>R3.  No user gesture on routine reconnection.</dt>
        <dd>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.</dd>
        <dt>R4.  Devices without a user or a port.</dt>
        <dd>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
        (<xref target="legacy"/>).</dd>
        <dt>R5.  Recoverability.</dt>
        <dd>Loss of an Authenticator MUST NOT permanently lock the owner
        out of their own network (<xref target="recovery"/>).</dd>
        <dt>R6.  Optional deployment.</dt>
        <dd>The mechanism is opt-in per network.  A network that does
        not enable it behaves exactly as it does today.</dd>
      </dl>
    </section>

    <section anchor="arch">
      <name>Architecture</name>

      <section anchor="twofactors">
        <name>Why "Password, Then Key" Is Not Enough</name>
        <t>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
        <xref target="attacker"/> in two ways.</t>
        <t>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.</t>
        <t>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.</t>
        <t>Three bindings repair this, and together they are the
        substance of this document:</t>
        <ol>
          <li>Channel binding.  The value signed by the second factor
          includes a secret derived from the password-authenticated key
          exchange in which it is sent (<xref target="keysched"/>).  The
          two handshakes in the relay attack yield different secrets, so
          a signature made in one does not verify in the other
          (G3).</li>
          <li>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 (<xref target="apauth"/>).  An evil twin that knows
          only the password cannot produce this signature (G2).</li>
          <li>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 (<xref target="downgrade"/>).  This
          makes the first two bindings mandatory from the station's
          point of view (G5).</li>
        </ol>
      </section>

      <section anchor="netid">
        <name>Network Identity</name>
        <t>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
        <xref target="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
        (<xref target="recovery"/>).</t>
        <t>The network is identified by:</t>
        <artwork><![CDATA[
   NetID = SHA-256( SubjectPublicKeyInfo of Network Identity Key )
]]></artwork>
        <t>where SubjectPublicKeyInfo is the DER encoding defined in
        <xref target="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.</t>
        <t>The FIDO2 relying party identifier for the network is the
        ASCII string:</t>
        <artwork><![CDATA[
   RPID = "wlan-mfa:" || base64url( NetID )
]]></artwork>
        <t>with base64url as in Section 5 of <xref target="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
        <xref target="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).</t>
      </section>

      <section anchor="credclasses">
        <name>Credential Classes</name>
        <t>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 <xref target="terms"/>.</t>
        <dl newline="true">
          <dt>Authenticator Credential</dt>
          <dd>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.</dd>
          <dt>Device Credential</dt>
          <dd>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
          (<xref target="devenroll"/>).  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.</dd>
        </dl>
        <t>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.</t>
        <t>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.</t>
      </section>
    </section>

    <section anchor="protocol">
      <name>Protocol</name>

      <section anchor="overview">
        <name>Overview</name>
        <t>An authentication consists of a password-authenticated key
        exchange (PAKE) followed by two protected messages and a
        result.</t>
        <figure anchor="fig-flow">
          <name>Authentication Exchange</name>
          <artwork><![CDATA[
   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   |
]]></artwork>
        </figure>
      </section>

      <section anchor="pake">
        <name>Phase 1: Password-Authenticated Key Exchange</name>
        <t>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
        (<xref target="apauth"/>) for a peer that does not know the
        password.  Suitable choices are the Dragonfly exchange
        <xref target="RFC7664"/> as used by SAE and by EAP-pwd
        <xref target="RFC5931"/>, and CPace
        <xref target="I-D.irtf-cfrg-cpace"/>.  Which PAKE is used
        follows from the transport binding (<xref target="bindings"/>).</t>
        <t>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.</t>
        <t>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
        (<xref target="privacy"/>).  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.</t>
      </section>

      <section anchor="keysched">
        <name>Key Schedule</name>
        <t>Keys are derived with HKDF <xref target="RFC5869"/> using
        SHA-256.  Labels are ASCII strings without a terminator.</t>
        <artwork><![CDATA[
   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 )
]]></artwork>
        <t>K_ap protects messages from the AP and K_sta protects
        messages from the station, using an AEAD algorithm
        <xref target="RFC5116"/> with a per-direction message counter as
        the nonce.  Implementations MUST support AEAD_AES_256_GCM.</t>
        <t>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.</t>
      </section>

      <section anchor="apauth">
        <name>Phase 2a: Access Point Authentication</name>
        <t>The AP sends MFA-Request, protected with K_ap, containing:</t>
        <ul>
          <li>NetID;</li>
          <li>N_ap, 32 octets from a cryptographically secure random
          source;</li>
          <li>policy: which credential classes are acceptable for this
          station at this time, and whether user verification is
          required for Authenticator Credentials;</li>
          <li>the list of credential identifiers of the enrolled
          Authenticator Credentials;</li>
          <li>SIG_ap, a signature with the Network Identity Key
          over:</li>
        </ul>
        <artwork><![CDATA[
   "wlan-mfa v1 ap auth" || 0x00 || NetID || N_ap || CB
]]></artwork>
        <t>On receipt the station MUST, in this order:</t>
        <ol>
          <li>look up the pinned Network Identity public key for the
          network profile it is using, and check that its hash equals
          the received NetID;</li>
          <li>verify SIG_ap with that key, over the octet string above
          using its own value of CB.</li>
        </ol>
        <t>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.</t>
        <t>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.</t>
      </section>

      <section anchor="staauth">
        <name>Phase 2b: Station Authentication</name>
        <t>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.</t>

        <section anchor="assertion">
          <name>With an Authenticator Credential</name>
          <t>The station acts as the FIDO2 platform and issues a CTAP2
          authenticatorGetAssertion command <xref target="CTAP2"/>
          with:</t>
          <ul>
            <li>rpId set to RPID (<xref target="netid"/>), computed by
            the station from its pinned key, not taken from the
            AP's message;</li>
            <li>allowList set to the credential identifiers received in
            MFA-Request;</li>
            <li>the user presence option enabled, and user verification
            requested if the policy requires it;</li>
            <li>clientDataHash set to:</li>
          </ul>
          <artwork><![CDATA[
   SHA-256( "wlan-mfa v1 assertion" || 0x00 ||
            NetID || N_ap || N_sta || CB )
]]></artwork>
          <t>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
          <xref target="WEBAUTHN"/> is not used.</t>
          <t>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:</t>
          <ol>
            <li>find the enrolled public key for the credential
            identifier;</li>
            <li>check that the relying party identifier hash in the
            authenticator data equals SHA-256(RPID);</li>
            <li>check that the User Present flag is set, and the User
            Verified flag if policy requires it;</li>
            <li>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;</li>
            <li>if the received signature counter is non-zero, check
            that it is greater than the stored value, and store
            it.</li>
          </ol>
        </section>

        <section anchor="devauth">
          <name>With a Device Credential</name>
          <t>The station signs, with its Device Credential private
          key:</t>
          <artwork><![CDATA[
   "wlan-mfa v1 device auth" || 0x00 ||
   NetID || N_ap || N_sta || CB
]]></artwork>
          <t>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.</t>
        </section>

        <section anchor="failure">
          <name>Failure Handling</name>
          <t>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.</t>
        </section>
      </section>

      <section anchor="completion">
        <name>Completion and Key Export</name>
        <t>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:</t>
        <artwork><![CDATA[
   MSK = HKDF-Expand( PRK, "wlan-mfa v1 msk" || SHA-256(T2), 64 )
]]></artwork>
        <t>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.</t>
      </section>

      <section anchor="bindings">
        <name>Transport Bindings</name>
        <t>The exchange above can be carried in two ways.  This revision
        does not select between them or define encodings.</t>
        <dl newline="true">
          <dt>As an EAP method</dt>
          <dd>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 <xref target="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 (<xref target="iana"/>).  Because
          the EAP server and the AP are the same entity, the "lying
          NAS" problem does not arise.</dd>
          <dt>As a native IEEE 802.11 AKM</dt>
          <dd>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.</dd>
        </dl>
        <t>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.</t>
      </section>
    </section>

    <section anchor="enrollment">
      <name>Enrollment</name>
      <t>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.</t>

      <section anchor="firstreg">
        <name>Registering an Authenticator</name>
        <t>An Authenticator Credential is created with CTAP2
        authenticatorMakeCredential using RPID as the relying party
        identifier.  Since browsers will not use such an identifier
        (<xref target="netid"/>), registration cannot be done from a Web
        page served by the AP.  Two procedures are defined.</t>
        <dl newline="true">
          <dt>Direct</dt>
          <dd>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.</dd>
          <dt>In-band</dt>
          <dd>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.</dd>
        </dl>
        <t>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.</t>
        <t>The AP SHOULD refuse to enter Required mode until at least
        two Authenticators are registered (see
        <xref target="recovery"/>).  Attestation is not required;
        stations and APs SHOULD request attestation conveyance "none",
        which is sufficient for this purpose and avoids disclosing the
        Authenticator model.</t>
      </section>

      <section anchor="pinning">
        <name>Pinning the Network Identity Key</name>
        <t>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:</t>
        <ol>
          <li>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.</li>
          <li>In band, during a registration or enrollment window, with
          the key authenticated by the same short authentication string
          comparison as above.</li>
          <li>From another of the user's devices, through a platform
          credential synchronization facility, if the user has opted in
          to one.</li>
        </ol>
        <t>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.</t>
      </section>

      <section anchor="devenroll">
        <name>Enrolling a Station</name>
        <t>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.</t>
        <ol>
          <li>The station generates a Device Credential key pair
          (DK).</li>
          <li>The station and AP run Phases 1 and 2a.</li>
          <li>The station requests an assertion as in
          <xref target="assertion"/>, but with clientDataHash set
          to:</li>
        </ol>
        <artwork><![CDATA[
   SHA-256( "wlan-mfa v1 enroll device" || 0x00 ||
            NetID || N_ap || N_sta || CB ||
            SHA-256( SubjectPublicKeyInfo of DK ) )
]]></artwork>
        <ol start="4">
          <li>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.</li>
          <li>The AP verifies the assertion as in
          <xref target="assertion"/> 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.</li>
        </ol>
        <t>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.</t>
        <t>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.</t>
      </section>

      <section anchor="recovery">
        <name>Revocation and Recovery</name>
        <t>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.</t>
        <t>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.</t>
        <t>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.</t>
      </section>
    </section>

    <section anchor="deployment">
      <name>Deployment and Backward Compatibility</name>

      <section anchor="modes">
        <name>Access Point Modes</name>
        <dl newline="true">
          <dt>Disabled</dt>
          <dd>The mechanism is not advertised.  Behavior is unchanged
          from today.  This is the default.</dd>
          <dt>Required</dt>
          <dd>The AP completes authentication only through the exchange
          in <xref target="protocol"/>.  The network password alone
          admits no one.  This is the only mode that achieves G1.</dd>
          <dt>Transition</dt>
          <dd>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.</dd>
        </dl>
      </section>

      <section anchor="downgrade">
        <name>Station Behavior and Downgrade Protection</name>
        <t>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:</t>
        <ul>
          <li>MUST NOT associate using any AKM that does not perform the
          exchange in <xref target="protocol"/>, regardless of what the
          AP advertises;</li>
          <li>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;</li>
          <li>MUST NOT remove the protection in response to anything
          received from the network; it is removed only by the user
          deleting the profile.</li>
        </ul>
        <t>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.</t>
        <t>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 (<xref target="recovery"/>).</t>
      </section>

      <section anchor="legacy">
        <name>Devices That Cannot Participate</name>
        <t>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.</t>
        <t>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.</t>
        <t>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 <xref target="devenroll"/>, 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 <xref target="DPP"/>) and are
        left to a future revision.</t>
      </section>

      <section anchor="roaming">
        <name>Reconnection, Caching, and Multiple Access Points</name>
        <t>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.</t>
        <t>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.</t>
      </section>
    </section>

    <section anchor="security">
      <name>Security Considerations</name>
      <t>This entire document concerns security.  This section reviews
      the goals of <xref target="goals"/> against the design and records
      what is not achieved.</t>

      <section anchor="analysis">
        <name>Analysis Against the Goals</name>
        <dl newline="true">
          <dt>G1 (access)</dt>
          <dd>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
          (<xref target="devenroll"/>), physical access to the AP, or
          owner confirmation of a short authentication string
          (<xref target="firstreg"/>); none follows from the
          password.</dd>
          <dt>G2 (impersonation)</dt>
          <dd>A station with a protected profile proceeds only after
          verifying SIG_ap, which requires the Network Identity private
          key.</dd>
          <dt>G3 (relay)</dt>
          <dd>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.</dd>
          <dt>G4 (scope)</dt>
          <dd>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.</dd>
          <dt>G5 (downgrade)</dt>
          <dd>Enforced by station policy (<xref target="downgrade"/>),
          which the network cannot alter.  Negotiation of the AKM is not
          relied upon.</dd>
          <dt>G6 (password)</dt>
          <dd>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.</dd>
        </dl>
        <t>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.</t>
      </section>

      <section anchor="residual">
        <name>Residual Risks</name>
        <dl newline="true">
          <dt>Compromised station</dt>
          <dd>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.</dd>
          <dt>Lost or stolen station or Authenticator</dt>
          <dd>Possession plus the password grants access until the
          credential is revoked.  Requiring user verification on the
          Authenticator narrows this for stolen Authenticators.</dd>
          <dt>Administrative interface</dt>
          <dd>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
          <xref target="legacy"/>, 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.</dd>
          <dt>Social engineering of enrollment</dt>
          <dd>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.</dd>
          <dt>Transition mode and legacy networks</dt>
          <dd>As stated in <xref target="modes"/> and
          <xref target="legacy"/>, neither protects against a disclosed
          password.  A network left in Transition mode indefinitely has
          gained the appearance of this mechanism without G1.</dd>
          <dt>Denial of service</dt>
          <dd>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.</dd>
          <dt>Unexpected Authenticator prompts</dt>
          <dd>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.</dd>
          <dt>Implementation side channels</dt>
          <dd>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.</dd>
          <dt>Cryptographic agility</dt>
          <dd>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.</dd>
        </dl>
      </section>
    </section>

    <section anchor="privacy">
      <name>Privacy Considerations</name>
      <t>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.</t>
      <t>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.</t>
      <t>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.</t>
    </section>

    <section anchor="iana">
      <name>IANA Considerations</name>
      <t>This document has no IANA actions.</t>
      <t>If the EAP transport binding of <xref target="bindings"/> 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".</t>
    </section>
  </middle>

  <back>
    <references>
      <name>References</name>
      <references>
        <name>Normative References</name>

        <reference anchor="RFC2119" target="https://www.rfc-editor.org/info/rfc2119">
          <front>
            <title>Key words for use in RFCs to Indicate Requirement Levels</title>
            <author initials="S." surname="Bradner" fullname="S. Bradner"/>
            <date month="March" year="1997"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="2119"/>
          <seriesInfo name="DOI" value="10.17487/RFC2119"/>
        </reference>

        <reference anchor="RFC8174" target="https://www.rfc-editor.org/info/rfc8174">
          <front>
            <title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title>
            <author initials="B." surname="Leiba" fullname="B. Leiba"/>
            <date month="May" year="2017"/>
          </front>
          <seriesInfo name="BCP" value="14"/>
          <seriesInfo name="RFC" value="8174"/>
          <seriesInfo name="DOI" value="10.17487/RFC8174"/>
        </reference>

        <reference anchor="RFC5116" target="https://www.rfc-editor.org/info/rfc5116">
          <front>
            <title>An Interface and Algorithms for Authenticated Encryption</title>
            <author initials="D." surname="McGrew" fullname="D. McGrew"/>
            <date month="January" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5116"/>
          <seriesInfo name="DOI" value="10.17487/RFC5116"/>
        </reference>

        <reference anchor="RFC5280" target="https://www.rfc-editor.org/info/rfc5280">
          <front>
            <title>Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile</title>
            <author initials="D." surname="Cooper" fullname="D. Cooper"/>
            <author initials="S." surname="Santesson" fullname="S. Santesson"/>
            <author initials="S." surname="Farrell" fullname="S. Farrell"/>
            <author initials="S." surname="Boeyen" fullname="S. Boeyen"/>
            <author initials="R." surname="Housley" fullname="R. Housley"/>
            <author initials="W." surname="Polk" fullname="W. Polk"/>
            <date month="May" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5280"/>
          <seriesInfo name="DOI" value="10.17487/RFC5280"/>
        </reference>

        <reference anchor="RFC5869" target="https://www.rfc-editor.org/info/rfc5869">
          <front>
            <title>HMAC-based Extract-and-Expand Key Derivation Function (HKDF)</title>
            <author initials="H." surname="Krawczyk" fullname="H. Krawczyk"/>
            <author initials="P." surname="Eronen" fullname="P. Eronen"/>
            <date month="May" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="5869"/>
          <seriesInfo name="DOI" value="10.17487/RFC5869"/>
        </reference>

        <reference anchor="RFC4648" target="https://www.rfc-editor.org/info/rfc4648">
          <front>
            <title>The Base16, Base32, and Base64 Data Encodings</title>
            <author initials="S." surname="Josefsson" fullname="S. Josefsson"/>
            <date month="October" year="2006"/>
          </front>
          <seriesInfo name="RFC" value="4648"/>
          <seriesInfo name="DOI" value="10.17487/RFC4648"/>
        </reference>

        <reference anchor="RFC9053" target="https://www.rfc-editor.org/info/rfc9053">
          <front>
            <title>CBOR Object Signing and Encryption (COSE): Initial Algorithms</title>
            <author initials="J." surname="Schaad" fullname="J. Schaad"/>
            <date month="August" year="2022"/>
          </front>
          <seriesInfo name="RFC" value="9053"/>
          <seriesInfo name="DOI" value="10.17487/RFC9053"/>
        </reference>

        <reference anchor="CTAP2" target="https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html">
          <front>
            <title>Client to Authenticator Protocol (CTAP)</title>
            <author>
              <organization>FIDO Alliance</organization>
            </author>
            <date month="June" year="2021"/>
          </front>
          <refcontent>FIDO Alliance Proposed Standard, Version 2.1</refcontent>
        </reference>

        <reference anchor="WEBAUTHN" target="https://www.w3.org/TR/webauthn-2/">
          <front>
            <title>Web Authentication: An API for accessing Public Key Credentials Level 2</title>
            <author>
              <organization>World Wide Web Consortium</organization>
            </author>
            <date month="April" year="2021"/>
          </front>
          <refcontent>W3C Recommendation</refcontent>
        </reference>
      </references>

      <references>
        <name>Informative References</name>

        <reference anchor="RFC3748" target="https://www.rfc-editor.org/info/rfc3748">
          <front>
            <title>Extensible Authentication Protocol (EAP)</title>
            <author initials="B." surname="Aboba" fullname="B. Aboba"/>
            <author initials="L." surname="Blunk" fullname="L. Blunk"/>
            <author initials="J." surname="Vollbrecht" fullname="J. Vollbrecht"/>
            <author initials="J." surname="Carlson" fullname="J. Carlson"/>
            <author initials="H." surname="Levkowetz" fullname="H. Levkowetz" role="editor"/>
            <date month="June" year="2004"/>
          </front>
          <seriesInfo name="RFC" value="3748"/>
          <seriesInfo name="DOI" value="10.17487/RFC3748"/>
        </reference>

        <reference anchor="RFC5247" target="https://www.rfc-editor.org/info/rfc5247">
          <front>
            <title>Extensible Authentication Protocol (EAP) Key Management Framework</title>
            <author initials="B." surname="Aboba" fullname="B. Aboba"/>
            <author initials="D." surname="Simon" fullname="D. Simon"/>
            <author initials="P." surname="Eronen" fullname="P. Eronen"/>
            <date month="August" year="2008"/>
          </front>
          <seriesInfo name="RFC" value="5247"/>
          <seriesInfo name="DOI" value="10.17487/RFC5247"/>
        </reference>

        <reference anchor="RFC5931" target="https://www.rfc-editor.org/info/rfc5931">
          <front>
            <title>Extensible Authentication Protocol (EAP) Authentication Using Only a Password</title>
            <author initials="D." surname="Harkins" fullname="D. Harkins"/>
            <author initials="G." surname="Zorn" fullname="G. Zorn"/>
            <date month="August" year="2010"/>
          </front>
          <seriesInfo name="RFC" value="5931"/>
          <seriesInfo name="DOI" value="10.17487/RFC5931"/>
        </reference>

        <reference anchor="RFC7664" target="https://www.rfc-editor.org/info/rfc7664">
          <front>
            <title>Dragonfly Key Exchange</title>
            <author initials="D." surname="Harkins" fullname="D. Harkins" role="editor"/>
            <date month="November" year="2015"/>
          </front>
          <seriesInfo name="RFC" value="7664"/>
          <seriesInfo name="DOI" value="10.17487/RFC7664"/>
        </reference>

        <reference anchor="I-D.ietf-emu-eap-fido" target="https://datatracker.ietf.org/doc/draft-ietf-emu-eap-fido/">
          <front>
            <title>EAP-FIDO</title>
            <author initials="J." surname="Rieckers" fullname="Jan-Frederik Rieckers"/>
            <author initials="S." surname="Winter" fullname="Stefan Winter"/>
            <date/>
          </front>
          <refcontent>Work in Progress, Internet-Draft, draft-ietf-emu-eap-fido</refcontent>
        </reference>

        <reference anchor="I-D.irtf-cfrg-cpace" target="https://datatracker.ietf.org/doc/draft-irtf-cfrg-cpace/">
          <front>
            <title>CPace, a balanced composable PAKE</title>
            <author initials="M." surname="Abdalla" fullname="Michel Abdalla"/>
            <author initials="B." surname="Haase" fullname="Bjoern Haase"/>
            <author initials="J." surname="Hesse" fullname="Julia Hesse"/>
            <date/>
          </front>
          <refcontent>Work in Progress, Internet-Draft, draft-irtf-cfrg-cpace</refcontent>
        </reference>

        <reference anchor="IEEE80211">
          <front>
            <title>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</title>
            <author>
              <organization>IEEE</organization>
            </author>
            <date year="2020"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.11-2020"/>
        </reference>

        <reference anchor="IEEE8021X">
          <front>
            <title>IEEE Standard for Local and Metropolitan Area Networks -- Port-Based Network Access Control</title>
            <author>
              <organization>IEEE</organization>
            </author>
            <date year="2020"/>
          </front>
          <seriesInfo name="IEEE Std" value="802.1X-2020"/>
        </reference>

        <reference anchor="WPA3" target="https://www.wi-fi.org/discover-wi-fi/security">
          <front>
            <title>WPA3 Specification</title>
            <author>
              <organization>Wi-Fi Alliance</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="DPP" target="https://www.wi-fi.org/discover-wi-fi/wi-fi-easy-connect">
          <front>
            <title>Wi-Fi Easy Connect Specification</title>
            <author>
              <organization>Wi-Fi Alliance</organization>
            </author>
            <date/>
          </front>
        </reference>

        <reference anchor="NIST80063B" target="https://doi.org/10.6028/NIST.SP.800-63B-4">
          <front>
            <title>Digital Identity Guidelines: Authentication and Authenticator Management</title>
            <author>
              <organization>National Institute of Standards and Technology</organization>
            </author>
            <date year="2025"/>
          </front>
          <seriesInfo name="NIST SP" value="800-63B-4"/>
        </reference>
      </references>
    </references>

    <section anchor="changes" numbered="false">
      <name>Changes from -00</name>
      <t>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:</t>
      <ul>
        <li>Removed the first-person narrative; added terminology and
        requirements language.</li>
        <li>Generalized from a named product to FIDO2 authenticators.
        The draft name is retained for continuity.</li>
        <li>Added a problem statement, a comparison with SAE, SAE-PK,
        Wi-Fi Easy Connect, WPA3-Enterprise, and EAP-FIDO, and a
        statement of scope relative to IEEE 802.11 and the Wi-Fi
        Alliance.</li>
        <li>Added an explicit threat model and security goals.</li>
        <li>Showed that the -00 sequence ("password first, then insert
        the key") is open to relay and to AP impersonation by an
        attacker who has the password, and added channel binding, AP
        authentication with a pinned Network Identity Key, and station
        downgrade policy to address this.</li>
        <li>Defined the relying party identifier, key schedule, signed
        values, and verification steps.</li>
        <li>Introduced Device Credentials so that a key touch is needed
        to enroll a device and not on every reconnection.</li>
        <li>Replaced the -00 setup steps with registration, pinning,
        station enrollment, revocation, and recovery procedures.</li>
        <li>Replaced the -00 backward compatibility text with AP modes,
        and stated that a mixed mode does not protect the network.</li>
        <li>Expanded Security Considerations; added Privacy
        Considerations and references.</li>
      </ul>
    </section>

    <section anchor="open" numbered="false">
      <name>Open Issues</name>
      <ul>
        <li>Choice of transport binding, and octet-level message
        formats.</li>
        <li>Choice of PAKE for the EAP binding, and whether an
        augmented PAKE is worth its cost given that the password is no
        longer the sole factor.</li>
        <li>Companion enrollment for devices without a user
        interface.</li>
        <li>Synchronization of the Network Identity Key and enrollment
        database across multiple APs.</li>
        <li>Whether NetID should be discoverable before authentication,
        and the privacy cost of that.</li>
        <li>Formal analysis of the composed protocol.</li>
        <li>Whether this work belongs in the IETF, in IEEE 802.11, or in
        both with a liaison.</li>
      </ul>
    </section>
  </back>
</rfc>
