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

WPS PIN Attacks

Learn how WPS design flaws enable PIN brute-forcing in hours instead of years using Reaver and Pixie Dust.

WPS PIN Attacks

What you'll learn: How design flaws in WPS (Wi-Fi Protected Setup) allow attackers to brute-force router PINs in hours instead of the millions of years it should take.


The Design Flaw

WPS was created to simplify Wi-Fi setup by letting users enter an 8-digit PIN instead of a complex password. The fatal flaw: WPS validates the PIN in two halves separately. The router tells you if the first 4 digits are correct before checking the last 4.

This reduces the search space from 100,000,000 possibilities (10^8) to roughly 11,000 possibilities (10^4 for the first half + 10^3 for the second half, since the 8th digit is a checksum). What should take centuries now takes hours.


The Attacks

Reaver exploits this by systematically trying all possible PIN combinations, receiving feedback after each attempt. It methodically walks through the first half until the router responds positively, then attacks the second half.

Pixie Dust is even faster. Many routers generate WPS PINs using weak random number generators with predictable patterns. Pixie Dust attempts to calculate the PIN by exploiting these weak entropy sources, often succeeding in seconds or minutes instead of hours.

Analogy: Imagine a safe that beeps when you get the first 3 numbers right, then lets you keep trying the last 2. That's WPS validation splitting the secret in half.


Why This Matters

Once the WPS PIN is cracked, the attacker recovers the actual WPA2 passphrase—regardless of its complexity. Even a 63-character random password becomes irrelevant if WPS is enabled.

Key Takeaway: WPS PIN attacks exploit authentication protocol design flaws that split validation, enabling brute-force attacks that should be computationally infeasible—disable WPS on all routers to prevent this vector.