Course contentsShow
← Security
Lesson 525 of 3,05212. Network Security - WirelessFree lesson

PMKID Attack on WPA2

Explore clientless attacks extracting PMKID from access point beacon frames for offline cracking.

PMKID Attack on WPA2

You'll learn how attackers can crack WPA2 passwords without waiting for clients to connect.

The Traditional Problem (Solved)

In the previous lesson, you learned about WPA/WPA2 PSK attacks that required capturing the 4-way handshake between a client and access point. This meant attackers had to wait for a device to connect, or force a deauthentication to capture the handshake.

What Is PMKID?

The PMKID (Pairwise Master Key Identifier) is a value included in the first frame of the 4-way handshake, called the Robust Security Network Information Element (RSN IE) in certain beacon and association frames.

Think of PMKID as a receipt the access point hands out that contains ingredients derived from the network password. It's calculated as:

PMKID = HMAC-SHA1-128(PMK, "PMK Name" | MAC_AP | MAC_STA)

Where PMK (Pairwise Master Key) is derived directly from the WPA2 passphrase.

The Clientless Attack

Here's the breakthrough: an attacker can request the PMKID directly from the access point without any client connected. By sending a single association frame, the AP responds with the PMKID. The attacker then takes this hash offline and uses tools like hashcat to perform dictionary or brute-force attacks against it—just like cracking a captured handshake, but without needing any legitimate client activity.

This attack is stealthier (no deauth attacks) and faster to initiate (no waiting for clients).

Why It Works

Many access points include PMKID in their responses by default for roaming optimization. Not all APs are vulnerable, but enough are to make this a significant threat.

Key Takeaway: The PMKID attack exploits WPA2 access points that leak password-derived hashes in clientless association frames, enabling offline cracking without capturing a full 4-way handshake.