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

KRACK Attack and WPA2 Vulnerabilities

Analyzing the Key Reinstallation Attack that exploits the 4-way handshake to decrypt traffic.

KRACK Attack and WPA2 Vulnerabilities

What you'll learn: How attackers exploit the WPA2 4-way handshake to decrypt wireless traffic using key reinstallation attacks.

The Key Reinstallation Attack (KRACK)

Remember the WPA2 4-way handshake that establishes secure connections? KRACK exploits a flaw in how this handshake handles encryption keys during the final stages.

Think of it like a security guard checking your ID. During the 4-way handshake, your device and the access point exchange messages to prove they both know the password. Once verified, they install a fresh encryption key to protect your traffic. However, if the access point doesn't receive the final confirmation message, it resends message 3—and here's the problem: your device reinstalls the same key again, resetting its counter to zero.

Why Key Reinstallation Is Devastating

Encryption relies on never reusing the same key with the same counter value. When a key is reinstalled, the counter resets, causing the same keystream to encrypt different data. An attacker can:

  • Capture retransmitted packets with the same keystream
  • Decrypt traffic by comparing encrypted packets
  • Inject malicious packets into the network
  • Hijack connections by manipulating data

The attack doesn't require cracking the Wi-Fi password—it exploits the handshake protocol itself, affecting nearly all WPA2 implementations.

Real-World Impact

KRACK particularly impacts Android and Linux devices, where entire sessions could be decrypted. Even WPA2-Enterprise networks are vulnerable, since the flaw exists in the protocol standard, not just pre-shared keys.

Key Takeaway: KRACK exploits the WPA2 4-way handshake by forcing clients to reinstall encryption keys, resetting counters and allowing attackers to decrypt traffic without knowing the network password—patches require updating both clients and access points.