[00:06.370 --> 00:11.370] Okay. Wow. This microphone is really loud. Awesome. Welcome [00:11.370 --> 00:16.230] everybody to another Tor Talk. I'm Roger. This is Sylvia. And [00:16.230 --> 00:19.370] we're going to tell you about the Tor metrics, how to [00:19.370 --> 00:22.850] understand what's going on in the network, and in general how [00:22.850 --> 00:25.530] to grow the community that we're going. So part of what I'm [00:25.530 --> 00:29.990] trying to do here, many of you have seen only me as a Tor [00:29.990 --> 00:32.670] speaker. I'd like to show you that there are other Tor people [00:32.670 --> 00:35.730] in the world who actually do things. And eventually there [00:35.730 --> 00:39.130] will be more voices of Tor than just me, and maybe eventually [00:39.130 --> 00:45.710] not even me. Okay, so some motivation, some things to think [00:45.710 --> 00:51.290] about. Here is a fellow who was elected in Iran back in 2009, [00:51.290 --> 00:54.950] but he ended up not in charge. And many of you might remember [00:54.950 --> 00:58.700] the Green Party movement. So long ago, I was talking to a [00:58.700 --> 01:02.840] friend who was doing trainings of how to be safe in Iran, how [01:02.840 --> 01:05.660] to get around censorship, and he was teaching people open [01:05.660 --> 01:11.300] proxies, VPNs, Tor, Syphon, other tools. And then he [01:11.300 --> 01:14.640] realized, everybody that I've taught anything other than Tor [01:14.640 --> 01:19.460] to is now dead or in jail. So I'm only going to teach Tor. And [01:19.460 --> 01:22.540] that was an eye-opening story when I heard it. And there are [01:22.540 --> 01:25.900] two lessons there that we take here. One of them is we really [01:25.900 --> 01:29.460] need to understand what's going on in the Tor network. So when [01:29.620 --> 01:32.000] a lot of users show up from certain countries, we know that [01:32.000 --> 01:35.580] it's happening. But also, we need to do it safely. We need to [01:35.580 --> 01:39.100] be aware of how we can measure things and understand things [01:39.100 --> 01:45.120] without putting users at risk. So we've got four main topics [01:45.120 --> 01:47.860] we're going to talk about today. The first one is introduction [01:47.860 --> 01:51.180] to Tor for the people who need a refresher. And then we're going [01:51.180 --> 01:54.940] to talk more about the relay community and who runs the [01:54.940 --> 01:57.820] relays and how we grow that as a community. And then we're going [01:57.820 --> 02:01.500] to talk about understanding what's going on with metrics and [02:01.500 --> 02:05.120] measurements and data sets. And at the end, we'll ask you to [02:05.120 --> 02:12.760] help us save the world. Okay. Did I? Yes. Okay. So Tor is a lot [02:12.760 --> 02:16.580] of different things. Tor is a nonprofit. It's a free software [02:16.580 --> 02:20.780] project. It's a network of volunteers. So raise your hand [02:20.780 --> 02:24.360] if any of the following apply to you. Anybody here run a Tor [02:24.360 --> 02:29.060] relay or a bridge or snowflake? Anybody here help with research [02:29.060 --> 02:33.200] or helping in like writing research papers? Anybody here [02:33.200 --> 02:37.100] use Tor? Use Tor browser? Anybody here find themselves [02:37.100 --> 02:40.240] explaining to their relatives why I have nothing to hide [02:40.240 --> 02:44.740] makes no sense? Excellent. You're all part of Tor. Tor is [02:44.740 --> 02:49.040] an ecosystem of people trying to fix the fact that people need [02:49.040 --> 02:54.120] privacy and not enough of them have it. Okay. So I use the [02:54.120 --> 02:57.180] word anonymity when I'm talking to researchers, but really it [02:57.180 --> 03:01.160] comes down to communications metadata. And here's creepy NSA [03:01.160 --> 03:03.760] guy that we learned a lot more about from the Snowden [03:03.760 --> 03:06.960] documents. And he actually said, we kill people based on [03:06.960 --> 03:11.460] metadata. So that's where we're starting from. And the goal of [03:11.460 --> 03:16.200] Tor is to protect that metadata so that it's hard for people to [03:16.200 --> 03:20.760] tell who's doing what. So I only use the word anonymity talking [03:20.760 --> 03:23.160] to researchers. When I'm talking to my parents and [03:23.160 --> 03:27.200] grandparents, I work on privacy systems. Because anonymity, I [03:27.200 --> 03:29.800] don't know, that's kind of scary. But privacy is an [03:29.800 --> 03:32.980] important value. Everybody should have privacy. And then [03:33.660 --> 03:37.200] when I'm talking to corporations, Google, Walmart and [03:37.200 --> 03:41.360] so on, I work on communication security. Because privacy is [03:41.360 --> 03:44.280] dead, anonymity, why would they want that? But of course they [03:44.280 --> 03:48.020] want security. And then when I'm talking to governments, I work [03:48.020 --> 03:51.520] on traffic analysis resistant communication networks. And [03:51.520 --> 03:54.560] again, it's the same system, the same security properties. The [03:54.560 --> 03:58.020] goal is to get all these users together so you have your cancer [03:58.020 --> 04:01.580] survivors and your Egyptian activists and other groups all [04:01.580 --> 04:04.600] inside the same network. And then there's the fourth [04:04.600 --> 04:07.380] category that we've been thinking a lot about recently, [04:07.380 --> 04:11.540] which is the reachability side. The people in Vietnam who can't [04:11.540 --> 04:15.480] get to BBC or people trying to reach the Tor network even [04:15.480 --> 04:18.660] though sensors are trying to block it. So the goal here is to [04:18.660 --> 04:21.520] get all of these different groups into the same anonymity [04:21.520 --> 04:25.400] system so that they can blend together. Otherwise, if you just [04:25.400 --> 04:29.320] had an anonymity system for cancer survivors, then people [04:29.320 --> 04:35.020] would know why you installed it, why you're using it. Okay. So [04:35.020 --> 04:38.520] how do you actually build one of these? How do you build a [04:38.520 --> 04:42.100] metadata, communications metadata privacy system? The easy [04:42.100 --> 04:45.400] answer is you have some centralized system like a VPN [04:45.400 --> 04:49.380] and all the users connect to it and request some web page or [04:49.380 --> 04:52.480] something. And a bunch of things can go wrong here. The first [04:52.480 --> 04:57.200] thing that can go wrong is what if that central point of failure [04:57.200 --> 05:01.300] fails? So we hear this all the time. There's some new VPN [05:01.300 --> 05:04.920] company that says, we promise we won't look at any of your [05:04.920 --> 05:08.280] traffic. Okay. Actually, we do look at all of your traffic. We [05:08.280 --> 05:11.800] promise we won't log anything. Okay. Actually, we do write all [05:11.800 --> 05:14.900] of it down. We promise we won't tell anybody. Oh, of course we [05:14.900 --> 05:20.220] answer subpoenas. So the problem there is you don't know. It's a [05:20.220 --> 05:23.380] centralized system. They promise they won't screw you, but they [05:23.380 --> 05:26.900] have the data. They know you. They know what you do. It's [05:26.900 --> 05:33.180] privacy by promise. And it's worse than that. Even if that [05:33.180 --> 05:37.000] centralized provider is somehow magically honest in all ways, [05:37.000 --> 05:40.120] it's still one point. And the cable goes in, the same cable [05:40.120 --> 05:42.980] comes out, and if you can get access to that, then you can [05:42.980 --> 05:47.120] start doing timing and volume analysis to say that user wanted [05:47.120 --> 05:50.760] to get that web page. So even if the central point is totally [05:50.760 --> 05:55.960] honest, it's still bad news. So the goal of Tor is to distribute [05:55.960 --> 05:59.760] the trust over multiple relays so there's no single point that [05:59.760 --> 06:03.200] knows both you and what you're doing. So it's privacy by [06:03.200 --> 06:07.420] design, privacy by architecture, rather than privacy by promise. [06:07.420 --> 06:11.320] And part of the goal is we've got these... you're able to see [06:11.320 --> 06:14.560] the slides, right? Even though they're not here? Okay, good. So [06:14.560 --> 06:17.640] part of the goal is that we've got these three relays and you [06:17.640 --> 06:21.380] build your path through the three relays and no single point [06:21.380 --> 06:24.920] in the network is able to learn both who you are and what [06:24.920 --> 06:29.420] destinations you're going to. And another key point here, [06:29.420 --> 06:32.220] transparency for Tor is really important. Yes, it's open [06:32.220 --> 06:34.960] source, it's free software. Yes, we give you the design [06:34.960 --> 06:38.340] documents and the specifications and the research papers. And [06:38.340 --> 06:42.860] yes, we say, hi, I'm Roger, this is Sylvia, we're people, we're [06:42.860 --> 06:46.060] actually developers who are happy to publicly identify [06:46.060 --> 06:49.960] ourselves. And the key to that is transparency is really [06:49.960 --> 06:53.640] important. Every time I talk to somebody, they say, oh, ha ha, [06:53.640 --> 06:56.280] the privacy people are talking about transparency. That doesn't [06:56.280 --> 07:00.220] make any sense. And the reason why it makes sense is privacy is [07:00.220 --> 07:04.440] about choice. Transparency is about choice. Our goal here is [07:04.440 --> 07:07.680] we choose to be transparent in order to build a stronger [07:07.680 --> 07:11.100] community, in order for people to be able to trust what we're [07:11.100 --> 07:17.320] doing and to become part of our community. Okay. So here's our [07:17.320 --> 07:21.020] first graph. This is a graph of the capacity and the load on the [07:21.020 --> 07:24.720] Tor network over the past ten years. The green line is what [07:24.720 --> 07:27.920] sort of capacity we have. And the purple line is the load on [07:27.920 --> 07:33.320] the network. And we're up at 250 gigabits per second of actual [07:33.320 --> 07:36.600] load on the network, which is a pretty big global network at [07:36.600 --> 07:39.620] this point. On the other hand, the capacity has still been [07:39.620 --> 07:42.960] growing. And the purple line, the load line, has sort of [07:42.960 --> 07:45.440] flattened out over the past couple of years. So we can [07:45.440 --> 07:49.120] definitely talk about how to scale and how the performance [07:49.120 --> 07:59.200] should work. Not yet. No? Keep going? [08:00.020 --> 08:09.960] That's fine. That works? Hello? That's fine. Okay. So this is [08:09.960 --> 08:13.380] the number of relays per flags that we have. Flags are like [08:13.380 --> 08:18.140] roles that relay can have on the network. And for example, if we [08:18.140 --> 08:21.480] have a stable relay, that usually is going to be guard as [08:21.480 --> 08:24.040] well, meaning that that's the relay that the Tor browser picks [08:24.560 --> 08:28.800] when entering the network. And some of you might notice there [08:28.800 --> 08:34.780] is an interesting curve here. It's the HS tier graph here. In [08:34.780 --> 08:38.300] the middle we have 4,000 relays and then sometimes around June [08:38.300 --> 08:43.040] something happens and we lose 2,000 of those relays. And why [08:43.040 --> 08:48.020] does that happen? So there was a Debian update. There was a [08:48.020 --> 08:50.900] library that had a few dependencies in common with Tor. [08:50.900 --> 08:54.780] So that updated and the Tor daemon restarted and the relays [08:54.780 --> 08:58.900] lose the flag. And this introduced us to a topic that is [08:58.900 --> 09:02.740] important for the Tor network which is diversity. And actually [09:02.740 --> 09:06.980] shows that we have a little bit of a monoculture issue when it [09:06.980 --> 09:11.920] comes to Tor relays. A lot of them don't run Debian. And that [09:11.920 --> 09:17.500] is because the easiest way to run a Tor relay is you spin up a [09:17.500 --> 09:20.180] Debian machine, you install the package and then you have the [09:20.180 --> 09:26.820] relay. And so it shows these monoculture issues. But, you [09:26.820 --> 09:29.060] know, I think we are not the only one to have a monoculture [09:29.060 --> 09:33.540] issue. I think Microsoft said that they had 8.5 million [09:33.540 --> 09:40.540] devices affected by the crowd strike incident. So anyway. And [09:40.540 --> 09:43.860] this is why we talk about diversity a lot when we talk [09:43.860 --> 09:47.820] about the Tor network. The Tor network is driven by a diverse [09:47.820 --> 09:54.060] community of relay operators. And we have developers, we have [09:54.060 --> 09:57.460] privacy researchers, we have security professionals, we have [09:57.460 --> 10:02.680] academics. And diversity is not just a desirable attribute but [10:02.680 --> 10:06.240] it's a critical component when we talk about the network. And [10:06.240 --> 10:11.020] you might wonder what do we mean by diversity? Why we place so [10:11.020 --> 10:17.660] much emphasis on it? And what mechanism and we do have to [10:17.660 --> 10:22.300] foster this diverse community. So the first thing is when we [10:22.300 --> 10:26.220] talk about the network, we mean diversity of hardware, software [10:26.220 --> 10:30.780] configuration, location, but also of users. Hardware and [10:30.780 --> 10:34.280] software configuration, we saw a little bit when a lot of relays [10:34.280 --> 10:37.820] run the same operating system, they are affected maybe by a bug. [10:37.820 --> 10:41.480] That means a big part of the network is affected by the same [10:41.480 --> 10:46.140] bug. So we strive, our objective is to have a uniform [10:46.140 --> 10:49.720] distribution of operating systems. Of course we're not [10:49.720 --> 10:54.500] there but that's what we aim for. We place a lot of emphasis [10:54.500 --> 10:57.980] on location as well for a variety of reasons. We want [10:58.900 --> 11:01.820] third circuit to spread different geographical location [11:01.820 --> 11:08.120] because it would make harder for an observer to place the region [11:08.120 --> 11:12.240] and the destination of a communication. We want also to [11:12.240 --> 11:15.760] our relays to be spread globally to avoid single point of [11:15.760 --> 11:20.580] failure. Because if there is an issue locally that is affecting [11:20.760 --> 11:24.780] a number of relays, we know that the rest of the network will [11:24.780 --> 11:29.460] maintain the stability. And we also think that by having relay [11:29.460 --> 11:32.580] operators spread around the world, we have a more diverse [11:32.580 --> 11:36.320] community, diverse location, which in the end will help [11:36.320 --> 11:41.600] maintain the network growth and sustainability in the long run. [11:41.600 --> 11:47.940] And we also want diversity of users. So people use TOR for a [11:47.940 --> 11:52.960] variety of reasons. We estimate that we have 400,000 users daily [11:52.960 --> 11:58.340] in the United States. It means that we have diversity of usage [11:58.340 --> 12:03.240] patterns, profiles, interests. We have minority groups using [12:03.240 --> 12:06.920] TOR, social right activists. We have privacy enthusiasts who [12:06.920 --> 12:09.680] would want to be followed by surveillance companies who want [12:09.680 --> 12:17.900] to surf the web. And for many people like activists, people [12:17.900 --> 12:22.020] belonging to different kind, for example, people researching [12:25.500 --> 12:31.920] people researching, people researching like information on [12:31.920 --> 12:36.500] reproductive rights online, people needed looking for [12:36.500 --> 12:38.900] information on domestic violence, for example, TOR [12:38.900 --> 12:43.360] provides a platform to access information and to express [12:43.360 --> 12:46.180] themselves in environments where they could otherwise face [12:46.180 --> 12:52.880] persecution, discrimination, and retaliation. So how do we [12:52.880 --> 12:58.140] actually foster this diverse community in a healthy way? So [12:58.140 --> 13:01.880] we place a lot of emphasis on direct communication. We use [13:01.880 --> 13:06.880] IRC. We use mailing lists. We use forum. We organize online [13:06.880 --> 13:10.440] and in-person meetups, online meetups for our community up and [13:10.440 --> 13:14.460] every month. We get feedback from relay operators, for [13:14.460 --> 13:19.780] example, and we tell them how development is going, if there [13:19.780 --> 13:24.520] is any update, and we get this communication going on. We have [13:24.520 --> 13:28.940] in-person meetups. We are here at DEF CON. In Europe, we know [13:28.940 --> 13:31.280] that there are other events where people in our community [13:31.280 --> 13:36.100] like to gather. So, for example, we have FOSDEM, we have CCC. And [13:36.100 --> 13:41.480] we do develop transparent policies. We have open process [13:41.480 --> 13:45.040] to create and maintain policies for our community, which are [13:45.040 --> 13:49.840] central to how we run the community. This discussion of [13:49.840 --> 13:53.760] how to propose and maintain this policy happened on our back [13:53.760 --> 13:59.300] tracker on GitLab, and everybody is welcome to give feedback. And [13:59.300 --> 14:03.360] it's a way for us to give new tools to the relay community [14:03.360 --> 14:06.520] because in the past, we noticed that they were organizing [14:06.520 --> 14:12.880] informally, and this is a tool to help them with managing [14:12.880 --> 14:23.650] expectation and with governance. So, where do these relays come [14:23.650 --> 14:27.830] from? Originally, it was people that I had met at hacker [14:27.830 --> 14:30.930] conferences like this, and I said Tor is really important, [14:30.930 --> 14:34.130] and you said, how can I help? And I convinced you to run a [14:34.130 --> 14:38.110] relay, and that worked great for the first 50 relays or 100 [14:38.110 --> 14:41.830] relays, but if we need to scale the network up to thousands of [14:41.830 --> 14:44.610] relays, and they need to be in diverse locations around the [14:44.610 --> 14:48.510] world, I can't go meet all of the people. In order to have an [14:48.510 --> 14:52.170] actually global safe network, we need to have them everywhere [14:52.170 --> 14:55.630] and run by people that we don't know as well. And the challenge [14:55.630 --> 14:59.750] there, especially in the past few years, the set of reasons [14:59.750 --> 15:03.810] why bad people might want to set up relays has grown. We've [15:03.810 --> 15:07.510] ended up with people in Russia setting up relays in order to [15:07.510 --> 15:12.610] do the man in the middle attacks on exit traffic. We've seen [15:12.610 --> 15:16.390] people running relays, a lot of them for reasons that we still [15:16.390 --> 15:20.510] don't quite understand what's going on. So this is an ongoing [15:20.510 --> 15:23.510] and growing challenge. How do we make sure that the Tor network [15:23.510 --> 15:27.890] has the relays that are doing it for the right reasons? So how [15:27.890 --> 15:30.390] do we do that? How do we actually accomplish that? The [15:30.390 --> 15:35.110] first answer is we need to get rid of application level [15:35.110 --> 15:38.590] vulnerabilities. For example, the reason why those Russian [15:38.590 --> 15:42.830] people could run man in the middle attacks is because some [15:42.830 --> 15:48.350] Tor users were doing HTTP, not HTTPS. So we managed to fix the [15:48.350 --> 15:53.910] browser to do HTTPS by default always and that is a structural [15:53.910 --> 15:58.970] way to resolve that sort of attack. Another angle to look at [15:58.970 --> 16:02.970] this, one of the few tools that we have in this community, in [16:02.970 --> 16:07.350] this social group of relays is the social graph. It's who [16:07.350 --> 16:11.830] knows who. So if we as a community of relay operators get [16:11.830 --> 16:15.430] together and know each other, then we can be stronger against [16:15.430 --> 16:20.850] outsider FBI people or whatever trying to come in and join. And [16:20.850 --> 16:24.290] speaking of that, one of the really successful models over [16:24.290 --> 16:28.650] the past ten years or so is relay operator associations. [16:28.650 --> 16:32.070] These are non-profits around the world. These are individuals [16:32.070 --> 16:35.770] who banded together in their country. One of them exists in [16:35.770 --> 16:40.050] France, in Switzerland, in Germany. There's one in Sweden. [16:40.050 --> 16:42.450] There was one in Luxembourg. There was one in Iceland. There [16:42.450 --> 16:46.650] are two in Canada. It's a global phenomenon where non-profit [16:46.650 --> 16:51.270] like hacker spaces get together to run Tor exit relays. And one [16:51.270 --> 16:54.630] of the great things about this is it's sustainable. You can run [16:54.630 --> 16:57.850] really big relays. Another one is they can establish [16:57.850 --> 17:02.250] relationships with the local cops so they know how Tor works. [17:02.330 --> 17:05.170] And also we know who they are. We meet them at conferences like [17:05.170 --> 17:08.910] DEF CON and grow that community. So having them be part of our [17:08.910 --> 17:12.650] community is one of the ways we can handle that asymmetry where [17:12.650 --> 17:15.910] we need to have a lot of relays around the world, but also we [17:15.910 --> 17:20.170] need to know who they are and have them work together. And [17:20.170 --> 17:24.530] speaking of that, EFF a year ago launched a campaign to get [17:24.530 --> 17:27.610] universities in particular running relays. And part of the [17:27.610 --> 17:29.950] reason for that is universities, that's where [17:29.950 --> 17:34.310] freedom of speech, freedom of thought is supposed to be. But [17:34.970 --> 17:39.210] it's not just the freedom side. Universities are about [17:39.210 --> 17:44.190] education. You can run a relay at your university and learn how [17:44.190 --> 17:48.430] to put a computer on the actual internet, which is a thing that [17:48.430 --> 17:51.690] we all used to do. And now the cloud exists, so not as many [17:51.690 --> 17:54.690] people do that. So there's an education side. There's a [17:54.690 --> 17:57.130] community side. There's a research side. If you want to [17:57.130 --> 18:00.970] help do that, they have these amazing coins that they created [18:01.150 --> 18:04.550] a little while ago that I'll show you afterwards, that if you [18:04.550 --> 18:07.530] run a relay at your university, they will send you one of these [18:07.530 --> 18:12.870] amazing coins. And relay incentives in general is a broad [18:12.870 --> 18:15.550] topic that we really need to work harder on. So [18:15.550 --> 18:21.690] gamification, like Reddit style, Stack Exchange style, I got a [18:21.690 --> 18:24.910] gold badge for my five-year anniversary. I got a silver [18:24.910 --> 18:27.790] badge because I was an exit relay. I got a silver badge [18:27.790 --> 18:31.790] because I'm in an ISP that there aren't very many other relays [18:31.790 --> 18:36.710] in. So coming up with ways to highlight what we need most and [18:36.710 --> 18:39.830] make people feel happy and part of a community and check out my [18:39.830 --> 18:43.050] gold badge, I can put this on Twitter. Leaderboards, I'm [18:43.050 --> 18:46.650] running the 17th fastest tour relay in the world right now. So [18:46.650 --> 18:49.850] that's one piece. Another piece is just giving people more [18:49.850 --> 18:54.710] attention. Meetups, having time to answer their questions and [18:54.710 --> 18:57.910] walk people through how to run relays. And then there are the [18:57.910 --> 19:01.070] structural incentives. Like imagine we had a tour design [19:01.070 --> 19:05.450] where if you run a relay, you get better performance on tour. [19:05.570 --> 19:09.450] So there are a bunch of exciting security problems that come with [19:09.590 --> 19:12.350] a lot of these designs. But maybe there's a version of this [19:12.350 --> 19:16.590] design where we can get rid of the security flaws while still [19:16.590 --> 19:20.590] keeping the incentives. And then the last topic is a lot of [19:20.590 --> 19:23.390] cryptocurrency people these days keep saying, you know what you [19:23.390 --> 19:27.350] need to do, you need an incentive coin thing so that [19:27.350 --> 19:30.590] people will want to run relays because they'll make money, [19:30.590 --> 19:33.550] they'll make bitcoins, dollars and so on. And part of the [19:33.550 --> 19:37.130] challenge there is the cryptocurrency world, their [19:37.130 --> 19:40.570] fundamental building block is capitalism, is maximizing [19:40.570 --> 19:44.430] profit. And the tour world, our fundamental building block is [19:44.430 --> 19:47.630] altruism. It's I want to make the world a better place, I have [19:47.630 --> 19:53.510] extra resources, I can provide them. So these are very [19:53.510 --> 19:57.670] different worlds in terms of organic, do you build an organic [19:57.670 --> 20:01.370] community of people who want to help each other or are you just [20:01.370 --> 20:04.550] trying to everybody for themselves maximize your profit. [20:04.550 --> 20:07.610] And in that case, if you want to do it for profit, maybe you'll [20:07.610 --> 20:10.770] all go to the cheapest hosting provider so you can spend as [20:10.770 --> 20:13.450] little money as possible. Or maybe you'll sell your data on [20:13.450 --> 20:15.850] the side to make a little bit more money because capitalism [20:15.850 --> 20:19.530] means, you know, maximizing profit. So these are [20:19.530 --> 20:24.870] fundamentally incompatible approaches to how to build a [20:24.870 --> 20:28.310] community of volunteers around the world who are trying to keep [20:28.310 --> 20:35.860] people safe. Okay, so I want to tell you a bit about network [20:35.860 --> 20:39.380] health and metrics and what we do. But first I want to tell you [20:39.520 --> 20:43.800] about a story because I want to put what we do in context. So [20:44.420 --> 20:49.880] between May and June in 2020, we removed a group of Tor exit [20:49.880 --> 20:54.000] relays that were doing an SSL strip attack. And we didn't spot [20:54.000 --> 20:57.660] this at first because they were leaving all the exit traffic [20:57.660 --> 21:00.040] alone, but they were intercepting just a little bit of [21:00.040 --> 21:03.620] the traffic that was going to some cryptocurrency exchange [21:03.620 --> 21:10.020] websites. So what this were doing was that if the user was [21:10.020 --> 21:14.660] visiting the HTTP website, not the HTTPS one, they wouldn't [21:14.660 --> 21:18.040] redirect the user and if they wouldn't notice that there was [21:18.040 --> 21:21.920] not a lock, for example, in the browser, in the top, they would [21:21.920 --> 21:25.900] just continue to send their login information, for example, [21:25.900 --> 21:30.560] and this information would be intercepted. So we noticed this. [21:30.560 --> 21:34.100] We kicked the relays out and then a few weeks later, in June, [21:34.100 --> 21:38.980] another group of relays does the same attack. And we noticed [21:38.980 --> 21:42.140] this again and we kicked them out and then we realized that [21:42.140 --> 21:46.020] network health is not just about kicking relays out, although [21:46.020 --> 21:48.780] that's important because you don't want malicious relay on the [21:48.780 --> 21:53.600] network, but it's a little bit more. So we got together with [21:53.600 --> 21:58.440] the browser team and because of projects like HTTPS everywhere [21:59.040 --> 22:03.040] and a newer version of Firefox that allowed the browser to [22:04.800 --> 22:10.460] default to HTTPS and then fall back to HTTP just when needed, [22:10.460 --> 22:14.460] we were able to enable HTTPS by default into our browser and [22:14.460 --> 22:17.580] protect our user, not just the network level, but also the [22:17.580 --> 22:24.500] application level. And so out of incidents like this, that we [22:24.500 --> 22:28.360] understood the value of having a network health team, which is [22:28.360 --> 22:31.180] basically joining together a group of people that keep track [22:31.180 --> 22:36.240] of the network. And part of what we do is kicking relays out of [22:36.240 --> 22:40.840] the network. But also part of what we do is community [22:40.840 --> 22:45.080] engagement, is working with the relay community, working with [22:45.080 --> 22:50.180] activists sometimes in the ground. And the foundation of [22:50.180 --> 22:53.140] what we do also is collecting the metrics about the Tor [22:53.140 --> 22:57.000] network that gives us an idea of how the network is performing, [22:57.000 --> 23:00.660] how the network is doing, and to understand if something is not [23:00.660 --> 23:06.700] right. And so when there is a geopolitical event, for [23:06.700 --> 23:10.220] example, we are able to spot it because we are able to notice [23:10.220 --> 23:15.720] some patterns on the network. And in this case, this is a [23:15.720 --> 23:19.840] picture of, it's a graph of directly connecting users from [23:19.840 --> 23:25.980] Russia between 2021 and 2022. And we start noticing that there [23:25.980 --> 23:30.420] was censorship being applied in Russia between November and [23:30.420 --> 23:34.660] December, which is a few months before the Ukraine invasion. And [23:34.660 --> 23:40.800] we saw directly connected user decline. And as we saw this [23:40.800 --> 23:44.080] happening, we also were able to work with the anti-censorship [23:44.080 --> 23:48.180] team, with activists on the ground, we were able to tell the [23:48.180 --> 23:53.300] user to use bridges. And so we saw a spike in bridge users in [23:53.300 --> 23:55.740] Russia. And that meant that we are able to help these people [23:55.740 --> 23:58.940] reach the news and know what is happening outside the country. [24:00.420 --> 24:03.300] Yeah. So let me jump in and explain what a bridge is for [24:03.300 --> 24:06.780] those who don't know. We've been talking about relays so far. [24:06.780 --> 24:10.060] These are public tour relays that are in the list. And that [24:10.060 --> 24:13.120] means that the censors can get that list and block all of them. [24:13.120 --> 24:17.220] So bridges are relays that aren't in the list. So the goal [24:17.220 --> 24:20.620] is to transform the traffic in some way so that it's doing a [24:20.620 --> 24:23.540] protocol the censors don't want to block and it's talking to an [24:23.540 --> 24:27.020] IP address that the censors don't think is tour. So that's [24:27.020 --> 24:29.960] the arms race that we're in there. And there are a bunch of [24:29.960 --> 24:33.580] different approaches we have for bridges. One of which is? [24:35.820 --> 24:42.720] Yeah. And similar situation in Iran in 2022, the mass protest. [24:43.180 --> 24:48.140] So people, we started noticing that there was aggressive [24:48.760 --> 24:51.560] censorship happening in the country. People were in the [24:51.560 --> 24:54.800] street protesting. They couldn't access the Internet. They [24:54.800 --> 24:57.540] couldn't access the news. They couldn't use communication [24:58.400 --> 25:03.300] messaging systems. So by working, again, with people on [25:03.300 --> 25:06.200] the ground, the activists, the local people, and the [25:06.200 --> 25:10.520] anti-censorship team, we were able to teach these users how to [25:10.520 --> 25:16.620] use Snowflake. And we saw how the users from Iran spiked [25:16.620 --> 25:21.000] during the protest. And for these people, reaching tour was [25:21.140 --> 25:23.800] a lifeline in a way because they were able to communicate [25:23.800 --> 25:27.520] between one another in ways that it was not possible at the [25:27.520 --> 25:30.660] moment with any other tool. And if you're wondering what [25:30.660 --> 25:34.440] Snowflake is, so in the tour ecosystem, Snowflake is what we [25:34.440 --> 25:38.720] call a pluggable transport. And it's, um, you can think of it [25:38.720 --> 25:42.260] like as a tool the tour used to disguise the traffic. And in the [25:42.260 --> 25:46.760] case of Snowflake, it used temporary run volunteer proxies. [25:46.920 --> 25:51.400] So it's, um, by using the proxies, more difficult for the [25:51.400 --> 25:56.660] censors to actually block them. And it helps people in very, um, [25:56.660 --> 25:59.400] difficult situation to reach the Internet. [26:00.480 --> 26:04.080] Yeah, so two things to point out for this graph in particular. [26:04.080 --> 26:08.640] One of them is that Y axis, we're talking 100,000 or maybe [26:08.640 --> 26:12.260] hundreds of thousands of people using Snowflake in Iran during [26:12.260 --> 26:16.460] that event. So as we're showing more recent graphs, we end up [26:16.460 --> 26:20.240] with larger and larger numbers. We're talking about many tens of [26:20.240 --> 26:22.560] thousands or hundreds of thousands of people. And the [26:22.560 --> 26:26.260] other answer is Snowflake.tourproject.org, you too [26:26.260 --> 26:29.340] can volunteer as a Snowflake. You can either install it as a [26:29.340 --> 26:32.780] browser extension or there's a headless version for your Linux [26:32.780 --> 26:40.540] system based on Go. Please help. And so, um, more recent case, we [26:40.540 --> 26:45.320] saw just a few months ago between May and June, we started [26:45.320 --> 26:49.840] to see user spikes in Myanmar. And then we got news that the [26:49.840 --> 26:54.320] military junta started to apply Internet shutdown. So again, [26:54.320 --> 26:56.860] what we did was get together with the browser, the [26:56.860 --> 27:02.140] anti-censorship team, and help users connecting to Tor by [27:02.140 --> 27:05.840] distributing bridges directly for them in the country. And we [27:05.840 --> 27:10.660] saw how from not having almost zero bridge users in the [27:10.660 --> 27:14.700] country, we got a spike in a few days to just half a thousand. [27:18.440 --> 27:21.940] Yeah, so one of the fascinating things about the graph like [27:21.940 --> 27:26.500] this, periodically we see spikes in our user graphs. And here [27:26.500 --> 27:29.900] we're like, wow, a whole lot of people from Myanmar just started [27:29.900 --> 27:33.640] using Tor over bridges. This is great. But sometimes we see the [27:33.640 --> 27:36.520] spikes and we don't know if it actually happened that way. We [27:36.520 --> 27:39.600] don't know what happened in the country. So every time we see a [27:39.600 --> 27:42.380] spike like this, we're wondering, is there a bug? Is [27:42.380 --> 27:46.220] there like a GOIP database mess up where actually these are [27:46.220 --> 27:48.920] people in Germany who got misclassified as being in [27:48.920 --> 27:51.880] Myanmar for that week? So part of the challenge we have is [27:51.880 --> 27:54.500] understanding what actually happened. And one of the [27:54.500 --> 27:58.340] principles that we have for that situation is trying to learn the [27:58.340 --> 28:01.620] same data points from a bunch of different dimensions from a [28:01.620 --> 28:04.960] bunch of different angles, so that we can confirm that what [28:04.960 --> 28:08.440] we're seeing actually really did happen. And part of that is [28:08.440 --> 28:11.520] angles, including talking to people on the ground and saying, [28:11.520 --> 28:14.520] what just happened in your country? Why is it that we're [28:14.520 --> 28:16.560] seeing these graphs, these changes in our graphs? [28:19.340 --> 28:24.400] Yeah, so we've been talking about user data. And you might [28:24.400 --> 28:25.040] have wonder... [28:29.760 --> 28:31.020] That's loud. [28:31.600 --> 28:32.640] Okay. [28:34.240 --> 28:35.980] I go on. Okay. [28:35.980 --> 28:37.680] I think they can hear us better than we can. [28:37.680 --> 28:42.320] Okay. So you might wonder, towards the anonymity network, [28:42.320 --> 28:47.340] how come you have user data? And so the simple answer to that is [28:47.340 --> 28:51.500] that we live by a principle that is, we do not collect data that [28:51.500 --> 28:56.960] cannot be public. So all our data that we have in metrics is [28:56.960 --> 29:01.600] actually public data that we publish. So we do not collect [29:01.600 --> 29:05.260] in client data. Our user data that we've been talking about [29:05.260 --> 29:09.120] are actual estimations. And I'm gonna say how we do this. But [29:09.120 --> 29:12.040] other products like VPN products, they actually count [29:12.040 --> 29:17.180] the users and we don't. So what we have is aggregated data [29:17.180 --> 29:22.600] from relays. So the Tor browser or Tor clients in general, when [29:22.600 --> 29:25.660] they connect to the network, they request a list of relays [29:25.660 --> 29:29.080] information and they need this to build the circuits. So we [29:29.080 --> 29:35.020] estimate that if... first of all, we count all these requests [29:35.020 --> 29:38.320] globally, how they are collected from relays. And then we [29:38.320 --> 29:42.540] estimate that if a Tor client was connected 24 hours, it will [29:42.540 --> 29:47.060] make 10 requests. So we count all the requests that we get from [29:47.060 --> 29:53.860] the relays when they upload their statistics. And we divide [29:53.860 --> 29:57.360] them by 10. And we have the user estimation. So in reality, we [29:57.360 --> 30:01.040] might be underestimating our user count by an order of [30:01.040 --> 30:04.400] magnitude. But that's fine for us. It's the tradeoff that we [30:04.400 --> 30:10.960] want to make in order not to put our user at risk. So we do [30:10.960 --> 30:16.680] have, though, historical data. And we actually serve this data [30:16.680 --> 30:19.860] on collector.torproject.org. You'll find all the documents [30:19.860 --> 30:23.640] that are ever, I think, being created on the network. And out [30:23.640 --> 30:28.500] of this data, we have network-wide statistics. And we [30:28.500 --> 30:31.720] have also the status of individual nodes that will give [30:31.720 --> 30:35.820] us an idea of how the network is doing. And then something that [30:35.820 --> 30:39.780] we do is making the data accessible to the public, but [30:39.780 --> 30:43.440] also presenting the documentation of how we estimate [30:43.440 --> 30:47.980] the metrics that we have. And we believe in algorithm [30:47.980 --> 30:50.980] transparency so that if you download these star balls and [30:50.980 --> 30:54.020] you process this data, you can come up with the same results [30:54.020 --> 30:57.240] as we do. And if you don't, you explain to us why you don't have [30:57.240 --> 30:59.740] the same results and maybe we have to change something on our [30:59.740 --> 31:06.260] side. So this is an overview of how this process works. So the [31:06.260 --> 31:09.700] relays have this little piece of information that they upload to [31:09.700 --> 31:12.920] directory authorities, which are special nodes in the [31:12.920 --> 31:16.500] network. And there is a service that's called Collector, or [31:16.500 --> 31:22.400] Collector, which downloads these documents and archives them. And [31:22.400 --> 31:26.580] then we have a service that takes all these documents, parses [31:26.580 --> 31:29.420] them, puts them in a database, and extracts time series and [31:29.420 --> 31:34.800] network statistics. And I said that all the data is public, and [31:34.800 --> 31:37.880] this is true, but there are a few exceptions. The first [31:37.880 --> 31:42.760] exception is that we are in a race with sensors. And these [31:42.760 --> 31:46.220] sensors have a lot of resources, and sometimes we need to protect [31:46.220 --> 31:51.120] some of the data in order to keep up with this race. And the [31:51.120 --> 31:55.140] other exception that we do is that sometimes we don't publish [31:55.140 --> 31:59.720] data when we can put users at risk. For example, if we have a [31:59.720 --> 32:04.120] specific country which has very few Tor users, and we believe [32:04.120 --> 32:07.520] that publishing those numbers can help somebody else that has [32:07.520 --> 32:10.620] other data to anonymize those users, so we don't publish those [32:10.620 --> 32:17.610] numbers. And I think the threshold is about 100 users. So [32:19.350 --> 32:22.790] we've been talking about metrics for understanding the status of [32:22.790 --> 32:26.090] the network, but also we have other metrics that helps us [32:26.090 --> 32:30.790] understand if a node is misbehaving, and also give us an [32:30.790 --> 32:34.110] idea of how the network is performing from a point of view [32:34.110 --> 32:39.630] of performances and bandwidth and so on. So we look at traffic [32:39.630 --> 32:44.310] users patterns, we have actual bandwidth measurements, and we [32:44.310 --> 32:49.490] have performance measurements. So one thing that we do is [32:49.490 --> 32:53.490] bandwidth probing, and we have a service, we actually have a [32:53.490 --> 32:56.170] bunch of services that are called bandwidth authorities, [32:56.170 --> 33:00.170] and what they do is that they create a two-hop circuit with a [33:00.170 --> 33:03.830] measured relay, connect to a web server, download the files, and [33:03.830 --> 33:08.510] gives us an idea of the time it takes to download that file, and [33:08.510 --> 33:12.350] we can compare this with the bandwidth that actually the [33:12.350 --> 33:17.350] relays declares, and when they send their descriptors file to [33:17.350 --> 33:20.310] the directory authorities. And in certain cases, we can find [33:20.310 --> 33:22.810] out that some relays, for example, is trying to game the [33:22.810 --> 33:25.830] system and tell us that they have more bandwidth than they [33:25.830 --> 33:31.150] actually do. And another thing that we do is performance [33:31.150 --> 33:35.590] measurements, and we do them for two reasons. One of them is we [33:35.590 --> 33:38.850] want to know how the network performs from different points [33:38.850 --> 33:43.510] in the world. For example, we want to know how the location of [33:43.630 --> 33:47.290] a user compared to the location of relays distribution globally [33:47.290 --> 33:54.490] affects the bandwidth, affect other measurements. And the [33:54.490 --> 33:58.990] other thing is that we want to know for censored regions, how [33:58.990 --> 34:02.430] the network performs for those users in those extreme [34:02.430 --> 34:07.110] situations. So the way this works is that we have a client [34:07.110 --> 34:11.250] and a web server, and we build a server, a circuit directly to [34:11.250 --> 34:14.450] the web server, download again a file, and we measure the [34:14.450 --> 34:17.270] bandwidth, we measure the time it takes to build the circuit, [34:17.270 --> 34:24.910] and if there are errors, for example. And so with all this [34:24.910 --> 34:29.890] data, we know it's open, we know it's accessible, we know everyone [34:29.890 --> 34:36.510] can start learning about Tor, and it's basically it's [34:36.510 --> 34:39.970] documented data, but we also know there is a learning curve, [34:39.970 --> 34:43.930] we also know that you need resources sometimes to store [34:43.930 --> 34:48.990] this data, you need time to parse it. And so we decided to [34:50.050 --> 34:55.130] open a little bit more the way people can access metrics data. [34:55.130 --> 34:58.130] We are working on an API which is already embedded, it's [34:58.130 --> 35:03.210] already accessible, and we hope that this API can lower the [35:03.210 --> 35:07.150] barrier for researchers to start working with metrics data. We [35:07.150 --> 35:10.470] have few endpoints available, more coming up soon as we are [35:10.470 --> 35:15.450] developing. So you can access metrics-api.torproject.org, the [35:15.450 --> 35:18.750] two endpoints that are available are details and summary, and [35:18.750 --> 35:22.730] give you some information of relays. I forgot to mention the [35:22.730 --> 35:33.070] API is called the Network Status API, or NSA, for short. So one [35:33.070 --> 35:36.390] nice thing is that besides that you're querying the NSA to get [35:36.390 --> 35:40.790] the information, is that it has a little bit more flexibility [35:40.790 --> 35:44.730] compared to parsing the data, or what we are offering right now, [35:44.730 --> 35:49.190] and is that you can do, for example, historical queries, so [35:49.190 --> 35:52.710] there is a published variable that you can parse in the [35:52.710 --> 35:59.090] URL, and you parse, you send a date, just year, month, day, and [35:59.090 --> 36:02.490] then you get all the relays and bridges that were in the network [36:02.490 --> 36:07.830] within a week of the parsed date. So this is something new, and [36:07.830 --> 36:12.270] that I believe can give a lot of flexibility to researchers to [36:12.270 --> 36:16.030] start experimenting. I hope it helps relay operators checking [36:16.030 --> 36:19.130] the status of their nodes. And you can check out the [36:19.130 --> 36:23.890] documentation. We welcome feedback and bugs reports, of [36:23.890 --> 36:31.570] course, because expect it to be broken. And yeah, I think it's [36:31.570 --> 36:34.590] part of the Tor Project mission to create and develop [36:34.590 --> 36:37.810] anonymity and privacy technology, but also to further [36:37.810 --> 36:40.750] its understanding, scientific understanding, popular [36:40.750 --> 36:45.010] understanding, and this is one step forward in that direction. [36:47.990 --> 36:51.870] Okay. So we've learned a bit about the relay community side, [36:51.870 --> 36:55.070] and we've learned a bit about the metrics and network [36:55.070 --> 36:59.490] measurement side. What can you do to help us? So one big piece [36:59.490 --> 37:03.270] is get involved in the relay community and run a relay around [37:03.270 --> 37:08.530] the world at your university, at your work, at your VPS, wherever [37:08.530 --> 37:11.750] you happen to be. Maybe there are sysadmins in here right now [37:11.750 --> 37:16.710] who would love to add an extra relay on their volunteer rack. [37:16.710 --> 37:19.690] So part of that is the more relays we have, the more [37:19.690 --> 37:23.010] performance we can handle, the more users we can give good [37:23.010 --> 37:25.990] performance to. And the other piece of it is the more relays [37:25.990 --> 37:30.770] we have run by good people, the smaller the impact is when some [37:30.770 --> 37:34.330] bad person shows up to try to run a relay. So the way that we [37:34.330 --> 37:38.690] dilute the people trying to do the attacks is we get more and [37:38.690 --> 37:42.950] more hacker spaces and individuals and hackers and [37:42.950 --> 37:46.690] volunteers to be participating in this community. And yes, [37:46.690 --> 37:50.210] location matters. If you can run a relay that's not in Germany [37:50.210 --> 37:54.450] or the Netherlands, then you'll be showing up in a part of the [37:54.450 --> 37:57.950] Tor network that doesn't have as many relays right now. So for [37:57.950 --> 38:01.450] example, the U.S. is nowhere near the top in terms of [38:01.450 --> 38:04.450] countries that are contributing to the Tor network. I hear the [38:04.450 --> 38:08.150] U.S. has lots of hackers and lots of Internet connections and [38:08.150 --> 38:12.470] lots of computers. So there's certainly an opportunity for you [38:12.470 --> 38:16.570] to help us make the U.S. more impactful, which in turn makes [38:16.570 --> 38:20.730] performance better for users in this hemisphere. So think about [38:20.730 --> 38:24.190] diversity of location, but wherever you can run it is [38:24.190 --> 38:27.450] great. Please add more relays. And also I'm happy to chat with [38:27.450 --> 38:32.510] you more about exit policies and whether you'll end up in IP [38:32.510 --> 38:37.250] block lists and so on after this. And the other side of [38:37.250 --> 38:42.410] that is community.torproject.org has a lot of how-tos and [38:42.410 --> 38:46.550] guides on I want to set up a bridge on Debian. How do I do [38:46.550 --> 38:50.010] it? Here are the steps. I want to do a snowflake. Here's the [38:50.010 --> 38:54.210] steps. I want to go to a relay operator meetup or learn about [38:54.210 --> 38:58.150] the relay associations. Here are the lists and documentation. So [38:58.150 --> 39:01.250] there's a lot there. And join the community in general. Come [39:01.250 --> 39:04.890] to the relay operator meetups. We don't have a formal official [39:04.890 --> 39:09.610] relay operator meetup here at DEF CON this year because this is [39:09.610 --> 39:12.650] one enormous room and we didn't figure out how to do the [39:12.650 --> 39:15.850] spaces. Maybe next year we'll join privacy village or [39:15.850 --> 39:19.690] something. But you can come talk to us afterwards and we'd love [39:19.690 --> 39:22.950] to chat with you more about relays. And if you can't run a [39:22.950 --> 39:26.710] relay, run a bridge or a snowflake or contribute in other [39:26.710 --> 39:33.450] ways. So you can also get involved with the network health [39:33.450 --> 39:37.110] team. If you're interested in network data analysis, hunting [39:37.110 --> 39:39.610] for bad relays, there's certainly space for that. We [39:39.610 --> 39:43.930] hope the API can help you. There is also one thing that we [39:43.930 --> 39:47.770] do, which is creating tools for relay operators. For example, [39:47.770 --> 39:51.150] tall weather, which gives a notification to operators when [39:51.150 --> 39:54.650] something is not right with the relay. But also you can get [39:54.650 --> 39:59.130] involved with or have different projects, the network status [39:59.130 --> 40:04.550] API, the parser that we use to parse the network documents in [40:04.550 --> 40:08.650] Java. And also we are trying to work on a better way to [40:08.650 --> 40:15.350] visualize network data. We are trying to move the parser from [40:15.350 --> 40:20.730] Java to Rust. There is a link to our wiki. Please get involved. [40:20.870 --> 40:23.550] And if you're thinking to contribute to Tor in any [40:23.550 --> 40:27.170] possible way, you're helping me, you're helping Roger, you're [40:27.170 --> 40:31.050] helping our colleagues. You're helping us fighting the good [40:31.050 --> 40:34.430] fight for privacy, anonymity, and internet freedom. [40:34.430 --> 40:34.890] Thank you. [40:45.050 --> 40:50.010] We've told you a bit about how you can help us. But it is [40:50.010 --> 40:52.830] about helping us and it's also about helping all of the [40:52.830 --> 40:56.210] activists and people around the world, especially the people who [40:56.210 --> 41:00.250] don't have the power to have a military or bodyguards or [41:00.250 --> 41:03.790] whatever, yet they want to change their society. So we will [41:03.790 --> 41:08.270] be doing an ask us anything you like at the Tor booth in the [41:08.270 --> 41:11.750] vendor area right after this. We've got these cool badges and [41:11.750 --> 41:14.810] other things available. Or you can just ask us every possible [41:14.810 --> 41:18.090] Tor question. We will be there until you have run out of all of [41:18.090 --> 41:22.110] your Tor questions and Argoon has kindly volunteered to escort [41:22.110 --> 41:25.450] all of us over there and we'll hang out as long as you would [41:25.450 --> 41:28.030] like to answer all your questions. Thank you.