This attack requires breaking into nothing. No password is cracked, no security flaw is exploited.

All it takes is a transmitter costing very little, and one weakness present in every phone: it recognises a network purely by its name.

How it works

Your phone keeps a list of networks it has used. When it detects a matching name, it connects by itself, that's a feature, and it's what makes home Wi-Fi feel seamless.

The problem is that only the name is matched. Not the owner, not the equipment, not the location.

The name is copied

Someone sits in a café, notes the network name in use, then creates a new network with exactly that name.

The signal is made stronger

Devices tend to pick the strongest signal among identical names. Sitting closer to the target is enough to win that choice.

The device connects by itself

Nothing needs clicking. A phone that has used that network before reconnects automatically the moment it finds it again.

Traffic passes through the attacker's equipment

The internet keeps working normally, that's the important part. Nothing feels wrong to the person affected.

What makes it effective is precisely that nothing breaks. Pages still open, messages still send, and no warning appears anywhere.

The riskiest places in Indonesia

The attack is easiest where places are busy, people come and go, and the network name is already known to many phones. The pattern is easy to map:

PlaceWhy it is riskyA habit that helps
Airports, railway stations, bus terminalsPeople wait a long time, battery and data quota run low, and network names are often genericUse your own phone's hotspot for online check-in and payments
Franchise cafes and restaurantsThe Wi-Fi name is the same at every branch, so phones join automatically at any branch, and at any copyTurn off auto-join for franchise networks
Malls and shopping centresMany shop networks close together, so a copied name slips in easilyAsk the information desk for the official name
Hotels, homestays, and villasThe password is often printed on the room card, so a padlock on a fake network looks convincingCheck the network name with reception, not against the Wi-Fi list
Concerts, bazaars, and campus eventsTemporary networks, and nobody knows the official nameTreat every network at an event as a stranger's

If you have ever joined a franchise cafe's network, your phone will recognise that name anywhere. The attacker does not need to visit that branch. Broadcasting the same name somewhere else you go is enough.

Why the padlock doesn't help

This is the most common misconception, and worth correcting on its own.

The padlock icon in the network list means exactly one thing: this network asks for a password. It says nothing about who is running it.

Whoever builds a fake network can set a password, even the same one as the real network, since café Wi-Fi passwords are usually written on the receipt or a chalkboard. The result is a fake network with a padlock, looking exactly like the genuine one.

What makes it worse. Some people check for the padlock, feel safe, and become less careful afterwards. False confidence often costs more than not checking at all.

The login page is where the damage happens

This is where real losses usually occur.

Once connected, an official-looking login page appears, the café's logo, matching colours, a plausible form. That page was built entirely by the attacker, and whatever you type into it goes straight to them.

Signs worth treating as suspicious on such a page:

  • Asking for another account's password: email, social media, or banking. No legitimate Wi-Fi network needs it.
  • Asking you to install an app or configuration profile. This is the most dangerous, because such a profile can read your traffic from then on.
  • Asking for card numbers for a service advertised as free.
  • Asking you to type in an OTP code sent by your bank, e-wallet, or WhatsApp. Some legitimate public Wi-Fi in Indonesia does send its own SMS code for login. The difference is easy to see from the sender and the message: a code from a bank or another app is never needed to join Wi-Fi.
  • Asking you to install a security certificate. Accepting one makes your encrypted connections readable.

How legitimate login pages work, and why they appear on their own, is explained in the captive portal guide.

Signs you can spot

SignWhat to notice
Two networks with the same nameOne with a padlock, one open, treat as suspicious
Nearly identical namesAn extra space, letter O replaced by zero
Very strong signal far from the venueCafé Wi-Fi shouldn't be at full strength across the street
Suddenly asked to log in againEspecially if you were already connected fine
Certificate warning in the browserThe most serious sign, stop there

That last row deserves emphasis. A certificate warning means something is trying to read a connection that should be encrypted. Pressing "continue anyway" discards the only protection you have left.

What actually protects you

In order of effectiveness:

Turn off auto-connect for public networks. This single step closes the most risk, because it removes the "connected without you noticing" part entirely. On both Android and iOS, the option sits in the details of each saved network.

Forget public networks when you're done. The hotel network you used last month is still stored on your phone, and its name can be copied anywhere you happen to be.

Switch on your VPN before connecting, not after. Your traffic contents become unreadable even while passing through someone else's equipment. Its limits are covered in the guide to VPNs for public Wi-Fi.

Use mobile data for anything that matters. To open mobile banking or enter a password, tethering from your own phone is far simpler than weighing up whether this network is genuine, the guide to mobile banking security on Wi-Fi.

Ask staff for the network name. It sounds trivial, but it's the only check that genuinely works. Takes ten seconds.

The full routine for everyday use is in the guide to using public Wi-Fi safely.

If it has already happened

Say you realise after typing your email password or card details into a page that appeared on airport Wi-Fi. The order:

  1. Disconnect from that Wi-Fi, then choose "Forget network" so the phone does not rejoin.
  2. If you installed a profile or certificate, remove it. On an iPhone it is under Settings, General, VPN & Device Management. On Android it is usually in the security settings, under user credentials; the menu name varies by brand.
  3. Switch to mobile data, then change the passwords you typed. Start with email, since other accounts can usually be recovered through it.
  4. If a bank account or card is involved, call the bank on the number printed on the card or shown in the official app, not one from a search result. Ask for a block.
  5. If money has already been sent, report it quickly to the Indonesia Anti-Scam Centre at iasc.ojk.go.id. This OJK-led forum passes reports to banks and e-wallet providers, and reporting speed decides whether funds can be frozen before they are moved on. OJK can also be reached on 157. A police report still needs to be made separately.

Steps for re-checking your accounts are in two-step verification and account security.

Legally, setting up a copied network to steal data is no small matter. Indonesia's ITE Law (Law 11 of 2008 and its amendments) prohibits manipulating electronic information so it appears authentic in Article 35. The ban on accessing another person's electronic system without right used to sit in Article 30 of the ITE Law; since the new Criminal Code took effect on 2 January 2026, it has moved to Article 332 of the Code. A fake login page imitating a cafe or a bank sits squarely in that territory.

If you run the venue

You can't stop anyone creating a network with the same name, Wi-Fi names can't be registered or protected. But several things make it harder:

  • Display the network name where it's visible, spelled exactly. Visitors who know the correct name are more likely to notice something is off.
  • Provide a QR code on the table. Besides being convenient, it removes the guesswork about which name is right, the guide to making a Wi-Fi QR code.
  • Use WPA3 where devices support it. It complicates some of the techniques used to push devices onto a fake network, the guide to WPA2 vs WPA3.
  • Avoid overly generic names like "Free WiFi". A specific name is harder to imitate without looking suspicious.

Liability when your network is used to harm others is covered separately in the guide to Wi-Fi owner responsibility.

How worried to be

Worth keeping in proportion. This attack requires someone physically present in the same place as you, and most modern traffic is already encrypted, so what an attacker can actually read is far less than it was a few years ago.

What remains vulnerable is whatever you type into a fake page yourself. Which is why one habit is worth more than the entire list above: never type any account password into a page that appears after connecting to Wi-Fi.

Signs that your own network has been compromised are covered in the guide to signs your Wi-Fi has been compromised.

Read also: The Dangers of Free VPN Apps and How to Judge One.

Frequently asked questions

What is an evil twin attack?

A Wi-Fi network deliberately created with exactly the same name as a real network at a venue, so visitors' devices connect without suspicion. Once connected, all their traffic passes through the attacker's equipment.

Why does my phone connect to a fake network by itself?

Because phones remember networks they've used and reconnect automatically when they find the same name. They can't tell which is genuine, the only thing matched is the name, and anyone can copy a name.

Does the padlock icon mean a network is safe?

No. The padlock only means the network requires a password, and whoever built a fake network can set a password too, even the same one as the real network. The padlock says nothing about who is running it.

Is a VPN enough protection against this?

It helps considerably, because your traffic contents become unreadable even while passing through someone else's equipment. But a VPN must be switched on before connecting, and it doesn't protect you from a fake login page asking you to type a password.

Where do I report it if money has already been sent because of a fake page?

Call your bank on its official number to request a block, then report to the Indonesia Anti-Scam Centre (iasc.ojk.go.id), coordinated by OJK. Have the transfer receipt, screenshots, and a timeline ready. The sooner you report, the better the chance remaining funds can be frozen, although a refund is not guaranteed. Make a separate police report as well.