Paths / Network Security / Lesson 4

Wi-Fi Security

Video + 10 min read · includes a lab

Office laptop
Office Wi-FiChaiCorp_Office
Router
Person outside
They only see:Encrypted radio data
🔒Radio signal
Wi-Fi Security
0:00 / 6:29 · Wi-Fi Security
Chapters and transcript

Wi-Fi Security Wi-Fi sends your traffic through the air. A laptop in the office sends data to the access point. But the radio signal does not stop at the wall. Someone outside the building can receive it too. You cannot lock Wi-Fi inside a room. In this lesson you will learn how encryption, good passwords and a well set up router keep Wi-Fi safe.

How Wi-Fi security works A Wi-Fi network has a name, called the SSID. Devices connect to an access point, which in most homes is built into the router. Wi-Fi security has two jobs. Authentication: only people with the right password, or the right account, may join. And encryption: traffic in the air is scrambled, so people nearby cannot read it.

How Wi-Fi security works On an open network with no password, there is usually no encryption at all. A user sends a message over an unencrypted connection, and anyone in range with the right tools can read it. A website over HTTPS still protects its content, so the eavesdropper sees only scrambled data. Even so, an open network is a poor choice.

WEP, WPA2 and WPA3 You will see these names in router settings. WEP is broken. It can be cracked in minutes, so never use it. The original WPA used TKIP, now considered weak. WPA2 is still common. It uses strong AES encryption, and it is safe with a long, strong passphrase. WPA3 is the newest standard, with better protection against password guessing. It is recommended.

WEP, WPA2 and WPA3 WPA2 and WPA3 each come in two forms. Personal, also called PSK, means everyone uses the same Wi-Fi password. That is normal for homes and small shops. Enterprise means each user logs in with their own account, checked by a central server. When someone leaves the company, only their account is disabled. Nobody needs to change the Wi-Fi password for everyone.

Offline guessing Why does WPA3 matter? With WPA2-Personal, when a phone joins the network, it exchanges a short set of messages called the handshake. An attacker nearby captures it. Then, on their own computer, they try millions of password guesses, with no more contact with your network. This is an offline attack. A short password like one two three four five six seven eight falls quickly.

Offline guessing WPA3-Personal uses a newer method called SAE, Simultaneous Authentication of Equals. It is designed so that capturing the connection does not allow offline guessing. Each guess needs a live attempt against the network. If older devices lack WPA3, many routers offer a WPA2 and WPA3 mixed mode. In every case, use a long passphrase, at least 12 characters, ideally a few random words.

WPS WPS was made to join a network easily, with a button or an 8-digit PIN. The PIN method has a design flaw. The router checks the PIN in two halves, and says if each half was right. That cuts the guesses from tens of millions to around eleven thousand, which tools can work through. Then the router hands over the real Wi-Fi password. The safe choice: turn WPS off.

Evil twins An evil twin is a fake access point that copies the name of a real one. At the airport, the real network is called Airport Free WiFi. An attacker with a laptop broadcasts the same name. A phone that joined that name before connects automatically, to the fake one. Now all its traffic passes through the attacker. That is a man-in-the-middle position.

Evil twins Once connected, the attacker may show a fake captive portal, the sign-in page many hotspots use. This one asks for an email password and card details before giving internet. Stop here. A real hotspot rarely needs them. The attacker may also send you to fake websites, or watch any unencrypted traffic. Never type passwords or card numbers into a hotspot sign-in page.

Safer public Wi-Fi Safer habits on public Wi-Fi. Ask staff for the exact network name, and be suspicious of duplicates. Use mobile data for banking, JazzCash, Easypaisa and work email when you can. Use your company VPN for work. Never ignore certificate warnings. Never enter passwords or card numbers into a hotspot page. And turn off auto-join, and forget networks you no longer use.

Securing the router The router is the front door of your network, and many are left as they came out of the box. Go through this checklist. Change the router admin password, the one for the settings page, not the Wi-Fi password. Update the firmware, the router's own software, and replace routers that no longer get updates. Use WPA3, or WPA2 with AES, and a long passphrase. And turn off WPS.

Securing the router The checklist continues. Turn off remote management, admin access from the internet, unless you truly need it. Turn off UPnP if you do not need it, because malware can use it to open ports. Create a guest network for visitors, smart TVs and cameras. And check the device list, and investigate any device you do not recognise. In an office, keep the router where visitors cannot reach it.

Try it yourself See what security your own Wi-Fi uses. On Windows, run netsh wlan show interfaces. Look at the Authentication line. WPA2-Personal or WPA3-Personal is good. Open means no encryption. The Cipher line should show CCMP, which is AES, not TKIP. On Linux, nmcli dev wifi list shows nearby networks and their security. Breaking into networks you do not own is illegal.

Quick check Quick check. You are setting up a new office router. All your devices support WPA3, except one old printer that only knows WPA2. What is a sensible choice? Choose an answer.

Key takeaways Let us put it together. Choose WPA3, or WPA2 with AES, never WEP or an open network. Use a long passphrase, at least 12 characters. Turn off WPS. Watch for evil twins, and never type passwords into hotspot pages. And secure the router: admin password, firmware updates, and a guest network.

Wi-Fi sends your traffic through the air, and anyone nearby can receive the radio signal. Unlike a cable, you cannot lock Wi-Fi inside a room. Its security depends on encryption, good passwords and a well-configured router.

How Wi-Fi security works

A Wi-Fi network has a name, called the SSID (service set identifier). Devices connect to an access point, which in most homes and small offices is built into the router.

Wi-Fi security has two jobs:

  • Authentication: only people with the right password, or the right account, may join.
  • Encryption: traffic in the air is scrambled, so people nearby cannot read it.

On an open network with no password, there is usually no encryption at all. Anyone in range with the right tools can capture what you send over unencrypted connections. HTTPS still protects the content of websites, but an open network is still a poor choice.

WEP, WPA2 and WPA3

Wi-Fi security has improved over the years. You will see these names in router settings:

Standard Status What to know
WEP Broken Can be cracked in minutes. Never use it
WPA (original) Outdated Used TKIP encryption, now considered weak
WPA2 Still common Uses strong AES encryption. Safe with a long, strong passphrase
WPA3 Recommended Newest standard. Better protection against password guessing

Each of WPA2 and WPA3 comes in two forms:

  • Personal (also called PSK, pre-shared key): everyone uses the same Wi-Fi password. Normal for homes and small shops.
  • Enterprise: each user logs in with their own account, checked by a central server. If one person leaves the company, only their account is disabled. Nobody needs to change the Wi-Fi password for everyone.

Why does WPA3 matter? With WPA2-Personal, an attacker nearby can capture the short exchange of messages, called the handshake, that happens when a device joins. They can then try millions of password guesses on their own computer, with no further contact with your network. This is called an offline attack. A short or common password such as 12345678 or a shop's phone number falls quickly.

WPA3-Personal uses a newer method called SAE (Simultaneous Authentication of Equals). It is designed so that capturing the connection does not allow offline guessing. Each guess needs a live attempt against the network.

If some older devices do not support WPA3, many routers offer a WPA2/WPA3 mixed (transition) mode. It is better than WPA2 alone, but older devices still use WPA2. In every case, use a long passphrase: at least 12 characters, and ideally a few random words together.

WPS: a convenient weakness

WPS (Wi-Fi Protected Setup) was created to make joining a network easier. Instead of typing the password, you press a button on the router or enter an 8-digit PIN.

The PIN method has a serious design flaw. The router checks the PIN in two halves and tells the device whether each half was right. This cuts the number of possible guesses from tens of millions to around eleven thousand, which tools can work through. Once an attacker finds the PIN, the router hands over the real Wi-Fi password. Changing your password does not help while the PIN still works.

Some routers limit or lock out repeated PIN attempts, but not all of them do this well. The safe choice is simple: turn WPS off in the router settings.

Evil twins and public Wi-Fi

An evil twin is a fake access point that copies the name of a real one. An attacker sits in a cafe, airport or hotel lobby with a laptop or small device broadcasting Airport_Free_WiFi, the same name as the real network. Phones that have joined a network with that name before may connect automatically.

Once you connect, all your traffic passes through the attacker. This is a man-in-the-middle position. The attacker may:

  • Show a fake captive portal (the sign-in page many hotspots use) asking for your email password, phone number or card details
  • Try to send you to fake versions of websites
  • Watch any unencrypted traffic

Safer habits on public Wi-Fi:

  • Ask staff for the exact network name and be suspicious of duplicates or slightly different spellings.
  • Use mobile data for banking, JazzCash, Easypaisa and work email when you can.
  • Use your company VPN when working on public networks.
  • Never ignore certificate warnings.
  • Never enter passwords or card numbers into a hotspot sign-in page. A real hotspot rarely needs them.
  • Turn off auto-join for public networks, and forget networks you no longer use.

Securing a home or office router

The router is the front door of your network. Many attacks succeed because routers are left as they came out of the box. Go through this checklist:

  1. Change the router's admin password. This is the password for the router's settings page, not the Wi-Fi password. Default admin passwords are often printed on the router or listed online.
  2. Update the firmware. Firmware is the router's own software. Check for updates in the settings page, or ask your internet provider. Replace routers that no longer receive updates.
  3. Use WPA3, or WPA2 with AES, and a long, unique Wi-Fi passphrase.
  4. Turn off WPS.
  5. Turn off remote management (admin access from the internet) unless you truly need it.
  6. Turn off UPnP if you do not need it. UPnP lets devices open ports on your router automatically, which malware can also use.
  7. Create a guest network for visitors, and put smart TVs and cameras on it or on their own network.
  8. Check connected devices in the router's device list, and investigate any you do not recognise.

In an office, also place the router and access points where visitors cannot reach them or press their reset buttons.

Try it yourself

You can see what security your own Wi-Fi connection uses. On Windows, open Command Prompt and run:

netsh wlan show interfaces

Look at the Authentication line. WPA2-Personal or WPA3-Personal is good. Open means no Wi-Fi encryption. The Cipher line should show CCMP (AES), not TKIP.

On Linux with NetworkManager, this lists nearby networks and their security:

nmcli dev wifi list

The SECURITY column shows WPA2, WPA3 or nothing for open networks. Use this information to improve your own network. Breaking into Wi-Fi networks you do not own is illegal.

HANDS-ON LAB

Fix the Branch Router

A small branch office router was left almost as it came out of the box. Decide what to change.

Start the lab →

Check your understanding

Answer every question correctly to complete this lesson. If you miss one, try the quiz again.

1. Which Wi-Fi security option should you choose on a new router, if all your devices support it?

2. In a cafe you see two networks called Cafe_Free_WiFi with the same name. What attack could this be?

3. Why should WPS be turned off on a router?

Locked: answer every quiz question above correctly to complete this lesson.

Spotted a mistake or something unclear? Report a mistake