skip to content

KRACK & PMKID Attacks

KRACK is a protocol flaw: a replayed handshake message makes a client reinstall a key and reset the nonce. PMKID shows offline guessing needs no client. Interviewers ask who is exposed.

on this pageshow

explore

questions

6

What went wrong in WPA2's four-way handshake in the 2017 key reinstallation (KRACK) disclosure, and why did fixing it not need a new protocol?

level: juniorimportance: must knowfreq 58%

answer

  1. a key installed more than once
  2. message 3 sent again
  3. counters return to their start
  4. the formal proofs left a step out

basics

~20 s

In WPA2's four-way handshake, a client reinstalled the same key whenever message 3 was retransmitted, resetting its nonce and replay counter. Patches install a key only once and stay compatible, so no new protocol was needed.

solid answer

~30 s

The four-way handshake negotiates a fresh pairwise key, and the client installs it when message 3 arrives. Access points retransmit message 3 when they miss the reply, and the standard let a client install the key again on every copy. Each installation resets the transmit packet number (the nonce) and the receive replay counter, so nonces repeat under one key. The fault is in the standard's design, not one product. Patches make a key install exactly once and send the same messages at the same moments, so patched and unpatched devices interoperate and WPA3 was not required.

go deeper

for a junior

Recall that KRACK was a flaw in the WPA2 handshake fixed by patches, and that it made a client reinstall a key it was already using.

for a middle

Explain that message 3 can be retransmitted, that each installation resets the nonce and the replay counter, and why formal proofs of the handshake missed it.

for a senior

Separate the design flaw from the implementation outcome such as the all-zero key, and state that patched and unpatched devices interoperate while both sides need the fix.

for a principal

Frame it as a lesson that a protocol proof must model key installation, and that the remedy was backwards-compatible patching rather than a new protocol generation.

## What the weakness is WPA2 protects each client's traffic with a fresh **pairwise key** negotiated in the **four-way handshake**, a four-message EAPOL-Key exchange between a client and an access point. The client installs that key into its Wi-Fi hardware after it receives **message 3**. Because radio frames get lost, the access point retransmits message 3 if it does not see the reply (message 4), so a client can legitimately receive message 3 more than once. The flaw published in 2017 is that the standard let a client act on every copy: it **installed the same key again**. Installing a key also initialises the counters that belong to it: - the **transmit packet number**, which the encryption protocol uses as its nonce, goes back to its starting value; - the **receive packet number**, the replay counter, goes back to its starting value too. A key must only be installed and used once. After a reinstallation the client sends new frames under a key with nonces it has already used, and it will accept frames whose numbers it had already moved past. ## A design flaw, not one vendor's bug The advisory states that the weaknesses are in the Wi-Fi standard itself and not in individual products, so any correct implementation of WPA2 is likely affected. It was published in 2017 by Mathy Vanhoef of imec-DistriNet, KU Leuven, and CVE-2017-13077 to CVE-2017-13088 track its instances. The four-way handshake had been analysed formally and judged secure, and the advisory explains why that did not help: the proofs establish that the negotiated key stays private and that both parties are who they claim to be, but the models never defined **when a negotiated key is installed**. Those proven properties remain true. The flaw sits in a step nobody had modelled. ## What it put at risk | Item | What the advisory and the CVE records state | |---|---| | Wi-Fi passphrase | Not recovered by these attacks | | Fresh pairwise key | Not recovered either | | Traffic under a reinstalled key | Frames can be replayed and decrypted; with TKIP or GCMP the advisory adds forging | | Networks | WPA and WPA2, Personal and Enterprise, any cipher suite | The CVE record for the pairwise key in the four-way handshake describes an attacker within radio range who can "replay, decrypt, or spoof frames". Keep this apart from attacks on the passphrase: nothing here reveals the Wi-Fi password. ## Why a patch is enough Because the problem is when a key is installed, the fix is to **install a key only once**: a patched device ignores the repeat instead of reinstalling. It still sends exactly the same handshake messages at the same moments, which is why patched and unpatched devices keep working together in both directions. That is the advisory's answer to "Do we now need WPA3?": no, because implementations can be patched in a backwards-compatible manner. The caveat is the advisory's own: both the client and the access point must be patched to defend against all the attacks. ## What the operator does 1. Inventory the client platforms and their supplicants and ask each vendor for the fix; clients are the main exposure. 2. Check the access points: the advisory says an access point is vulnerable only if it supports the fast transition handshake or client (repeater) functionality. 3. For a client that cannot be updated, narrow the exposure with an access-point-side workaround that removes handshake retransmissions, accepting the robustness cost. 4. Do not retreat to WEP: the advisory's Q&A answers "Should I temporarily use WEP?" with an emphatic no. 5. Do not rely on changing the passphrase, which the advisory says neither prevents nor mitigates the attack. ## How it shows Key reinstallation can happen by accident. If the last message of a handshake is lost to background noise, the retransmission of the previous message can make a client reinstall a key and reuse nonces with nobody hostile nearby. The advisory describes no operator-visible signal for a reinstallation, so exposure is established by vendor statements and testing (the advisory reports a Wi-Fi Alliance plan to require testing in its certification labs), not by watching logs.

  • The key stays secret in a key reinstallation, so why do the reset counters still matter?
    Security of the encryption protocols depends on a nonce never repeating under one key and on the replay counter rejecting old frames. A reset breaks both while the key is unchanged, so keystream is reused and old frames can be accepted. The advisory says the research did not recover the passphrase or the fresh key.
  • Why were Android and Linux clients singled out in the advisory?
    A client using wpa_supplicant 2.4 and above installed an all-zero key when it received the retransmitted message 3, and Android 6.0 and higher use wpa_supplicant. The advisory says this appears to follow a remark in the standard suggesting the key be cleared from memory after first installation. It is a client-side outcome that needs a client update.
  • Can a key reinstallation happen without anyone attacking the network?
    Yes. The advisory notes that if the last message of a handshake is lost to background noise, the retransmission of the previous message can cause a reinstallation and nonce reuse with no adversary present. That is why the problem is treated as a protocol correctness flaw and not only a hostile-radio problem.

A shop issues numbered single-use vouchers and a clerk keeps the count of the last one honoured. If the clerk restarts the count whenever a till slip is reprinted, vouchers already used look new again. Reinstalling a key restarts the nonce and replay counters the same way.

  • Says the attack recovers the Wi-Fi passphrase.
  • Says WPA3 is the only way to fix it.
  • Calls it a bug in one vendor's access point.
  • Says AES itself was broken.
  • Suggests switching to WEP until devices are patched.
open as a page

Which networks and cipher suites did the WPA2 key reinstallation flaw affect, and does changing the Wi-Fi passphrase mitigate it?

level: middleimportance: should knowfreq 34%

basics

~10 s

It affected WPA and WPA2, Personal and Enterprise, under TKIP, CCMP and GCMP alike; TKIP and GCMP were hit hardest. Changing the passphrase does not prevent or mitigate it; updating devices does.

open as a page

An IT team with forty branch sites gets a WPA2 key reinstallation advisory on Monday: which laptops, phones and access points need patches, and is patching only the infrastructure enough?

level: seniorimportance: should knowfreq 22%

basics

~20 s

Patch all clients first, since most are exposed. An access point needs a fix only if it supports fast transition or repeater functions. Patching only infrastructure is not enough: vulnerable clients stay exposed, and patched and unpatched devices still interoperate.

open as a page

A WPA2-Personal audit flags the PMKID in the RSN element: why is that exposure a property of the design, not a patchable bug, and what narrows it?

level: seniorimportance: should knowfreq 16%

basics

~20 s

The PMKID is an identifier derived from the PMK and both addresses, and it is visible by design. It lets a passphrase guess be tested offline without a connected client, so only a stronger passphrase, Enterprise or SAE narrows it.

open as a page

A branch card-terminal gateway on a WPA2 SSID will never get a key reinstallation fix; what do you decide about the gateway, its access points and the accepted risk?

level: principalimportance: should knowfreq 7%

basics

~20 s

Set a retirement date and compensate meanwhile: serve the gateway from access points running hostapd's wpa_disable_eapol_key_retries=1 or an equivalent, accepting reduced robustness. The protection holds only while it is connected to such an access point, so record the residual risk.

open as a page

A scanner lists CVE-2017-13082 against one device and CVE-2017-13087 against another; what do these identifiers say about the flaw, the handshake and the fix?

level: middleimportance: nice to knowfreq 9%

basics

~20 s

Each identifier in the CVE-2017-13077 to 13088 series is one instance of key reinstallation, naming a handshake and a key. CVE-2017-13082 is the fast BSS transition handshake; CVE-2017-13087 is the group key in a WNM sleep mode response.

open as a page