Types of Wi-Fi attacks
What types of Wi-Fi attacks are there and how can you take better care of Wi-Fi network security? Find out which attack methods are used against wireless networks and what exactly lies behind names such as rogue access point, Evil Twin and wardriving.
How does Wi-Fi work?
If you use the internet, there is no way you have never connected to it over Wi-Fi. We all do. How does Wi-Fi work? In short, Wi-Fi sends data using radio waves at specific frequencies (for example 2.4 GHz and 5 GHz). Devices that form a wireless network comply with the IEEE 802.11 standards. What can you connect to Wi-Fi?
- Computers,
- phones,
- tablets,
- printers,
- smart TVs,
- game consoles,
- modern smart home appliances (such as a Thermomix).
These devices exchange all kinds of information with each other (including internet data). They communicate by means of radio waves, which are modulated and received by the router. The waves are then interpreted by the receiving devices within a given network.
Attacks on wireless networks
As you can see, this is an open environment, and the 802.11 family of radio protocols operates in an unlicensed band. This means that any potential user, but also any attacker, can tune in to a given frequency without any special tools. This is one of the reasons why Wi-Fi attacks are so common and increasingly frequent. The software most often used for break-ins or security testing is the Aircrack-ng suite, along with automation scripts such as Wifite2 or WEF.
WPS attack
WPS stands for Wi-Fi Protected Setup. It is a feature available on a great many routers, introduced to make connecting new devices to the network as easy as possible. After you press a button on the router and on the device, the two can pair automatically. Another option is setup with a PIN. The result? The PIN can be cracked very easily. Software that breaks the eight-digit code is trivially simple to install, and there are no complicated command-line options to enter.
This makes this type of Wi-Fi attack a piece of cake for attackers, who can gain access to your network and shared hard drives, change router settings or, for example, carry out a Man-in-the-Middle attack.
The pixie dust attack (“magic dust”) exploits weaknesses in the pseudo-random number generator used when the M3 message is encrypted. It allows the PIN to be attacked offline, which in practice means a successful attack takes only a few minutes.
How do you protect yourself against WPS attacks? The only effective way is to turn WPS off in the router settings.
WPA and WPA2 attack
This Wi-Fi attack relies on what is known as a dictionary brute-force attack. When the attacker does not know the PSK, they can capture the data sent during the so-called 4-way handshake. In theory such an attack on WPA/WPA2 is incredibly difficult (given the number of possible keys), but in practice it turns out to be much easier. Why? Because the attacker can guess the length of the key and the characters used in it. Access points supplied by mass-market internet providers usually come with passwords of 8-10 characters made up of digits and letters. A decade ago such passwords were impossible to crack, but today an attacker can get a very powerful graphics card and test even several hundred thousand passwords per second. Testing an entire dictionary therefore takes only a few days of cluster time. A dictionary can be generated with maskprocessor in Kali or found online.
If a dictionary attack fails, an attacker can turn to so-called rainbow tables. They take advantage of collisions in cryptographic hash functions (that is, two different strings of data of any length mapping to the same shorter hash). The attacker can generate a set of hashes for all possible keys and look among them for one that matches the PSK.
How do you protect yourself against WPA/WPA2 attacks? Use the strongest encryption your router supports and passwords longer than 15 characters.
Wi-Fi attack: Rogue Access Point - an untrusted access point
What attacks are used on networks? One of the most popular threats involves a rogue access point, that is, an access point that is not part of the infrastructure. How does this Wi-Fi attack work? The attacker sets up a foreign access point and broadcasts an SSID identical or very similar to that of our home or company network. What does this give them? It makes it very easy to lure unaware users into connecting to the untrusted access point. Then, by skilfully analysing the traffic passing through the access point, the attacker carries out a Wi-Fi attack of the Man-in-the-Middle (MITM) type, in which they can, for example, eavesdrop on the end user's conversations.

Wi-Fi attack: Evil Twin - fake networks
Evil Twin is not a villainous twin from a science-fiction comic but another very popular Wi-Fi attack. It uses a foreign access point that imitates a known network as closely as possible, with a crafted SSID or a fake login page (for example a hotspot portal). What techniques are used to force connections to such a point? There are many. One of them is introducing deliberate interference near known, authorised access points while sending a stronger signal from the attacking device.
What can prevent or minimise the risk of attacks using a rogue access point? How can you strengthen Wi-Fi security? You can use mechanisms such as Rogue AP Detection, which analyse the radio environment around authorised access points and remove any rogue devices broadcasting suspicious Wi-Fi networks. Be sure to also take a look at this post: which WiFi adapter is best for a pentester.

Wardriving - mapping nearby networks
Wardriving is not a Wi-Fi attack as such, but it is a serious threat to wireless networks. It works like this:
- the attacker gets close to a wireless network,
- boosts the signal with tools (for example suitably configured network adapters),
- tries to connect to the network or to share your network with other users or other attackers.
Wardriving takes advantage of unsecured networks within range. For computer enthusiasts it is sometimes a real treat and a sport. All you need is a laptop with a wireless network adapter from Alfa Network, available at the SAPSAN store. Networks are collected most effectively when you have a laptop with an AWUS adapter in the car and a wardriving application (www.kismetwireless.net).
What are the consequences of wardriving? If someone has an open network or an old, vulnerable router, they can become a target, because the location of their network suddenly ends up in a database after someone has mapped and shared it.
Of course, there are many more threats and types of Wi-Fi attacks, such as spoofing, hijacking, smurf attacks and many others. The topic of Wi-Fi network security is also very broad. These are subjects for our future posts.
If you want to explore this topic further, that is, become a Wi-Fi king and test networks with Kali Linux and NetHunter, see the Wi-Fi King course (in Polish).
If you have any questions, we are at your disposal. Or would you rather talk on Discord? Don't be shy.
