skip to content

Your team must set SAE defaults for a router firmware line after the 2019 Dragonblood findings — how do you choose the PWE mode, groups and patch policy?

level: principalimportance: nice to knowfreq 9%

answer

  1. what the 2019 findings were
  2. loop removed versus loop hardened
  3. group 19 is universal
  4. older clients on 2.4 and 5 GHz
  5. SAE code as security-critical

basics

~20 s

Treat Dragonblood as an implementation lesson: ship patched, constant-time SAE code, enable hash-to-element (both methods on 2.4/5 GHz unless the fleet allows H2E-only, H2E on 6 GHz), keep group 19 as the default, and commit to security updates.

solid answer

~50 s

The 2019 findings published as **Dragonblood** showed that SAE implementations leaked password-dependent **timing and cache behaviour** from the hunting-and-pecking loop, and that negotiation could be pushed toward weaker options; the fixes were constant-time code, stricter group rules and, later, **hash-to-element (H2E)**. So the defaults: start from a current release (in hostapd, the reference implementation, 2.8 fixed CVE-2019-9494, 2.9 and 2.10 added side-channel protections, 2.10 added H2E). Ship `sae_pwe=2` on 2.4 and 5 GHz so H2E-capable clients use it while older ones still join, and move to `sae_pwe=1` only when the supported client base allows; 6 GHz uses H2E regardless. Keep `sae_groups` at 19, which every implementation must support, and add 20 or 21 only for a stated need. The decision with no single answer is how long to carry hunting-and-pecking for older clients, and that depends on the update channel you can promise.

code

ini · 12 lines
ini
# hostapd.conf - WPA3-Personal-only SSID, product default (5 GHz)
ssid=home-example
wpa=2
wpa_key_mgmt=SAE
rsn_pairwise=CCMP
sae_password=example-placeholder-passphrase
ieee80211w=2
# both PWE methods: H2E for capable clients, hunting-and-pecking for older ones
sae_pwe=2
# the group every SAE implementation must support
sae_groups=19
anti_clogging_threshold=5

go deeper

for a junior

Recall that the 2019 findings were about how some devices implemented SAE, and that updates and hash-to-element are the fix.

for a middle

Explain the side-channel class at concept level and map each hostapd setting, sae_pwe and sae_groups, to the risk it addresses.

for a senior

Verify a product's posture: check the SAE stack's release, the PWE mode per band, the enabled groups and whether clients actually negotiate H2E.

for a principal

Own the trade: how long hunting-and-pecking is carried for older clients, and the security-update commitment that makes that acceptable.

## What the 2019 findings were, at concept level In 2019 researchers published a set of weaknesses in WPA3-Personal implementations under the name **Dragonblood**. For a team setting product defaults, what matters is the class of flaw and its fix: - **Side channels in the password-element loop.** In hunting-and-pecking, the work needed to find the password element depends on the password and the two MAC addresses. Implementations that did not hide this leaked it through **timing** or through **memory-access (cache) patterns**, which could narrow down the password. The protocol's minimum-iteration rule was not enough on its own; constant-time code was needed. - **Weak or unsuitable groups.** Some groups offered too little security or were harder to implement without leaks, and implementation guidance told implementations to reject them. - **Downgrade toward weaker options**, including a weaker group during negotiation. (The separate downgrade exposure of running WPA2 and WPA3 side by side on one SSID belongs to the material on transition mode.) The hostapd ChangeLog, for the open-source reference implementation, records the defender's response: | Release | SAE change relevant to defaults | |---|---| | 2.8 (2019-04-21) | Minimised timing and memory-use differences in PWE derivation (CVE-2019-9494); default changed to group 19 only; unsuitable groups rejected | | 2.9 (2019-08-07) | Groups using Brainpool curves disabled; improved side-channel protection | | 2.10 (2022-01-16) | Further side-channel protection; hash-to-element added (`sae_pwe=1` or `2`) | | 2.11 (2024-07-20) | H2E rejected-groups validation fixed "to avoid downgrade attacks" | | 2.12 (2026-08-07) | H2E mandated with password identifiers | ## Decision 1: which code you ship The flaws were in code, so the first default is a current, patched SAE implementation on a constant-time cryptographic library. A firmware line that ships an SAE stack from before 2.8-level fixes may carry the 2019 problems regardless of configuration. This is the least negotiable decision. ## Decision 2: the PWE mode per band hostapd's `sae_pwe` selects the method: `0` hunting-and-pecking only (hostapd's default without a password identifier), `1` hash-to-element only, `2` both. - **6 GHz** (Wi-Fi 6E and Wi-Fi 7): no choice — SAE uses H2E only there, and hostapd enables H2E on a 6 GHz BSS by itself. - **2.4 and 5 GHz, `sae_pwe=2`**: H2E-capable clients use H2E; older clients still join with hunting-and-pecking, protected only by the patched loop. - **2.4 and 5 GHz, `sae_pwe=1`**: removes the loop from the attack surface entirely, but clients without H2E cannot authenticate. The judgement: a product sold into homes with unknown older clients usually ships `2`; a product sold into managed estates with a known client fleet can ship `1`. Either way, write down when the default moves. ## Decision 3: groups - `sae_groups=19` (hostapd's default when unset): group 19 (elliptic curve, NIST P-256) is the group every SAE implementation must support, so it interoperates universally. - Adding **groups 20 or 21** (larger elliptic curves) costs CPU on every exchange — significant on a low-end router — and buys nothing if clients use 19 anyway. hostapd 2.12 enables group 20 by default when the newer SAE-EXT-KEY AKM is enabled. - **Do not** enable the groups hostapd.conf says should not be used in production because of limited security (1, 2, 5, 22, 23 and 24). ## Decision 4: load and monitoring defaults - Keep anti-clogging on; tune `anti_clogging_threshold` (default 5) to the CPU, so a burst of Commits cannot starve legitimate stations. - Log SAE failures per station so online guessing is visible to the owner. ## Decision 5: the patch promise SAE code proved security-critical: side-channel fixes landed across several releases, and a downgrade-related fix arrived as late as 2.11. A firmware line needs a security-update channel for its supported life. That promise decides how long `sae_pwe=2` is acceptable: carrying hunting-and-pecking for old clients is defensible while you can keep patching it. ## A defensible default set - Current, patched SAE stack. - `sae_pwe=2` on 2.4 and 5 GHz, H2E on 6 GHz, with a dated plan for `sae_pwe=1`. - `sae_groups=19`. - Anti-clogging tuned to the hardware; SAE failures logged. - WPA3-Personal-only SSIDs where the client base allows (hostapd: `ieee80211w=2` with `wpa_key_mgmt=SAE`). The reasoning, not the list, is what an interviewer wants: the flaws were in implementations, so code quality and updates come first; H2E removes the vulnerable loop; and the compatibility cost decides how fast you get there.

  • When would you move a product line's 2.4 and 5 GHz default from sae_pwe=2 to sae_pwe=1?
    When the clients the product must support all implement hash-to-element, which you can measure from your own telemetry of RSNXE capabilities and status 126 Commits. Until then, H2E-only locks out older clients. Moving earlier is reasonable for managed estates with a known fleet; consumer products usually wait and say when.
  • Does enabling larger SAE groups make a home router more secure?
    Rarely in practice. Group 19 is what every client supports, so most exchanges use it anyway, while groups 20 or 21 add CPU cost to each exchange on modest hardware. Extra groups are worth it only for a stated requirement, and the groups hostapd marks as too weak for production stay off.

  • Dragonblood broke SAE's mathematics, so WPA3-Personal should be avoided
  • Configuration alone fixes Dragonblood; old SAE code is fine
  • Enabling every available SAE group always increases security
  • Hash-to-element only can be the default without client-compatibility cost
  • A patched hunting-and-pecking loop and hash-to-element are equally robust

Assumes the Wi-Fi 7 era (802.11be-2024) and hostapd 2.12; 6 GHz requires SAE hash-to-element, and the 2019 fixes landed in hostapd 2.8 to 2.10.