Public WiFi: Encrypted for Everyone Who Reads the Sign
Security
The password for the coffee shop network is chalked on a board by the till. An IETF memo describes that board, not as local colour but as the centre of the problem, because a key that everyone in the room can read keeps nobody in the room out. The useful question about a borrowed network has nothing to do with whether it wanted a password.
A belief the memo calls erroneous
Opportunistic Wireless Encryption, published by the IETF in March 2017, exists because of a belief about public WiFi, and it states that belief plainly before correcting it.
It begins from the ordinary case. “Internet access has become an expected service at many locations”, much of it offered over open unencrypted networks because handing out a passphrase, or running anything more elaborate, is “not convenient or realistic”. Venues that do want a passphrase have “a popular deployment technique” available to them, which is to share one passphrase with every customer, and the memo is specific about where that passphrase lives: “printed on a sandwich board at the entrance, on a chalkboard on the wall, or on a menu”.
Then it names the belief and disposes of it in four words. “The belief is that this protects the wireless medium from passive sniffing and simple attacks.” Immediately after it comes the verdict: “That belief is erroneous.”
The reason is arithmetic. A shared passphrase feeds a cryptographic handshake that derives the keys protecting your actual traffic, so anyone holding the passphrase who watches that handshake can derive those keys too. Because the passphrase “is known by everyone”, the memo records, “it is possible for a passive attacker to observe the 4-way handshake and compute the traffic encryption keys”. Arriving late is no obstacle either, because an observer can knock a device off the air and let it reconnect, which puts the handshake back on the air to be watched.
Nothing there turns on the venue mismanaging its equipment. It follows from the passphrase being public, and a passphrase printed on a menu could not work on any other terms.
What the newer option leaves undecided
The same memo proposes a fix, narrower than the problem might suggest. Opportunistic Wireless Encryption drops the shared passphrase and has your device and the access point run a key exchange at the moment you join, so each device ends up with its own traffic keys, and holding one reveals nothing about anybody else’s. It wants nothing from you. The memo describes it as providing “encryption of the wireless medium but no authentication”, and notes that it “requires no special configuration or user interaction”. A network running it looks, from where you are standing, exactly like a network that is not.
Candour arrives in the security section, which is largely a list of things the mode does not claim. “The client will have no authenticated identity for the access point, and vice versa.” Encrypting the air settles nothing about who is running the air. Nor does the protection reach past the radio: the mode “only secures data sent over the wireless medium”. The instruction attached to that is that “Users should still use application-level security”, which is the layer where a certificate names the server you reached.
One named attack also survives intact. The mode is “susceptible to an active attack in which an adversary impersonates an access point”, which encryption of the medium cannot reach at all, because the impersonator holds the position that lets it answer in either direction. On that point the memo states outright that the mode “is not intended to be used when an alternative that provides real authentication is available”. In December 2024 the IETF handed further development of it to the IEEE 802.11 working group.
Before any page loads, your device introduces itself
A second document covers the part of joining a network that happens before any encryption matters. Anonymity Profiles for DHCP Clients, from May 2016, opens on reports of systems that would monitor the wireless connections of passengers at Canadian airports, before explaining why the obvious answer covers only half the problem.
That answer is to vary the hardware address your device announces, because the address travels in the clear whatever else is protected. Even where the packets themselves are encrypted, “the portion of the header containing the addresses will be sent in cleartext”. The document credits that step with exactly what it achieves, which is that it “solves the trivial monitoring problem” of somebody recording the addresses they can see on the air.
A second identifier quietly undoes the first, and finding it is what the document is for. Having associated, your device has to request an address from the network, and “parameters of these protocols can reveal identifiers of the device”. Clearest of all is the name your device volunteers unprompted. “The host name is commonly used by the DHCP server to identify the host”, and the document is unsentimental about how much that name gives away, because “even simple host names can provide a significant amount of information on the identity of the device”. Those names are picked for a reason: “They are typically chosen to be unique in the context where the device is most often used.”
The recommendation is flat. “When using the anonymity profile, DHCP clients SHOULD NOT send the Host Name option.” So is the price. Some networks will hand out an address only to hardware they already have on file, “forcing clients to choose between remaining anonymous and obtaining connectivity”. What travels back once the asking is done is what the server does with that request.
The portal has to interrupt you to work at all
The third document describes the part you actually notice, which is the page that interposes itself and wants you to agree to something. Captive Portal Architecture, from November 2020, defines the arrangement without euphemism. A portal is a network that “limits the communication of attached devices to restricted hosts” until the visitor has met conditions of the venue’s own choosing, those being “Site-specific requirements that a user or device must satisfy”. The restriction itself is imposed by a separate box, “The network equipment that enforces the traffic restriction”.
This architecture exists because the deployed version of it works by lying to your device. “Current captive portal solutions typically implement some variations of forging DNS or HTTP responses”, and the requirement list that follows is written as a series of prohibitions. “Captive portal solutions should not have to break any protocols or otherwise act in the manner of an attacker”, therefore solutions “MUST NOT require the forging of responses from DNS or HTTP servers”, and solutions “MUST permit clients to perform DNSSEC validation”, which rules out forging those answers at all.
Read in that direction, a list of prohibitions is a description of what is deployed.
Its replacement asks the network to say so out loud. The state of captivity should instead be “explicitly available to devices via a standard protocol, rather than having to infer the state indirectly”. What that replaces is the inference behind your phone firing a request at a known address the second it joins anything, “requiring the device to make sacrificial queries” whose mangled answers are what tell it that it is being held.
Two readings worth taking before you trust it
None of this argues for avoiding the coffee shop. It argues for knowing which stage your precautions cover, because joining somebody else’s network has four of them: the association, the request for an address, the portal, and only then the traffic itself.
One of our own tools groups the venues rather than ranking them. It treats a coffee shop, a school and an office as one situation, on the reasoning that what matters is who configured the resolver rather than who else is in the room. On that reasoning, ours is a diagnostic that draws no line between them. It names the IPv4 address, the provider, the rough location, and says whether an IPv6 address that routes exists alongside them. It polls no resolvers at all, which makes it a reading of one connection rather than a survey of anything.
The other refuses to be the last word on anything. Asked whether a tunnel is carrying your traffic, it says so, then ranks its own result first of four readings and names the other three. That self-demotion is why it reads as a page that will not stand as a verdict.
The board by the till was never the control. Whether the access point belongs to whoever you assume it does cannot be settled by encrypting the air, what your device said in order to get an address was said before the first page loaded, and the page that asked you to agree to something had to interfere with your traffic to reach you at all.