Skip to content
Back to Blog
Security

WiFi Security: Understanding Airdump, the Dangers of Public WiFi, and How to Protect Yourself

A complete guide to WiFi security from both the attacker and defender side, covering airodump-ng, the risks of public WiFi, and practical tips for staying safe on wireless networks.

A
Alif Afriza Author
· · 4 min read
WiFi Security: Understanding Airdump, the Dangers of Public WiFi, and How to Protect Yourself

WiFi is one of the technologies we rely on most in daily life. But most people do not realize how vulnerable wireless networks are to attack. This article will discuss how attackers exploit WiFi security gaps, which tools they use, and how you can protect yourself.

Getting to Know Airodump-ng

Airodump-ng is an 802.11 packet sniffing tool that is part of the Aircrack-ng suite. This tool is designed to capture raw frames from a wireless network, which is crucial for a security audit.

How It Works

When run, airodump-ng puts the wireless adapter into monitor mode, which allows it to capture every packet traveling through the air, not just those addressed to the device itself. This gives you full visibility into all wireless traffic in the surrounding area.

# Install Aircrack-ng
sudo apt update && sudo apt install aircrack-ng

# Check wireless interface
iwconfig

# Enable monitor mode
sudo airmon-ng start wlan0

# Start scanning all networks
sudo airodump-ng wlan0mon

# Specific target (BSSID + channel)
sudo airodump-ng --bssid 00:11:22:33:44:55 -c 6 -w capture wlan0mon

Fields to Pay Attention To

FieldExplanation
BSSIDMAC address of the access point
PWRSignal strength (the higher it is, the closer you are)
ENCEncryption type (WEP, WPA, WPA2, OPN)
CIPHERCipher in use (CCMP, TKIP)
ESSIDNetwork name (SSID)
STATIONMAC address of connected clients

Types of WiFi Attacks

WPA/WPA2 Handshake Capture

The attacker captures the 4-way handshake when a client connects to the AP. This handshake can be attacked offline to brute force the WiFi password.

Evil Twin Attack

The attacker creates a fake AP with the same name as the legitimate WiFi. Any client that connects to the fake AP will route all of its traffic through the attacker.

Deauthentication Attack

The attacker sends deauth packets to the client, disconnecting them from the AP. The client will automatically reconnect, and that is when the handshake is captured.

The Dangers of Public WiFi

Free WiFi at cafes, airports, or hotels is tempting. But behind the convenience lurks a serious threat.

Attacks That Happen Frequently

Man-in-the-Middle (MITM)

The attacker impersonates a WiFi hotspot you recognize. You think you are connecting to “CoffeeShop_Free”, but you are actually connecting to a “CoffeeShop_Free” created by the attacker. All the data you send through this fake hotspot can be read by the attacker.

Packet Sniffing

On unencrypted public WiFi, an attacker can use tools like Wireshark to read all the data you send, including passwords, emails, and messages.

Captive Portal Phishing

You connect to the WiFi, and then a login page appears asking for a username and password. It turns out to be fake, and your credentials have already been stolen.

How to Protect Yourself

  1. Always use a VPN on public WiFi. It encrypts all your traffic.
  2. Make sure HTTPS is used on every website you visit.
  3. Turn off auto-connect to public WiFi in your device settings.
  4. Do not access internet banking or sensitive data on public WiFi.
  5. Use mobile data for important transactions.

WiFi Security Tips at Home

  1. Change the default password on your router. Use a combination of letters, numbers, and symbols with a minimum of 12 characters.
  2. Enable WPA3 if your router supports it. If not, WPA2-AES is the minimum.
  3. Disable WPS (WiFi Protected Setup). This feature is vulnerable to brute force.
  4. Update your router firmware regularly. Vulnerabilities that have already been patched are often left un-updated by users.
  5. Turn off SSID broadcast if it is not needed. This is not 100% secure, but it adds a layer of defense.
  6. Use MAC filtering as an additional layer of security.
  7. Create a guest network for visitors. Do not share your main WiFi password.

Fun Fact: According to a 2025 study, 68% of public WiFi in Indonesia does not use adequate encryption. That means almost all the data you send can be read by an attacker.

Conclusion

WiFi security is not just about setting a strong password. You need to understand how attacks work, which tools attackers use, and the concrete steps you can take to protect yourself. Start with the simple things: turn off auto-connect, use a VPN, and change your router’s default password.

Open for Contributors

Your ideas deserve to be read by thousands of people.

ByteNesia is built for everyone. If you have experience, tutorials, or opinions about technology, write and share them here. Your name will be credited as a contributor.

Write anything: tool reviews, homelab tutorials, security tips, or your tech stories.

Discussion & Comments