AP Cybersecurity · Study guide

Protecting Sensitive Data on Public Wi-Fi

AP® Cybersecurity · Unit 1 · Human-Centered Threats, Authentication & AI Defense

Protecting Sensitive Data on Public Wi-Fi

Three habits for cafés, airports, and hotels: check the network name, think about what is exposed, and know what a VPN does and does not do.

1The risk on public Wi-Fi

Public Wi-Fi is shared with strangers, and you cannot see who runs the equipment or who is listening nearby. Two dangers stand out:

  • You may join the wrong network. An attacker can broadcast a copy of the real network's name (an evil twin) so your traffic passes through their device.
  • Your traffic may be readable. On a network with no password, data sent over the air is not scrambled, so anyone nearby with the right software can record it. Anything your apps send without their own encryption can be read.

Three habits handle most of the risk: check the network name letter for letter, think about how sensitive your data is before using an unencrypted network, and use a virtual private network when it makes sense.

2Check the name letter for letter

Before joining a network, check that its name matches the network you meant to join letter for letter: every letter, capital, symbol, and space. Get the real name from a trusted source: a sign posted by the business, your receipt, or the staff. Do not trust the network with the strongest signal or the friendliest name.

Figure 1. Attackers rely on names that are nearly right. Check against a name the business gave you (a sign, a receipt, the staff), character by character.

An exact match is necessary, but it is not proof. An evil twin can copy the name perfectly. So two more habits help:

  • Be suspicious of duplicates. If two networks with the same name appear where you expect one, ask staff which one is theirs.
  • Turn off auto-join for public networks. Phones remember network names and rejoin anything with a matching name. Forget public networks after you use them.

3Encrypted and unencrypted traffic

Most internet traffic today is encrypted. Websites that use HTTPS (the padlock in the address bar) and most apps scramble what they send, so someone on the same Wi-Fi cannot read your messages, passwords, or bank balance. That is a big reason public Wi-Fi is safer than it used to be.

But not everything is covered. One important leak is DNS. Before your device can visit examplebank.com, it asks a DNS server, which works like the internet's phone book, for that site's numeric address. On many devices those lookups are sent unencrypted, even when the site itself uses HTTPS. Anyone watching the network can read the list of site names you look up: your bank, your doctor's office, a job site.

On a public network, someone watching can see…With HTTPSWithout HTTPS
Which sites you visit (from DNS lookups and the connection itself)Usually yesYes
When and how much you use each siteYesYes
The pages you read and what you typeNoYes
Your passwords and messagesNoYes

So the choice to use an unencrypted Wi-Fi network (one with no password) depends on how sensitive your data is. Reading the news is low risk. Looking up medical information, sending private documents, or doing anything where even the site name is private is better done on a network you trust, such as your phone's cellular connection or home Wi-Fi.

Open versus password-protected Wi-Fi

A Wi-Fi password does more than keep strangers off the network: modern Wi-Fi security also scrambles the radio traffic between your device and the access point. On a network with no password, that layer is missing, so everything that is not separately encrypted by the app or website travels over the air in readable form.

4Virtual private networks (VPNs)

A virtual private network (VPN) is a service that encrypts all of your device's traffic, including DNS lookups, and sends it through a protected connection, often called a tunnel, to the VPN operator's system. From there, the traffic goes on to the internet.

Because the tunnel is encrypted, the café's Wi-Fi and your internet service provider see only scrambled data going to the VPN. They cannot see which sites you visit.

Figure 2. Each protection changes who can see your traffic. None of them hides what you send from the website itself, and a VPN moves trust to the VPN provider instead of removing it.

The catch: the VPN provider can now see your traffic. Everything the Wi-Fi operator could see before, the VPN provider can see instead. A VPN does not make you invisible; it decides who you are trusting. Choosing a VPN is therefore a real decision. A company VPN run by your employer or school, or a well-known provider with a clear privacy policy, is a reasonable choice. A free VPN from an unknown company may itself be the party collecting your data.

The key idea

Encryption does not remove the observer. It changes who the observer is. HTTPS hides content from the network; a VPN hides even the site names from the network but shows them to the VPN provider; the website always sees what you send it.

5Deciding what to do where

SituationReasonable choice
Checking the weather or news on café Wi-FiFine on any network whose name you have verified
Signing in to email or school accountsFine over HTTPS on a verified network; use MFA; never enter a password on a Wi-Fi sign-in page
Banking, medical records, private documentsPrefer cellular data or a trusted network; otherwise use a trustworthy VPN
Work or school systems from a hotelUse the organization's VPN if it provides one
A Wi-Fi sign-in page asking for an email password or card detailsStop: real guest portals ask at most for a room number, a code, or agreement to terms

6Worked examples

Worked Example 1 Exact match

One letter off

A library posts its network name as HillsideLibrary. A student's phone shows HillsideLibrary and HiIlsideLibrary, the second with a stronger signal. Which should they join?

  1. 1
    Compare character by character. In the second name, the third character is a capital I, not a lowercase l. In many fonts they look the same.
  2. 2
    A different name means a different network, likely set up by someone nearby, since the library would not run two networks with nearly identical names.
  3. 3
    Join only the exact match, and mention the lookalike to library staff.
Answer: Join HillsideLibrary, the exact match. The near-copy is likely an evil twin.
Worked Example 2 Sensitivity decides

Health information on airport Wi-Fi

A traveler on open airport Wi-Fi (no password) wants to look up test results on their clinic's website, which uses HTTPS. What is exposed, and what should they do?

  1. 1
    HTTPS protects the content: no one on the network can read the results or the password.
  2. 2
    But the network is unencrypted and DNS lookups often are too, so someone watching could see that this device looked up the clinic's site.
  3. 3
    For most sites that would not matter. Here, even the fact of visiting a clinic is private.
  4. 4
    Better options: switch to cellular data, wait for a trusted network, or use a trustworthy VPN.
Answer: Content is protected by HTTPS, but the visit itself can leak. For sensitive activity, use cellular data or a VPN rather than the open network.
Worked Example 3 What a VPN changes

Who sees the site names?

A student connects to hotel Wi-Fi and turns on a VPN before browsing. Which parties can see which websites they visit?

  1. 1
    Hotel Wi-Fi: sees only encrypted traffic going to the VPN server. No site names.
  2. 2
    The hotel's internet provider: the same, only a tunnel to the VPN.
  3. 3
    The VPN provider: decrypts the tunnel and sends traffic onward, so it can see which sites are visited (and any content not protected by HTTPS).
  4. 4
    The websites: see everything the student sends them, as always.
Answer: The VPN hides site names from the hotel and its provider but reveals them to the VPN provider. Trust has moved, not disappeared.
Worked Example 4 Choosing a VPN

The free VPN app

A student downloads a free VPN app from an unknown developer to “stay safe” on public Wi-Fi. Is this a good protection?

  1. 1
    A VPN provider can see all the traffic passing through it.
  2. 2
    Running VPN servers costs money. A free service from an unknown company may pay for itself by collecting and selling users' browsing data.
  3. 3
    So the student may have moved their traffic from a café owner they will never meet to a company whose business is watching it.
Answer: Not necessarily. A VPN is only as trustworthy as its operator. Use a school or employer VPN, or a well-known provider with a clear privacy policy.
Worked Example 5 Fake sign-in page

The portal that asks too much

After joining Hotel_Guest, a page appears: “Sign in with your email address and password to get online.” What should the guest do?

  1. 1
    Guest Wi-Fi portals usually ask for a room number, an access code, or a click to accept terms. They have no reason to need your email password.
  2. 2
    Asking for an email password is how an evil twin collects login details.
  3. 3
    Check the network name with the front desk, disconnect, and do not type the password.
Answer: Treat it as credential theft. Close the page and confirm the real network name with the hotel.

7Common mistakes

Common Mistake 1 · Accepting a close match

Cafe_Guest is not CafeGuest. Any difference in letters, symbols, capitals, or spaces means a different network.

Common Mistake 2 · Thinking an exact name proves safety

An evil twin can copy a name perfectly. Watch for duplicates, avoid auto-join, and be wary of sign-in pages that ask for passwords.

Common Mistake 3 · Assuming HTTPS hides everything

HTTPS protects content, but site names can still leak through DNS lookups and the connection itself. On an open network, that may matter.

Common Mistake 4 · Believing a VPN makes you anonymous

A VPN hides your traffic from the local network and your internet provider, but the VPN provider can see it, and websites still see everything you send them.

Describe a protective action like this

“Before joining, the student should confirm the network name matches the one posted by the café letter for letter, because an attacker could run an evil twin with a similar name. Because the network is unencrypted, DNS lookups could reveal which sites they visit, so for sensitive tasks they could use a VPN, which encrypts all their traffic to the VPN operator. The VPN provider would then be able to see that traffic instead.”

Name the action, the risk it reduces, and any trade-off it brings.