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

KRACK Attack on WPA2

Explore key reinstallation attacks manipulating the 4-way handshake to decrypt and inject packets.

KRACK Attack on WPA2

What you'll learn: How the KRACK vulnerability exploits WPA2's 4-way handshake by forcing key reinstallation, allowing attackers to decrypt and inject wireless traffic.

What Is KRACK?

KRACK (Key Reinstallation AttaCK) is a devastating attack against WPA2 discovered in 2017 that breaks the encryption without cracking the password. Instead of attacking the Pre-Shared Key itself, KRACK manipulates the 4-way handshake process to trick the client into reinstalling an already-in-use encryption key.

How Key Reinstallation Works

Think of encryption keys like security seals on packages—each seal should be unique. The 4-way handshake normally ensures fresh encryption keys are negotiated for each session. However, KRACK forces the client to reuse the same key by:

  1. Blocking or replaying specific handshake messages (particularly Message 3 of the 4-way handshake)
  2. Forcing the client to reinstall the Pairwise Transient Key (PTK) it already configured
  3. Resetting the nonce (number used once) and replay counter to zero

When the nonce resets while using the same encryption key, the attacker can:

  • Decrypt packets by exploiting the repeated key stream in protocols like AES-GCMP
  • Inject and manipulate packets into the encrypted stream
  • Forge data as if it came from legitimate devices

Why This Matters

KRACK doesn't require password cracking or brute force—it exploits a protocol design flaw in the WPA2 standard itself. Any device implementing WPA2 was potentially vulnerable, affecting billions of Wi-Fi devices worldwide. The attack is particularly effective against Android and Linux devices.

Key Takeaway: KRACK exploits the WPA2 4-way handshake by forcing key reinstallation, resetting cryptographic nonces and enabling packet decryption and injection—all without needing the network password.