Good morning, my name is Janne Lindqvist and I'm with the Helsinki University of Technology in Finland and also with the International Computer Science Institute in Berkeley, California. The title of the talk is IPv6 is bad for your privacy, but I can start saying that it's not that bad after all, when you have arrived to listen to this. So it's kind of silly saying that you could say that IPv4 is bad for your privacy or Internet is bad for your privacy, but you'll see what's my point. So to introduce the topic, so I'm actually going to talk about how the IPv6 address itself can be used as a covered channel. And a covered channel is a mechanism, that is not designed for communication, but can be used for that. So IPv6 address is designed for as an interface identifier for a host or for routing purposes, to show the location of the host. But it's not designed to communicate any other kind of information. And about covered channels, in IP, so there is, well, some related work already in this. So I gave this talk before in military communications conference in last year, and last year DEF CON, Murphy presented how to use ICMPv6 as a covered channel. So I have only read the abstract of that presentation, so I don't know this. But that's the actual contents. But then in privacy enhanced technologies workshop, there was a paper about covered channels in IPv6. And the authors listed 22 different covered channels that are in IPv6. And had some discussion about how to detect these covered channels. Then in information hiding workshop, there's a paper about how you can embed covered channels in IPv4, and how to make these undetectable, and how to detect trivial covered channels. Then in CCS, there's a paper about how to do timing covered channels. So that's quite interesting because, as you probably know, IP is not a reliable service, so it's not that trivial to send timed IP packets so that the recipient actually can deduce what's the actual timing pattern. And there's one other paper about covered channels in IP that I'm aware of. But all this other work didn't point out this, well, when I say it to you, it's rather obvious and simple covered channel. So an IPv6 address can be configured manually, just like in IPv4. And we can use in IPv6 networks DHCPv6, which is equivalent of the IPv4 DHCP. Or we can use the stateless address auto-configuration, which is the source of this covered channel problem. So the IPv6 stateless address auto-configuration is designed to auto-configurate unicast IPv6 addresses. So just a reminder that the IPv6 address basically consists of 64 bits of a subnet prefix and 64 bits of the interface identifier, which marks the particular host. So the auto-configuration can be used so that you don't have to manually configure it or use DHCPv6. And you can acquire both link-local that address that you use in the local area network and a global address with the help of router advertisements. And the auto-configuration procedure is quite simple. So a node chooses a tentative address candidate and then performs a duplicate address detection. So it sends this tentative address candidate to the network, and if nobody replies to this tentative candidate address that the address is actually in use, the node starts to use the address. Or if somebody replies that, okay, I'm using the address, the node chooses another address and starts to use that. First sends the duplicate address detection and if nobody replies to that, that starts to use the address. And then there's a very well-known privacy issue with this IPv6 auto-configuration mechanism that this has been addressed by the IETF. So by default, still in the proposed draft standard RFC, the interface identifier is derived from the MAC address of the network interface. And this creates privacy problems in the sense that the interface identifier would be the same in every network that you would attach your computer. So it actually could be used to correlate all traffic that originates from the node and possibly the user of the host. And this correlation can be performed by the attacker that is in the path of the communicating peers or has access to the logs of the peers. And the RFC 3041 proposes privacy extensions to the address auto-configuration. So basically, the address can be chosen randomly instead of using the MAC address derived version. So this is pretty obvious. Since the interface identifier can be chosen randomly, it also contains useful information that can be used for an attack. So 64 bits is actually quite a big cover channel. However, we need to assume that the attacker can compromise the operating system. But, well, you probably all know well how that can be done, so I don't need to go there. But, okay, so as I mentioned, there's related work about these cover channels. So there are quite a few possibilities. But why is this different? Why it's even worth mentioning about? So the thing is that the IPv6 address is in every packet that you send to the IPv6 network. So, for example, you could use TCP sequence numbers as cover channels, but if you happen to use IP security ESP to protect your traffic, the outside attacker cannot see the TCP sequence number. So you can't see it. Of course, there are possibilities for cover channels in the IP security tool. And what I'm trying to say here is that since it's in every packet, so this is not that you include in the packet. So IPv6, for example, has optional headers that you could include and use as cover channels. So how do you detect you need to have this address in every packet that you send? And if you can choose it randomly, well, I'm saying that there's actually no way to detect that somebody is using the cover channel on the network if you're careful. You can, of course, in the operating system do stuff to detect it, but not on the network. So exploits for these cover channels, cover channel are at the... So the traditional two-party communications, so Alice talks to Bob and Bob talks to Alice. So if you were in DEF CON last year, I think you saw a demonstration about this. But then there are these third-party attacks. So you can, for example, transmit secrets unknowingly for the user, or do Big Brother surveillance. And I'll give an example of both of these attacks. And I'm emphasizing this point that, of course, you can do this kind of attacks in various ways. So, for example, you could just open a connection to a server or whatever, but that's not very covered. So that can be detected on the network with, for example, if an intrusion detection system, perhaps. So for the first possible exploit, so in this scenario, we need some way to identify the compromised devices. So this is kind of limited, as you will see. So let's say that you have a laptop with the wireless LAN and you are using it. So the attacker has somebody somehow compromise it. Perhaps it's a malice vendor or whatever, or a worm that spreads on the wireless interface or whatever. And he has a database of these devices that are compromised and the MAC addresses. So you use the MAC address of the wireless link to identify the devices. So then you just passively listen into the wireless traffic and check if there are compromised devices nearby. And then, for example, the IP address, the 64 bits... Excuse me. Contains, for example, the IP security or TLS session key. So... Encoded in some way. So this is... Currently, this can be found, for example, for triple-desk, so 56-by... Oops. 56-by-bit desk. But, for example, this will not be that feasible when advanced encryption standard will use 128 bits by default or asymmetric encryption. So this... Sending the keying material with just this covered channel is not that feasible in the near future anymore. So when we are migrating to symmetric crypto that use better keys. But it's still feasible today. But the Big Brother surveillance scenario... So this is more feasible. So I have just outlined the straw man scenario for this. So you can think many other ways to do this surveillance. So let's say that Big Brother has... Well, it doesn't want that the users... Well, it wants to know that if the users are accessing certain websites. So... The compromised operating system then includes a list of the websites. The blacklist of the websites. And the web browsing is monitored by the operating system. And if the user happens to go to a website that is on the blacklist, the operating system does the attack that follows. So the next time the computer is rebooted. So to emphasize this, that this kind of surveillance attack doesn't need to be that timely. So the Big Brother can wait that, okay, well, the user has gone to this kind of site. So next time he reboots the computer, it starts to announce this. So the next time the computer is rebooted, the IPv6 stateless address auto-configuration configures the address to a predefined bit pattern. And the address will seem random. And when the address is changed, for example, if the user uses the privacy extension that way, that it changes more often than the default, it just will put another pre-configured bit pattern. And the device is thus marked. So everywhere the computer is now attached, it will send in all the IP packets that, okay, I have access to these websites. And of course we can see here that, okay, there's possibility that by somebody accidentally, since the default way is to choose the address in random, so it's accidentally the pre-configured bit pattern. But I guess the big brother can sort these things out. And then now that I have described the attack, so how can we mitigate this attack? So the obvious answer is that you do not use the stateless address auto-configuration. Use the manual configuration or DHCv6. And actually Tor would help when it's in IPv6. So if you use Tor, your address would be announced only to the nearest Tor node, so not to the whole network that you browse. Or, for example, IPv6 network address translation, if it will come. So one of the things that have been said about IPv6, that, okay, there will be no network address translators, but as far as the... it has been on the news that... so that many companies would like to have the similar... things that are in IPv4 used. But one efficient mitigation is actually this so-called cryptographically generated addresses, so CGA. So these are defined in RFC 3972, and these are mainly used for secure neighbor discovery. And in CGA, the interface identifier... is actually hash of the subnet prefix, public key, security parameter, and something else. And... well... and this actually prevents pre-complication of a suitable hash, so that you can have the pre-configured bit pattern, because you... you actually cannot pre-complicate for every subnet prefix the hash pattern that you would like. So if this CGA was just for the... based on the public key, you could actually do it this way, that you just install some public-private key pairs that... that the hash... the public key hashes to the pre-configured pattern. But... this way you cannot actually pre-compute. But... it's still possible, so if you have list, but... list of these pre-configured bit patterns that you would like to hash this, so you could... you should... but it would need that you would need to create lots of public keys, so it's not that feasible anymore. So I don't have any... much time anymore, so... in conclusion, the point... of this talk was that, okay, we actually have quite a few these protocols today that try to protect the privacy of the user by introducing random... protocol identifiers. For example, session identi... identifi... session initiation protocol, SIP, has these privacy extensions, and... I don't know, have you heard about HIP, but it has also these, but... so whenever we introduce these random protocol identifiers to protect the privacy of the user, we introduce also the possibility of covert channels that can be used by the Alice and Bob to communicate in... some... with some other traffic, or can be used to... as... by a third party to compromise the confidentiality of the communication, or can be used to... reveal any kind of information about the user to third parties. And so in the end, as I said, start... so IPv6 is not that bad for your privacy compared to IPv4, but the stateless apps address all the configuration, the privacy extensions make possible to do other kind of privacy attacks. And... I... was... so... the questions and answers are at room 108, but I think I have a couple of minutes still. So thank you. Thank you.