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

WPA2 Architecture and 4-Way Handshake

Understanding WPA2's security architecture, TKIP vs CCMP, and the four-way handshake for key establishment.

WPA2 Architecture and 4-Way Handshake

What you'll learn: How WPA2 secures wireless networks through its architecture and establishes encryption keys using the four-way handshake process.

WPA2 Security Architecture

WPA2 (Wi-Fi Protected Access 2) is the security protocol that protects modern wireless networks. At its core, WPA2 uses 802.1X authentication for enterprise networks or a Pre-Shared Key (PSK) for home networks. The architecture relies on:

  • TKIP (Temporal Key Integrity Protocol): The older encryption method, now deprecated due to vulnerabilities
  • CCMP (Counter Mode with CBC-MAC Protocol): The modern standard using AES encryption, providing strong confidentiality and integrity

Think of CCMP as a vault with rotating combination codes—each data packet gets encrypted with temporary keys that change constantly, making interception nearly useless.

The Four-Way Handshake

The four-way handshake is how your device and the wireless access point establish encryption keys without transmitting them over the air. Here's the simplified flow:

  1. Message 1: Access point sends a random number (ANonce) to your device
  2. Message 2: Your device generates its own random number (SNonce) and combines it with the PSK and both random values to create a Pairwise Transient Key (PTK), then sends SNonce back with verification
  3. Message 3: Access point creates the same PTK using the same ingredients, confirms everything matches, and sends the Group Temporal Key (GTK) for broadcast traffic
  4. Message 4: Your device acknowledges receipt, and encrypted communication begins

Both sides now have matching encryption keys without ever transmitting them—they each independently calculated them using shared secrets.

Key Takeaway: WPA2 with CCMP/AES provides strong wireless security through sophisticated key derivation, where the four-way handshake allows both parties to prove knowledge of the password and independently generate matching encryption keys without exposing them to attackers.