Concepts / Wireless and network types

Wireless and network types

Evil twin and rogue access point

Also called rogue AP, fake access point, Wi-Fi impersonation, SSID spoofing

An access point that copies a trusted network's name to lure clients onto an attacker's radio.

The problem

A laptop that picks a network by name will join any radio announcing OfficeWiFi, including one an attacker set up.

  1. rogueAp beacons the same SSID, OfficeWiFi, open, from its own BSSID, 02:00:ab:00:00:02: an evil twin.
  2. A laptop that matches on the name may join it, and then every packet it sends passes through the attacker.
  3. A scan from the laptop lists OfficeWiFi twice, from two BSSIDs.
  4. The operator compares each BSSID with the list of APs the office put up: 02:00:ab:00:00:01 is on it, 02:00:ab:00:00:02 is not. That one is the rogue AP.
Kicked off, then caught by the twin
Kicked off, then caught by the twin

A forged deauth drops the client, which rejoins the strongest radio with the same SSID: the attacker's. Only the BSSID tells the twin apart.

Guess first

Where the laptop sits, the twin has the stronger signal. Is that a sign it is the real one?

Show answer

No. Signal depends on where you stand, and an attacker can sit close. Only the BSSID, checked against the list of APs you deployed, tells them apart.

In short

Anyone can broadcast any SSID, so an attacker stands up an access point advertising the same network name as the office or a café — an evil twin. Clients that remember the name may associate to it, putting the attacker in the middle of their traffic. A rogue AP is the broader term: any access point on your network you did not authorise, whether a malicious twin or an employee's unsanctioned router. The name proves nothing; what distinguishes a real AP from an impostor is its BSSID (the radio's MAC address). Detection is by comparing the BSSIDs on the air against an allowlist of the APs you actually deployed, and by a wireless controller or sensor flagging unknown radios.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab