Evil Twin Attack: Fake WiFi access point vulnerabilities

Updated: 16 November 2026 Time to read: ~

TL;DR

An evil twin attack is a Wi-Fi-based cyberattack where a hacker creates a counterfeit wireless access point that mimics a legitimate public network. Unsuspecting users who connect give the attacker full visibility into their online activity, including sensitive logins and financial transactions. These attacks are easy to execute using off-the-shelf tools and are nearly invisible to victims. Protecting yourself requires avoiding public Wi-Fi when possible, using a VPN, disabling auto-connect features, and being selective about what accounts you access on public networks.

What is an evil twin attack?

During an evil twin attack, a hacker tricks victims, and they log in to a stolen and insecure form of Wi-Fi. Once the victims connect, the hacker can see everything they do online. 

Setting up an evil twin network is remarkably easy. Several off-the-shelf products allow anyone to become a hacker, including people who don't know anything about computers or programming. 

How does an evil twin attack work, step by step?

Why does public Wi-Fi make users vulnerable?

Hackers need impatient web users to pull off an evil twin attack. Unfortunately, plenty of us fall into this category. When we go into a public space, such as a library or a coffee shop, we expect that establishment to offer free and fast Wi-Fi. In fact, reporters even rank businesses by their connection speeds. 

But that speed and convenience come with a cost. Hackers can quickly take over a safe-seeming Wi-Fi connection and see (or steal) anything users do online. 

An attack typically works like this:

  1. Step 1: Set up an evil twin access point.
    A hacker looks for a location with free, popular Wi-Fi. The hacker takes note of the Service Set Identifier (SSID) name. Then, the hacker uses a tool like a Wi-Fi Pineapple to set up a new account with the same SSID. Connected devices can't differentiate between legitimate connections and fake versions.
     
  2. Step 2: Set up a fake captive portal.
    Before you can sign in to most public Wi-Fi accounts, you must fill in data on a generic login page. A hacker will set up an exact copy of this page, hoping that they will trick the victim into offering up authentication details. Once the hacker has those, they can log in to the network and control it.
     
  3. Step 3: Encourage victims to connect to the evil twin Wi-Fi.
    The hacker moves close to victims and makes a stronger connection signal than the valid version. Anyone new will only see the evil twin, and they will tap and log in. The hacker can kick off anyone currently connected with a distributed denial of service (DDoS) attack, which temporarily takes the valid server offline and prompts mass logins.
     
  4. Step 4: The hacker steals the data.
    Anyone who logs in connects via the hacker. This is a classic man-in-the-middle attack, which allows the attacker to monitor anything that happens online. If the user logs into something sensitive (like a bank account), the hacker can see all the login details and save them for later use. 

Customer participation is critical in an evil twin Wi-Fi attack. And unfortunately, only about half of all consumers think they're responsible for securing their data on a public Wi-Fi account. Most think the companies that offer connections will protect them. The companies may disagree.

What are some real-world examples of evil twin attacks?

Why would someone want to sit between customers and websites? Let's walk through two examples of how hackers might use data like this. 

Example 1: Intercepting a bank transfer

Let's imagine a hacker sitting inside a connection at a local coffee shop:

  • The setup is successful. The hacker has created an evil twin network, and one person logs in. 
  • The attack begins. The victim has no idea that the connection is not secure. They head to a banking page and log in. They then agree to transfer $100 to a friend.
  • The hacker transforms the data. The hacker intercepts the request and changes the recipient to an account that they own. The bank processes the transaction and sends a receipt. The hacker changes that receipt, so the victim thinks the back just completed the original work.
Banking Fraud ExampleCredential Theft Example
Hacker intercepts a live bank transfer and redirects funds to their own account.Hacker captures login credentials entered on a phishing site mimicking a real service.
Victim receives a falsified transaction receipt and is unaware of the fraud.Victim is disconnected after credentials are stolen; next login appears normal.
Direct financial loss to the victim.Credentials sold on the black market or used to steal funds later.

Example 2: Stealing login credentials via a phishing site

Let's imagine another version of this same attack.

  • The setup is successful. The hacker has created an evil twin network, along with a phishing site. 
  • The connection initiates. The victim must log in to this phishing site to gain access. The person might believe they're logging into a common site, like Facebook or Google. But instead, they're connecting with a hacker.
  • The hacker steals the target data. The hacker can see the victim's login data and save it. The hacker can use that login to steal funds, or the hacker can sell credentials to buyers on the black market. 
  • The hacker releases the victim. The hacker disconnects the victim. The next login is valid, and the victim has no idea anything went wrong. 

An attack like this can be remarkably profitable. And it's almost impossible for victims to spot the problems as they unfold.

How can you protect yourself from an evil twin attack?

More than 80 percent of people will connect to any Wi-Fi network available to them when they're out and about. If you're part of this population, it's time for a new strategy. 

The quickest and easiest way to stay safe is to avoid any public Wi-Fi connection. Rely on your own cell service or wait until you're at home or in your office to connect. 

If you must connect via public Wi-Fi, follow these three steps:

  1. Use VPN. A virtual private network encrypts data as it passes between your device and a network. A system like this can keep you safe, even if you're dealing with a hacker. 
  2. Turn off autosaves. Your device may seek out Wi-Fi connections you've made in the past and connect again, even if you don't ask for the help. Turn off this option so you can be mindful about your use. 
  3. Be judicious. If you log in to a Wi-Fi system without using a VPN, be careful about the logins you use. Don't tap into your bank account or work servers. But if you absolutely must look at Twitter, and you can accept the risks, do so. 

Evil twin attacks are just one method hackers might use to steal your data. IP spoofing attacks are just as dangerous, and they're also hard to spot. Find out more about them, and how Okta can protect you, in this blog post.

Frequently asked questions

What makes an evil twin attack different from a regular Wi-Fi connection?

An evil twin network uses the same Service Set Identifier (SSID) name as a legitimate access point, making it visually indistinguishable to connecting devices. Unlike a real network, all traffic routed through an evil twin is visible to the attacker, enabling data theft and session manipulation.

How easy is it for someone to set up an evil twin network?

Surprisingly easy. Off-the-shelf tools like a Wi-Fi Pineapple allow even non-technical individuals to create a rogue access point. No advanced programming knowledge is required, which makes this type of attack accessible to a wide range of bad actors.

How does a hacker use a fake captive portal in this type of attack?

A hacker replicates the login page that public Wi-Fi networks typically display before granting access. When a victim enters their credentials on this fake page, the attacker captures those authentication details and can use them to access the network or other accounts.

Can victims detect an evil twin attack while it's happening?

In most cases, no. The attack is designed to be invisible — the victim's device connects normally, pages load as expected, and any intercepted or altered data (such as a bank transaction receipt) is modified before the victim sees it. This makes real-time detection nearly impossible without specialized tools.

What is the most effective way to protect yourself from an evil twin attack?

The safest approach is to avoid public Wi-Fi entirely and rely on your cellular data connection. If you must use public Wi-Fi, always connect through a VPN, which encrypts your traffic even on a compromised network. Additionally, disable your device's auto-connect feature to prevent it from joining known networks without your explicit approval.

Why do so many people remain vulnerable to evil twin attacks?

Research suggests that roughly half of consumers believe the businesses providing public Wi-Fi are responsible for securing their data — not themselves. Combined with the fact that over 80% of people will connect to any available free Wi-Fi, this creates a large pool of potential victims who are unaware of the risks or the precautions they should take.

References

The 16 Chains With the Best Free Wi-Fi, Ranked. (October 2016). CNET. 

Most People Unaware of the Risks of Using Public Wi-Fi. (June 2016). CNBC. 

Report: 82 Percent of People Say They Connect to Any Free WiFi That's Available in a Public Place. (March 2020). Decision Data. 

Is Using Public WiFi Still a Bad Idea? (April 2019). Consumer Reports.

Continue your Identity journey