Skip to main content
Back to blog

IPv6 Privacy Extensions: Two Ways to Replace One Identifier

Technical

IPv6 Privacy Extensions: Two Ways to Replace One Identifier article illustration

Somewhere in your network settings is a feature called privacy extensions. The name is doing it no favours, because what it changes is narrow, specific, and nothing to do with hiding you from the websites you visit.

Two halves, filled in by two different parties

An IPv6 address is long enough to be split, and the split is where this whole subject lives.

RFC 7217, a Standards Track document published in April 2014, describes what a device ends up with under stateless address autoconfiguration: one or more stable addresses “composed of a network prefix advertised by a local router, and an Interface Identifier (IID) that typically embeds a hardware address (e.g., an IEEE LAN MAC address)”.

Read that twice, because two different parties fill in the two halves. The prefix arrives from a router on the network you are attached to, and it says where you are. The interface identifier is generated by your own device, and it says which device. Your operating system has full control of the second half and none of the first.

IPv4 has no equivalent division, because a single address is handed to you whole. That is one of the structural differences behind why both versions still run side by side.

The device half used to be the network card

Notice what the quoted sentence names as typical. The identifier embedded a hardware address, which means the address your device presented to the internet contained a number assigned to its network interface at the factory.

RFC 7721, Security and Privacy Considerations for IPv6 Address Generation Mechanisms, sets out what follows. It is an Informational document rather than a standard, and its stated purpose is comparative: it “evaluates how different mechanisms mitigate different threats and the trade-offs that implementors, developers, and users face in choosing different addresses or address generation mechanisms”.

Its sharpest sentence is a comparison with the older protocol: “Location tracking based on IP address is generally not possible in IPv4 since hosts get assigned wholly new addresses when they change networks.”

Built the original way, IPv6 broke that. You carried a device to the office, to a hotel, to a conference, and the prefix in front of the address changed every time while the part behind it did not.

The four consequences, named separately

RFC 7721 is useful precisely because it itemises rather than generalises. It names “four generic attack types: correlation of activities over time, location tracking, address scanning, and device-specific vulnerability exploitation”.

Correlation. An address, it notes, “can be used to correlate the activities of a host for at least as long as the lifetime of the address”, and of hardware-derived identifiers specifically it says “they last roughly for the lifetime of a device’s network interface, allowing correlation on the order of years”.

Location tracking. This is where the two halves work together: “Because the IPv6 address structure is divided between a topological portion and an interface identifier portion, an interface identifier that remains constant when a host connects to different IPv6 links (as an IEEE-identifier-based IID does) provides a way for observers to track the movements of that host.”

Address scanning. These identifiers were built to a published format from a manufacturer’s registered prefix, which shrinks an attacker’s search space, and the document says this “erases much of the protection against address scanning that the larger IPv6 address space could provide as compared to IPv4”.

Device-specific exploitation. The fourth category follows from the third: an identifier assembled from a manufacturer’s registered prefix carries that manufacturer in it.

Keep it in proportion, though, because the document does. It places addresses alongside the other things that follow you rather than above them, observing that “IP addresses are just one example of information that can be used to correlate activities over time”, while adding the reason they are hard to deal with: “Even when higher layers encrypt their payloads, addresses in packet headers appear in the clear.” Cookies and browser fingerprints are on its list as well, and where each of those other identifiers is kept is what decides who can act on it.

The first answer is an address that expires

One response is the temporary address: a second identifier, randomly generated, used for outgoing connections and replaced on a schedule. RFC 8981 specifies it, and what resets one in practice, on a phone in particular, is covered in the schedule a handset’s temporary addresses keep.

Temporary addresses work by refusing to last, which is effective and also inconvenient, because a good deal of ordinary network administration wants an address that does last.

The second answer keeps the stability and drops the meaning

This is the mechanism the feature’s name does not cover, and on a current device it is the more consequential of the two.

RFC 8064 sets out the competing requirement without pretending it away, in hedged terms of its own: “stable addresses may be viewed as beneficial for network management, event logging, enforcement of access control, provision of quality of service, or for server or router interfaces.” Rotating everything is not a cost-free choice.

RFC 7217’s method keeps the stability and discards the meaning. It generates identifiers “such that an IPv6 address configured using this method is stable within each subnet, but the corresponding Interface Identifier changes when the host moves from one network to another”. The identifier is computed from several inputs, among them the prefix itself, something that identifies the interface, and a secret key held on the device that should be at least 128 bits long. Because the prefix is an input, a different network produces a different identifier.

Its design goals state what that buys you. Given two addresses generated this way, “it must be difficult for an attacker to tell whether the addresses have been generated by the same host”. The address holds still where holding still is useful, on one network, and stops being recognisable across the boundary where it used to give you away.

That became the recommendation rather than one option among several. RFC 8064, a Standards Track document from February 2017, states its own job in its abstract: it “changes the recommended default Interface Identifier (IID) generation scheme for cases where Stateless Address Autoconfiguration (SLAAC) is used to generate a stable IPv6 address.” Its instruction is unhedged: “By default, nodes SHOULD NOT employ IPv6 address generation schemes that embed a stable link-layer address in the IID.” Its security section compresses the same point: it “recommends against the (default) use of predictable Interface Identifiers in IPv6 addresses.”

It left the other mechanism untouched, which is how both ended up in service rather than one replacing the other. The abstract is explicit: “This document does not change any existing recommendations concerning the use of temporary addresses as specified in RFC 4941.” RFC 7217 allows an implementation to do both, a stable opaque address for being reached at and a temporary one for reaching out.

One caveat the documents insist on themselves. These are recommendations to the people writing operating systems and routers, so what any given product does is a question about that product rather than about the standards.

The prefix is not part of the deal

Here is the ceiling on all of it, obscured by the name more than by anything technical.

Everything above concerns the identifier your device generates for itself. The prefix in front of that identifier is still advertised by a router, it still says which network you are attached to, and neither mechanism alters it. On that half, IPv6 discloses what IPv4 always did.

You can see for yourself what that half gives up. Put an address through our IP lookup and the answers that come back, the organisation controlling the network, the autonomous system number, an approximate location, are all facts about the block the address sits in rather than about the device at the end of it. Rotating the device half moves none of them. Privacy extensions make a device harder to recognise as it moves between networks. Making the network itself harder to recognise is a different job, and it needs something that changes which network your traffic appears to come from.

Checking what yours is doing

Start with whether IPv6 is in play. Plenty of connections have no routable IPv6 address, and where there is none, none of this applies.

Then whether yours is getting out past something meant to contain it. This is the case where IPv6 stops being a privacy improvement and becomes the problem, because a tunnel carrying only IPv4 leaves IPv6 traffic to find its own way out. The remedy our own page lists for that case is to “Disable IPv6 on the connection if your VPN does not tunnel it”, and you can run the check with a tunnel up to find out whether the question applies to you. It is specific about reading the result, too: an address appearing in the IPv6 row “reaches websites directly and should be shut off with your VPN’s IPv6 leak protection”.

Then whether your device is on the modern default. Operating systems surface this differently and some do not surface it at all. Where you cannot find a setting, the behaviour to look for is the identifier half changing when you join a different network, which is the outcome RFC 7217 describes.

The name privacy extensions promises more than it delivers and describes less than it does. A real design fault was corrected: an identifier generated from hardware, constant across the networks a device visited, with four separately documented consequences. It was corrected twice, once by making the identifier expire and once by making it meaningless outside the network it was generated on. The half of the address that says which network you are on was never in scope, and still is not.