An evil twin attack is a Wi-Fi attack in which an attacker broadcasts a fake access point with the same network name as a legitimate one, then serves a fake captive portal login page to steal credentials or monitor traffic. Wi-Fi network names have no authentication, so your device cannot tell the fake from the real one. Use a VPN on public Wi-Fi, never type credentials into a portal, and forget networks after use.
Key takeaways
- An evil twin copies a real network's name exactly, so your device cannot tell the fake from the real one.
- The fake captive portal is the trap: it harvests the credentials you type in to get online.
- A VPN, HTTPS-only logins and forgetting public networks after use are the defenses that actually work.
You sit down in a coffee shop, open your laptop, and see the familiar Wi-Fi name. You connect, a login page appears, you type in your email to get online — and you have just handed your credentials to a stranger. That is an evil twin attack, and it works because Wi-Fi network names have no authentication: any device can broadcast any name.
What is an evil twin attack?
An evil twin attack is a Wi-Fi-based attack in which a hacker creates a counterfeit wireless access point that mimics a legitimate public network. The fake network uses the same network name — the SSID — as the real one, so it looks identical to every device nearby.
Once a victim connects, the attacker sits in the middle of their internet traffic. This is a classic man-in-the-middle attack at the Wi-Fi layer: the attacker can monitor unencrypted traffic, redirect the victim to fake pages, and serve a fake captive portal that asks for login credentials.
As one description puts it, the counterfeit access point may pass internet traffic through to the legitimate network while monitoring the connection, or simply claim the system is temporarily unavailable after obtaining a username and password.
Evil twins are most common where free public Wi-Fi is popular: coffee shops, airports, hotels, libraries and college campuses. The equipment fits in a backpack — a laptop or a small device such as a Wi-Fi Pineapple, plus free open-source software — and the fake network can be shut off instantly, which makes the attacker hard to trace.
How does an evil twin attack work?
The attack follows a predictable sequence. Knowing the steps helps you see where you can break the chain — and why the captive portal is the most dangerous part.
- Reconnaissance. The attacker scans nearby Wi-Fi networks, noting SSIDs, channels and signal strength, and picks a busy, recognizable target.
- Fake access point setup. Using software such as hostapd or a device like a Wi-Fi Pineapple, the attacker broadcasts the same SSID, spoofs the MAC address (BSSID), and positions the fake network close to victims so its signal is stronger.
- Forcing the switch. The attacker can flood the real network with deauthentication frames — unauthenticated management frames that disconnect clients. Victims' devices then auto-connect to the strongest network with the familiar name: the fake one.
- Fake captive portal. The victim is shown a copy of the network's login page and asked to enter details to get online.
- Data theft. Everything the victim does flows through the attacker's device, where credentials are logged and traffic is monitored.
Devices decide which network to join largely by signal strength and name, not by any proof of identity. That is the core weakness the attack exploits, and it is built into how Wi-Fi works. Our guide on how to secure your Wi-Fi covers the home side of the same problem.
How does the fake captive portal steal your credentials?
A captive portal is the page a Wi-Fi network shows before granting internet access — the "log in with your email" or "enter your room number" screen you see in hotels, airports and coffee shops. In an evil twin attack, the attacker builds an exact copy of that page.
When you connect to the fake network and try to browse, DNS spoofing sends your first web request to the attacker's login page instead of the real site. You enter your details — an email address and password, a hotel room number and last name, or a social-media login — and the attacker logs them. The portal may then grant you internet access anyway, so nothing feels wrong.
The portal is effective because it matches the victim's expectations exactly. You expect a login page on public Wi-Fi, so you do not question it. The details it asks for also feel reasonable: hotels really do ask for a room number, and coffee shops really do ask for an email address. That familiarity is the whole trick.
Some captive portals also serve a second purpose: they can deliver a fake software update or a malicious download. If a Wi-Fi login page ever asks you to install something to get online, disconnect immediately — no legitimate captive portal does that.
Evil twin vs rogue access point: what is the difference?
People use these terms interchangeably, but they describe different attacks. A rogue access point is an unauthorized device plugged into a real network — for example, an employee's personal router connected to the office network. An evil twin is a separate, standalone network that impersonates a legitimate hotspot from outside.
| Evil twin | Rogue access point | Legitimate access point | |
|---|---|---|---|
| What it is | Fake network impersonating a real one | Unauthorized device on a real network | Authorized network hardware |
| Where it sits | Outside the real network | Inside the real network | Part of the real network |
| SSID | Copied from the real network | Often a new or similar name | The real network name |
| Main goal | Steal credentials and monitor traffic | Unauthorized access or eavesdropping | Provide connectivity |
| Typical place | Coffee shops, airports, hotels | Offices, schools, corporate networks | Everywhere |
| How to detect it | Duplicate SSID, odd portal, stronger signal | Network scans, access-point inventory | Not applicable |
The distinction matters for defense. Rogue access points are an enterprise problem, found by scanning the wired network and keeping an inventory of authorized access points. Evil twins are a user problem, found by being careful about which network you join and what you type into a portal. Okta's guide to evil twin attacks explains the same distinction and the step-by-step attack flow.
How can you spot an evil twin network?
Honestly, spotting one from the network list alone is hard — that is the point of the attack. But there are signs worth checking before you connect and before you type anything.
- Two networks with the same name. If the same SSID appears twice, one of them is fake. Ask staff which one is real — or better, ask for the exact network name and whether it needs a password.
- A network with no password where the real one has one. If the coffee shop's Wi-Fi normally needs a password and today's open version does not, do not use it.
- A captive portal that looks slightly off. Wrong logo, odd spelling, a different layout from the one you have seen before, or a request for details the real portal never asks for — such as a full password or card number.
- A portal that asks you to install something. No legitimate captive portal asks you to download software to get online.
- Your device connects without asking. If your phone joins a network you have never used without prompting you, check which network it actually joined.
The most reliable check is also the simplest: ask a member of staff for the exact network name. A five-second question defeats an attack that depends on you guessing. Norton's evil twin guide lists the same warning signs and recommends verifying the network name with staff before connecting.
What can an attacker steal over an evil twin?
More than most people expect. The attacker controls the network, so everything that is not encrypted is visible, and the captive portal adds a direct credential harvest on top.
- Credentials from the captive portal: whatever you type into the fake login page — email and password, hotel details, or a social login.
- Unencrypted traffic: anything sent over plain HTTP, including browsing and logins on sites without HTTPS.
- Session cookies: if you are already logged into a site, your browser sends session cookies with every request. Over HTTP, the attacker can capture them and use them to impersonate your session.
- NTLM hashes: on corporate devices, an attacker can capture NTLM challenge-response hashes for offline cracking.
- VPN credentials: if a VPN client sends credentials before the encrypted tunnel is established, those can be exposed.
HTTPS protects the content of your traffic, but it does not protect everything: the attacker can still see which sites you visit, and can try to downgrade or intercept connections. That is why a VPN matters — it encrypts traffic before it leaves your device, so the fake network sees only encrypted data. You can check whether your connection is leaking identifying details with our free WebRTC leak test.
How do you protect yourself on public Wi-Fi?
You cannot make public Wi-Fi safe by being careful about network names alone. The defenses that work are the ones that protect your traffic regardless of which network you are on.
- Use a VPN on every public network. Turn it on before you do anything else. A VPN encrypts your traffic, so the attacker running the fake network cannot read it.
- Only log in over HTTPS. Check for the padlock in your browser, and never enter a password on a page served over plain HTTP. You can check a site's certificate setup with our free SSL checker.
- Never type real credentials into a captive portal. If a portal demands an email, use a throwaway address. If it demands a password you use elsewhere, do not use that network.
- Turn off auto-connect and Wi-Fi when you are not using it. A device that auto-joins familiar names is a device that will auto-join a fake twin.
- Forget public networks after use. Every network your device remembers is a name an attacker can impersonate later, in a different place.
For businesses, the enterprise answer is WPA2-Enterprise or WPA3-Enterprise with certificate-based authentication, which lets devices verify the access point before connecting. That stops evil twins on corporate networks, but it does not help you in a coffee shop — which is why the personal defenses above matter for everyone.
What should you do if you connected to an evil twin?
Disconnect immediately and forget the network, so your device does not rejoin it. Then assume the worst about anything you did while connected and act on it.
- Change any password you entered while on the network, starting with email — an attacker with your email can reset other accounts. Change it from a trusted network, not the same public Wi-Fi.
- Check for unfamiliar sessions and rules. Look for new mail-forwarding rules, unknown logged-in devices, and password or recovery-email changes on your accounts.
- If you entered banking details, call your bank. Ask about recent transactions and whether the card or account needs to be frozen.
- Turn on multi-factor authentication on every account that offers it, and prefer passkeys or security keys over one-time codes where available.
- Tell the venue. The coffee shop or hotel may not know a fake network is operating under its name, and warning them protects the next person.
If the device is a work laptop, tell your IT or security team as well — they can check for anything the attacker may have installed or any corporate credentials that were exposed. For a wider check on your own devices, see our guide on how to know if your phone is hacked.
The bottom line
An evil twin works because Wi-Fi trusts names, and names are free to copy. The fake captive portal is where the damage happens: it turns an ordinary login screen into a credential harvester.
Ask staff for the real network name, never type real credentials into a captive portal, and use a VPN on every public network. Those three habits protect you even when you cannot tell the real network from the fake — and you can check whether a site you use is properly encrypted with the free SSL checker.
Frequently asked questions
What is an evil twin attack?
An evil twin attack is a Wi-Fi attack in which an attacker sets up a fake access point with the same network name as a legitimate one. Devices connect to the fake network thinking it is real, and the attacker can then monitor traffic or steal credentials through a fake captive portal.
What is a captive portal in an evil twin attack?
A captive portal is the login page a Wi-Fi network shows before granting internet access. In an evil twin attack, the attacker copies the real network's portal page, and any credentials typed into the fake page go straight to the attacker.
Can an evil twin attack steal my passwords?
Yes. If you type credentials into a fake captive portal, the attacker captures them directly. The attacker can also intercept unencrypted traffic, session cookies and, in some cases, NTLM hashes from devices on the fake network.
How can I tell if a Wi-Fi network is an evil twin?
You usually cannot tell from the name alone, since the fake copies the real name exactly. Warning signs include two networks with the same name, a captive portal that looks slightly different or asks for unusual details, and a network that appears without a password where the real one has one.
Does a VPN protect against evil twin attacks?
Yes, a VPN is the strongest practical defense. It encrypts your traffic before it leaves your device, so the attacker running the fake network cannot read it, even though they control the connection.
Is an evil twin the same as a rogue access point?
No. A rogue access point is an unauthorized device plugged into a real network. An evil twin is a separate, standalone network that impersonates a legitimate hotspot. Both are dangerous, but they work differently.
What should I do if I connected to an evil twin network?
Disconnect immediately, forget the network, change any password you entered while connected, and check for unfamiliar sessions or mail rules on your accounts. If you entered banking details, call your bank.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Norton's, Okta's and Bitdefender's evil twin guides and the Wikipedia overview of evil twin wireless attacks.
How we write and fact-check →