"Public WiFi hackers" sounds like something from a film: a guy in a hoodie in the corner of the café. The reality is less dramatic and, in a way, more boring. Most attacks on public WiFi don't break any encryption. They trick your phone into connecting to the wrong network, then trick you into handing something over.
This guide explains the three classic attacks (sniffing, fake hotspots and man-in-the-middle) in plain English, so you know what you're actually defending against.
Short answer: a man-in-the-middle (MITM) attack puts an attacker between your device and the internet so they can watch or change traffic. On public WiFi the usual route is a fake hotspot ("evil twin") with a trusted name. HTTPS stops them reading or changing most traffic, so attackers rely on fake login pages, apps without encryption and you clicking past certificate warnings. Verify network names, never ignore browser security warnings, and use a VPN, which encrypts everything before it touches the WiFi.
Table of Contents
Attack 1: Sniffing an Open Network
On an open network with no password, your traffic travels through the air unencrypted between your phone and the access point. Anyone nearby with a laptop and free software can capture it. That's "sniffing".
Years ago, this was devastating. Today, because nearly everything uses HTTPS, a sniffer mostly sees scrambled data plus the names of the services you're contacting. It's still a privacy leak, and it still catches apps that send data in plain text, but it's rarely enough to steal an account on its own.
Newer Enhanced Open networks encrypt each connection without a password, which defeats passive sniffing. But they can't stop the next attack.
Attack 2: Fake Hotspots (Evil Twins)
Your phone remembers networks by name. If you've ever joined "Free Airport WiFi", your phone will happily join any open network with that name, anywhere. An attacker uses that by broadcasting a familiar name from a phone or small device in their bag. Some setups even listen for the names phones ask for and pretend to be each one.
Once you're connected, the attacker is your WiFi. They choose which login page you see, which DNS server you use, and they sit on the path to every website. Open WiFi has no way to prove it's genuine, and even Enhanced Open doesn't authenticate the network, so your phone can't tell the difference.
Networks that do authenticate exist: LinkNYC's "LinkNYC Private" and carrier networks that use Hotspot 2.0 / Passpoint verify the network before you join. We cover one example in Is LinkNYC WiFi safe?
Attack 3: Man-in-the-Middle
A man-in-the-middle attack is any setup where the attacker relays your traffic, reading or changing it on the way. On public WiFi it usually starts with one of these:
- The fake hotspot above: the easiest route.
- ARP spoofing on a real network: the attacker tells other devices "I'm the router", and traffic starts flowing through their laptop. It works on many shared networks that don't isolate clients.
- DNS spoofing: the attacker answers your DNS lookups with their own server's address, so "yourbank.com" points somewhere else.
Being in the middle is only step one. What they can do next depends almost entirely on encryption.
What HTTPS Stops (and What It Doesn't)
HTTPS stops
- Reading your passwords and messages on real sites
- Changing pages silently
- Impersonating your bank without a certificate warning
- Downgrading sites that use HSTS (most big ones)
HTTPS doesn't stop
- A phishing page on a lookalike domain with its own valid certificate
- A fake WiFi sign-in page asking for your password
- You tapping "Proceed anyway" past a warning
- Leaks from apps that don't use encryption
- The network seeing which sites you visit
The FTC makes the same point: scammers build fake websites and encrypt them so they look safe. A padlock means the connection is encrypted; it doesn't mean the site is who it says it is.
How to Spot a Fake WiFi Network
- Two networks with almost the same name, e.g. "Cafe_Guest" and "Cafe Guest Free". Ask staff.
- An open network where you'd expect a password, e.g. a hotel that normally uses a room-number login suddenly lets you straight in.
- The login page asks for a Google, Facebook or Microsoft password, or card details for "free" WiFi.
- Certificate warnings ("Your connection is not private") on sites that normally work fine. That's a big red flag. Disconnect.
- A suspiciously strong signal in a place where the real WiFi is usually weak.
How to Protect Yourself
- Use a VPN on every public network. Your traffic is encrypted on your phone before it reaches the WiFi, so a fake hotspot or ARP spoofer just sees an encrypted stream to the VPN server. DNS goes through the tunnel too, which blocks DNS spoofing. See how a VPN protects you from hackers.
- Never click past certificate warnings on public WiFi.
- Turn off auto-join for public networks and forget old ones.
- Use mobile data when you can't tell which network is real.
- Turn on two-factor authentication, preferably with an app or passkey, so a stolen password alone isn't enough.
One honest caveat: a VPN encrypts the connection, it can't stop you typing a password into a phishing page. Habits 2 to 5 still matter. For the bigger picture, read Is public WiFi safe?
Frequently Asked Questions
What is a man-in-the-middle attack on public WiFi?
It is an attack where someone places themselves between your device and the internet, usually with a fake hotspot or by spoofing the router, so they can watch or alter your traffic.
What is an evil twin WiFi network?
An evil twin is a fake hotspot that copies the name of a real or familiar network so devices connect to it automatically. The attacker then controls your connection and login pages.
Can hackers see what I do on public WiFi?
On HTTPS sites and apps they cannot see the content, but they can often see which services you use. They can also catch apps that do not encrypt data. A VPN hides both.
How do I know if a WiFi network is fake?
Warning signs include duplicate network names, an open network where a password is normally used, login pages asking for email or social media passwords, and certificate warnings on familiar sites.
Does a VPN protect against man-in-the-middle attacks?
Yes, on the WiFi network itself. A VPN encrypts traffic and DNS from your device to the VPN server, so a fake hotspot cannot read or change it. It does not stop you entering details on a phishing page.
Sources
- FTC: Are public Wi-Fi networks safe? What you need to know
- Wi-Fi Alliance: Enhanced Open: transparent Wi-Fi protections without complexity
- LinkNYC: FAQ: LinkNYC Private network
- Google: HTTPS encryption on the web (Transparency Report)
Don't Let the Hotspot Be the Middleman
CarrotVPN encrypts your traffic and DNS on your phone before it ever reaches the WiFi. Free WireGuard® VPN, one tap.
Download CarrotVPN Free