1 00:00:06,370 --> 00:00:07,490 Okay. 2 00:00:07,650 --> 00:00:08,290 Wow. 3 00:00:08,290 --> 00:00:10,170 This microphone is really loud. 4 00:00:10,170 --> 00:00:11,030 Awesome. 5 00:00:11,030 --> 00:00:13,650 Welcome everybody to another Tor Talk. 6 00:00:13,650 --> 00:00:14,450 I'm Roger. 7 00:00:14,450 --> 00:00:15,750 This is Sylvia. 8 00:00:15,750 --> 00:00:24,890 And we're going to tell you about the Tor metrics, how to understand what's going on in the network, and in general how to grow the community that we're going. 9 00:00:24,890 --> 00:00:30,530 So part of what I'm trying to do here, many of you have seen only me as a Tor speaker. 10 00:00:30,530 --> 00:00:34,750 I'd like to show you that there are other Tor people in the world who actually do things. 11 00:00:34,810 --> 00:00:40,630 And eventually there will be more voices of Tor than just me, and maybe eventually not even me. 12 00:00:42,970 --> 00:00:46,490 Okay, so some motivation, some things to think about. 13 00:00:46,890 --> 00:00:53,290 Here is a fellow who was elected in Iran back in 2009, but he ended up not in charge. 14 00:00:53,290 --> 00:00:56,950 And many of you might remember the Green Party movement. 15 00:00:56,950 --> 00:01:10,940 So long ago, I was talking to a friend who was doing trainings of how to be safe in Iran, how to get around censorship, and he was teaching people open proxies, VPNs, Tor, Syphon, other tools. 16 00:01:10,940 --> 00:01:17,060 And then he realized, everybody that I've taught anything other than Tor to is now dead or in jail. 17 00:01:17,220 --> 00:01:19,080 So I'm only going to teach Tor. 18 00:01:19,240 --> 00:01:22,060 And that was an eye-opening story when I heard it. 19 00:01:22,060 --> 00:01:24,280 And there are two lessons there that we take here. 20 00:01:24,280 --> 00:01:28,980 One of them is we really need to understand what's going on in the Tor network. 21 00:01:28,980 --> 00:01:32,980 So when a lot of users show up from certain countries, we know that it's happening. 22 00:01:32,980 --> 00:01:35,120 But also, we need to do it safely. 23 00:01:35,120 --> 00:01:41,620 We need to be aware of how we can measure things and understand things without putting users at risk. 24 00:01:43,000 --> 00:01:46,260 So we've got four main topics we're going to talk about today. 25 00:01:46,260 --> 00:01:50,600 The first one is introduction to Tor for the people who need a refresher. 26 00:01:50,600 --> 00:01:57,380 And then we're going to talk more about the relay community and who runs the relays and how we grow that as a community. 27 00:01:57,420 --> 00:02:03,040 And then we're going to talk about understanding what's going on with metrics and measurements and data sets. 28 00:02:03,040 --> 00:02:07,000 And at the end, we'll ask you to help us save the world. 29 00:02:08,620 --> 00:02:09,140 Okay. 30 00:02:09,140 --> 00:02:10,080 Did I? 31 00:02:10,080 --> 00:02:10,840 Yes. 32 00:02:11,000 --> 00:02:11,360 Okay. 33 00:02:11,360 --> 00:02:13,880 So Tor is a lot of different things. 34 00:02:13,880 --> 00:02:15,440 Tor is a nonprofit. 35 00:02:15,440 --> 00:02:17,280 It's a free software project. 36 00:02:17,280 --> 00:02:18,980 It's a network of volunteers. 37 00:02:18,980 --> 00:02:22,660 So raise your hand if any of the following apply to you. 38 00:02:23,060 --> 00:02:26,920 Anybody here run a Tor relay or a bridge or snowflake? 39 00:02:26,960 --> 00:02:32,700 Anybody here help with research or helping in like writing research papers? 40 00:02:32,700 --> 00:02:34,260 Anybody here use Tor? 41 00:02:34,260 --> 00:02:35,760 Use Tor browser? 42 00:02:35,840 --> 00:02:42,020 Anybody here find themselves explaining to their relatives why I have nothing to hide makes no sense? 43 00:02:42,380 --> 00:02:42,860 Excellent. 44 00:02:42,860 --> 00:02:44,360 You're all part of Tor. 45 00:02:44,360 --> 00:02:51,420 Tor is an ecosystem of people trying to fix the fact that people need privacy and not enough of them have it. 46 00:02:52,840 --> 00:02:53,280 Okay. 47 00:02:53,280 --> 00:02:59,760 So I use the word anonymity when I'm talking to researchers, but really it comes down to communications metadata. 48 00:02:59,760 --> 00:03:04,560 And here's creepy NSA guy that we learned a lot more about from the Snowden documents. 49 00:03:04,560 --> 00:03:07,800 And he actually said, we kill people based on metadata. 50 00:03:07,800 --> 00:03:10,260 So that's where we're starting from. 51 00:03:10,260 --> 00:03:18,520 And the goal of Tor is to protect that metadata so that it's hard for people to tell who's doing what. 52 00:03:18,520 --> 00:03:21,780 So I only use the word anonymity talking to researchers. 53 00:03:21,780 --> 00:03:26,040 When I'm talking to my parents and grandparents, I work on privacy systems. 54 00:03:26,040 --> 00:03:28,820 Because anonymity, I don't know, that's kind of scary. 55 00:03:28,820 --> 00:03:30,860 But privacy is an important value. 56 00:03:30,860 --> 00:03:32,360 Everybody should have privacy. 57 00:03:32,580 --> 00:03:40,140 And then when I'm talking to corporations, Google, Walmart and so on, I work on communication security. 58 00:03:40,220 --> 00:03:43,660 Because privacy is dead, anonymity, why would they want that? 59 00:03:43,660 --> 00:03:45,240 But of course they want security. 60 00:03:45,840 --> 00:03:51,400 And then when I'm talking to governments, I work on traffic analysis resistant communication networks. 61 00:03:51,500 --> 00:03:54,420 And again, it's the same system, the same security properties. 62 00:03:54,420 --> 00:04:03,220 The goal is to get all these users together so you have your cancer survivors and your Egyptian activists and other groups all inside the same network. 63 00:04:03,420 --> 00:04:09,640 And then there's the fourth category that we've been thinking a lot about recently, which is the reachability side. 64 00:04:09,640 --> 00:04:17,360 The people in Vietnam who can't get to BBC or people trying to reach the Tor network even though sensors are trying to block it. 65 00:04:17,360 --> 00:04:23,660 So the goal here is to get all of these different groups into the same anonymity system so that they can blend together. 66 00:04:23,660 --> 00:04:32,680 Otherwise, if you just had an anonymity system for cancer survivors, then people would know why you installed it, why you're using it. 67 00:04:34,320 --> 00:04:34,920 Okay. 68 00:04:34,920 --> 00:04:36,400 So how do you actually build one of these? 69 00:04:36,400 --> 00:04:41,680 How do you build a metadata , communications metadata privacy system? 70 00:04:41,680 --> 00:04:50,140 The easy answer is you have some centralized system like a VPN and all the users connect to it and request some web page or something. 71 00:04:50,220 --> 00:04:52,120 And a bunch of things can go wrong here. 72 00:04:52,120 --> 00:04:58,220 The first thing that can go wrong is what if that central point of failure fails? 73 00:04:58,500 --> 00:05:00,440 So we hear this all the time. 74 00:05:00,440 --> 00:05:05,720 There's some new VPN company that says, we promise we won't look at any of your traffic. 75 00:05:05,940 --> 00:05:06,280 Okay. 76 00:05:06,280 --> 00:05:08,160 Actually, we do look at all of your traffic. 77 00:05:08,160 --> 00:05:10,080 We promise we won't log anything. 78 00:05:10,440 --> 00:05:10,760 Okay. 79 00:05:10,760 --> 00:05:12,360 Actually, we do write all of it down. 80 00:05:12,360 --> 00:05:14,180 We promise we won't tell anybody. 81 00:05:14,220 --> 00:05:16,160 Oh, of course we answer subpoenas. 82 00:05:16,560 --> 00:05:19,640 So the problem there is you don't know. 83 00:05:19,640 --> 00:05:21,140 It's a centralized system. 84 00:05:21,140 --> 00:05:23,920 They promise they won't screw you, but they have the data. 85 00:05:23,920 --> 00:05:24,800 They know you. 86 00:05:24,800 --> 00:05:26,100 They know what you do. 87 00:05:26,100 --> 00:05:28,160 It's privacy by promise. 88 00:05:28,160 --> 00:05:30,340 And it's worse than that. 89 00:05:31,540 --> 00:05:38,380 Even if that centralized provider is somehow magically honest in all ways, it's still one point. 90 00:05:38,380 --> 00:05:48,460 And the cable goes in, the same cable comes out, and if you can get access to that, then you can start doing timing and volume analysis to say that user wanted to get that web page. 91 00:05:48,460 --> 00:05:52,880 So even if the central point is totally honest, it's still bad news. 92 00:05:53,640 --> 00:06:02,000 So the goal of Tor is to distribute the trust over multiple relays so there's no single point that knows both you and what you're doing. 93 00:06:02,000 --> 00:06:07,420 So it's privacy by design, privacy by architecture, rather than privacy by promise. 94 00:06:07,420 --> 00:06:12,260 And part of the goal is we've got these... you're able to see the slides, right? 95 00:06:12,260 --> 00:06:13,240 Even though they're not here? 96 00:06:13,240 --> 00:06:14,080 Okay, good. 97 00:06:14,180 --> 00:06:26,480 So part of the goal is that we've got these three relays and you build your path through the three relays and no single point in the network is able to learn both who you are and what destinations you're going to. 98 00:06:27,580 --> 00:06:31,540 And another key point here, transparency for Tor is really important. 99 00:06:31,540 --> 00:06:33,760 Yes, it's open source, it's free software. 100 00:06:33,820 --> 00:06:38,160 Yes, we give you the design documents and the specifications and the research papers. 101 00:06:38,260 --> 00:06:47,140 And yes, we say, hi, I'm Roger, this is Sylvia, we're people, we're actually developers who are happy to publicly identify ourselves. 102 00:06:47,140 --> 00:06:50,660 And the key to that is transparency is really important. 103 00:06:50,660 --> 00:06:55,880 Every time I talk to somebody, they say, oh, ha ha, the privacy people are talking about transparency. 104 00:06:55,880 --> 00:06:57,320 That doesn't make any sense. 105 00:06:57,320 --> 00:07:01,180 And the reason why it makes sense is privacy is about choice. 106 00:07:01,320 --> 00:07:03,040 Transparency is about choice. 107 00:07:03,040 --> 00:07:14,120 Our goal here is we choose to be transparent in order to build a stronger community, in order for people to be able to trust what we're doing and to become part of our community. 108 00:07:16,280 --> 00:07:16,900 Okay. 109 00:07:16,900 --> 00:07:18,100 So here's our first graph. 110 00:07:18,100 --> 00:07:22,820 This is a graph of the capacity and the load on the Tor network over the past ten years. 111 00:07:22,820 --> 00:07:26,180 The green line is what sort of capacity we have. 112 00:07:26,180 --> 00:07:28,560 And the purple line is the load on the network. 113 00:07:28,560 --> 00:07:37,400 And we're up at 250 gigabits per second of actual load on the network, which is a pretty big global network at this point. 114 00:07:37,400 --> 00:07:40,420 On the other hand, the capacity has still been growing. 115 00:07:40,420 --> 00:07:44,820 And the purple line, the load line, has sort of flattened out over the past couple of years. 116 00:07:44,820 --> 00:07:50,160 So we can definitely talk about how to scale and how the performance should work. 117 00:07:55,900 --> 00:07:57,220 Not yet. 118 00:07:57,220 --> 00:07:57,840 No? 119 00:07:57,840 --> 00:07:59,200 Keep going? 120 00:08:00,020 --> 00:08:01,260 That's fine. 121 00:08:02,020 --> 00:08:03,440 That works? 122 00:08:04,440 --> 00:08:05,060 Hello? 123 00:08:06,060 --> 00:08:07,060 That's fine. 124 00:08:07,060 --> 00:08:07,840 Okay. 125 00:08:08,720 --> 00:08:12,640 So this is the number of relays per flags that we have. 126 00:08:12,640 --> 00:08:16,340 Flags are like roles that relay can have on the network. 127 00:08:16,560 --> 00:08:26,460 And for example, if we have a stable relay, that usually is going to be guard as well, meaning that that's the relay that the Tor browser picks when entering the network. 128 00:08:26,500 --> 00:08:30,900 And some of you might notice there is an interesting curve here. 129 00:08:30,900 --> 00:08:34,440 It's the HS tier graph here. 130 00:08:34,440 --> 00:08:41,660 In the middle we have 4,000 relays and then sometimes around June something happens and we lose 2,000 of those relays. 131 00:08:41,720 --> 00:08:44,280 And why does that happen? 132 00:08:44,280 --> 00:08:47,260 So there was a Debian update. 133 00:08:47,260 --> 00:08:50,480 There was a library that had a few dependencies in common with Tor. 134 00:08:50,480 --> 00:08:56,080 So that updated and the Tor daemon restarted and the relays lose the flag. 135 00:08:56,360 --> 00:09:01,660 And this introduced us to a topic that is important for the Tor network which is diversity. 136 00:09:01,940 --> 00:09:08,400 And actually shows that we have a little bit of a monoculture issue when it comes to Tor relays. 137 00:09:08,400 --> 00:09:11,200 A lot of them don't run Debian. 138 00:09:11,540 --> 00:09:21,000 And that is because the easiest way to run a Tor relay is you spin up a Debian machine, you install the package and then you have the relay. 139 00:09:21,700 --> 00:09:26,120 And so it shows these monoculture issues. 140 00:09:26,120 --> 00:09:29,560 But, you know, I think we are not the only one to have a monoculture issue. 141 00:09:29,560 --> 00:09:36,480 I think Microsoft said that they had 8.5 million devices affected by the crowd strike incident. 142 00:09:36,480 --> 00:09:39,140 So anyway. 143 00:09:39,980 --> 00:09:45,360 And this is why we talk about diversity a lot when we talk about the Tor network. 144 00:09:45,360 --> 00:09:50,720 The Tor network is driven by a diverse community of relay operators. 145 00:09:51,120 --> 00:09:58,760 And we have developers, we have privacy researchers, we have security professionals, we have academics. 146 00:09:59,520 --> 00:10:06,000 And diversity is not just a desirable attribute but it's a critical component when we talk about the network. 147 00:10:06,000 --> 00:10:10,080 And you might wonder what do we mean by diversity? 148 00:10:10,080 --> 00:10:12,800 Why we place so much emphasis on it? 149 00:10:13,660 --> 00:10:19,620 And what mechanism and we do have to foster this diverse community. 150 00:10:19,620 --> 00:10:29,360 So the first thing is when we talk about the network, we mean diversity of hardware, software configuration, location, but also of users. 151 00:10:30,080 --> 00:10:37,820 Hardware and software configuration, we saw a little bit when a lot of relays run the same operating system, they are affected maybe by a bug. 152 00:10:37,820 --> 00:10:41,980 That means a big part of the network is affected by the same bug. 153 00:10:41,980 --> 00:10:48,340 So we strive, our objective is to have a uniform distribution of operating systems. 154 00:10:48,420 --> 00:10:51,940 Of course we're not there but that's what we aim for. 155 00:10:52,780 --> 00:10:57,420 We place a lot of emphasis on location as well for a variety of reasons. 156 00:10:57,420 --> 00:11:10,540 We want third circuit to spread different geographical location because it would make harder for an observer to place the region and the destination of a communication. 157 00:11:11,040 --> 00:11:16,700 We want also to our relays to be spread globally to avoid single point of failure. 158 00:11:17,440 --> 00:11:26,320 Because if there is an issue locally that is affecting a number of relays, we know that the rest of the network will maintain the stability. 159 00:11:26,820 --> 00:11:41,600 And we also think that by having relay operators spread around the world, we have a more diverse community, diverse location, which in the end will help maintain the network growth and sustainability in the long run. 160 00:11:41,600 --> 00:11:44,900 And we also want diversity of users. 161 00:11:45,380 --> 00:11:48,900 So people use TOR for a variety of reasons. 162 00:11:48,900 --> 00:11:54,640 We estimate that we have 400,000 users daily in the United States. 163 00:11:54,700 --> 00:12:00,700 It means that we have diversity of usage patterns , profiles, interests. 164 00:12:00,700 --> 00:12:05,020 We have minority groups using TOR , social right activists. 165 00:12:05,020 --> 00:12:11,220 We have privacy enthusiasts who would want to be followed by surveillance companies who want to surf the web. 166 00:12:11,780 --> 00:12:22,020 And for many people like activists, people belonging to different kind, for example, people researching 167 00:12:25,500 --> 00:12:47,500 people researching, people researching like information on reproductive rights online, people needed looking for information on domestic violence, for example, TOR provides a platform to access information and to express themselves in environments where they could otherwise face persecution, 168 00:12:47,500 --> 00:12:50,340 discrimination, and retaliation. 169 00:12:51,180 --> 00:12:57,960 So how do we actually foster this diverse community in a healthy way? 170 00:12:57,960 --> 00:13:01,520 So we place a lot of emphasis on direct communication. 171 00:13:01,520 --> 00:13:02,580 We use IRC. 172 00:13:02,580 --> 00:13:04,160 We use mailing lists. 173 00:13:04,160 --> 00:13:05,420 We use forum. 174 00:13:05,420 --> 00:13:11,580 We organize online and in-person meetups, online meetups for our community up and every month. 175 00:13:11,680 --> 00:13:24,060 We get feedback from relay operators, for example, and we tell them how development is going, if there is any update, and we get this communication going on. 176 00:13:24,160 --> 00:13:25,760 We have in-person meetups. 177 00:13:25,760 --> 00:13:27,700 We are here at DEF CON. 178 00:13:27,820 --> 00:13:32,500 In Europe, we know that there are other events where people in our community like to gather. 179 00:13:32,500 --> 00:13:35,180 So, for example, we have FOSDEM, we have CCC. 180 00:13:35,660 --> 00:13:38,820 And we do develop transparent policies. 181 00:13:39,600 --> 00:13:47,480 We have open process to create and maintain policies for our community, which are central to how we run the community. 182 00:13:48,060 --> 00:13:59,140 This discussion of how to propose and maintain this policy happened on our back tracker on GitLab, and everybody is welcome to give feedback. 183 00:13:59,220 --> 00:14:15,380 And it's a way for us to give new tools to the relay community because in the past, we noticed that they were organizing informally, and this is a tool to help them with managing expectation and with governance. 184 00:14:21,590 --> 00:14:24,450 So, where do these relays come from? 185 00:14:24,570 --> 00:14:32,690 Originally, it was people that I had met at hacker conferences like this, and I said Tor is really important, and you said, how can I help? 186 00:14:32,690 --> 00:14:47,230 And I convinced you to run a relay, and that worked great for the first 50 relays or 100 relays, but if we need to scale the network up to thousands of relays, and they need to be in diverse locations around the world, I can't go meet all of the people. 187 00:14:47,230 --> 00:14:55,030 In order to have an actually global safe network, we need to have them everywhere and run by people that we don't know as well. 188 00:14:55,030 --> 00:15:03,590 And the challenge there, especially in the past few years, the set of reasons why bad people might want to set up relays has grown. 189 00:15:03,590 --> 00:15:11,490 We've ended up with people in Russia setting up relays in order to do the man in the middle attacks on exit traffic. 190 00:15:12,050 --> 00:15:18,470 We've seen people running relays, a lot of them for reasons that we still don't quite understand what's going on. 191 00:15:18,470 --> 00:15:21,930 So this is an ongoing and growing challenge. 192 00:15:21,930 --> 00:15:26,710 How do we make sure that the Tor network has the relays that are doing it for the right reasons? 193 00:15:26,970 --> 00:15:28,490 So how do we do that? 194 00:15:28,490 --> 00:15:30,250 How do we actually accomplish that? 195 00:15:30,250 --> 00:15:36,110 The first answer is we need to get rid of application level vulnerabilities. 196 00:15:36,110 --> 00:15:46,610 For example, the reason why those Russian people could run man in the middle attacks is because some Tor users were doing HTTP, not HTTPS. 197 00:15:46,610 --> 00:15:57,150 So we managed to fix the browser to do HTTPS by default always and that is a structural way to resolve that sort of attack. 198 00:15:57,150 --> 00:16:06,990 Another angle to look at this, one of the few tools that we have in this community, in this social group of relays is the social graph. 199 00:16:06,990 --> 00:16:08,490 It's who knows who. 200 00:16:08,490 --> 00:16:19,690 So if we as a community of relay operators get together and know each other, then we can be stronger against outsider FBI people or whatever trying to come in and join. 201 00:16:20,550 --> 00:16:28,650 And speaking of that, one of the really successful models over the past ten years or so is relay operator associations. 202 00:16:28,650 --> 00:16:30,990 These are non-profits around the world. 203 00:16:30,990 --> 00:16:34,470 These are individuals who banded together in their country. 204 00:16:34,470 --> 00:16:38,490 One of them exists in France, in Switzerland, in Germany. 205 00:16:38,490 --> 00:16:40,050 There's one in Sweden. 206 00:16:40,050 --> 00:16:41,330 There was one in Luxembourg. 207 00:16:41,330 --> 00:16:42,390 There was one in Iceland. 208 00:16:42,390 --> 00:16:43,650 There are two in Canada. 209 00:16:43,650 --> 00:16:50,910 It's a global phenomenon where non-profit like hacker spaces get together to run Tor exit relays. 210 00:16:50,910 --> 00:16:54,170 And one of the great things about this is it's sustainable. 211 00:16:54,170 --> 00:16:56,030 You can run really big relays. 212 00:16:56,030 --> 00:17:02,250 Another one is they can establish relationships with the local cops so they know how Tor works. 213 00:17:02,330 --> 00:17:03,790 And also we know who they are. 214 00:17:03,790 --> 00:17:07,350 We meet them at conferences like DEF CON and grow that community. 215 00:17:07,350 --> 00:17:20,050 So having them be part of our community is one of the ways we can handle that asymmetry where we need to have a lot of relays around the world, but also we need to know who they are and have them work together. 216 00:17:20,050 --> 00:17:27,070 And speaking of that, EFF a year ago launched a campaign to get universities in particular running relays. 217 00:17:27,070 --> 00:17:33,970 And part of the reason for that is universities, that's where freedom of speech, freedom of thought is supposed to be. 218 00:17:34,290 --> 00:17:38,290 But it's not just the freedom side. 219 00:17:38,350 --> 00:17:40,290 Universities are about education. 220 00:17:40,370 --> 00:17:49,730 You can run a relay at your university and learn how to put a computer on the actual internet, which is a thing that we all used to do. 221 00:17:49,730 --> 00:17:52,390 And now the cloud exists, so not as many people do that. 222 00:17:52,390 --> 00:17:54,050 So there's an education side. 223 00:17:54,050 --> 00:17:55,210 There's a community side. 224 00:17:55,210 --> 00:17:56,470 There's a research side. 225 00:17:56,470 --> 00:18:08,790 If you want to help do that, they have these amazing coins that they created a little while ago that I'll show you afterwards, that if you run a relay at your university, they will send you one of these amazing coins. 226 00:18:09,890 --> 00:18:15,390 And relay incentives in general is a broad topic that we really need to work harder on. 227 00:18:15,390 --> 00:18:24,130 So gamification, like Reddit style, Stack Exchange style, I got a gold badge for my five-year anniversary. 228 00:18:24,130 --> 00:18:26,830 I got a silver badge because I was an exit relay. 229 00:18:26,830 --> 00:18:32,390 I got a silver badge because I'm in an ISP that there aren't very many other relays in. 230 00:18:32,390 --> 00:18:41,950 So coming up with ways to highlight what we need most and make people feel happy and part of a community and check out my gold badge, I can put this on Twitter. 231 00:18:42,130 --> 00:18:46,550 Leaderboards, I'm running the 17th fastest tour relay in the world right now. 232 00:18:46,550 --> 00:18:47,810 So that's one piece. 233 00:18:47,810 --> 00:18:50,590 Another piece is just giving people more attention. 234 00:18:50,590 --> 00:18:56,850 Meetups, having time to answer their questions and walk people through how to run relays. 235 00:18:57,030 --> 00:18:59,310 And then there are the structural incentives. 236 00:18:59,310 --> 00:19:05,450 Like imagine we had a tour design where if you run a relay, you get better performance on tour. 237 00:19:05,570 --> 00:19:10,770 So there are a bunch of exciting security problems that come with a lot of these designs. 238 00:19:10,770 --> 00:19:17,950 But maybe there's a version of this design where we can get rid of the security flaws while still keeping the incentives. 239 00:19:17,990 --> 00:19:33,070 And then the last topic is a lot of cryptocurrency people these days keep saying, you know what you need to do, you need an incentive coin thing so that people will want to run relays because they'll make money, they'll make bitcoins, dollars and so on. 240 00:19:33,070 --> 00:19:41,370 And part of the challenge there is the cryptocurrency world, their fundamental building block is capitalism, is maximizing profit. 241 00:19:41,370 --> 00:19:45,270 And the tour world, our fundamental building block is altruism. 242 00:19:45,270 --> 00:19:50,510 It's I want to make the world a better place, I have extra resources, I can provide them. 243 00:19:50,530 --> 00:20:04,550 So these are very different worlds in terms of organic, do you build an organic community of people who want to help each other or are you just trying to everybody for themselves maximize your profit. 244 00:20:04,550 --> 00:20:11,890 And in that case, if you want to do it for profit, maybe you'll all go to the cheapest hosting provider so you can spend as little money as possible. 245 00:20:11,890 --> 00:20:18,290 Or maybe you'll sell your data on the side to make a little bit more money because capitalism means, you know, maximizing profit. 246 00:20:18,290 --> 00:20:29,070 So these are fundamentally incompatible approaches to how to build a community of volunteers around the world who are trying to keep people safe. 247 00:20:31,860 --> 00:20:37,500 Okay, so I want to tell you a bit about network health and metrics and what we do. 248 00:20:37,780 --> 00:20:43,380 But first I want to tell you about a story because I want to put what we do in context. 249 00:20:43,540 --> 00:20:52,880 So between May and June in 2020, we removed a group of Tor exit relays that were doing an SSL strip attack. 250 00:20:53,100 --> 00:21:04,760 And we didn't spot this at first because they were leaving all the exit traffic alone, but they were intercepting just a little bit of the traffic that was going to some cryptocurrency exchange websites. 251 00:21:05,020 --> 00:21:25,420 So what this were doing was that if the user was visiting the HTTP website, not the HTTPS one, they wouldn't redirect the user and if they wouldn't notice that there was not a lock, for example, in the browser, in the top, they would just continue to send their login information, 252 00:21:25,420 --> 00:21:28,380 for example, and this information would be intercepted. 253 00:21:28,660 --> 00:21:30,560 So we noticed this. 254 00:21:30,560 --> 00:21:36,860 We kicked the relays out and then a few weeks later, in June, another group of relays does the same attack. 255 00:21:37,220 --> 00:21:51,940 And we noticed this again and we kicked them out and then we realized that network health is not just about kicking relays out, although that's important because you don't want malicious relay on the network, but it's a little bit more. 256 00:21:52,200 --> 00:22:15,860 So we got together with the browser team and because of projects like HTTPS everywhere and a newer version of Firefox that allowed the browser to default to HTTPS and then fall back to HTTP just when needed, we were able to enable HTTPS by default into our browser and protect our user, 257 00:22:15,860 --> 00:22:19,100 not just the network level, but also the application level. 258 00:22:19,760 --> 00:22:32,480 And so out of incidents like this, that we understood the value of having a network health team, which is basically joining together a group of people that keep track of the network. 259 00:22:32,900 --> 00:22:37,420 And part of what we do is kicking relays out of the network. 260 00:22:37,700 --> 00:22:47,460 But also part of what we do is community engagement, is working with the relay community, working with activists sometimes in the ground. 261 00:22:47,840 --> 00:23:01,660 And the foundation of what we do also is collecting the metrics about the Tor network that gives us an idea of how the network is performing, how the network is doing, and to understand if something is not right. 262 00:23:02,460 --> 00:23:12,380 And so when there is a geopolitical event, for example, we are able to spot it because we are able to notice some patterns on the network. 263 00:23:12,620 --> 00:23:23,620 And in this case, this is a picture of, it's a graph of directly connecting users from Russia between 2021 and 2022. 264 00:23:23,620 --> 00:23:33,700 And we start noticing that there was censorship being applied in Russia between November and December, which is a few months before the Ukraine invasion. 265 00:23:34,140 --> 00:23:37,500 And we saw directly connected user decline. 266 00:23:38,080 --> 00:23:50,100 And as we saw this happening, we also were able to work with the anti-censorship team, with activists on the ground, we were able to tell the user to use bridges. 267 00:23:50,100 --> 00:23:53,660 And so we saw a spike in bridge users in Russia. 268 00:23:53,660 --> 00:23:58,940 And that meant that we are able to help these people reach the news and know what is happening outside the country. 269 00:24:00,420 --> 00:24:00,940 Yeah. 270 00:24:00,940 --> 00:24:04,280 So let me jump in and explain what a bridge is for those who don't know. 271 00:24:04,360 --> 00:24:06,780 We've been talking about relays so far. 272 00:24:06,780 --> 00:24:09,820 These are public tour relays that are in the list. 273 00:24:09,820 --> 00:24:13,120 And that means that the censors can get that list and block all of them. 274 00:24:13,120 --> 00:24:16,440 So bridges are relays that aren't in the list. 275 00:24:16,480 --> 00:24:25,860 So the goal is to transform the traffic in some way so that it's doing a protocol the censors don't want to block and it's talking to an IP address that the censors don't think is tour. 276 00:24:25,860 --> 00:24:29,020 So that's the arms race that we're in there. 277 00:24:29,020 --> 00:24:32,440 And there are a bunch of different approaches we have for bridges. 278 00:24:32,440 --> 00:24:33,580 One of which is? 279 00:24:35,820 --> 00:24:36,600 Yeah. 280 00:24:36,600 --> 00:24:42,720 And similar situation in Iran in 2022, the mass protest. 281 00:24:43,180 --> 00:24:50,600 So people, we started noticing that there was aggressive censorship happening in the country. 282 00:24:50,600 --> 00:24:52,480 People were in the street protesting. 283 00:24:52,480 --> 00:24:54,680 They couldn't access the Internet. 284 00:24:54,680 --> 00:24:56,140 They couldn't access the news. 285 00:24:56,140 --> 00:25:00,200 They couldn't use communication messaging systems. 286 00:25:00,580 --> 00:25:11,760 So by working, again, with people on the ground, the activists, the local people, and the anti-censorship team, we were able to teach these users how to use Snowflake. 287 00:25:11,760 --> 00:25:18,320 And we saw how the users from Iran spiked during the protest. 288 00:25:18,620 --> 00:25:29,380 And for these people, reaching tour was a lifeline in a way because they were able to communicate between one another in ways that it was not possible at the moment with any other tool. 289 00:25:29,560 --> 00:25:36,060 And if you're wondering what Snowflake is, so in the tour ecosystem, Snowflake is what we call a pluggable transport. 290 00:25:36,400 --> 00:25:41,880 And it's, um, you can think of it like as a tool the tour used to disguise the traffic. 291 00:25:41,880 --> 00:25:46,760 And in the case of Snowflake, it used temporary run volunteer proxies. 292 00:25:46,920 --> 00:25:53,780 So it's, um, by using the proxies, more difficult for the censors to actually block them. 293 00:25:53,780 --> 00:25:59,400 And it helps people in very, um, difficult situation to reach the Internet. 294 00:26:00,480 --> 00:26:04,080 Yeah, so two things to point out for this graph in particular. 295 00:26:04,080 --> 00:26:13,020 One of them is that Y axis, we're talking 100,000 or maybe hundreds of thousands of people using Snowflake in Iran during that event. 296 00:26:13,020 --> 00:26:18,220 So as we're showing more recent graphs, we end up with larger and larger numbers. 297 00:26:18,220 --> 00:26:22,340 We're talking about many tens of thousands or hundreds of thousands of people. 298 00:26:22,340 --> 00:26:28,040 And the other answer is Snowflake.tourproject.org, you too can volunteer as a Snowflake. 299 00:26:28,040 --> 00:26:33,580 You can either install it as a browser extension or there's a headless version for your Linux system based on Go. 300 00:26:33,580 --> 00:26:34,660 Please help. 301 00:26:36,420 --> 00:26:47,280 And so, um, more recent case, we saw just a few months ago between May and June, we started to see user spikes in Myanmar. 302 00:26:47,420 --> 00:26:53,060 And then we got news that the military junta started to apply Internet shutdown. 303 00:26:53,360 --> 00:27:05,580 So again, what we did was get together with the browser, the anti-censorship team, and help users connecting to Tor by distributing bridges directly for them in the country. 304 00:27:05,580 --> 00:27:14,700 And we saw how from not having almost zero bridge users in the country, we got a spike in a few days to just half a thousand. 305 00:27:18,440 --> 00:27:26,060 Yeah, so one of the fascinating things about the graph like this, periodically we see spikes in our user graphs. 306 00:27:26,060 --> 00:27:31,640 And here we're like, wow, a whole lot of people from Myanmar just started using Tor over bridges. 307 00:27:31,640 --> 00:27:32,600 This is great. 308 00:27:32,600 --> 00:27:36,440 But sometimes we see the spikes and we don't know if it actually happened that way. 309 00:27:36,440 --> 00:27:38,440 We don't know what happened in the country. 310 00:27:38,440 --> 00:27:42,020 So every time we see a spike like this, we're wondering, is there a bug? 311 00:27:42,020 --> 00:27:50,360 Is there like a GOIP database mess up where actually these are people in Germany who got misclassified as being in Myanmar for that week? 312 00:27:50,360 --> 00:27:54,060 So part of the challenge we have is understanding what actually happened. 313 00:27:54,060 --> 00:28:06,800 And one of the principles that we have for that situation is trying to learn the same data points from a bunch of different dimensions from a bunch of different angles, so that we can confirm that what we're seeing actually really did happen. 314 00:28:06,800 --> 00:28:12,880 And part of that is angles, including talking to people on the ground and saying, what just happened in your country? 315 00:28:12,880 --> 00:28:16,560 Why is it that we're seeing these graphs, these changes in our graphs? 316 00:28:19,340 --> 00:28:23,340 Yeah, so we've been talking about user data. 317 00:28:23,420 --> 00:28:25,040 And you might have wonder... 318 00:28:29,760 --> 00:28:31,020 That's loud. 319 00:28:31,600 --> 00:28:32,640 Okay. 320 00:28:34,240 --> 00:28:35,500 I go on. 321 00:28:35,500 --> 00:28:35,980 Okay. 322 00:28:35,980 --> 00:28:37,680 I think they can hear us better than we can. 323 00:28:37,680 --> 00:28:38,280 Okay. 324 00:28:38,280 --> 00:28:44,380 So you might wonder, towards the anonymity network, how come you have user data? 325 00:28:44,380 --> 00:28:53,040 And so the simple answer to that is that we live by a principle that is, we do not collect data that cannot be public. 326 00:28:53,160 --> 00:28:59,400 So all our data that we have in metrics is actually public data that we publish. 327 00:29:00,140 --> 00:29:03,100 So we do not collect in client data. 328 00:29:03,300 --> 00:29:06,660 Our user data that we've been talking about are actual estimations. 329 00:29:06,660 --> 00:29:08,920 And I'm gonna say how we do this. 330 00:29:08,920 --> 00:29:14,880 But other products like VPN products, they actually count the users and we don't. 331 00:29:14,880 --> 00:29:18,500 So what we have is aggregated data from relays. 332 00:29:18,660 --> 00:29:28,400 So the Tor browser or Tor clients in general, when they connect to the network, they request a list of relays information and they need this to build the circuits. 333 00:29:28,500 --> 00:29:37,900 So we estimate that if... first of all, we count all these requests globally, how they are collected from relays. 334 00:29:37,900 --> 00:29:44,520 And then we estimate that if a Tor client was connected 24 hours, it will make 10 requests. 335 00:29:44,660 --> 00:29:51,620 So we count all the requests that we get from the relays when they upload their statistics. 336 00:29:51,920 --> 00:29:54,840 And we divide them by 10. 337 00:29:54,840 --> 00:29:56,340 And we have the user estimation. 338 00:29:56,340 --> 00:30:01,720 So in reality, we might be underestimating our user count by an order of magnitude. 339 00:30:01,720 --> 00:30:03,340 But that's fine for us. 340 00:30:03,340 --> 00:30:07,800 It's the tradeoff that we want to make in order not to put our user at risk. 341 00:30:08,420 --> 00:30:12,960 So we do have, though, historical data. 342 00:30:12,960 --> 00:30:18,720 And we actually serve this data on collector.torproject.org. 343 00:30:18,720 --> 00:30:23,040 You'll find all the documents that are ever, I think, being created on the network. 344 00:30:23,260 --> 00:30:27,060 And out of this data, we have network-wide statistics. 345 00:30:27,580 --> 00:30:34,080 And we have also the status of individual nodes that will give us an idea of how the network is doing. 346 00:30:34,640 --> 00:30:45,200 And then something that we do is making the data accessible to the public, but also presenting the documentation of how we estimate the metrics that we have. 347 00:30:45,360 --> 00:30:54,820 And we believe in algorithm transparency so that if you download these star balls and you process this data, you can come up with the same results as we do. 348 00:30:54,820 --> 00:31:00,540 And if you don't, you explain to us why you don't have the same results and maybe we have to change something on our side. 349 00:31:01,940 --> 00:31:05,700 So this is an overview of how this process works. 350 00:31:05,700 --> 00:31:13,860 So the relays have this little piece of information that they upload to directory authorities, which are special nodes in the network. 351 00:31:14,280 --> 00:31:22,200 And there is a service that's called Collector, or Collector, which downloads these documents and archives them. 352 00:31:22,200 --> 00:31:30,840 And then we have a service that takes all these documents, parses them, puts them in a database, and extracts time series and network statistics. 353 00:31:31,580 --> 00:31:37,040 And I said that all the data is public, and this is true, but there are a few exceptions. 354 00:31:37,240 --> 00:31:41,800 The first exception is that we are in a race with sensors. 355 00:31:42,120 --> 00:31:49,960 And these sensors have a lot of resources, and sometimes we need to protect some of the data in order to keep up with this race. 356 00:31:50,500 --> 00:31:58,100 And the other exception that we do is that sometimes we don't publish data when we can put users at risk. 357 00:31:58,100 --> 00:32:11,540 For example, if we have a specific country which has very few Tor users, and we believe that publishing those numbers can help somebody else that has other data to anonymize those users, so we don't publish those numbers. 358 00:32:11,660 --> 00:32:14,400 And I think the threshold is about 100 users. 359 00:32:17,230 --> 00:32:37,910 So we've been talking about metrics for understanding the status of the network, but also we have other metrics that helps us understand if a node is misbehaving, and also give us an idea of how the network is performing from a point of view of performances and bandwidth and so on. 360 00:32:38,290 --> 00:32:46,150 So we look at traffic users patterns, we have actual bandwidth measurements, and we have performance measurements. 361 00:32:47,510 --> 00:33:03,650 So one thing that we do is bandwidth probing, and we have a service, we actually have a bunch of services that are called bandwidth authorities, and what they do is that they create a two-hop circuit with a measured relay, connect to a web server, download the files, 362 00:33:03,650 --> 00:33:18,590 and gives us an idea of the time it takes to download that file, and we can compare this with the bandwidth that actually the relays declares, and when they send their descriptors file to the directory authorities. 363 00:33:18,590 --> 00:33:27,350 And in certain cases, we can find out that some relays, for example, is trying to game the system and tell us that they have more bandwidth than they actually do. 364 00:33:29,070 --> 00:33:34,530 And another thing that we do is performance measurements, and we do them for two reasons. 365 00:33:34,530 --> 00:33:39,550 One of them is we want to know how the network performs from different points in the world. 366 00:33:39,550 --> 00:33:53,490 For example, we want to know how the location of a user compared to the location of relays distribution globally affects the bandwidth, affect other measurements. 367 00:33:53,630 --> 00:34:03,530 And the other thing is that we want to know for censored regions, how the network performs for those users in those extreme situations. 368 00:34:03,770 --> 00:34:18,430 So the way this works is that we have a client and a web server, and we build a server, a circuit directly to the web server, download again a file, and we measure the bandwidth, we measure the time it takes to build the circuit, and if there are errors, 369 00:34:18,430 --> 00:34:19,430 for example. 370 00:34:23,370 --> 00:34:44,590 And so with all this data, we know it's open, we know it's accessible, we know everyone can start learning about Tor, and it's basically it's documented data, but we also know there is a learning curve, we also know that you need resources sometimes to store this data, 371 00:34:44,590 --> 00:34:46,410 you need time to parse it. 372 00:34:46,410 --> 00:34:55,130 And so we decided to open a little bit more the way people can access metrics data. 373 00:34:55,130 --> 00:35:07,030 We are working on an API which is already embedded, it's already accessible, and we hope that this API can lower the barrier for researchers to start working with metrics data. 374 00:35:07,030 --> 00:35:11,490 We have few endpoints available, more coming up soon as we are developing. 375 00:35:11,830 --> 00:35:21,170 So you can access metrics-api.torproject.org, the two endpoints that are available are details and summary, and give you some information of relays. 376 00:35:21,630 --> 00:35:27,910 I forgot to mention the API is called the Network Status API, or NSA, for short. 377 00:35:29,770 --> 00:35:48,930 So one nice thing is that besides that you're querying the NSA to get the information, is that it has a little bit more flexibility compared to parsing the data, or what we are offering right now, and is that you can do, for example, historical queries, 378 00:35:48,930 --> 00:36:04,430 so there is a published variable that you can parse in the URL, and you parse, you send a date, just year, month, day, and then you get all the relays and bridges that were in the network within a week of the parsed date. 379 00:36:04,430 --> 00:36:13,810 So this is something new, and that I believe can give a lot of flexibility to researchers to start experimenting. 380 00:36:13,810 --> 00:36:17,870 I hope it helps relay operators checking the status of their nodes. 381 00:36:18,130 --> 00:36:20,130 And you can check out the documentation. 382 00:36:20,130 --> 00:36:26,910 We welcome feedback and bugs reports, of course, because expect it to be broken. 383 00:36:29,250 --> 00:36:45,010 And yeah, I think it's part of the Tor Project mission to create and develop anonymity and privacy technology, but also to further its understanding, scientific understanding, popular understanding, and this is one step forward in that direction. 384 00:36:47,990 --> 00:36:48,850 Okay. 385 00:36:48,850 --> 00:36:56,250 So we've learned a bit about the relay community side, and we've learned a bit about the metrics and network measurement side. 386 00:36:56,250 --> 00:36:58,170 What can you do to help us? 387 00:36:58,170 --> 00:37:09,730 So one big piece is get involved in the relay community and run a relay around the world at your university, at your work, at your VPS, wherever you happen to be. 388 00:37:09,730 --> 00:37:16,710 Maybe there are sysadmins in here right now who would love to add an extra relay on their volunteer rack. 389 00:37:16,710 --> 00:37:23,990 So part of that is the more relays we have, the more performance we can handle, the more users we can give good performance to. 390 00:37:23,990 --> 00:37:33,350 And the other piece of it is the more relays we have run by good people, the smaller the impact is when some bad person shows up to try to run a relay. 391 00:37:33,350 --> 00:37:46,070 So the way that we dilute the people trying to do the attacks is we get more and more hacker spaces and individuals and hackers and volunteers to be participating in this community. 392 00:37:46,070 --> 00:37:47,950 And yes, location matters. 393 00:37:47,950 --> 00:37:57,670 If you can run a relay that's not in Germany or the Netherlands, then you'll be showing up in a part of the Tor network that doesn't have as many relays right now. 394 00:37:57,670 --> 00:37:58,830 So for example, the U.S. 395 00:37:58,830 --> 00:38:03,930 is nowhere near the top in terms of countries that are contributing to the Tor network. 396 00:38:03,930 --> 00:38:04,770 I hear the U.S. 397 00:38:04,770 --> 00:38:09,430 has lots of hackers and lots of Internet connections and lots of computers. 398 00:38:09,490 --> 00:38:14,270 So there's certainly an opportunity for you to help us make the U.S. 399 00:38:14,270 --> 00:38:19,810 more impactful, which in turn makes performance better for users in this hemisphere. 400 00:38:19,890 --> 00:38:24,670 So think about diversity of location, but wherever you can run it is great. 401 00:38:24,670 --> 00:38:26,230 Please add more relays. 402 00:38:26,230 --> 00:38:35,530 And also I'm happy to chat with you more about exit policies and whether you'll end up in IP block lists and so on after this. 403 00:38:36,230 --> 00:38:45,990 And the other side of that is community.torproject.org has a lot of how-tos and guides on I want to set up a bridge on Debian. 404 00:38:45,990 --> 00:38:46,990 How do I do it? 405 00:38:46,990 --> 00:38:48,070 Here are the steps. 406 00:38:48,070 --> 00:38:49,530 I want to do a snowflake. 407 00:38:49,530 --> 00:38:50,630 Here's the steps. 408 00:38:50,630 --> 00:38:55,690 I want to go to a relay operator meetup or learn about the relay associations. 409 00:38:55,690 --> 00:38:57,950 Here are the lists and documentation. 410 00:38:58,030 --> 00:38:59,470 So there's a lot there. 411 00:38:59,470 --> 00:39:01,070 And join the community in general. 412 00:39:01,070 --> 00:39:02,770 Come to the relay operator meetups. 413 00:39:02,770 --> 00:39:13,430 We don't have a formal official relay operator meetup here at DEF CON this year because this is one enormous room and we didn't figure out how to do the spaces. 414 00:39:13,430 --> 00:39:16,650 Maybe next year we'll join privacy village or something. 415 00:39:16,650 --> 00:39:21,770 But you can come talk to us afterwards and we'd love to chat with you more about relays. 416 00:39:21,770 --> 00:39:27,190 And if you can't run a relay , run a bridge or a snowflake or contribute in other ways . 417 00:39:30,310 --> 00:39:33,670 So you can also get involved with the network health team . 418 00:39:33,990 --> 00:39:39,490 If you're interested in network data analysis, hunting for bad relays, there's certainly space for that. 419 00:39:39,490 --> 00:39:41,670 We hope the API can help you. 420 00:39:42,170 --> 00:39:47,250 There is also one thing that we do, which is creating tools for relay operators. 421 00:39:47,250 --> 00:39:53,370 For example, tall weather, which gives a notification to operators when something is not right with the relay. 422 00:39:53,390 --> 00:40:05,390 But also you can get involved with or have different projects, the network status API, the parser that we use to parse the network documents in Java. 423 00:40:05,470 --> 00:40:12,750 And also we are trying to work on a better way to visualize network data. 424 00:40:13,070 --> 00:40:17,110 We are trying to move the parser from Java to Rust. 425 00:40:17,270 --> 00:40:19,190 There is a link to our wiki. 426 00:40:19,190 --> 00:40:20,730 Please get involved. 427 00:40:20,870 --> 00:40:28,830 And if you're thinking to contribute to Tor in any possible way, you're helping me, you're helping Roger, you're helping our colleagues. 428 00:40:29,010 --> 00:40:34,430 You're helping us fighting the good fight for privacy, anonymity, and internet freedom. 429 00:40:34,430 --> 00:40:34,890 Thank you . 430 00:40:45,050 --> 00:40:49,150 We've told you a bit about how you can help us. 431 00:40:49,150 --> 00:41:03,070 But it is about helping us and it's also about helping all of the activists and people around the world, especially the people who don't have the power to have a military or bodyguards or whatever, yet they want to change their society. 432 00:41:03,070 --> 00:41:10,190 So we will be doing an ask us anything you like at the Tor booth in the vendor area right after this. 433 00:41:10,190 --> 00:41:13,010 We've got these cool badges and other things available. 434 00:41:13,010 --> 00:41:15,770 Or you can just ask us every possible Tor question. 435 00:41:15,770 --> 00:41:27,410 We will be there until you have run out of all of your Tor questions and Argoon has kindly volunteered to escort all of us over there and we'll hang out as long as you would like to answer all your questions. 436 00:41:27,410 --> 00:41:28,030 Thank you.