1 00:00:00,000 --> 00:00:02,880 Okay, hello everybody. I'm going to go ahead and get started here. 2 00:00:03,820 --> 00:00:12,540 First off, thanks for coming. I know it's late, but this is the only room you can be in if you want to hear something, so thank you very much. 3 00:00:12,860 --> 00:00:19,920 My name is Nathan Evans. This is Detourerating Your Anonymity, which is a work myself and my advisor Christian Grodot did. 4 00:00:20,340 --> 00:00:22,060 He's not here today. That's okay. 5 00:00:22,800 --> 00:00:28,200 And it's some research that we've done that partially de-anonymizes tour users. 6 00:00:28,200 --> 00:00:31,280 And with that said, go ahead and get started. 7 00:00:31,680 --> 00:00:35,580 So first thing we need to talk about is what's our motivation for trying to do this. 8 00:00:36,140 --> 00:00:38,400 We don't dislike tour. We really like tour. 9 00:00:39,680 --> 00:00:46,880 So we're trying to promote research and try to make tour as good as it can be so that other people can't de-anonymize tour's user. 10 00:00:47,400 --> 00:00:55,000 So also tour is like the biggest anonymity network out there, so it's a big target for researchers and bad guys alike. 11 00:00:55,280 --> 00:00:58,120 And again, any research that shows any improvements or anything like that. 12 00:00:58,200 --> 00:01:02,440 It has a major impact, so for a researcher, we like to have a major impact, so that's good. 13 00:01:03,900 --> 00:01:13,000 And so all we're here today to say is that we can discover all of the routers that a tour client chooses to use under certain circumstances. 14 00:01:13,380 --> 00:01:18,300 And under these circumstances, the user's anonymity is reduced quite a bit. 15 00:01:19,840 --> 00:01:21,600 So some general information about tour. 16 00:01:21,740 --> 00:01:25,140 I'm sure most everybody knows this, but it's okay. I'll say it anyways. 17 00:01:25,720 --> 00:01:27,420 So tour stands for The Onion Router. 18 00:01:28,280 --> 00:01:34,500 It's a service that attempts to hide users' IP addresses from the destination that they're connecting to, typically. 19 00:01:35,260 --> 00:01:37,740 It's a mixed cascade, which has two parts to it. 20 00:01:37,920 --> 00:01:45,800 First part is the mix, and a mix server is one that takes in data from all different places and then shoots it out to somewhere else, so hiding from where it came from. 21 00:01:46,100 --> 00:01:52,720 And the cascade part of that means that there are mix servers used in series to further hide the source from the destination. 22 00:01:54,160 --> 00:01:57,720 Also, there's no artificial delays induced in tour, so it's a low latency network. 23 00:01:58,200 --> 00:02:05,620 Which helps us do some of our readings, or our measurements, and also all data in the network is sent encrypted between tour nodes. 24 00:02:06,840 --> 00:02:09,900 So the routing in tour is an important part. 25 00:02:10,780 --> 00:02:25,640 Basically, each tour relay server accepts incoming connections from other tour servers or clients, and it basically just forwards that information on to the next node in the series, or to the final destination if it's the exit router. 26 00:02:25,920 --> 00:02:28,180 The client always chooses the destination. 27 00:02:28,180 --> 00:02:31,880 It's the tour nodes to be used, so it's not like the tour nodes are choosing. 28 00:02:32,800 --> 00:02:40,240 And basically, some of tour's anonymity is achieved from the fact that no adversary can discover all of the routers that a client chooses to use. 29 00:02:40,500 --> 00:02:48,780 And if all the nodes are used, that particular circuit becomes about as good as using a one-hop proxy or just a single mix server. 30 00:02:50,340 --> 00:02:53,980 So what we're trying to do is discover all of the tour nodes that a client chooses. 31 00:02:54,320 --> 00:02:55,540 So here's a routing example. 32 00:02:55,840 --> 00:02:58,060 The PC-looking things are tour servers. 33 00:02:58,180 --> 00:03:02,620 The client is the little Firefox icon, and the Apache feather is the web server. 34 00:03:02,920 --> 00:03:06,400 And this is just a typical client-to-server connection. 35 00:03:06,580 --> 00:03:11,580 So instead of the client connecting directly to the server, it chooses these three servers from the tour network. 36 00:03:12,140 --> 00:03:14,300 Here it's tour node 1, 5, and 8. 37 00:03:14,460 --> 00:03:18,600 And you can see that all the data that goes from the client to the server goes through those tour nodes. 38 00:03:18,740 --> 00:03:22,340 And also anything going from the server back to the client follows the path in reverse. 39 00:03:22,680 --> 00:03:25,640 So that's just briefly how tour works. 40 00:03:26,660 --> 00:03:28,160 So what other research has been done? 41 00:03:28,180 --> 00:03:33,880 In this vein, the most closely related work was Murdock and Denizis in 2005. 42 00:03:34,160 --> 00:03:35,720 If you were at Roger's talk, you probably heard about that. 43 00:03:36,260 --> 00:03:41,740 They achieved the same result we did, which is discovering all the routers that a client chooses to use. 44 00:03:42,380 --> 00:03:44,240 Again, they did it in 2005. 45 00:03:44,620 --> 00:03:50,060 I think the tour network had like 50 nodes, and they actually only did it on 13 tour routers. 46 00:03:50,900 --> 00:03:55,320 So it's important to check whether that works now, today. 47 00:03:55,320 --> 00:04:01,720 Unfortunately, their work doesn't work as well today, which is good and bad. 48 00:04:02,160 --> 00:04:04,660 Good for tour people, but bad for me. 49 00:04:06,420 --> 00:04:10,320 Some of the reasons that it doesn't work today is because tour is a bigger, higher capacity network. 50 00:04:11,860 --> 00:04:17,720 Their research was based on the fact that they could detect the additional load of a single circuit on a tour node. 51 00:04:18,120 --> 00:04:24,680 And it's really hard to detect the effects of just a single added circuit on a tour server because tour servers are so busy now, 52 00:04:24,740 --> 00:04:25,300 there's clients coming in and out. 53 00:04:25,320 --> 00:04:26,800 They're connecting and disconnecting all the time. 54 00:04:27,260 --> 00:04:32,540 And there's also a lot of data flowing through the tour network, and that can lead to false positives with their method. 55 00:04:33,160 --> 00:04:34,340 We tried their method. 56 00:04:34,740 --> 00:04:38,100 We didn't rigorously test it, but we did try it. 57 00:04:38,180 --> 00:04:44,080 And we found that it didn't work very well for us, and certainly not as well as it did for them in 2005. 58 00:04:46,180 --> 00:04:48,440 So what exactly lets us do our attack? 59 00:04:48,760 --> 00:04:53,280 The first thing to understand is that our target user is probably just a Windows user 60 00:04:53,280 --> 00:04:54,940 who goes out and downloads the... 61 00:04:55,320 --> 00:04:57,240 tour bundle with just the standard install, 62 00:04:57,460 --> 00:04:59,360 Provoxy and Vidalia, all that stuff. 63 00:05:01,060 --> 00:05:04,560 So Uber geeks probably won't be vulnerable to our attack. 64 00:05:05,260 --> 00:05:07,720 So there's some design issues that enable our attack, though. 65 00:05:07,780 --> 00:05:12,640 Again, the low latency thing, which allows us to get good measurements. 66 00:05:13,720 --> 00:05:15,700 Also, the fact that the path length is small. 67 00:05:15,900 --> 00:05:17,060 It's set at three. 68 00:05:17,140 --> 00:05:18,800 That's hard-coded in the client. 69 00:05:19,080 --> 00:05:21,200 So no one can change that. 70 00:05:21,320 --> 00:05:23,800 And knowing that, it allows us to run an exit router. 71 00:05:23,800 --> 00:05:25,820 And when we're running an exit router, 72 00:05:25,980 --> 00:05:28,760 we then know two-thirds of the servers in the path, 73 00:05:28,900 --> 00:05:31,320 because we know ourself and we know the previous node. 74 00:05:32,000 --> 00:05:37,020 That makes us only have to detect one extra router in order to discover all three. 75 00:05:37,580 --> 00:05:39,540 Again, with Murdoch and Onitsis' work, 76 00:05:39,660 --> 00:05:42,140 they had to detect all three routers independently. 77 00:05:45,660 --> 00:05:48,640 Oh, the other thing that enables our attack 78 00:05:48,640 --> 00:05:51,560 is that we can construct these long circular paths through the network, 79 00:05:51,560 --> 00:05:55,820 which allows us to put load on any particular server that we want. 80 00:05:56,060 --> 00:05:58,240 Going back to what Murdoch and Onitsis did, 81 00:05:58,400 --> 00:06:00,620 they were trying to detect the load of a single connection. 82 00:06:00,880 --> 00:06:04,580 What we can do is put as much load on any server as we want to. 83 00:06:06,340 --> 00:06:08,780 So this is just back to the regular path example. 84 00:06:09,580 --> 00:06:11,320 We're going to be showing the circular path example, 85 00:06:11,420 --> 00:06:16,780 but this just shows the regular path, again, without the extraneous Tor servers. 86 00:06:16,980 --> 00:06:18,480 So the client and the server are the same, 87 00:06:18,520 --> 00:06:21,540 and this is just the three Tor nodes that the client chose to use. 88 00:06:21,560 --> 00:06:25,120 And, of course, all data going from the client to the server goes through that path. 89 00:06:26,120 --> 00:06:28,560 So the first thing that a malicious client does 90 00:06:28,560 --> 00:06:30,500 if it wants to build a long circular route 91 00:06:30,500 --> 00:06:33,220 is take away the connection to the server from the last hop. 92 00:06:34,140 --> 00:06:36,060 So you can see, that's what we did. 93 00:06:36,340 --> 00:06:38,780 And then instead of connecting to the server directly, 94 00:06:39,360 --> 00:06:40,980 we can just loop back around. 95 00:06:41,160 --> 00:06:43,200 So now instead of a path of length two, 96 00:06:43,340 --> 00:06:45,120 you have one of length five, 97 00:06:45,260 --> 00:06:48,820 because we've added the three circular connections there. 98 00:06:49,220 --> 00:06:51,000 And since there's no limit 99 00:06:51,000 --> 00:06:52,340 on how many times you can do this, 100 00:06:53,700 --> 00:06:54,620 well, there wasn't, 101 00:06:55,340 --> 00:06:56,380 you can keep doing it. 102 00:06:56,440 --> 00:06:57,580 So now we have a path length of eight. 103 00:06:58,200 --> 00:06:59,260 And you can do it again. 104 00:06:59,400 --> 00:07:00,900 Now we have a path length of 11. 105 00:07:01,380 --> 00:07:02,560 And just to go crazy, 106 00:07:03,080 --> 00:07:04,840 this is a path length of 21. 107 00:07:05,400 --> 00:07:08,600 And just to give you a little bit of insight into how exactly our attack works, 108 00:07:08,840 --> 00:07:10,420 so building off of Murdock and Onitsis, 109 00:07:10,520 --> 00:07:13,780 they were detecting one line, basically, going through a server. 110 00:07:14,500 --> 00:07:16,840 What we can do is increase that arbitrarily. 111 00:07:17,140 --> 00:07:18,120 Like in this example, 112 00:07:18,320 --> 00:07:19,520 we have seven times the load 113 00:07:19,520 --> 00:07:20,580 on any given Tor server. 114 00:07:20,820 --> 00:07:23,460 And we find that to be much easier to detect. 115 00:07:24,060 --> 00:07:26,720 The other important thing about this example that you can see 116 00:07:26,720 --> 00:07:30,080 is that the amount of data that goes from the client 117 00:07:30,080 --> 00:07:31,100 to the first node 118 00:07:31,100 --> 00:07:32,620 and from the server back along the path 119 00:07:32,620 --> 00:07:33,880 doesn't increase at all. 120 00:07:33,960 --> 00:07:36,200 So it's a very low bandwidth attack 121 00:07:36,200 --> 00:07:38,140 for a malicious person. 122 00:07:40,220 --> 00:07:42,280 So here's the full attack example. 123 00:07:42,400 --> 00:07:43,360 I'm going to explain our attack 124 00:07:43,360 --> 00:07:46,400 and then go into what you're seeing here. 125 00:07:46,640 --> 00:07:49,280 So again, our attack extends Murdock and Onitsis idea. 126 00:07:49,520 --> 00:07:49,880 We're going to show you that the load 127 00:07:49,880 --> 00:07:51,320 from a single circuit can be detected. 128 00:07:52,240 --> 00:07:53,280 Again, we do it differently 129 00:07:53,280 --> 00:07:55,060 because we use the long circular paths. 130 00:07:55,380 --> 00:07:57,580 So the first thing that we do is run exit server. 131 00:07:58,420 --> 00:08:01,440 Again, it knows two-thirds of the routers already. 132 00:08:01,840 --> 00:08:03,480 And what we do with that exit node 133 00:08:03,480 --> 00:08:06,200 is we have it inject JavaScript into the HTML 134 00:08:06,200 --> 00:08:07,660 that gets sent back to the client. 135 00:08:07,880 --> 00:08:09,160 And what that JavaScript does 136 00:08:09,160 --> 00:08:12,260 is just sends basically ping messages at regular intervals, 137 00:08:12,480 --> 00:08:14,940 which we can use to get latency variance measurements. 138 00:08:16,880 --> 00:08:18,940 So then what we try to do is induce a load 139 00:08:18,940 --> 00:08:21,660 on the first node in the circuit. 140 00:08:22,000 --> 00:08:22,860 And if we can do that, 141 00:08:22,900 --> 00:08:24,040 we should notice a change 142 00:08:24,040 --> 00:08:25,420 in our latency variance measurements. 143 00:08:26,060 --> 00:08:28,460 So just looking at this example here, 144 00:08:28,620 --> 00:08:31,700 you have the regular client and server. 145 00:08:31,820 --> 00:08:34,180 Again, the same pictures as before. 146 00:08:34,360 --> 00:08:37,960 The client path is shown by the black directed line, 147 00:08:38,140 --> 00:08:40,020 which goes through the network just like normal. 148 00:08:40,660 --> 00:08:42,540 And then we have these additional things 149 00:08:42,540 --> 00:08:44,580 like all the red screen computers 150 00:08:44,580 --> 00:08:45,980 are those that are controlled by us. 151 00:08:46,120 --> 00:08:47,460 So you can see, like I said before, 152 00:08:47,460 --> 00:08:49,260 there we are with the exit node, 153 00:08:49,440 --> 00:08:51,260 which is Tor node 3 in the example. 154 00:08:54,240 --> 00:08:58,220 And then the JavaScript that gets injected at the exit node 155 00:08:58,220 --> 00:08:59,520 and goes back and runs on the client, 156 00:08:59,660 --> 00:09:03,580 the ping path is denoted here by the dotted blue line. 157 00:09:03,880 --> 00:09:06,660 And I'm going to explain it again later, 158 00:09:06,780 --> 00:09:08,900 but the long circular path that we construct 159 00:09:08,900 --> 00:09:10,440 is the double green line. 160 00:09:11,100 --> 00:09:12,720 And this is the ideal case 161 00:09:12,720 --> 00:09:14,840 where we actually pick the correct first node. 162 00:09:15,020 --> 00:09:16,220 There's a lot of trial and error, 163 00:09:16,220 --> 00:09:18,220 but in this case, this is the ideal. 164 00:09:20,200 --> 00:09:22,240 Okay, so now we have a queuing example 165 00:09:22,240 --> 00:09:27,440 of how exactly the Tor server uses queues for each circuit. 166 00:09:27,740 --> 00:09:31,280 So if a Tor server has three circuits running through it, 167 00:09:31,320 --> 00:09:32,680 it has a queue for each circuit, 168 00:09:32,780 --> 00:09:34,440 and these things called cells, 169 00:09:34,580 --> 00:09:36,440 which is how things are shuttled 170 00:09:36,440 --> 00:09:38,060 between servers in the Tor network, 171 00:09:38,820 --> 00:09:40,840 are queued in each one of the queues. 172 00:09:41,720 --> 00:09:44,120 So here, the queues are the big black boxes, 173 00:09:44,160 --> 00:09:45,500 the cells are the little green boxes, 174 00:09:45,500 --> 00:09:47,280 and the cell that's currently being processed 175 00:09:47,280 --> 00:09:48,800 is the highlighted blue box. 176 00:09:49,180 --> 00:09:51,700 So it's simple, I think, 177 00:09:51,700 --> 00:09:54,360 that everything's just processed in a round-robin fashion. 178 00:09:54,940 --> 00:09:56,980 If the queue is empty, it gets skipped. 179 00:09:58,240 --> 00:10:00,840 So hopefully that example is self-evident. 180 00:10:01,000 --> 00:10:02,600 But what you can see from this 181 00:10:02,600 --> 00:10:06,540 is that any circuit that's running through the server 182 00:10:06,540 --> 00:10:09,640 gets one-third of the available bandwidth and CPU power 183 00:10:10,200 --> 00:10:12,700 that's available to the Tor server in general. 184 00:10:13,400 --> 00:10:15,080 So what we do, 185 00:10:15,080 --> 00:10:16,940 by constructing these long circular paths, 186 00:10:17,180 --> 00:10:20,300 is multiply the number of queues, 187 00:10:20,380 --> 00:10:22,260 or just increase the number of queues drastically, 188 00:10:22,620 --> 00:10:25,320 so that we can change how much bandwidth 189 00:10:25,320 --> 00:10:27,220 and processing time each circuit gets. 190 00:10:27,600 --> 00:10:29,260 So in this example, it's the same thing, 191 00:10:29,320 --> 00:10:30,980 only we have five times as many queues. 192 00:10:31,780 --> 00:10:34,060 So it's the same round-robin processing, 193 00:10:35,060 --> 00:10:36,940 but as you can see, hopefully, 194 00:10:37,080 --> 00:10:39,380 it takes five times as long 195 00:10:39,380 --> 00:10:43,360 to get back around to any single circuit, 196 00:10:43,420 --> 00:10:45,020 but our legitimate client circuit 197 00:10:45,080 --> 00:10:46,940 is the one that we're trying to delay, 198 00:10:47,940 --> 00:10:50,820 which is why we do the long circular routing thing. 199 00:10:52,540 --> 00:10:56,480 So hopefully this attack example makes some sense now. 200 00:10:57,720 --> 00:11:00,880 We have the long circular path in the double green 201 00:11:00,880 --> 00:11:02,500 that we're trying to do through the first node again, 202 00:11:02,680 --> 00:11:04,700 and then we have our malicious client, malicious server. 203 00:11:05,920 --> 00:11:07,400 Hopefully that's clear. 204 00:11:07,580 --> 00:11:08,980 If not, you can ask questions in a minute. 205 00:11:09,640 --> 00:11:10,960 So how did we implement the attack? 206 00:11:10,960 --> 00:11:14,380 Of course, we have to have a modified exit node, 207 00:11:14,540 --> 00:11:16,720 which is just a regular Tor node, 208 00:11:16,860 --> 00:11:19,560 but it injects that JavaScript into HTML responses. 209 00:11:21,000 --> 00:11:23,740 We also have the modified malicious client node, 210 00:11:23,880 --> 00:11:27,300 which just creates the long circular routes 211 00:11:27,300 --> 00:11:29,000 through the particular routers that we choose 212 00:11:29,000 --> 00:11:30,600 and whatever length we choose. 213 00:11:30,920 --> 00:11:33,040 Then we also have the malicious web server 214 00:11:33,040 --> 00:11:35,440 that just shoots data back down that long circular path 215 00:11:35,440 --> 00:11:37,640 just as fast as the Tor routers can handle it. 216 00:11:38,200 --> 00:11:40,800 And then we have the instrumentation machine 217 00:11:40,800 --> 00:11:42,500 which is typically the exit server 218 00:11:42,500 --> 00:11:45,780 that just receives the JavaScript ping messages. 219 00:11:47,320 --> 00:11:50,520 So how it really works is we start by recording. 220 00:11:50,760 --> 00:11:52,860 So we're running an exit node. We pick a circuit. 221 00:11:53,000 --> 00:11:54,820 We record for a certain amount of time, 222 00:11:54,860 --> 00:11:56,940 typically 10 minutes for us, 600 seconds. 223 00:11:57,260 --> 00:12:00,360 We record when we receive these ping messages. 224 00:12:00,760 --> 00:12:02,580 And then what we do is choose 225 00:12:02,580 --> 00:12:05,660 what we think could be a possible first node in the network, 226 00:12:05,800 --> 00:12:08,440 and then we create a super long route through that node 227 00:12:08,440 --> 00:12:10,540 to hopefully put load on the server. 228 00:12:11,160 --> 00:12:13,180 And if we are able to put load on the server 229 00:12:13,180 --> 00:12:14,180 and it is the correct server, 230 00:12:14,900 --> 00:12:16,600 we should notice a change 231 00:12:16,600 --> 00:12:18,340 in the latency variance timings that we receive. 232 00:12:18,960 --> 00:12:20,300 If it's not the correct server, 233 00:12:20,520 --> 00:12:22,760 then we have to pick another one and start all over 234 00:12:22,760 --> 00:12:25,040 and do it again until we find the right one. 235 00:12:25,260 --> 00:12:29,500 So it's a very one-after-the-other kind of process. 236 00:12:31,200 --> 00:12:33,820 So now we have some examples of our data. 237 00:12:33,940 --> 00:12:36,080 These aren't the most recent examples, 238 00:12:36,180 --> 00:12:38,060 but hopefully they get the point across. 239 00:12:38,620 --> 00:12:39,600 In these examples, 240 00:12:39,600 --> 00:12:40,900 there are two things. 241 00:12:41,040 --> 00:12:42,500 There's a green line and a red line. 242 00:12:42,740 --> 00:12:44,860 The green line is when we're doing the control run, 243 00:12:45,000 --> 00:12:46,920 which is when we're not trying to put load on any server. 244 00:12:47,140 --> 00:12:49,820 And the red line is when we are trying to put load on the server. 245 00:12:50,060 --> 00:12:52,820 And on the x-axis, we have from 0 to 600. 246 00:12:53,020 --> 00:12:55,320 So it's in seconds that we're doing the test. 247 00:12:55,600 --> 00:12:56,960 And on the y-axis, 248 00:12:57,040 --> 00:13:00,420 we have the latency variance in milliseconds that we receive. 249 00:13:00,840 --> 00:13:03,500 And in this example, it's very hard to see the green line 250 00:13:04,960 --> 00:13:06,180 because just by chance, 251 00:13:06,300 --> 00:13:09,020 the Tor node that we were using as the entry node 252 00:13:09,020 --> 00:13:11,800 happened to not be doing anything else at the time. 253 00:13:11,980 --> 00:13:13,900 So it's really close to zero. 254 00:13:13,960 --> 00:13:16,220 The latency variance was just pretty much the same 255 00:13:16,220 --> 00:13:17,080 all the way across the board. 256 00:13:17,660 --> 00:13:19,540 But hopefully what you can see here 257 00:13:19,540 --> 00:13:21,660 is that when we're performing our attack 258 00:13:21,660 --> 00:13:23,480 and stressing out that first node, 259 00:13:23,600 --> 00:13:26,460 that we see these big jumps in latency variance, 260 00:13:26,740 --> 00:13:28,400 which is exactly what we want to see. 261 00:13:28,540 --> 00:13:31,120 And hopefully it proves to you and me 262 00:13:31,120 --> 00:13:32,360 that the attack is working. 263 00:13:33,920 --> 00:13:35,740 And we have some more of these examples. 264 00:13:35,860 --> 00:13:36,580 And of course, 265 00:13:38,160 --> 00:13:41,680 they get a lot more jittered on the control run as well, 266 00:13:41,760 --> 00:13:43,520 depending on what's going on in the network, 267 00:13:43,700 --> 00:13:45,480 how much load the Tor servers have 268 00:13:45,480 --> 00:13:46,500 that we're not putting on it. 269 00:13:46,840 --> 00:13:49,940 So there's a lot of changing in how the data looks. 270 00:13:50,100 --> 00:13:51,600 But hopefully what we can all see 271 00:13:51,600 --> 00:13:53,660 is that there is a significant difference 272 00:13:53,660 --> 00:13:58,660 in the amount of variance that we see 273 00:13:58,660 --> 00:14:00,280 when we're stressing out the node 274 00:14:00,280 --> 00:14:01,920 than when we are not stressing out the node. 275 00:14:03,600 --> 00:14:04,980 So there's those examples. 276 00:14:04,980 --> 00:14:09,360 And then we have these other ways to represent the data, 277 00:14:09,500 --> 00:14:11,640 which is this is a histogram. 278 00:14:12,840 --> 00:14:15,340 So now on the x-axis, 279 00:14:15,440 --> 00:14:18,940 we have a range of measurements that we received. 280 00:14:19,140 --> 00:14:20,760 So for instance, 281 00:14:20,940 --> 00:14:23,760 between 0 and 11 seconds in the control run, 282 00:14:23,880 --> 00:14:25,020 which again is the green bar, 283 00:14:25,180 --> 00:14:26,960 you can see that we received all 600 284 00:14:26,960 --> 00:14:28,620 of our latency measurements 285 00:14:28,620 --> 00:14:32,160 with a latency variance of between 0 and 11 seconds. 286 00:14:32,880 --> 00:14:33,860 It's in seconds here. 287 00:14:33,860 --> 00:14:35,920 And then on the y-axis, sorry, 288 00:14:36,080 --> 00:14:38,220 is the number of measurements that we received. 289 00:14:38,760 --> 00:14:42,220 So what we're looking for with these graphs 290 00:14:43,400 --> 00:14:45,300 is the green control run 291 00:14:45,300 --> 00:14:47,720 should be very close to the left and almost vertical 292 00:14:47,720 --> 00:14:50,380 because we don't want to see too much latency variance. 293 00:14:50,520 --> 00:14:51,920 Of course, that changes depending, again, 294 00:14:51,960 --> 00:14:54,480 on how much load is on the servers and all that stuff. 295 00:14:54,880 --> 00:14:56,060 But for the attack run, 296 00:14:56,140 --> 00:14:57,860 we're hoping that we can make a lot more... 297 00:14:59,160 --> 00:15:00,460 we get a lot more measures 298 00:15:00,460 --> 00:15:02,060 where the latency variance is very high. 299 00:15:02,760 --> 00:15:03,840 And so it's more of a... 300 00:15:03,840 --> 00:15:07,060 more of a horizontal on the x-axis kind of thing. 301 00:15:07,520 --> 00:15:09,320 And again, as we go through these, 302 00:15:09,400 --> 00:15:10,900 hopefully you can see that. 303 00:15:12,040 --> 00:15:14,620 We are seeing what we think we want to see. 304 00:15:18,020 --> 00:15:20,420 So what exactly do we achieve with our attack? 305 00:15:21,340 --> 00:15:23,220 We're not de-anonymizing clients. 306 00:15:24,880 --> 00:15:25,900 That's not our attack. 307 00:15:26,380 --> 00:15:28,820 But just like Murdock and Onitsis did back in 2005, 308 00:15:29,140 --> 00:15:31,240 we're able to discover all the three Tor routers 309 00:15:31,240 --> 00:15:32,520 that are used in the circuit, 310 00:15:32,520 --> 00:15:35,260 which reduces a user's anonymity, basically, 311 00:15:35,260 --> 00:15:36,780 to that of a one-hot proxy. 312 00:15:37,040 --> 00:15:40,380 Or if you're doing it on all of the routers, 313 00:15:40,420 --> 00:15:42,320 then it's a network of one-hot proxies. 314 00:15:44,060 --> 00:15:45,680 Unlike Murdock and Onitsis, though, 315 00:15:45,860 --> 00:15:48,120 our attack works on the current large-scale Tor network. 316 00:15:49,840 --> 00:15:52,000 And there's a few reasons why our attack is effective. 317 00:15:52,300 --> 00:15:54,360 Again, we only need to discover one of the routers 318 00:15:54,360 --> 00:15:55,720 because we're running the exit router, 319 00:15:55,820 --> 00:15:56,940 and we know two a priori. 320 00:15:57,640 --> 00:16:00,240 But the most important thing that we're here to say 321 00:16:00,240 --> 00:16:02,420 is that this bandwidth-multiplying effect 322 00:16:02,520 --> 00:16:04,740 of using these long, circular routes 323 00:16:04,740 --> 00:16:06,480 is just a really bad thing, 324 00:16:06,580 --> 00:16:09,820 because it not only allows people with high bandwidth 325 00:16:09,820 --> 00:16:10,940 to be able to perform this attack, 326 00:16:11,080 --> 00:16:12,220 but even people with low bandwidth 327 00:16:12,220 --> 00:16:14,060 to not only do our attack, 328 00:16:14,180 --> 00:16:17,280 but also to DOS any Tor server at will. 329 00:16:18,000 --> 00:16:18,820 So that's bad. 330 00:16:19,780 --> 00:16:21,040 There are some fixes. 331 00:16:22,820 --> 00:16:24,720 Some of these are making the circuits longer. 332 00:16:24,960 --> 00:16:27,120 Of course, if you make the circuit longer than three, 333 00:16:27,180 --> 00:16:29,060 which is the minimum for the anonymity assurances 334 00:16:29,060 --> 00:16:29,680 that Tor gives, 335 00:16:30,280 --> 00:16:31,960 then you're degrading performance for users, 336 00:16:31,960 --> 00:16:33,540 and maybe that's not acceptable. 337 00:16:33,840 --> 00:16:35,700 You could also randomize the path lengths. 338 00:16:36,280 --> 00:16:37,880 Say instead of making it always three, 339 00:16:37,940 --> 00:16:40,540 say between four and eight or five and ten or something. 340 00:16:40,840 --> 00:16:42,660 That would make more work for the attacker, 341 00:16:42,820 --> 00:16:45,020 although we think the attack would still be possible 342 00:16:45,620 --> 00:16:47,220 even if we had longer path lengths. 343 00:16:47,880 --> 00:16:49,840 Also, for a client, 344 00:16:49,920 --> 00:16:52,100 if you're running something over HTTP, 345 00:16:52,540 --> 00:16:55,580 the way to stop at least our attack is to use HTTPS. 346 00:16:56,020 --> 00:16:56,700 Encrypt everything. 347 00:16:56,920 --> 00:16:59,300 You can't inject JavaScript unless you can break SSL, 348 00:16:59,360 --> 00:17:01,020 which I can't. 349 00:17:01,020 --> 00:17:02,540 I don't know if anybody else can. 350 00:17:03,240 --> 00:17:06,400 And then there is the fix that is actually out there now, 351 00:17:06,500 --> 00:17:08,940 which I think is too detailed for me to get into. 352 00:17:09,000 --> 00:17:11,380 If you were here for Roger's talk, 353 00:17:11,500 --> 00:17:12,060 you might have heard it, 354 00:17:13,280 --> 00:17:14,960 but I can talk about that later. 355 00:17:15,280 --> 00:17:16,780 There are some variants of our attack, 356 00:17:19,040 --> 00:17:21,280 such as instead of using JavaScript, 357 00:17:21,400 --> 00:17:22,580 using meta refresh tags 358 00:17:22,580 --> 00:17:24,960 or using a whole bunch of image source tags. 359 00:17:25,120 --> 00:17:26,320 We thought of a lot of ways to do it, 360 00:17:26,380 --> 00:17:30,800 but JavaScript was just the easiest for our goals here. 361 00:17:31,020 --> 00:17:34,660 Also, if we could get better latency measurements 362 00:17:34,660 --> 00:17:36,160 of the first node in the path, 363 00:17:36,360 --> 00:17:39,440 we'd be able to greatly reduce the number of possible routers 364 00:17:39,440 --> 00:17:40,000 that we start with. 365 00:17:40,160 --> 00:17:42,300 So now we're starting out with all 1,000 plus 366 00:17:42,300 --> 00:17:43,500 or however many routers there are. 367 00:17:43,780 --> 00:17:45,160 If we were able to narrow that down, 368 00:17:45,200 --> 00:17:46,600 that would make our attack a lot more effective 369 00:17:46,600 --> 00:17:48,720 because then we don't have to go through all 1,000. 370 00:17:50,760 --> 00:17:51,160 Okay. 371 00:17:53,140 --> 00:17:54,500 So that's pretty much it. 372 00:17:55,900 --> 00:17:58,300 We have hopefully demonstrated an attack 373 00:17:58,300 --> 00:17:59,660 on today's large-scale Tor network 374 00:17:59,660 --> 00:18:02,500 that reveals all the routers in a circuit 375 00:18:02,500 --> 00:18:03,440 that a client uses, 376 00:18:03,640 --> 00:18:05,840 and we think this decreases the anonymity 377 00:18:05,840 --> 00:18:07,720 provided by Tor greatly. 378 00:18:08,780 --> 00:18:11,200 Tor uses the shortest possible path of three. 379 00:18:11,260 --> 00:18:12,040 Maybe they should be longer. 380 00:18:12,120 --> 00:18:13,320 There's been a lot of debate about it. 381 00:18:13,340 --> 00:18:15,060 Probably won't happen, but it could. 382 00:18:15,360 --> 00:18:18,540 But the main thing that we're here to say is that, 383 00:18:18,660 --> 00:18:20,600 and our goal really is to get this fixed, 384 00:18:20,740 --> 00:18:22,500 was that allowing the arbitrary path links 385 00:18:22,500 --> 00:18:23,900 is just a really bad thing 386 00:18:23,900 --> 00:18:25,820 because you can DOS the Tor nodes 387 00:18:25,820 --> 00:18:27,520 and do our attack as well. 388 00:18:28,140 --> 00:18:28,540 And... 389 00:18:30,100 --> 00:18:31,440 from talking to the Tor guys, 390 00:18:32,620 --> 00:18:35,060 they have implemented most of the stuff for this, 391 00:18:35,140 --> 00:18:37,760 and now it's just a matter of upgrading everybody's clients 392 00:18:37,760 --> 00:18:40,380 and finishing the final phase 393 00:18:40,380 --> 00:18:42,460 to stop this from happening. 394 00:18:43,300 --> 00:18:44,480 So with that, 395 00:18:45,380 --> 00:18:48,020 I will go ahead and open it up for questions. 396 00:18:50,680 --> 00:18:51,500 No? All right. 397 00:18:51,680 --> 00:18:52,380 Go ahead and do it. 398 00:18:52,780 --> 00:18:53,180 Yeah. 399 00:18:54,600 --> 00:18:56,560 So I was just trying to get the attack 400 00:18:56,560 --> 00:18:57,860 from Facebook set up. 401 00:18:58,820 --> 00:18:59,260 . 402 00:19:08,180 --> 00:19:11,040 Are you just asking about the whole, 403 00:19:11,120 --> 00:19:12,640 how the whole thing works together? 404 00:19:13,260 --> 00:19:13,700 . 405 00:19:16,440 --> 00:19:18,120 No, no, that's fine. 406 00:19:18,340 --> 00:19:20,220 So in this example, 407 00:19:20,360 --> 00:19:22,380 the regular client path is just the black line. 408 00:19:22,520 --> 00:19:25,660 So if you don't look at anything on the right and the bottom, 409 00:19:25,720 --> 00:19:27,140 that's just the regular Tor circuit. 410 00:19:27,140 --> 00:19:29,000 And then again, 411 00:19:29,080 --> 00:19:31,600 we know the third and second node in the path 412 00:19:31,600 --> 00:19:32,600 because we're running the exit router. 413 00:19:32,880 --> 00:19:37,440 So all we're really trying to do is stress the first node 414 00:19:37,440 --> 00:19:39,080 just to change our measurements 415 00:19:39,080 --> 00:19:41,240 enough that we can have a pretty clear idea 416 00:19:41,240 --> 00:19:42,640 that that's the actual first node. 417 00:19:44,120 --> 00:19:46,280 I don't know if that answers your question any better or not. 418 00:19:46,400 --> 00:19:47,780 Maybe my presentation just sucked. 419 00:19:48,780 --> 00:19:50,180 Does that help at all or no? 420 00:19:51,460 --> 00:19:51,880 . 421 00:19:52,840 --> 00:19:53,300 . 422 00:19:56,480 --> 00:19:57,500 Okay, so yeah, 423 00:19:57,580 --> 00:20:00,260 the pings go from the client just to the exit server. 424 00:20:00,760 --> 00:20:02,160 It's the dotted blue line there, 425 00:20:02,280 --> 00:20:03,480 if you can see it. 426 00:20:03,680 --> 00:20:06,040 And that's the only way that we have 427 00:20:06,040 --> 00:20:08,500 to get somewhat latency measurements. 428 00:20:08,920 --> 00:20:10,480 It's really hard to get latency measurements 429 00:20:10,480 --> 00:20:12,780 when you're only receiving data from one way. 430 00:20:13,460 --> 00:20:15,000 So we're not actually getting latency, 431 00:20:15,180 --> 00:20:16,180 we're getting latency variance, 432 00:20:16,340 --> 00:20:18,940 which is the difference in the times that they're received. 433 00:20:19,700 --> 00:20:21,420 But so that's what that's used for. 434 00:20:21,420 --> 00:20:23,860 Just for getting the timing data. 435 00:20:23,980 --> 00:20:27,260 We're not using it for anything for the actual attacking. 436 00:20:28,880 --> 00:20:29,460 . 437 00:20:29,460 --> 00:20:30,200 Does that help? 438 00:20:30,380 --> 00:20:30,880 Yeah. 439 00:20:32,240 --> 00:20:32,820 . 440 00:20:36,400 --> 00:20:36,980 Yeah. 441 00:20:37,540 --> 00:20:38,120 . 442 00:20:45,300 --> 00:20:47,620 That's a very good question. 443 00:20:48,120 --> 00:20:48,700 . 444 00:20:49,900 --> 00:20:51,260 Oh, repeat the question. 445 00:20:51,540 --> 00:20:52,300 Good call. 446 00:20:52,440 --> 00:20:53,100 Speaker etiquette. 447 00:20:53,220 --> 00:20:55,900 He asked how long it actually takes to discover 448 00:20:55,900 --> 00:20:58,880 any one router out of the thousand routers that are out there. 449 00:20:59,560 --> 00:21:01,580 And if there were many more routers, 450 00:21:01,660 --> 00:21:03,040 how would that change the attack? 451 00:21:03,240 --> 00:21:07,120 And the answer is right now, 452 00:21:07,220 --> 00:21:09,320 it takes ten minutes to discover. 453 00:21:09,520 --> 00:21:11,920 And then we also do another ten minutes or longer 454 00:21:11,920 --> 00:21:14,220 to verify that we've actually found the correct first node. 455 00:21:14,800 --> 00:21:18,380 So it's ten minutes times over a thousand. 456 00:21:19,820 --> 00:21:21,420 When we've done the attack, 457 00:21:21,640 --> 00:21:23,560 we're really just showing that the attack is possible. 458 00:21:24,300 --> 00:21:27,020 We've done the attack when we actually choose the first router. 459 00:21:27,220 --> 00:21:29,400 We've done it on many, many, many routers. 460 00:21:30,020 --> 00:21:31,640 But we actually choose the first router. 461 00:21:31,660 --> 00:21:34,340 We haven't done it on the whole network like that. 462 00:21:34,520 --> 00:21:35,620 But so it would take a long time. 463 00:21:35,840 --> 00:21:37,380 And more routers would make it much longer. 464 00:21:39,160 --> 00:21:39,540 Yeah. 465 00:21:40,340 --> 00:21:40,720 . 466 00:21:48,080 --> 00:21:48,460 . 467 00:21:49,580 --> 00:21:50,020 Yeah. 468 00:21:50,280 --> 00:21:53,520 So the question was if somebody just uses a new route 469 00:21:53,520 --> 00:21:57,320 every, say, five minutes, that would also, yes, defeat our attack. 470 00:21:58,340 --> 00:22:01,860 But we're kind of going with the idea that users 471 00:22:02,660 --> 00:22:04,480 are usually just browsing the net 472 00:22:04,480 --> 00:22:07,580 and aren't paying attention to picking a new route 473 00:22:07,580 --> 00:22:08,940 every five minutes or something like that. 474 00:22:09,060 --> 00:22:10,780 But maybe that would be something that Tor could do 475 00:22:10,780 --> 00:22:12,200 if they thought this was viable. 476 00:22:12,380 --> 00:22:12,600 Yeah. 477 00:22:13,480 --> 00:22:13,920 . 478 00:22:14,520 --> 00:22:14,960 . 479 00:22:14,960 --> 00:22:15,540 . 480 00:22:15,540 --> 00:22:15,660 . 481 00:22:15,660 --> 00:22:18,620 When you change your exit note on Tor 482 00:22:18,620 --> 00:22:20,160 and you select a new exit point, 483 00:22:20,240 --> 00:22:22,000 does that also change your entry point? 484 00:22:22,800 --> 00:22:24,700 When you select a new exit point, 485 00:22:24,800 --> 00:22:26,020 does it change your entry point? 486 00:22:27,160 --> 00:22:29,140 As far as I know, not necessarily. 487 00:22:31,120 --> 00:22:32,220 It doesn't have to. 488 00:22:34,500 --> 00:22:35,460 But it could. 489 00:22:35,580 --> 00:22:39,800 I think, I don't want to talk too much about how exactly 490 00:22:39,800 --> 00:22:41,240 this works because I'm not real clear on it, 491 00:22:41,320 --> 00:22:43,940 but I think you have a number of entry guards that you use, 492 00:22:44,000 --> 00:22:45,520 so you could conceivably just use them. 493 00:22:45,540 --> 00:22:47,860 pick the same entry node and maybe not the same 494 00:22:47,860 --> 00:22:49,880 exit node, but you could have the same entry node 495 00:22:49,880 --> 00:22:51,840 twice. I don't know if that 496 00:22:51,840 --> 00:22:52,100 helps. 497 00:22:56,140 --> 00:22:57,300 It's a complex process 498 00:22:57,300 --> 00:22:59,700 that I can't entirely explain. 499 00:23:00,900 --> 00:23:02,000 It has to do, 500 00:23:02,080 --> 00:23:03,900 I think, I mean, the Tor guys know a lot 501 00:23:03,900 --> 00:23:04,820 better than I do, obviously. 502 00:23:05,500 --> 00:23:07,460 It has to do with uptime and 503 00:23:07,940 --> 00:23:09,320 bandwidth, I think, and 504 00:23:10,660 --> 00:23:11,880 they try to pick really 505 00:23:12,420 --> 00:23:13,240 stable, good 506 00:23:13,240 --> 00:23:14,480 first nodes. 507 00:23:16,140 --> 00:23:17,740 I know they do a good job. 508 00:23:17,820 --> 00:23:19,060 I'm not exactly sure how it works. 509 00:23:20,300 --> 00:23:21,600 Does that answer your question? 510 00:23:27,920 --> 00:23:29,860 Nobody else? Well, thank you very much.