In SAE, what do the Commit and Confirm messages carry, in which 802.11 frames do they travel, and what still runs after them?
answer
- before association, not after
- group, scalar, element
- send-confirm and a confirm value
- status codes 76, 77, 126
- PMK feeds the next handshake
basics
~10 sSAE Commit (group, scalar, element) and Confirm (send-confirm counter, confirm value) travel in 802.11 Authentication frames before association; they yield the PMK, and association plus the four-way handshake follow.
solid answer
~40 sSAE uses 802.11 **Authentication** frames with authentication algorithm number 3, in place of open-system authentication. Each side sends a **Commit** carrying the finite cyclic group, a `scalar` and an `element` (plus an anti-clogging token if asked), and the Authentication frame's status code says which variant is in use: 0 for hunting-and-pecking, 126 for hash-to-element. Each side then sends a **Confirm** carrying a `send-confirm` counter and a confirm value computed with the key confirmation key over both Commits, and checks the peer's. Success leaves both holding the same **PMK**. The station then associates, selecting the SAE AKM in its RSN element, and the **four-way handshake** derives the PTK from that PMK. Refusals use status 77 (group not supported) and 76 (anti-clogging token required).
code
pseudocode · 10 lines# SAE between station S and access point A (message level)
S -> A : Auth(alg=SAE, seq=1, status=0|126) Commit{group=19, scalar_S, element_S}
A -> S : Auth(alg=SAE, seq=1, status=0|126) Commit{group=19, scalar_A, element_A}
both : validate peer scalar/element; derive shared secret -> KCK, PMK
S -> A : Auth(alg=SAE, seq=2) Confirm{send_confirm, confirm_S = H_KCK(...)}
A -> S : Auth(alg=SAE, seq=2) Confirm{send_confirm, confirm_A = H_KCK(...)}
both : verify peer confirm -> authenticated, PMK established
S -> A : Association Request (RSN element, AKM = SAE)
A -> S : Association Response
S <-> A: four-way handshake keyed by PMK -> PTK, group keygo deeper
Recall that SAE is two pairs of messages, Commit then Confirm, sent before association, and that the four-way handshake follows.
Explain what each message carries and proves, and how the Authentication frame's status code marks hash-to-element or a refusal.
Read a failed join from the frames: no Association Request means SAE failed, and the status code or a failed Confirm tells you which cause to chase.
Use the frame sequence to set what your monitoring records: SAE failures per station and anti-clogging engagement are the signals worth alerting on.
## Where SAE sits in the join sequence On a WPA3-Personal network the station's join sequence is: discover the network, **authenticate with SAE**, associate, run the four-way handshake. SAE takes the slot that open-system authentication fills on a WPA2 network: it is carried in **802.11 Authentication frames**, with the authentication algorithm field set to **3 (SAE)**, and it completes before any Association Request is sent. Because it is a *simultaneous* exchange between equals, either side may send its Commit first, and each side runs the same state machine. In infrastructure mode the station normally starts. ## The Commit message The Commit is where each side commits to one guess of the password. It carries: - **Finite cyclic group** — the group number, for example 19, the elliptic-curve group every implementation must support; - **Scalar** — `(private + mask) mod q`, from two fresh random numbers; - **Element** — the inverse of `mask` applied to the password element; - an **anti-clogging token**, only when the access point has asked for one. The **status code** field of the Authentication frame also carries meaning: `0` for the classic hunting-and-pecking derivation and `126` (`WLAN_STATUS_SAE_HASH_TO_ELEMENT`) when hash-to-element is in use. Each side validates the peer's scalar and element, then computes the shared secret, and from it the **KCK** (key confirmation key) and the **PMK**. ## The Confirm message The Confirm proves that the sender derived the same keys, and therefore used the same password: - **Send-confirm** — a 16-bit counter that numbers the sender's Confirm attempts; - **Confirm** — a keyed hash using the KCK over the send-confirm value and both sides' scalars and elements. Each side checks the other's Confirm. If it verifies, authentication succeeds; if not, the password did not match and the exchange fails without revealing anything more. In hostapd, the open-source reference access point, the default is to answer a station's Commit with the access point's own Commit only and wait for the station's Confirm; `sae_confirm_immediate=1` makes it send Commit and Confirm together. ## A full trace 1. STA -> AP: Authentication (algorithm SAE, sequence 1) — Commit. 2. AP -> STA: Authentication (algorithm SAE, sequence 1) — Commit. 3. STA -> AP: Authentication (algorithm SAE, sequence 2) — Confirm. 4. AP -> STA: Authentication (algorithm SAE, sequence 2) — Confirm. Both now hold the PMK. 5. STA -> AP: Association Request, RSN element selecting the SAE AKM (`00-0F-AC:8`). 6. AP -> STA: Association Response. 7. Four-way handshake (EAPOL-Key messages 1 to 4) using the SAE PMK, deriving the PTK and delivering the group key. ## Refusals and what they mean | Status code | Name in hostapd's definitions | Meaning for the station | |---|---|---| | 76 | `WLAN_STATUS_ANTI_CLOGGING_TOKEN_REQ` | Resend the Commit, echoing the token the access point supplied | | 77 | `WLAN_STATUS_FINITE_CYCLIC_GROUP_NOT_SUPPORTED` | Retry with another group the access point enables | | 126 | `WLAN_STATUS_SAE_HASH_TO_ELEMENT` | Not a refusal: marks a Commit that uses hash-to-element | The **anti-clogging** mechanism protects the access point's CPU: when too many SAE exchanges are open at once (hostapd's `anti_clogging_threshold`, default 5), the access point asks for a token that the station must echo, which shows the station really receives frames at the address it claims before the access point does the expensive group arithmetic. ## What still runs after SAE SAE produces the PMK and nothing else. Traffic keys come from the **four-way handshake**, which runs after association exactly as on a WPA2 network, but keyed by the PMK that SAE produced instead of one derived from the passphrase. The details of those four messages belong to the material on the four-way handshake; for SAE, the point is the hand-off: - SAE -> PMK (and PMKSA, which can be cached for later reconnection); - association -> agreed AKM and ciphers; - four-way handshake -> PTK and group key installed. ## Why interviewers ask this It separates candidates who know "WPA3 uses SAE" from those who can read a capture: SAE appears as Authentication frames before association, failures show up as status codes in those frames, and a client that never sends an Association Request failed in SAE, not in association or the four-way handshake.
- A WPA3-Personal client shows repeated Authentication frames but never sends an Association Request; where did it fail?In SAE. Commit and Confirm travel in Authentication frames before association, so a client that never associates either failed Confirm verification (most often a wrong passphrase), was refused with a status such as 77 for an unsupported group, or is looping on anti-clogging. The four-way handshake was never reached.
- Why does an access point ask for an anti-clogging token instead of processing every Commit at once?Each Commit costs the access point expensive group arithmetic. When more SAE exchanges are open than its threshold, it answers with status 76 and a token; only a station that receives frames at its claimed address can echo it. That keeps the CPU for real stations under load.
- SAE runs inside EAPOL-Key frames after association
- The Confirm message carries the PMK to the other side
- SAE replaces the four-way handshake, so no EAPOL-Key frames follow
- Status code 77 means the passphrase was wrong
- Only the access point may send the first Commit