Thuta Learning
ExercisesSecurityintermediate

Exercise: The Public Wi-Fi and VPN Decision Lab

What you'll walk away with

  • Explain the core ideas behind Exercise: The Public Wi-Fi and VPN Decision Lab
  • Read the diagram/checklist and trace how the threat, control, and decision connect
  • Explain how this applies to your own digital life or developer workflow

Build the mental model

This lab is not about learning new Wi-Fi facts — it is about turning what you already learned in the Public Wi-Fi Risks, VPN Basics and Limits, and Fake Hotspots lessons into a repeatable decision process, instead of relying on a single blanket rule like "never use public Wi-Fi."

  • Network Trust Level — how confident you are the network is genuinely what it claims: known / unknown / suspicious
  • Activity Sensitivity — how much damage exposure of this activity would cause: low / medium / high
  • Connection Security — whether the site itself is served over HTTPS

None of these factors should decide anything alone — they combine. A low-sensitivity activity on a known network and a high-sensitivity activity on a suspicious network call for completely different decisions, even though both are technically "public Wi-Fi."

A VPN is not a universal fix

A VPN encrypts your traffic on the network, but it does not stop you from being phished into typing a password into a fake site, does not stop malware, and does not make you anonymous. If the network itself is a fake hotspot, switching to cellular data can be safer than connecting a VPN over it.

Look at the five scenarios listed in the exercise section below and form your own recommendation for each before checking the worked answer key in the next section.

text
PUBLIC WI-FI DECISION FRAMEWORK
-------------------------------
  ACTIVITY          NETWORK TRUST         SENSITIVITY
  (what you do)      (known/unknown/       (low/medium/
                       suspicious)           high)
       |                    |                    |
       +--------------------+--------------------+
                            |
                            v
                  +-------------------+
                  |  combine all three |
                  |  factors together  |
                  +-------------------+
                            |
        +-------------------+-------------------+
        |             |             |            |
        v             v             v            v
    PROCEED       USE VPN      USE CELLULAR    AVOID
  (known net,   (sensitive    (high-stakes,   (suspicious
   low risk,     data, ok      unclear net    network --
   HTTPS)        network)      trust)         skip it)

Connect it to a real scenario

(1) Checking personal email on a coffee shop's own named Wi-Fi: known network, medium sensitivity, served over HTTPS — proceed normally is reasonable.

(2) Making a banking transaction at an airport: high sensitivity combined with unknown trust means switching to cellular data removes the trust question entirely, rather than just layering a VPN on top of an unverified network.

(3) Browsing news or social media at a hotel: known network, low sensitivity, HTTPS — proceed normally.

A generically-named open network

Treat an open network with a generic, unverifiable name like "Free_Public_WiFi" as suspicious trust no matter what you plan to do on it — this is exactly the profile the Fake Hotspots lesson warns about, so avoid it entirely.

(5) Working on company systems from a co-working space: the network itself may be known, but the sensitivity of company data is high, so the company VPN is required — the network's trustworthiness doesn't change that requirement.

Try the working example

javascript
function recommendConnectionApproach(scenario) {
  const { isHTTPS, activitySensitivity, networkTrustLevel } = scenario;

  // A network we can't verify at all is the strongest signal --
  // skip it before even considering what we'd do on it.
  if (networkTrustLevel === "suspicious") {
    return "avoid";
  }

  if (activitySensitivity === "high") {
    // High-stakes activity: only proceed with a VPN on a known
    // network. On an unverified network, sidestep it via cellular.
    return networkTrustLevel === "known" ? "use-vpn" : "use-cellular";
  }

  if (activitySensitivity === "medium") {
    if (networkTrustLevel === "unknown") return "use-vpn";
    return isHTTPS ? "proceed" : "use-vpn";
  }

  // activitySensitivity === "low"
  if (networkTrustLevel === "known") return "proceed";
  return isHTTPS ? "proceed" : "use-vpn";
}

const scenarios = [
  {
    name: "Checking personal email at a coffee shop",
    isHTTPS: true,
    activitySensitivity: "medium",
    networkTrustLevel: "known",
  },
  {
    name: "Making an online banking transaction at an airport",
    isHTTPS: true,
    activitySensitivity: "high",
    networkTrustLevel: "unknown",
  },
  {
    name: "Browsing news and social media at a hotel",
    isHTTPS: true,
    activitySensitivity: "low",
    networkTrustLevel: "known",
  },
  {
    name: "Joining an open network named 'Free_Public_WiFi'",
    isHTTPS: true,
    activitySensitivity: "low",
    networkTrustLevel: "suspicious",
  },
  {
    name: "Remote work on company systems from a co-working space",
    isHTTPS: true,
    activitySensitivity: "high",
    networkTrustLevel: "known",
  },
];

for (const s of scenarios) {
  console.log(s.name + " -> " + recommendConnectionApproach(s));
}
You should see
Checking personal email at a coffee shop -> proceed
Making an online banking transaction at an airport -> use-cellular
Browsing news and social media at a hotel -> proceed
Joining an open network named 'Free_Public_WiFi' -> avoid
Remote work on company systems from a co-working space -> use-vpn

5-minute try-it

For each of the five scenarios below, decide on your recommended approach (Proceed / Use VPN / Use Cellular / Avoid) before reading the practical section's answer key.
1. Checking personal email over webmail (HTTPS) on a coffee shop's official Wi-Fi.
2. Making an online banking transaction using one of the many overlapping Wi-Fi networks visible at an airport.
3. Reading the news and browsing social media on a hotel's official guest Wi-Fi.
4. Considering whether to join an open Wi-Fi network with a generic name like "Free_Public_WiFi" whose owner you cannot identify.
5. Working on internal company systems over a co-working space's member-only Wi-Fi.

One important caution

Relying on a single absolute rule like "never use public Wi-Fi" instead of evaluating each network's actual trust level and each activity's actual sensitivity

Assuming a VPN makes any activity safe on any network, and reaching for it even in high-stakes situations where switching to cellular data removes the risk more completely

FTC Consumer Advice — Are Public Wi-Fi Networks Safe? What You Need To KnowDigital Privacy & Modern Security

Easy traps

  • Relying on a single absolute rule like "never use public Wi-Fi" instead of evaluating each network's actual trust level and each activity's actual sensitivity
  • Assuming a VPN makes any activity safe on any network, and reaching for it even in high-stakes situations where switching to cellular data removes the risk more completely
  • This is not a restart of the Cybersecurity Basics course -- it assumes passwords, 2FA, phishing, malware, encryption, and backups are already covered there. This course adds what that one doesn't: passkeys, public Wi-Fi/VPN, browser security, privacy, developer-focused auth/API security, and AI security.

Exercise

For each of the five scenarios below, decide on your recommended approach (Proceed / Use VPN / Use Cellular / Avoid) before reading the practical section's answer key.
1. Checking personal email over webmail (HTTPS) on a coffee shop's official Wi-Fi.
2. Making an online banking transaction using one of the many overlapping Wi-Fi networks visible at an airport.
3. Reading the news and browsing social media on a hotel's official guest Wi-Fi.
4. Considering whether to join an open Wi-Fi network with a generic name like "Free_Public_WiFi" whose owner you cannot identify.
5. Working on internal company systems over a co-working space's member-only Wi-Fi.

You'll know it worked when: Checking personal email at a coffee shop -> proceed Making an online banking transaction at an airport -> use-cellular Browsing news and social media at a hotel -> proceed Joining an open network named 'Free_Public_WiFi' -> avoid Remote work on company systems from a co-working space -> use-vpn

Exercise: The Public Wi-Fi and VPN Decision Lab | Thuta Learning