1 00:00:00,000 --> 00:00:06,560 Hello everyone. So today I'm going to talk about browser fingerprinting and in 2 00:00:06,560 --> 00:00:11,200 particular about an experiment that we did at EFF to measure how fingerprintable 3 00:00:11,200 --> 00:00:18,620 web browsers were called panoptic look. So let's start about a start before we 4 00:00:18,620 --> 00:00:22,580 get to browsers let's talk about identifying information. Now when we ask 5 00:00:22,580 --> 00:00:27,520 what kind of information identifies a person we have some standard sorts of 6 00:00:27,520 --> 00:00:31,220 answers like oh if I know their name and address I probably know who they are 7 00:00:31,220 --> 00:00:35,720 but there are some more surprising examples of identifying information. 8 00:00:36,100 --> 00:00:40,420 There's a paper by Latanya Sweeney from the 90s that shows someone's zip code 9 00:00:40,420 --> 00:00:46,260 and their date of birth and their gender then you have about an 80% probability 10 00:00:46,260 --> 00:00:50,480 of being able to identify them uniquely. Now that's a bit surprising and 11 00:00:50,480 --> 00:00:55,080 counterintuitive so let's see how it happens. If you start with 7 billion 12 00:00:55,080 --> 00:00:57,380 people on the face of the planet Earth 13 00:00:58,360 --> 00:01:03,040 you rapidly narrow yourself down if you know a zip code to a group of about 14 00:01:03,040 --> 00:01:07,680 20,000 or maybe 50,000 people maybe maybe in some cases a hundred thousand 15 00:01:07,680 --> 00:01:12,480 but not very many and then you can divide that number by 365 because you 16 00:01:12,480 --> 00:01:16,780 know their birth date you can divide by a more complicated number that's about 17 00:01:16,780 --> 00:01:21,240 70 because you know how know how old a person is and then you can divide in 18 00:01:21,240 --> 00:01:25,340 half again because you know whether they're male or female and it turns out 19 00:01:25,340 --> 00:01:27,160 that if the zip code you started with had 20 00:01:27,740 --> 00:01:33,100 fewer than about 50,000 people in it you now probably have a unique person at 21 00:01:33,100 --> 00:01:39,360 the end of this program. So there's a mathematical measure you can use to to 22 00:01:39,360 --> 00:01:43,900 say how identifying a set of facts about a person is or how much 23 00:01:43,900 --> 00:01:48,080 information is required to identify someone and if you need more bits to 24 00:01:48,080 --> 00:01:51,960 identify them then each bit doubles the number of possibilities and if you're 25 00:01:51,960 --> 00:01:55,940 learning more facts about them then each bit you learn halves the number of 26 00:01:55,940 --> 00:01:56,340 possibilities. 27 00:01:57,380 --> 00:02:02,080 Think of these as trading off against one another. So for instance on the 28 00:02:02,080 --> 00:02:06,840 face of the planet earth with seven billion of us people you need about 33 29 00:02:06,840 --> 00:02:13,540 bits to learn the identity of one of us and if you learn someone's birth 30 00:02:13,540 --> 00:02:20,180 date what day of the year they were born on you learn about 8.51 bits. 31 00:02:24,000 --> 00:02:27,260 So if we talk about a random variable you might 32 00:02:27,380 --> 00:02:33,760 measure, like someone's birth date, you can talk about the amount of information you learn when 33 00:02:33,760 --> 00:02:37,600 you learn a particular value of that random variable. So if we're talking about birth date 34 00:02:37,600 --> 00:02:43,800 and you learn that my birth date is the 1st of March, then you've learned 8.51 bits about my 35 00:02:43,800 --> 00:02:50,500 identity. If, however, you learn that my birth date is the 29th of February on a leap year, 36 00:02:50,700 --> 00:02:56,800 then you get a bit more information because the likelihood of that being true is only a quarter 37 00:02:56,800 --> 00:03:02,160 of what it would be for any other birthday, so you get more information, 10.51 bits, typically. 38 00:03:03,360 --> 00:03:09,560 So we call that first measurement the surprisal or self-information of a fact you've learned. 39 00:03:10,700 --> 00:03:16,400 So surprisal that I was born on the 29th of February, 10.51 bits. And then we can talk 40 00:03:16,400 --> 00:03:22,740 about the entropy of this type of measurement, which is the expectation value of the surprisal. 41 00:03:23,180 --> 00:03:26,140 So if you have a probability distribution, you measure the 42 00:03:26,140 --> 00:03:26,640 the 43 00:03:26,640 --> 00:03:34,080 expectation across all of that. There's some formulas you can use to look at this. We have 44 00:03:34,080 --> 00:03:38,620 a paper on our website that has all the mathematics in a bit more detail if you're interested in it. 45 00:03:39,740 --> 00:03:44,720 A point to note is that you can't add surprisals together. If you learn someone's 46 00:03:45,400 --> 00:03:51,820 birth date and then you learn what city they were born in, those two things are probably 47 00:03:51,820 --> 00:03:55,720 independent variables. Not entirely, but close to. 48 00:03:55,720 --> 00:04:02,600 So you could add the number of bits together. But if you already know someone's birth date, 49 00:04:03,300 --> 00:04:09,240 and then someone tells you their star sign, you're actually not going to learn any more information. 50 00:04:09,600 --> 00:04:13,000 So if you want to know how two of these measurements add together, 51 00:04:13,060 --> 00:04:15,720 you need to do some fancy stuff with conditional probabilities. 52 00:04:17,120 --> 00:04:22,920 So what use is all of this theory? Well, we can apply it to tracking web browsers. 53 00:04:23,360 --> 00:04:25,500 Now what do I mean by tracking web browsers? 54 00:04:25,500 --> 00:04:32,420 Two things. One is if you go to a website on day A and then you come back three weeks later 55 00:04:32,420 --> 00:04:36,700 and you do something else, can the website link those two acts of yours together? 56 00:04:37,660 --> 00:04:45,440 And also, if on a given day you go to two different websites and you maybe look up one fact 57 00:04:45,440 --> 00:04:48,960 on one and then another fact on another, and then the question is could these two 58 00:04:48,960 --> 00:04:52,760 sites get together and combine the facts and get a deeper picture about you, 59 00:04:54,560 --> 00:04:55,460 either of those 60 00:04:55,500 --> 00:05:01,500 would be tracking. Now there are at least three ways that are widely discussed to track web 61 00:05:01,500 --> 00:05:07,120 browsers. You can use cookies, which are these little bits of information your computer will 62 00:05:07,120 --> 00:05:12,380 store and send back. And sites can put serial numbers and tracking numbers in them. But of 63 00:05:12,380 --> 00:05:15,380 course, we all know about, we're at DEF CON, everyone here knows about cookies. You all 64 00:05:15,380 --> 00:05:20,240 have browser settings to delete them or limit them. So we can survive cookie tracking. 65 00:05:20,580 --> 00:05:25,360 And IP addresses, everyone knows about IP addresses, but IP addresses can be hidden by, 66 00:05:25,360 --> 00:05:30,200 by a proxy server, or you can, you can move from your house to your friend's house to the 67 00:05:30,200 --> 00:05:34,940 cafe to work and each time your IP address changes. Lastly, there are these quite nasty 68 00:05:34,940 --> 00:05:39,000 things called super cookies. The most infamous example being Flash cookies. 69 00:05:39,720 --> 00:05:43,920 They are essentially exactly like cookies, except when you tell your browser not to set cookies, 70 00:05:44,220 --> 00:05:48,500 Flash still has some other settings page that you haven't changed somewhere, 71 00:05:48,700 --> 00:05:54,500 and so Flash is still storing its own kinds of cookies. And you can think of these things as hoops 72 00:05:55,360 --> 00:05:59,120 to get through in order to get privacy on the web. If you want to not be tracked you have to 73 00:05:59,120 --> 00:06:05,120 avoid tracking by cookies, avoid tracking by IP addresses, avoid tracking by super cookies, 74 00:06:05,900 --> 00:06:10,720 and then if you do that, it's time to talk about whether you can be tracked by a fingerprint. 75 00:06:11,680 --> 00:06:17,940 So fingerprints are like LaTanya Swaini's example of tracking someone with some inane facts 76 00:06:17,940 --> 00:06:23,420 like their zip code and their date of birth. Turns out that the characteristics the web browsers have. 77 00:06:23,620 --> 00:06:25,180 Like the version of the browser. 78 00:06:25,360 --> 00:06:31,440 what operating system it's on, etc. combine together in the same way as those other facts 79 00:06:31,440 --> 00:06:33,900 and perhaps they make your browser unique. 80 00:06:35,220 --> 00:06:39,900 Now there are different degrees of uniqueness that you might get out of the version information 81 00:06:39,900 --> 00:06:40,620 on a browser. 82 00:06:40,740 --> 00:06:42,740 You might have complete global uniqueness. 83 00:06:43,140 --> 00:06:48,260 So you sitting there in the third row, your browser is completely unique in the whole 84 00:06:48,260 --> 00:06:48,820 wide world. 85 00:06:48,920 --> 00:06:49,500 And we know it. 86 00:06:49,520 --> 00:06:52,300 When we see you, we can track your browser. 87 00:06:52,300 --> 00:06:54,880 But perhaps that's not true. 88 00:06:55,440 --> 00:07:01,500 Even so, browser fingerprints may be a problem because they mean that your IP address combined 89 00:07:02,040 --> 00:07:04,060 with your fingerprint is uniquely identifying. 90 00:07:04,520 --> 00:07:08,480 So if you guys all have your laptops open and you're surfing during my talk, please 91 00:07:08,480 --> 00:07:08,920 don't do that. 92 00:07:09,120 --> 00:07:14,560 But if you do, then perhaps there are 2,000 people behind a proxy server here at DEF CON 93 00:07:14,560 --> 00:07:15,760 all surfing at once. 94 00:07:15,860 --> 00:07:21,780 And so that gives you some degree of anonymity, except if you all have fingerprints that 95 00:07:21,780 --> 00:07:22,260 are not unique. 96 00:07:22,260 --> 00:07:26,640 Unique in the world, but unique at DEF CON at least, then that would be a tracking mechanism. 97 00:07:28,020 --> 00:07:31,500 Another possibility is that fingerprints don't track you all the time. 98 00:07:31,640 --> 00:07:36,060 Just whenever you go and delete your cookies, your fingerprint is unique enough to link 99 00:07:36,060 --> 00:07:39,820 your old cookie to your new one, to give you a new copy of your old cookie back again, 100 00:07:39,840 --> 00:07:41,000 a zombie cookie if you like. 101 00:07:42,040 --> 00:07:46,640 And the last thing that makes fingerprints really nasty is that unlike cookies, they're 102 00:07:46,640 --> 00:07:49,420 automatically the same when different sites collect them. 103 00:07:49,660 --> 00:07:51,380 So if website over here. 104 00:07:51,380 --> 00:07:55,500 Here sees your fingerprint and website over there sees your fingerprint, they see the 105 00:07:55,500 --> 00:07:56,120 same thing. 106 00:07:56,380 --> 00:08:00,640 If they both tracked you with cookies, they'd get different cookies and they'd have to have 107 00:08:00,640 --> 00:08:02,500 some sneaky process to link them together. 108 00:08:02,740 --> 00:08:05,680 Whereas fingerprints are automatically the same. 109 00:08:07,260 --> 00:08:10,800 So we heard a lot of rumors at EFF about fingerprints. 110 00:08:11,120 --> 00:08:15,260 We heard that some web tracking and analytics companies had started using them. 111 00:08:15,800 --> 00:08:20,900 We heard rumors that web-based DRM systems were using fingerprints. 112 00:08:22,860 --> 00:08:27,440 We'd heard that they were being used as a backup authentication mechanism for financial 113 00:08:27,440 --> 00:08:29,820 systems, which is maybe less of a problem than the first two. 114 00:08:30,220 --> 00:08:34,200 And we got really curious about how effective this method was. 115 00:08:34,920 --> 00:08:39,140 And we were also worried about a more mundane question, which is every single time you go 116 00:08:39,140 --> 00:08:44,020 to a website, almost all websites are configured to log your browser's user agent string. 117 00:08:44,760 --> 00:08:47,620 And we were wondering how much of a problem that was. 118 00:08:48,080 --> 00:08:50,880 So we decided to get some numbers to find out. 119 00:08:50,900 --> 00:08:56,180 So we put up this little website, panopticlick.eff.org. 120 00:08:56,740 --> 00:09:01,800 And if you went to that website, if you still go there, you see a page like this that tells 121 00:09:01,800 --> 00:09:04,900 you what's going on and then gives you a little button you can click if you want to 122 00:09:04,900 --> 00:09:05,780 be part of the experiment. 123 00:09:06,880 --> 00:09:12,440 And if you click on that, you get a page that looks like this that says, oh, you know, your 124 00:09:12,440 --> 00:09:19,380 browser appears to be unique, at least up to 20 bits, possibly more of identifying information 125 00:09:19,380 --> 00:09:20,580 coming from your fingerprint. 126 00:09:20,900 --> 00:09:25,400 And then there's this little table here showing what all the component measurements were and 127 00:09:25,400 --> 00:09:27,480 how identifying each of those were on their own. 128 00:09:27,600 --> 00:09:32,180 So you can see there's a user agent string, there are accept headers, plug-in details, 129 00:09:32,380 --> 00:09:32,660 et cetera. 130 00:09:34,040 --> 00:09:35,980 Really telling stuff in there, there's fonts. 131 00:09:36,300 --> 00:09:38,520 I'll talk about where these came from more in a second. 132 00:09:39,240 --> 00:09:41,340 So these are the eight measurements we had. 133 00:09:43,940 --> 00:09:48,560 These top three were just, they're just things that you always send to a web server when 134 00:09:48,560 --> 00:09:49,460 you ask for a page. 135 00:09:50,160 --> 00:09:50,880 The next thing we did was we looked at the web server and we looked at the web server 136 00:09:50,900 --> 00:09:51,140 And the next thing we've looked at is the JavaScript. 137 00:09:51,140 --> 00:09:52,660 So the next four come from JavaScript. 138 00:09:53,400 --> 00:09:57,240 So there's a little bit of JavaScript that runs in the page and if your browser supports 139 00:09:57,240 --> 00:10:01,680 JavaScript and it doesn't have it disabled, the JavaScript will collect this information 140 00:10:01,680 --> 00:10:05,180 and send it back to us with an HTTP POST command. 141 00:10:06,120 --> 00:10:12,700 And lastly, if you have Flash or Java installed, we'll go into Flash or Java or both and ask 142 00:10:12,700 --> 00:10:15,120 those plug-ins for your list of system fonts. 143 00:10:16,840 --> 00:10:17,620 So yeah. 144 00:10:17,740 --> 00:10:19,800 So we have these different measurements. 145 00:10:20,320 --> 00:10:20,880 And so that's that. 146 00:10:22,240 --> 00:10:26,600 It'll turn out that the two most problematic ones, they're all kind of problematic. 147 00:10:26,780 --> 00:10:30,300 The two most problematic ones are these plugins here and these fonts at the bottom. 148 00:10:31,480 --> 00:10:36,840 So there are a lot of things we didn't collect but which you could use to make these fingerprints 149 00:10:36,840 --> 00:10:37,740 even nastier. 150 00:10:38,020 --> 00:10:42,060 And in fact it turns out we've since seen that there are companies in the private sector 151 00:10:42,060 --> 00:10:46,300 that will sell you a fingerprinting system that doesn't just do the kind of eight things 152 00:10:46,300 --> 00:10:49,020 we did but actually also does a lot of this other stuff. 153 00:10:49,020 --> 00:10:53,660 One particularly nasty thing is you can measure the clock skew of a quartz crystal. 154 00:10:53,940 --> 00:10:57,900 That is how much faster or slower than another clock your computer is. 155 00:10:58,060 --> 00:11:02,260 And that's very hard to hide and it's unique to your hardware rather than just your software. 156 00:11:02,500 --> 00:11:06,520 You can measure the characteristics of the operating system's TCP IP implementation. 157 00:11:07,580 --> 00:11:10,260 You can measure the order in which the headers show up. 158 00:11:10,480 --> 00:11:16,100 There's lots of stuff in the ActiveX Silverlight and other Adobe libraries that we didn't have 159 00:11:16,100 --> 00:11:19,000 time to dig through and find and use but you can do that. 160 00:11:19,000 --> 00:11:23,400 There are quirks to the way that each browser has implemented JavaScript that could be 161 00:11:23,400 --> 00:11:25,120 identified with the right code. 162 00:11:26,160 --> 00:11:31,080 There's a really nasty bug that's just recently started being fixed in browsers where you 163 00:11:31,080 --> 00:11:35,160 can measure the history of a browser using CSS detection. 164 00:11:35,840 --> 00:11:40,180 And some of these things we didn't collect because we just didn't have time to implement 165 00:11:40,180 --> 00:11:40,440 them. 166 00:11:40,640 --> 00:11:42,880 Some we didn't collect because we didn't know about them. 167 00:11:42,920 --> 00:11:46,700 Once we put the site up we got a lot of emails saying hey you could collect this thing as 168 00:11:46,700 --> 00:11:46,900 well. 169 00:11:46,900 --> 00:11:52,560 And lastly some things like this CSS history we weren't sure would be stable enough to 170 00:11:52,560 --> 00:11:56,980 include in a fingerprint without some kind of fuzzy matching code that we didn't have. 171 00:11:58,880 --> 00:12:03,060 So all of our results I guess the point here is that all of our results should be taken 172 00:12:03,060 --> 00:12:06,480 as a kind of optimistic story about how much privacy you have. 173 00:12:06,640 --> 00:12:10,700 With a really good fingerprint the fingerprint is more powerful and more revealing. 174 00:12:12,540 --> 00:12:15,040 So the way we handled the data off our site. 175 00:12:15,120 --> 00:12:16,860 We set a three month procedure. 176 00:12:16,860 --> 00:12:17,240 Distant cookie. 177 00:12:17,560 --> 00:12:21,000 And we stored an encrypted IP address with a key that we threw away. 178 00:12:21,960 --> 00:12:25,800 And we used those primarily to avoid counting you twice. 179 00:12:25,880 --> 00:12:33,140 If you came back we wanted to know if you had if you were the same person with the 180 00:12:33,140 --> 00:12:36,620 same fingerprint or another person with the same fingerprint because those are two very 181 00:12:36,620 --> 00:12:37,240 different things. 182 00:12:38,240 --> 00:12:43,400 And we had an exception for that which is if at a particular IP address we saw cookie 183 00:12:43,400 --> 00:12:45,740 A and then cookie B and then cookie A again. 184 00:12:45,860 --> 00:12:46,600 We thought. 185 00:12:46,860 --> 00:12:51,140 That's probably at least potentially evidence that there are more than two computers behind 186 00:12:51,140 --> 00:12:55,940 that IP address that perhaps behind a NAT firewall that have the same fingerprint. 187 00:12:56,420 --> 00:12:59,840 And that could be important because it could be a sign that there's a corporate network 188 00:12:59,840 --> 00:13:04,080 there and there's some sysadmin who clones all the same code out onto all the machines 189 00:13:04,080 --> 00:13:04,640 every day. 190 00:13:04,740 --> 00:13:08,600 And so there are genuinely multiple machines with identical fingerprints there. 191 00:13:09,060 --> 00:13:12,260 And that gives the people in that office some protection. 192 00:13:12,820 --> 00:13:16,840 So we decided not to treat those as repeat visits from the same person. 193 00:13:16,860 --> 00:13:18,120 But we decided to treat them as repeat visits from the same browser if they were interleaved. 194 00:13:19,660 --> 00:13:23,680 One thing to note is a lot of people were confused by the numbers we had on our site. 195 00:13:24,240 --> 00:13:28,780 Those used the cookies but not the other methods of avoiding double counting because 196 00:13:28,780 --> 00:13:31,400 we had to compute that stuff on the fly for millions of visitors. 197 00:13:33,720 --> 00:13:38,000 The data set I'm presenting in this talk has more fancy control for that stuff. 198 00:13:39,340 --> 00:13:41,140 So we got a pretty big data set. 199 00:13:41,260 --> 00:13:42,220 We had two million hits. 200 00:13:43,720 --> 00:13:46,400 About a million distinct browser instances there. 201 00:13:47,100 --> 00:13:51,340 The people that we were measuring are not representative of the entire web user base. 202 00:13:51,540 --> 00:13:54,800 They're people who read Slashdot or Boing Boing or come to the EFF site. 203 00:13:55,820 --> 00:14:02,400 And so they're more of a data set of privacy, people who know about and care about privacy. 204 00:14:02,720 --> 00:14:07,360 However, as I said before, you have to jump through three hoops to not be trackable already 205 00:14:07,360 --> 00:14:08,040 on the web. 206 00:14:08,240 --> 00:14:13,560 And so we think this is kind of the relevant data set to ask, do people who block cookies 207 00:14:13,560 --> 00:14:16,320 and know about IP addresses and how to hide them? 208 00:14:16,320 --> 00:14:20,040 And so forth, end up being trackable by their fingerprints instead. 209 00:14:20,620 --> 00:14:26,500 And another point is that the data in this talk is all based on the first 470,000 odd 210 00:14:26,500 --> 00:14:26,800 instances. 211 00:14:26,980 --> 00:14:28,620 So the first half of the data set. 212 00:14:30,520 --> 00:14:33,100 Turned out, people were really unique. 213 00:14:34,720 --> 00:14:41,060 84% of the browsers that came to our test site were unique completely in the data set. 214 00:14:42,440 --> 00:14:46,300 If you split the data set up and say, let's just look at the browser. 215 00:14:46,320 --> 00:14:49,780 Browsers that have either Flash or Java installed. 216 00:14:50,220 --> 00:14:54,300 And that's the relevant set if you're talking about desktop browsers. 217 00:14:55,220 --> 00:14:57,980 Your uniqueness rates go up to 94%. 218 00:14:57,980 --> 00:15:04,180 And only 1% have a fingerprint that we saw more than twice. 219 00:15:06,680 --> 00:15:09,000 So this is the same thing on a graph. 220 00:15:09,480 --> 00:15:11,460 Note that this graph has log axes. 221 00:15:11,600 --> 00:15:15,900 If you drew this graph of how common the different fingerprints were. 222 00:15:15,900 --> 00:15:21,100 Without log axes, you end up with a graph where the line runs exactly along this axis 223 00:15:21,100 --> 00:15:21,800 all the way. 224 00:15:21,900 --> 00:15:23,500 And then exactly along this one. 225 00:15:23,780 --> 00:15:26,580 So in order to see any structure, you have to put it on log scales. 226 00:15:26,960 --> 00:15:30,820 But the important thing to know is that 84% of the data is right down here in this section 227 00:15:30,820 --> 00:15:31,460 on the tail. 228 00:15:31,540 --> 00:15:31,980 It's unique. 229 00:15:32,620 --> 00:15:39,440 And then there's another group of people about 20,000 people who have an anonymity set size 230 00:15:39,440 --> 00:15:40,120 of two. 231 00:15:40,300 --> 00:15:42,700 There were two browsers that had that fingerprint. 232 00:15:43,640 --> 00:15:45,660 A small group with three, four, five. 233 00:15:45,660 --> 00:15:49,880 And then right up the other end, you have a small number of browser fingerprints that 234 00:15:49,880 --> 00:15:50,820 were not very unique. 235 00:15:51,540 --> 00:15:55,680 The one right at the top is a Firefox instance that's not running JavaScript. 236 00:15:56,180 --> 00:16:01,540 So like a recent version of Firefox with no JavaScript, you have a decent amount of 237 00:16:01,540 --> 00:16:02,000 anonymity. 238 00:16:04,580 --> 00:16:08,420 There's an interesting statistical question that you might ask, which is, okay, sure, 239 00:16:08,540 --> 00:16:13,560 you saw 94% or 84% uniqueness in your data set, but that was only 500,000 people. 240 00:16:14,000 --> 00:16:15,640 Would people be less unique? 241 00:16:15,640 --> 00:16:20,660 Would you be less unique if we could get data for the whole one to two billion people 242 00:16:20,660 --> 00:16:21,760 who use the web? 243 00:16:23,120 --> 00:16:25,840 And this is an interesting statistical question. 244 00:16:27,080 --> 00:16:30,580 I have a theory about how to solve it involving Monte Carlo simulations. 245 00:16:30,960 --> 00:16:35,940 You try a hypothesis probability distribution, you run it through a simulation, you see 246 00:16:35,940 --> 00:16:37,520 if it produces a graph that looks like that. 247 00:16:38,460 --> 00:16:43,040 But we didn't try to do this because in a sense, our data set, which is just a measurement 248 00:16:43,040 --> 00:16:44,320 of privacy conscious users. 249 00:16:44,320 --> 00:16:49,000 Is not meaningfully representative of the one to two billion browsers in existence. 250 00:16:49,420 --> 00:16:55,100 So if someone else has a less biased data set, you could do this statistical question. 251 00:16:57,700 --> 00:16:58,560 We didn't try. 252 00:16:59,980 --> 00:17:03,940 Now any graph that tries to show you everything that's going on in this data set is going 253 00:17:03,940 --> 00:17:06,720 to be really complicated because it's half a million data points. 254 00:17:07,100 --> 00:17:09,520 But I'm going to try with a couple of them. 255 00:17:10,120 --> 00:17:13,620 This one shows for each category of browsers. 256 00:17:13,620 --> 00:17:19,080 So Firefox, IE, Opera, Chrome, Android, iPhone, Conqueror, Blackberry, Safari, and then a 257 00:17:19,080 --> 00:17:22,460 lumped together collection of links and other text mode browsers. 258 00:17:22,780 --> 00:17:28,000 For each of those, how good or bad was it from a uniqueness trackability point of view? 259 00:17:28,760 --> 00:17:33,480 So if you look at this graph, anything that's over here is a proportion of uniqueness. 260 00:17:35,620 --> 00:17:37,960 These things were completely unique in our data set. 261 00:17:38,180 --> 00:17:41,340 The other end, we have the least revealing fingerprints. 262 00:17:41,340 --> 00:17:44,140 So let's take an example. 263 00:17:44,320 --> 00:17:45,860 Firefox is this black line. 264 00:17:46,340 --> 00:17:51,620 It follows this curve down here where it has a little bit of a tail in the non-unique area. 265 00:17:51,840 --> 00:17:56,260 That's because some people had JavaScript turned off in Firefox or they were running 266 00:17:56,260 --> 00:17:59,960 Tor button and it shows up as Firefox. 267 00:18:00,400 --> 00:18:05,260 And then right up here, there's a very large number of unique Firefoxes. 268 00:18:07,200 --> 00:18:11,240 All of the desktop browsers, aside from Firefox, are like that. 269 00:18:11,340 --> 00:18:14,220 But without this little tail of non-unique people. 270 00:18:14,420 --> 00:18:15,980 So generally desktop browsers are bad. 271 00:18:16,460 --> 00:18:19,240 The browsers that did well, iPhone. 272 00:18:19,440 --> 00:18:20,800 The iPhone does very well. 273 00:18:20,880 --> 00:18:22,000 It's not very fingerprintable. 274 00:18:22,180 --> 00:18:25,460 It's this purple line and there are quite a lot of iPhones that are not unique. 275 00:18:26,620 --> 00:18:31,640 That's perhaps not surprising because there aren't yet plugins and font variation on iPhones. 276 00:18:32,900 --> 00:18:36,380 Really all you're talking about is what time zone you're in, what language you're in, 277 00:18:36,480 --> 00:18:38,440 maybe which version of the iPhone OS you have. 278 00:18:38,620 --> 00:18:41,180 But there's not very much to fingerprint an iPhone with. 279 00:18:41,340 --> 00:18:43,420 Android does almost as well. 280 00:18:43,540 --> 00:18:46,500 Not quite as well because there are more iPhones than Androids. 281 00:18:48,080 --> 00:18:50,420 But those phone browsers look pretty good. 282 00:18:50,960 --> 00:18:54,940 In practice, of course, they have really bad cookie settings so people who use them 283 00:18:54,940 --> 00:18:56,360 probably get tracked by their cookies. 284 00:18:56,620 --> 00:18:59,320 But this was a good result for the phones. 285 00:19:02,360 --> 00:19:05,840 I'll let you guys ask more questions about these crazy graphs at the end. 286 00:19:06,760 --> 00:19:09,960 Now if we look at the variables that we mentioned. 287 00:19:10,040 --> 00:19:10,920 We had these eight measurements. 288 00:19:10,920 --> 00:19:12,740 Which ones were the problematic ones? 289 00:19:13,940 --> 00:19:16,940 This table measures to first order which they were. 290 00:19:17,160 --> 00:19:18,780 So user agent is pretty bad. 291 00:19:19,020 --> 00:19:20,020 It's 10 bits of information. 292 00:19:20,620 --> 00:19:26,840 Every time you log in your web server logs the user agent, you expect on average that 293 00:19:26,840 --> 00:19:31,940 you're narrowing the population down to one thousandth of what it could have been if someone 294 00:19:31,940 --> 00:19:33,800 wants to browse anonymously. 295 00:19:35,000 --> 00:19:39,820 The things that were worse, plugins, 15.4 bits. 296 00:19:39,820 --> 00:19:41,460 Fonts, about 14 bits. 297 00:19:41,620 --> 00:19:46,180 So these things that your browser publishes are very revealing. 298 00:19:48,620 --> 00:19:55,120 If you want to ask, okay, what is the distribution of different values for all of these things 299 00:19:55,120 --> 00:19:55,580 look like? 300 00:19:55,700 --> 00:19:57,520 You end up with this crazy graph here. 301 00:19:58,420 --> 00:19:59,920 It's in our paper as well. 302 00:20:00,080 --> 00:20:01,540 I can try to explain it. 303 00:20:01,600 --> 00:20:09,480 It says how many people, for each of these measurements separately, there are eight different measurements. 304 00:20:09,820 --> 00:20:15,500 For each one, how many people fell into an anonymity set size of K for each of the measurements? 305 00:20:16,340 --> 00:20:22,720 An anonymity set size of one means you were completely unique because of your fingerprints 306 00:20:22,720 --> 00:20:25,040 or your font or your plugins. 307 00:20:25,460 --> 00:20:31,540 So you see up here, there are a lot of people who are unique, 200,000, 250,000 people who 308 00:20:31,540 --> 00:20:34,280 are unique just because of the plugins they had installed in their browser. 309 00:20:35,240 --> 00:20:39,580 There were 200,000 who were unique just because of their fonts. 310 00:20:39,660 --> 00:20:39,800 Okay. 311 00:20:39,820 --> 00:20:44,800 That's 20,000, 25,000 who are unique just because of their user agent, et cetera. 312 00:20:45,060 --> 00:20:49,340 As you go down here, these are less identifying values. 313 00:20:49,760 --> 00:20:55,920 And then along this line, we have right up to the end, having cookies enabled wasn't 314 00:20:55,920 --> 00:20:56,900 a very revealing fact. 315 00:20:57,220 --> 00:21:01,220 So if anyone has questions about, oh, you know, like, what does this data look like, 316 00:21:01,280 --> 00:21:05,040 you can come back and study this graph and pore over it for half an hour or ask me questions 317 00:21:05,040 --> 00:21:05,540 about it. 318 00:21:06,520 --> 00:21:09,800 So another really interesting question you might have is, so, show me a graph. 319 00:21:09,800 --> 00:21:14,780 Sure, you can identify people, but don't these fingerprints change over time? 320 00:21:15,060 --> 00:21:20,820 Are they really a stable way to track someone if they could upgrade their browser or install 321 00:21:20,820 --> 00:21:23,040 a new font and suddenly the fingerprint would be different? 322 00:21:23,620 --> 00:21:25,740 And so we decided to check this. 323 00:21:26,420 --> 00:21:31,300 This graph shows the set of people who visited Panoptic Click exactly twice. 324 00:21:31,760 --> 00:21:36,500 So we wanted to throw away people who might have been playing with the site, trying to 325 00:21:36,500 --> 00:21:39,040 optimize their uniqueness or tweak things. 326 00:21:39,800 --> 00:21:45,280 We wanted people who came exactly twice with at least an hour or two in between the two 327 00:21:45,280 --> 00:21:46,060 visits they did. 328 00:21:46,140 --> 00:21:47,080 So they didn't just hit reload. 329 00:21:47,300 --> 00:21:48,040 They came back later. 330 00:21:48,480 --> 00:21:53,440 And then we said, as a function of how much later they came back, what was the probability 331 00:21:53,440 --> 00:21:54,920 that their fingerprint had changed? 332 00:21:55,460 --> 00:22:00,560 And you can see, as more time has passed, the likelihood that the fingerprint was different 333 00:22:00,560 --> 00:22:02,500 when they came back goes up. 334 00:22:02,660 --> 00:22:04,300 We measured this, by the way, with cookies. 335 00:22:04,400 --> 00:22:09,440 So there was a cookie that you could reliably use to see the same person, and then you can 336 00:22:09,440 --> 00:22:10,500 see if the fingerprint changes. 337 00:22:11,060 --> 00:22:13,380 So actually, fingerprints don't last very long. 338 00:22:13,580 --> 00:22:16,720 The half-life of these things is four or five days. 339 00:22:18,780 --> 00:22:21,260 So perhaps that's actually a really good sign. 340 00:22:21,480 --> 00:22:27,040 Perhaps fingerprints, while they're instantaneously identifying, aren't a stable way to track 341 00:22:27,040 --> 00:22:27,780 people over time. 342 00:22:29,880 --> 00:22:31,920 Unfortunately, this turned out not to be true. 343 00:22:32,520 --> 00:22:36,660 So the way we did that is we said, okay, your fingerprint has changed. 344 00:22:36,880 --> 00:22:38,960 Can we do some kind of fuzzy matching algorithm? 345 00:22:39,440 --> 00:22:44,240 That will see if your fingerprint later, after the change, was uniquely tieable to your 346 00:22:44,240 --> 00:22:45,080 fingerprint beforehand. 347 00:22:46,900 --> 00:22:50,420 And I implemented a really hacky algorithm to do this. 348 00:22:51,020 --> 00:22:56,560 It just says if only one of those eight measurements has changed, and it hasn't changed very much, 349 00:22:57,440 --> 00:23:02,380 and that maps to a unique fingerprint from beforehand, then let's guess that it's you. 350 00:23:03,580 --> 00:23:09,260 And it only tries to do this if you had something quite revealing, like Flash or Java. 351 00:23:09,260 --> 00:23:13,660 So this algorithm guesses about two-thirds of the time. 352 00:23:14,240 --> 00:23:17,800 But when it does guess, it's 99% accurate. 353 00:23:18,020 --> 00:23:23,720 So it has a 99% chance of correctly guessing which fingerprint you changed from, and less 354 00:23:23,720 --> 00:23:25,340 than 1% chance of getting it wrong. 355 00:23:25,820 --> 00:23:30,280 So even though fingerprints change quite fast, even though the half-life of a fingerprint 356 00:23:30,280 --> 00:23:36,040 is five days, actually, you're still trackable once your fingerprint has changed. 357 00:23:38,160 --> 00:23:38,760 So. 358 00:23:39,540 --> 00:23:44,700 There were really only four examples of categories of browsers that survived this. 359 00:23:44,860 --> 00:23:46,400 I mentioned them all quickly in passing. 360 00:23:46,780 --> 00:23:52,220 If you block JavaScript, perhaps with NoScript, the Firefox extension to do that, you're in 361 00:23:52,220 --> 00:23:52,800 pretty good shape. 362 00:23:53,020 --> 00:23:58,740 If you use TorButton, TorButton zaps the plugin list, and the TorButton developers 363 00:23:58,740 --> 00:24:02,180 knew about a lot of these attacks and anticipated them in various ways. 364 00:24:02,680 --> 00:24:06,700 So TorButton, you don't have to use Tor, you can just use the little TorButton Firefox 365 00:24:06,700 --> 00:24:07,300 extension. 366 00:24:07,640 --> 00:24:08,820 You're in pretty good shape. 367 00:24:09,260 --> 00:24:14,480 If you use an iPhone or an Android and you manage the cookie problem, you're in pretty 368 00:24:14,480 --> 00:24:14,900 good shape. 369 00:24:15,400 --> 00:24:22,180 And lastly, this small percentage of systems that were behind firewalls and appeared to 370 00:24:22,180 --> 00:24:27,800 have the same fingerprint, we saw about 3% of IP addresses that had multiple visitors 371 00:24:27,800 --> 00:24:29,900 coming from them exhibiting that kind of behavior. 372 00:24:30,320 --> 00:24:37,220 So that 3% of systems maybe has some kind of anonymity, although it's a bit hard to 373 00:24:37,220 --> 00:24:39,240 distinguish that from a browser's private browser. 374 00:24:39,240 --> 00:24:44,500 And it would also be the case that if you implemented the clock skew hardware-based 375 00:24:44,500 --> 00:24:49,020 fingerprinting, you could probably tell people apart, even if they have a firewall and a 376 00:24:49,020 --> 00:24:49,920 cloned fingerprint. 377 00:24:50,720 --> 00:24:54,700 So currently, there aren't very many web browsers that do well. 378 00:24:56,160 --> 00:24:58,500 We also saw some other really interesting things. 379 00:25:00,100 --> 00:25:05,460 One interesting thing was that sometimes privacy-enhancing technologies are the opposite. 380 00:25:06,140 --> 00:25:09,220 Something that's designed to hide your identity turns into a privacy-enhancing technology. 381 00:25:09,240 --> 00:25:10,940 out to be the unique thing that tracks you. 382 00:25:11,600 --> 00:25:17,860 If you install a flash blocker, for instance, that has a unique signature that you can tell, 383 00:25:18,000 --> 00:25:22,060 okay, this browser has flash installed but we're not getting an answer back from the 384 00:25:22,060 --> 00:25:23,640 flash plugin when we ask it for fonts. 385 00:25:24,500 --> 00:25:27,100 So people who've done that were all pretty much unique. 386 00:25:27,700 --> 00:25:32,380 People who forged their user agents, actually something I forgot to say about this graph. 387 00:25:32,460 --> 00:25:33,060 Let's go back here. 388 00:25:33,300 --> 00:25:34,500 Let's look at this graph here. 389 00:25:35,460 --> 00:25:38,060 Remember how I said this is the iPhone in pink? 390 00:25:38,180 --> 00:25:38,920 This pink line? 391 00:25:39,240 --> 00:25:41,500 And you go over here and these iPhones aren't very unique. 392 00:25:41,700 --> 00:25:46,240 And then there's a little group of iPhones up here on the right that is unique. 393 00:25:46,860 --> 00:25:47,780 What's going on there? 394 00:25:47,840 --> 00:25:49,080 Why are some iPhones unique? 395 00:25:49,600 --> 00:25:54,680 Well, it turns out if you look at this, actually a large portion of those iPhones aren't iPhones. 396 00:25:55,980 --> 00:25:58,120 This graph just believes the user agent string. 397 00:25:58,260 --> 00:26:02,120 But if you go and look, some of these have flash player installed and other stuff that 398 00:26:02,120 --> 00:26:04,040 gives them away as actually not being iPhones. 399 00:26:04,040 --> 00:26:07,120 They're desktop browsers masquerading as iPhones. 400 00:26:07,520 --> 00:26:11,300 And we scratched our heads when we saw this and thought, why are so many people pretending 401 00:26:11,300 --> 00:26:12,500 to be iPhones? 402 00:26:13,580 --> 00:26:18,640 And then we realized that actually AT&T had had a promotion for a long time where they 403 00:26:18,980 --> 00:26:20,940 gave you free Wi-Fi for your iPhone. 404 00:26:22,080 --> 00:26:25,800 And the only way they checked that was the user agent string. 405 00:26:27,060 --> 00:26:29,940 So I think they've fixed that now. 406 00:26:31,340 --> 00:26:34,020 But the lesson here is, okay, that's fine. 407 00:26:34,040 --> 00:26:34,120 That's funny. 408 00:26:34,260 --> 00:26:40,340 But also, if you want to fake your user agent string, you have to fake more than your user 409 00:26:40,340 --> 00:26:40,820 agent string. 410 00:26:41,240 --> 00:26:45,980 You have to fake all the other stuff that distinguishes an iPhone from a desktop machine. 411 00:26:46,260 --> 00:26:49,460 And if you don't, then you're in danger of creating yourself a unique fingerprint. 412 00:26:51,680 --> 00:26:56,400 Similarly, there was a very distinctive bunch of Firefox machines that supported Internet 413 00:26:56,400 --> 00:26:58,540 Explorer's ActiveX user data cookies. 414 00:26:59,200 --> 00:27:00,800 Those are probably not Firefox. 415 00:27:00,800 --> 00:27:00,960 Firefox. 416 00:27:02,360 --> 00:27:09,080 The exceptions to this problematic rule about privacy-enhancing stuff defeating your privacy, 417 00:27:09,320 --> 00:27:14,900 the noteworthy exceptions were NoScript and TorButton, which both are fingerprintable, 418 00:27:14,960 --> 00:27:21,140 but the amount you gain from having them turned on outweighs the amount you lose from them. 419 00:27:22,760 --> 00:27:25,940 Another lesson here is that there's a trade-off. 420 00:27:26,760 --> 00:27:27,560 Well, sorry. 421 00:27:27,680 --> 00:27:28,440 Actually, wrong slide. 422 00:27:29,560 --> 00:27:30,780 Another lesson here is that there's a trade-off. 423 00:27:30,800 --> 00:27:35,880 If you're designing an API that's going to run inside a browser, you should never, ever 424 00:27:36,300 --> 00:27:41,780 offer some call that returns a gigantic list of system information about the machine that 425 00:27:41,780 --> 00:27:42,280 you're running on. 426 00:27:42,600 --> 00:27:47,920 So this was true both of the plug-in lists, where you just ask navigator.plugins, hey, 427 00:27:47,960 --> 00:27:51,800 give me the plug-ins on this system, and you get back a list of all of them and the 428 00:27:51,800 --> 00:27:56,000 version numbers of all of them, because that's going to make a lot of people unique. 429 00:27:56,960 --> 00:27:59,120 Similarly, don't return a list of all the fonts. 430 00:27:59,120 --> 00:28:07,240 If you really need to show people a particular font, make them ask about the specific font 431 00:28:07,240 --> 00:28:09,700 rather than being able to ask about all fonts at once. 432 00:28:12,260 --> 00:28:17,800 Perhaps an even better solution to this would be to not have your system fonts displayed 433 00:28:17,800 --> 00:28:18,800 in your browser at all. 434 00:28:19,760 --> 00:28:24,380 Perhaps if a website wants to render this crazy Frankenstein font I've got here, it 435 00:28:24,380 --> 00:28:27,240 should have to give you the TTF file along with the website. 436 00:28:27,240 --> 00:28:34,140 The problem here is that even if we block the bits of Java and Flash that give font 437 00:28:34,140 --> 00:28:38,940 lists back, there are some nasty websites out there that show that you can detect fonts 438 00:28:38,940 --> 00:28:41,780 using CSS, which is almost unblockable. 439 00:28:42,540 --> 00:28:46,600 You just render the font inside an invisible box and then measure how wide it is, and so 440 00:28:46,600 --> 00:28:52,380 if the user has the font installed, the box is with A, and if they don't have it installed, 441 00:28:52,480 --> 00:28:53,020 it's with B. 442 00:28:53,800 --> 00:28:57,160 There's a little cute website called Flipping Typical that demonstrates this. 443 00:28:57,160 --> 00:28:59,620 This stuff is hard to block. 444 00:29:00,420 --> 00:29:05,520 Another lesson is that fingerprintability trades off against debugability. 445 00:29:06,220 --> 00:29:10,740 If you look at a user agent string, just a hypothetical one here, and this is the typical 446 00:29:10,740 --> 00:29:11,900 stuff it has in there. 447 00:29:11,940 --> 00:29:21,040 My operating system, I'm running X particular hardware platform, my language, precise date 448 00:29:21,040 --> 00:29:23,060 that my gecko was built on, all this stuff. 449 00:29:23,340 --> 00:29:24,420 Why is that in there? 450 00:29:24,580 --> 00:29:26,960 Why does every website I go to need to know? 451 00:29:27,160 --> 00:29:30,120 What date my browser was compiled on? 452 00:29:30,400 --> 00:29:32,340 What are we doing here? 453 00:29:32,580 --> 00:29:37,160 The answer is, some people thought that maybe one day we'd want to debug something, and 454 00:29:37,160 --> 00:29:42,480 when we did, wouldn't it be awesome if we'd already logged on the server side all of the 455 00:29:42,480 --> 00:29:48,120 stuff we could possibly want for debugging a client-side issue, and okay, fair enough. 456 00:29:48,180 --> 00:29:52,800 Maybe occasionally there's some glitch somewhere where having this version information is useful, 457 00:29:52,960 --> 00:29:56,020 but there's a trade-off between privacy. 458 00:29:56,020 --> 00:30:00,720 There's some privacy and debugability going on here, and right now, browsers are all configured 459 00:30:00,720 --> 00:30:07,380 right up at the extreme debugability and extreme non-privacy end of this spectrum, and at least 460 00:30:07,380 --> 00:30:11,600 perhaps when you enter private browsing mode in your browser, it should be making that 461 00:30:11,600 --> 00:30:12,760 trade-off the other way around. 462 00:30:14,160 --> 00:30:15,800 The same is true of plug-in lists. 463 00:30:15,920 --> 00:30:19,580 Right now, if you look in the plug-in list and say, well, what version of Flash do you 464 00:30:19,580 --> 00:30:19,820 have? 465 00:30:19,940 --> 00:30:22,080 It's not Flash or Flash 10. 466 00:30:22,280 --> 00:30:24,400 It's Flash version 10.1 R53. 467 00:30:25,060 --> 00:30:25,500 Right? 468 00:30:25,500 --> 00:30:28,760 And so all these little facts, you know, you have 10 plug-ins and you get this much version 469 00:30:28,760 --> 00:30:30,860 information about all of them, it adds up. 470 00:30:32,940 --> 00:30:37,920 So the general lesson, right back at the start, I said there were four kinds of attacks that 471 00:30:37,920 --> 00:30:40,580 you could use fingerprinting for. 472 00:30:41,300 --> 00:30:46,160 One is global uniqueness, and in a lot of cases, it looks like browsers are globally 473 00:30:46,160 --> 00:30:46,600 unique. 474 00:30:47,400 --> 00:30:49,120 Not all cases, but a lot of them. 475 00:30:50,800 --> 00:30:55,240 The second case where you have an IP address plus a fingerprint, there you're almost 476 00:30:55,500 --> 00:30:57,540 guaranteed to be able to track someone. 477 00:30:58,460 --> 00:31:02,280 And you can definitely undelete cookies that people have deleted, and you can definitely 478 00:31:02,280 --> 00:31:03,660 link these things across websites. 479 00:31:03,980 --> 00:31:05,560 So this is a serious privacy problem. 480 00:31:07,120 --> 00:31:10,880 Right now, the only things you can do are things that power users are going to do. 481 00:31:11,020 --> 00:31:16,080 You can do no scripts, you can do tall button, but you can't tell your grandmother or whoever 482 00:31:16,080 --> 00:31:20,120 else, like, just people who aren't really comfortable with complicated user interfaces 483 00:31:20,120 --> 00:31:22,300 to use these plug-ins. 484 00:31:22,440 --> 00:31:25,480 So that everyone else is going to need to wait for the browser to do it. 485 00:31:26,820 --> 00:31:27,240 You can't tell your grandmother or whoever else is going to do it. 486 00:31:28,340 --> 00:31:30,440 Fortunately, they've sort of started. 487 00:31:30,840 --> 00:31:36,160 We've been talking to the Mozilla people, and they're interested in attempting to fix 488 00:31:36,160 --> 00:31:39,760 some of this stuff, at least in private browsing mode. 489 00:31:40,820 --> 00:31:44,620 Google is maybe a step behind, but also somewhat interested in trying to tackle this. 490 00:31:45,880 --> 00:31:50,320 So perhaps we can come back in a year or two and say we've made a small amount of progress 491 00:31:50,320 --> 00:31:50,840 on the problem. 492 00:31:53,160 --> 00:31:54,840 Anyway, that's all I have to say. 493 00:31:55,740 --> 00:32:01,060 As always, if you like the work we do, either this kind of technical stuff or our legal 494 00:32:01,060 --> 00:32:03,300 work, support EFF, join. 495 00:32:03,420 --> 00:32:07,900 There's a membership booth over in the vendor area. 496 00:32:08,280 --> 00:32:10,580 And I'll take questions if anyone has any.