Evil Twin and Captive Portals
An Evil Twin is a fake WiFi access point that impersonates a legitimate one (same SSID) so victims connect to it instead of the real one. Once connected, the attacker is in the middle (MITM) of all their traffic and can capture credentials via a fake captive portal (a “log in to use the WiFi” page), steal Enterprise WiFi credentials with a fake RADIUS, or attack the clients directly. It’s one of the most effective WiFi attacks against people.
Only in your own lab or an authorized engagement whose scope includes social engineering. Standing up an AP that impersonates someone else’s network is illegal.
Threat model
Section titled “Threat model”Devices remember networks and auto-reconnect to known SSIDs; people can’t tell a legitimate AP from a fake one with the same name. The attacker stands up a twin AP (with stronger signal, or after deauthing from the real one), the victim connects, and from then on all their traffic goes through the attacker. No encryption is broken: the victim is tricked into connecting to the wrong place. On Enterprise networks, a malicious RADIUS that the client fails to reject turns the attack into domain credential theft.
Theory: the Evil Twin flow
Section titled “Theory: the Evil Twin flow”flowchart TD
A[Recon: target SSID and its clients] --> B[Stand up twin AP same SSID]
B --> C[Deauth the real AP: push clients]
C --> D{Network type}
D -->|Open/PSK| E[Fake captive portal asks for the WiFi key]
D -->|Enterprise 802.1X| F[Fake RADIUS captures EAP/MSCHAPv2]
E --> G[Validate key against the real handshake]
F --> H[Crack MSCHAPv2 offline -> domain credentials]
G --> I[MITM the victim's traffic]
H --> I
Red Team: set up the Evil Twin
Section titled “Red Team: set up the Evil Twin”wifiphisher # evil twin + captive portal + deauth, automatedairgeddon # full menu (evil twin, portal, WPA, WPS...)hostapd-mana # low-level malicious AP (KARMA/MANA)Conceptual manual flow: (1) fake AP with the same SSID (hostapd), (2) deauth the real AP to push clients (wifi), (3) DHCP/DNS redirecting everything to the captive portal, (4) portal asking for the WiFi password or credentials.
Red Team: captive portal (credential theft)
Section titled “Red Team: captive portal (credential theft)”The victim connects to the evil twin (open) and their browser opens the portal, which mimics the ISP’s or company’s and asks for the WiFi password. The captured key is validated against the real AP’s handshake to confirm it’s correct. It’s social engineering over WiFi: the victim types the key believing they’re reconnecting to their network.
Red Team: WPA-Enterprise with a fake RADIUS
Section titled “Red Team: WPA-Enterprise with a fake RADIUS”On Enterprise networks (802.1X), an evil twin with a malicious RADIUS captures the clients’ EAP exchange, obtaining the challenge/response (MSCHAPv2, crackable offline) or the credentials directly:
eaphammer --cert-wizard # generate the server certificateeaphammer -i wlan0 --essid CorpWiFi --creds # fake AP capturing EAP credentials# the MSCHAPv2 challenge is cracked offline (asleap, or hashcat -m 5500 NetNTLMv1)If clients don’t validate the RADIUS server certificate, they connect to the fake one and hand over their credentials. This connects WiFi to Active Directory (see Password Spraying and Active Directory Enumeration).
Red Team: after the MITM
Section titled “Red Team: after the MITM”With the victim connected to the evil twin, the attacker has full MITM: sniffing, DNS spoofing, and SSL stripping (see Man-in-the-Middle and Network Sniffing), capture of cookies/tokens from unencrypted traffic, and direct attack of services exposed on the victim’s devices.
Blue Team
Section titled “Blue Team”- WPA3 / 802.11w (PMF): hinder the deauth that pushes clients to the twin.
- Enterprise with server certificate validation (EAP-TLS, or PEAP with strict validation and certificate pinning): the client rejects the fake RADIUS and doesn’t hand over credentials.
- Don’t trust captive portals for credentials; train users not to type the WiFi key into pages.
- MFA (a captured credential is worth less) and E2E encryption (HTTPS/VPN) limit the MITM.
- WIDS/WIPS: detect duplicate SSIDs, unauthorized BSSIDs, and APs with anomalous signal (rogue AP / evil twin detection).
Checklist
Section titled “Checklist”- Identify the target SSID and its clients (wifi)
- Stand up the evil twin (
wifiphisher/airgeddon) - Deauth to push clients to the twin
- Captive portal capturing the WiFi key / credentials
- Enterprise: fake RADIUS (
eaphammer) → EAP credentials - Crack the MSCHAPv2 challenge → domain credentials
- MITM over the connected ones (Man-in-the-Middle)
- Blue: PMF, certificate validation, WIPS?