WEBVTT

00:06.370 --> 00:07.490
Okay.

00:07.650 --> 00:08.290
Wow.

00:08.290 --> 00:10.170
This microphone is really loud.

00:10.170 --> 00:11.030
Awesome.

00:11.030 --> 00:13.650
Welcome everybody to another Tor Talk.

00:13.650 --> 00:14.450
I'm Roger.

00:14.450 --> 00:15.750
This is Sylvia.

00:15.750 --> 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.

00:24.890 --> 00:30.530
So part of what I'm trying to do here, many of you have seen only me as a Tor speaker.

00:30.530 --> 00:34.750
I'd like to show you that there are other Tor people in the world who actually do things.

00:34.810 --> 00:40.630
And eventually there will be more voices of Tor than just me, and maybe eventually not even me.

00:42.970 --> 00:46.490
Okay, so some motivation, some things to think about.

00:46.890 --> 00:53.290
Here is a fellow who was elected in Iran back in 2009, but he ended up not in charge.

00:53.290 --> 00:56.950
And many of you might remember the Green Party movement.

00:56.950 --> 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.

01:10.940 --> 01:17.060
And then he realized, everybody that I've taught anything other than Tor to is now dead or in jail.

01:17.220 --> 01:19.080
So I'm only going to teach Tor.

01:19.240 --> 01:22.060
And that was an eye-opening story when I heard it.

01:22.060 --> 01:24.280
And there are two lessons there that we take here.

01:24.280 --> 01:28.980
One of them is we really need to understand what's going on in the Tor network.

01:28.980 --> 01:32.980
So when a lot of users show up from certain countries, we know that it's happening.

01:32.980 --> 01:35.120
But also, we need to do it safely.

01:35.120 --> 01:41.620
We need to be aware of how we can measure things and understand things without putting users at risk.

01:43.000 --> 01:46.260
So we've got four main topics we're going to talk about today.

01:46.260 --> 01:50.600
The first one is introduction to Tor for the people who need a refresher.

01:50.600 --> 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.

01:57.420 --> 02:03.040
And then we're going to talk about understanding what's going on with metrics and measurements and data sets.

02:03.040 --> 02:07.000
And at the end, we'll ask you to help us save the world.

02:08.620 --> 02:09.140
Okay.

02:09.140 --> 02:10.080
Did I?

02:10.080 --> 02:10.840
Yes.

02:11.000 --> 02:11.360
Okay.

02:11.360 --> 02:13.880
So Tor is a lot of different things.

02:13.880 --> 02:15.440
Tor is a nonprofit.

02:15.440 --> 02:17.280
It's a free software project.

02:17.280 --> 02:18.980
It's a network of volunteers.

02:18.980 --> 02:22.660
So raise your hand if any of the following apply to you.

02:23.060 --> 02:26.920
Anybody here run a Tor relay or a bridge or snowflake?

02:26.960 --> 02:32.700
Anybody here help with research or helping in like writing research papers?

02:32.700 --> 02:34.260
Anybody here use Tor?

02:34.260 --> 02:35.760
Use Tor browser?

02:35.840 --> 02:42.020
Anybody here find themselves explaining to their relatives why I have nothing to hide makes no sense?

02:42.380 --> 02:42.860
Excellent.

02:42.860 --> 02:44.360
You're all part of Tor.

02:44.360 --> 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.

02:52.840 --> 02:53.280
Okay.

02:53.280 --> 02:59.760
So I use the word anonymity when I'm talking to researchers, but really it comes down to communications metadata.

02:59.760 --> 03:04.560
And here's creepy NSA guy that we learned a lot more about from the Snowden documents.

03:04.560 --> 03:07.800
And he actually said, we kill people based on metadata.

03:07.800 --> 03:10.260
So that's where we're starting from.

03:10.260 --> 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.

03:18.520 --> 03:21.780
So I only use the word anonymity talking to researchers.

03:21.780 --> 03:26.040
When I'm talking to my parents and grandparents, I work on privacy systems.

03:26.040 --> 03:28.820
Because anonymity, I don't know, that's kind of scary.

03:28.820 --> 03:30.860
But privacy is an important value.

03:30.860 --> 03:32.360
Everybody should have privacy.

03:32.580 --> 03:40.140
And then when I'm talking to corporations, Google, Walmart and so on, I work on communication security.

03:40.220 --> 03:43.660
Because privacy is dead, anonymity, why would they want that?

03:43.660 --> 03:45.240
But of course they want security.

03:45.840 --> 03:51.400
And then when I'm talking to governments, I work on traffic analysis resistant communication networks.

03:51.500 --> 03:54.420
And again, it's the same system, the same security properties.

03:54.420 --> 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.

04:03.420 --> 04:09.640
And then there's the fourth category that we've been thinking a lot about recently, which is the reachability side.

04:09.640 --> 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.

04:17.360 --> 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.

04:23.660 --> 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.

04:34.320 --> 04:34.920
Okay.

04:34.920 --> 04:36.400
So how do you actually build one of these?

04:36.400 --> 04:41.680
How do you build a metadata , communications metadata privacy system?

04:41.680 --> 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.

04:50.220 --> 04:52.120
And a bunch of things can go wrong here.

04:52.120 --> 04:58.220
The first thing that can go wrong is what if that central point of failure fails?

04:58.500 --> 05:00.440
So we hear this all the time.

05:00.440 --> 05:05.720
There's some new VPN company that says, we promise we won't look at any of your traffic.

05:05.940 --> 05:06.280
Okay.

05:06.280 --> 05:08.160
Actually, we do look at all of your traffic.

05:08.160 --> 05:10.080
We promise we won't log anything.

05:10.440 --> 05:10.760
Okay.

05:10.760 --> 05:12.360
Actually, we do write all of it down.

05:12.360 --> 05:14.180
We promise we won't tell anybody.

05:14.220 --> 05:16.160
Oh, of course we answer subpoenas.

05:16.560 --> 05:19.640
So the problem there is you don't know.

05:19.640 --> 05:21.140
It's a centralized system.

05:21.140 --> 05:23.920
They promise they won't screw you, but they have the data.

05:23.920 --> 05:24.800
They know you.

05:24.800 --> 05:26.100
They know what you do.

05:26.100 --> 05:28.160
It's privacy by promise.

05:28.160 --> 05:30.340
And it's worse than that.

05:31.540 --> 05:38.380
Even if that centralized provider is somehow magically honest in all ways, it's still one point.

05:38.380 --> 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.

05:48.460 --> 05:52.880
So even if the central point is totally honest, it's still bad news.

05:53.640 --> 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.

06:02.000 --> 06:07.420
So it's privacy by design, privacy by architecture, rather than privacy by promise.

06:07.420 --> 06:12.260
And part of the goal is we've got these... you're able to see the slides, right?

06:12.260 --> 06:13.240
Even though they're not here?

06:13.240 --> 06:14.080
Okay, good.

06:14.180 --> 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.

06:27.580 --> 06:31.540
And another key point here, transparency for Tor is really important.

06:31.540 --> 06:33.760
Yes, it's open source, it's free software.

06:33.820 --> 06:38.160
Yes, we give you the design documents and the specifications and the research papers.

06:38.260 --> 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.

06:47.140 --> 06:50.660
And the key to that is transparency is really important.

06:50.660 --> 06:55.880
Every time I talk to somebody, they say, oh, ha ha, the privacy people are talking about transparency.

06:55.880 --> 06:57.320
That doesn't make any sense.

06:57.320 --> 07:01.180
And the reason why it makes sense is privacy is about choice.

07:01.320 --> 07:03.040
Transparency is about choice.

07:03.040 --> 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.

07:16.280 --> 07:16.900
Okay.

07:16.900 --> 07:18.100
So here's our first graph.

07:18.100 --> 07:22.820
This is a graph of the capacity and the load on the Tor network over the past ten years.

07:22.820 --> 07:26.180
The green line is what sort of capacity we have.

07:26.180 --> 07:28.560
And the purple line is the load on the network.

07:28.560 --> 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.

07:37.400 --> 07:40.420
On the other hand, the capacity has still been growing.

07:40.420 --> 07:44.820
And the purple line, the load line, has sort of flattened out over the past couple of years.

07:44.820 --> 07:50.160
So we can definitely talk about how to scale and how the performance should work.

07:55.900 --> 07:57.220
Not yet.

07:57.220 --> 07:57.840
No?

07:57.840 --> 07:59.200
Keep going?

08:00.020 --> 08:01.260
That's fine.

08:02.020 --> 08:03.440
That works?

08:04.440 --> 08:05.060
Hello?

08:06.060 --> 08:07.060
That's fine.

08:07.060 --> 08:07.840
Okay.

08:08.720 --> 08:12.640
So this is the number of relays per flags that we have.

08:12.640 --> 08:16.340
Flags are like roles that relay can have on the network.

08:16.560 --> 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.

08:26.500 --> 08:30.900
And some of you might notice there is an interesting curve here.

08:30.900 --> 08:34.440
It's the HS tier graph here.

08:34.440 --> 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.

08:41.720 --> 08:44.280
And why does that happen?

08:44.280 --> 08:47.260
So there was a Debian update.

08:47.260 --> 08:50.480
There was a library that had a few dependencies in common with Tor.

08:50.480 --> 08:56.080
So that updated and the Tor daemon restarted and the relays lose the flag.

08:56.360 --> 09:01.660
And this introduced us to a topic that is important for the Tor network which is diversity.

09:01.940 --> 09:08.400
And actually shows that we have a little bit of a monoculture issue when it comes to Tor relays.

09:08.400 --> 09:11.200
A lot of them don't run Debian.

09:11.540 --> 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.

09:21.700 --> 09:26.120
And so it shows these monoculture issues.

09:26.120 --> 09:29.560
But, you know, I think we are not the only one to have a monoculture issue.

09:29.560 --> 09:36.480
I think Microsoft said that they had 8.5 million devices affected by the crowd strike incident.

09:36.480 --> 09:39.140
So anyway.

09:39.980 --> 09:45.360
And this is why we talk about diversity a lot when we talk about the Tor network.

09:45.360 --> 09:50.720
The Tor network is driven by a diverse community of relay operators.

09:51.120 --> 09:58.760
And we have developers, we have privacy researchers, we have security professionals, we have academics.

09:59.520 --> 10:06.000
And diversity is not just a desirable attribute but it's a critical component when we talk about the network.

10:06.000 --> 10:10.080
And you might wonder what do we mean by diversity?

10:10.080 --> 10:12.800
Why we place so much emphasis on it?

10:13.660 --> 10:19.620
And what mechanism and we do have to foster this diverse community.

10:19.620 --> 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.

10:30.080 --> 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.

10:37.820 --> 10:41.980
That means a big part of the network is affected by the same bug.

10:41.980 --> 10:48.340
So we strive, our objective is to have a uniform distribution of operating systems.

10:48.420 --> 10:51.940
Of course we're not there but that's what we aim for.

10:52.780 --> 10:57.420
We place a lot of emphasis on location as well for a variety of reasons.

10:57.420 --> 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.

11:11.040 --> 11:16.700
We want also to our relays to be spread globally to avoid single point of failure.

11:17.440 --> 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.

11:26.820 --> 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.

11:41.600 --> 11:44.900
And we also want diversity of users.

11:45.380 --> 11:48.900
So people use TOR for a variety of reasons.

11:48.900 --> 11:54.640
We estimate that we have 400,000 users daily in the United States.

11:54.700 --> 12:00.700
It means that we have diversity of usage patterns , profiles, interests.

12:00.700 --> 12:05.020
We have minority groups using TOR , social right activists.

12:05.020 --> 12:11.220
We have privacy enthusiasts who would want to be followed by surveillance companies who want to surf the web.

12:11.780 --> 12:22.020
And for many people like activists, people belonging to different kind, for example, people researching

12:25.500 --> 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,

12:47.500 --> 12:50.340
discrimination, and retaliation.

12:51.180 --> 12:57.960
So how do we actually foster this diverse community in a healthy way?

12:57.960 --> 13:01.520
So we place a lot of emphasis on direct communication.

13:01.520 --> 13:02.580
We use IRC.

13:02.580 --> 13:04.160
We use mailing lists.

13:04.160 --> 13:05.420
We use forum.

13:05.420 --> 13:11.580
We organize online and in-person meetups, online meetups for our community up and every month.

13:11.680 --> 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.

13:24.160 --> 13:25.760
We have in-person meetups.

13:25.760 --> 13:27.700
We are here at DEF CON.

13:27.820 --> 13:32.500
In Europe, we know that there are other events where people in our community like to gather.

13:32.500 --> 13:35.180
So, for example, we have FOSDEM, we have CCC.

13:35.660 --> 13:38.820
And we do develop transparent policies.

13:39.600 --> 13:47.480
We have open process to create and maintain policies for our community, which are central to how we run the community.

13:48.060 --> 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.

13:59.220 --> 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.

14:21.590 --> 14:24.450
So, where do these relays come from?

14:24.570 --> 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?

14:32.690 --> 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.

14:47.230 --> 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.

14:55.030 --> 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.

15:03.590 --> 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.

15:12.050 --> 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.

15:18.470 --> 15:21.930
So this is an ongoing and growing challenge.

15:21.930 --> 15:26.710
How do we make sure that the Tor network has the relays that are doing it for the right reasons?

15:26.970 --> 15:28.490
So how do we do that?

15:28.490 --> 15:30.250
How do we actually accomplish that?

15:30.250 --> 15:36.110
The first answer is we need to get rid of application level vulnerabilities.

15:36.110 --> 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.

15:46.610 --> 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.

15:57.150 --> 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.

16:06.990 --> 16:08.490
It's who knows who.

16:08.490 --> 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.

16:20.550 --> 16:28.650
And speaking of that, one of the really successful models over the past ten years or so is relay operator associations.

16:28.650 --> 16:30.990
These are non-profits around the world.

16:30.990 --> 16:34.470
These are individuals who banded together in their country.

16:34.470 --> 16:38.490
One of them exists in France, in Switzerland, in Germany.

16:38.490 --> 16:40.050
There's one in Sweden.

16:40.050 --> 16:41.330
There was one in Luxembourg.

16:41.330 --> 16:42.390
There was one in Iceland.

16:42.390 --> 16:43.650
There are two in Canada.

16:43.650 --> 16:50.910
It's a global phenomenon where non-profit like hacker spaces get together to run Tor exit relays.

16:50.910 --> 16:54.170
And one of the great things about this is it's sustainable.

16:54.170 --> 16:56.030
You can run really big relays.

16:56.030 --> 17:02.250
Another one is they can establish relationships with the local cops so they know how Tor works.

17:02.330 --> 17:03.790
And also we know who they are.

17:03.790 --> 17:07.350
We meet them at conferences like DEF CON and grow that community.

17:07.350 --> 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.

17:20.050 --> 17:27.070
And speaking of that, EFF a year ago launched a campaign to get universities in particular running relays.

17:27.070 --> 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.

17:34.290 --> 17:38.290
But it's not just the freedom side.

17:38.350 --> 17:40.290
Universities are about education.

17:40.370 --> 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.

17:49.730 --> 17:52.390
And now the cloud exists, so not as many people do that.

17:52.390 --> 17:54.050
So there's an education side.

17:54.050 --> 17:55.210
There's a community side.

17:55.210 --> 17:56.470
There's a research side.

17:56.470 --> 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.

18:09.890 --> 18:15.390
And relay incentives in general is a broad topic that we really need to work harder on.

18:15.390 --> 18:24.130
So gamification, like Reddit style, Stack Exchange style, I got a gold badge for my five-year anniversary.

18:24.130 --> 18:26.830
I got a silver badge because I was an exit relay.

18:26.830 --> 18:32.390
I got a silver badge because I'm in an ISP that there aren't very many other relays in.

18:32.390 --> 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.

18:42.130 --> 18:46.550
Leaderboards, I'm running the 17th fastest tour relay in the world right now.

18:46.550 --> 18:47.810
So that's one piece.

18:47.810 --> 18:50.590
Another piece is just giving people more attention.

18:50.590 --> 18:56.850
Meetups, having time to answer their questions and walk people through how to run relays.

18:57.030 --> 18:59.310
And then there are the structural incentives.

18:59.310 --> 19:05.450
Like imagine we had a tour design where if you run a relay, you get better performance on tour.

19:05.570 --> 19:10.770
So there are a bunch of exciting security problems that come with a lot of these designs.

19:10.770 --> 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.

19:17.990 --> 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.

19:33.070 --> 19:41.370
And part of the challenge there is the cryptocurrency world, their fundamental building block is capitalism, is maximizing profit.

19:41.370 --> 19:45.270
And the tour world, our fundamental building block is altruism.

19:45.270 --> 19:50.510
It's I want to make the world a better place, I have extra resources, I can provide them.

19:50.530 --> 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.

20:04.550 --> 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.

20:11.890 --> 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.

20:18.290 --> 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.

20:31.860 --> 20:37.500
Okay, so I want to tell you a bit about network health and metrics and what we do.

20:37.780 --> 20:43.380
But first I want to tell you about a story because I want to put what we do in context.

20:43.540 --> 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.

20:53.100 --> 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.

21:05.020 --> 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,

21:25.420 --> 21:28.380
for example, and this information would be intercepted.

21:28.660 --> 21:30.560
So we noticed this.

21:30.560 --> 21:36.860
We kicked the relays out and then a few weeks later, in June, another group of relays does the same attack.

21:37.220 --> 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.

21:52.200 --> 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,

22:15.860 --> 22:19.100
not just the network level, but also the application level.

22:19.760 --> 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.

22:32.900 --> 22:37.420
And part of what we do is kicking relays out of the network.

22:37.700 --> 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.

22:47.840 --> 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.

23:02.460 --> 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.

23:12.620 --> 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.

23:23.620 --> 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.

23:34.140 --> 23:37.500
And we saw directly connected user decline.

23:38.080 --> 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.

23:50.100 --> 23:53.660
And so we saw a spike in bridge users in Russia.

23:53.660 --> 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.

24:00.420 --> 24:00.940
Yeah.

24:00.940 --> 24:04.280
So let me jump in and explain what a bridge is for those who don't know.

24:04.360 --> 24:06.780
We've been talking about relays so far.

24:06.780 --> 24:09.820
These are public tour relays that are in the list.

24:09.820 --> 24:13.120
And that means that the censors can get that list and block all of them.

24:13.120 --> 24:16.440
So bridges are relays that aren't in the list.

24:16.480 --> 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.

24:25.860 --> 24:29.020
So that's the arms race that we're in there.

24:29.020 --> 24:32.440
And there are a bunch of different approaches we have for bridges.

24:32.440 --> 24:33.580
One of which is?

24:35.820 --> 24:36.600
Yeah.

24:36.600 --> 24:42.720
And similar situation in Iran in 2022, the mass protest.

24:43.180 --> 24:50.600
So people, we started noticing that there was aggressive censorship happening in the country.

24:50.600 --> 24:52.480
People were in the street protesting.

24:52.480 --> 24:54.680
They couldn't access the Internet.

24:54.680 --> 24:56.140
They couldn't access the news.

24:56.140 --> 25:00.200
They couldn't use communication messaging systems.

25:00.580 --> 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.

25:11.760 --> 25:18.320
And we saw how the users from Iran spiked during the protest.

25:18.620 --> 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.

25:29.560 --> 25:36.060
And if you're wondering what Snowflake is, so in the tour ecosystem, Snowflake is what we call a pluggable transport.

25:36.400 --> 25:41.880
And it's, um, you can think of it like as a tool the tour used to disguise the traffic.

25:41.880 --> 25:46.760
And in the case of Snowflake, it used temporary run volunteer proxies.

25:46.920 --> 25:53.780
So it's, um, by using the proxies, more difficult for the censors to actually block them.

25:53.780 --> 25:59.400
And it helps people in very, um, 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: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.

26:13.020 --> 26:18.220
So as we're showing more recent graphs, we end up with larger and larger numbers.

26:18.220 --> 26:22.340
We're talking about many tens of thousands or hundreds of thousands of people.

26:22.340 --> 26:28.040
And the other answer is Snowflake.tourproject.org, you too can volunteer as a Snowflake.

26:28.040 --> 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.

26:33.580 --> 26:34.660
Please help.

26:36.420 --> 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.

26:47.420 --> 26:53.060
And then we got news that the military junta started to apply Internet shutdown.

26:53.360 --> 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.

27:05.580 --> 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.

27:18.440 --> 27:26.060
Yeah, so one of the fascinating things about the graph like this, periodically we see spikes in our user graphs.

27:26.060 --> 27:31.640
And here we're like, wow, a whole lot of people from Myanmar just started using Tor over bridges.

27:31.640 --> 27:32.600
This is great.

27:32.600 --> 27:36.440
But sometimes we see the spikes and we don't know if it actually happened that way.

27:36.440 --> 27:38.440
We don't know what happened in the country.

27:38.440 --> 27:42.020
So every time we see a spike like this, we're wondering, is there a bug?

27:42.020 --> 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?

27:50.360 --> 27:54.060
So part of the challenge we have is understanding what actually happened.

27:54.060 --> 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.

28:06.800 --> 28:12.880
And part of that is angles, including talking to people on the ground and saying, what just happened in your country?

28:12.880 --> 28:16.560
Why is it that we're seeing these graphs, these changes in our graphs?

28:19.340 --> 28:23.340
Yeah, so we've been talking about user data.

28:23.420 --> 28:25.040
And you might have wonder...

28:29.760 --> 28:31.020
That's loud.

28:31.600 --> 28:32.640
Okay.

28:34.240 --> 28:35.500
I go on.

28:35.500 --> 28:35.980
Okay.

28:35.980 --> 28:37.680
I think they can hear us better than we can.

28:37.680 --> 28:38.280
Okay.

28:38.280 --> 28:44.380
So you might wonder, towards the anonymity network, how come you have user data?

28:44.380 --> 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.

28:53.160 --> 28:59.400
So all our data that we have in metrics is actually public data that we publish.

29:00.140 --> 29:03.100
So we do not collect in client data.

29:03.300 --> 29:06.660
Our user data that we've been talking about are actual estimations.

29:06.660 --> 29:08.920
And I'm gonna say how we do this.

29:08.920 --> 29:14.880
But other products like VPN products, they actually count the users and we don't.

29:14.880 --> 29:18.500
So what we have is aggregated data from relays.

29:18.660 --> 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.

29:28.500 --> 29:37.900
So we estimate that if... first of all, we count all these requests globally, how they are collected from relays.

29:37.900 --> 29:44.520
And then we estimate that if a Tor client was connected 24 hours, it will make 10 requests.

29:44.660 --> 29:51.620
So we count all the requests that we get from the relays when they upload their statistics.

29:51.920 --> 29:54.840
And we divide them by 10.

29:54.840 --> 29:56.340
And we have the user estimation.

29:56.340 --> 30:01.720
So in reality, we might be underestimating our user count by an order of magnitude.

30:01.720 --> 30:03.340
But that's fine for us.

30:03.340 --> 30:07.800
It's the tradeoff that we want to make in order not to put our user at risk.

30:08.420 --> 30:12.960
So we do have, though, historical data.

30:12.960 --> 30:18.720
And we actually serve this data on collector.torproject.org.

30:18.720 --> 30:23.040
You'll find all the documents that are ever, I think, being created on the network.

30:23.260 --> 30:27.060
And out of this data, we have network-wide statistics.

30:27.580 --> 30:34.080
And we have also the status of individual nodes that will give us an idea of how the network is doing.

30:34.640 --> 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.

30:45.360 --> 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.

30:54.820 --> 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.

31:01.940 --> 31:05.700
So this is an overview of how this process works.

31:05.700 --> 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.

31:14.280 --> 31:22.200
And there is a service that's called Collector, or Collector, which downloads these documents and archives them.

31:22.200 --> 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.

31:31.580 --> 31:37.040
And I said that all the data is public, and this is true, but there are a few exceptions.

31:37.240 --> 31:41.800
The first exception is that we are in a race with sensors.

31:42.120 --> 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.

31:50.500 --> 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.

31:58.100 --> 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.

32:11.660 --> 32:14.400
And I think the threshold is about 100 users.

32:17.230 --> 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.

32:38.290 --> 32:46.150
So we look at traffic users patterns, we have actual bandwidth measurements, and we have performance measurements.

32:47.510 --> 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,

33:03.650 --> 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.

33:18.590 --> 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.

33:29.070 --> 33:34.530
And another thing that we do is performance measurements, and we do them for two reasons.

33:34.530 --> 33:39.550
One of them is we want to know how the network performs from different points in the world.

33:39.550 --> 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.

33:53.630 --> 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.

34:03.770 --> 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,

34:18.430 --> 34:19.430
for example.

34:23.370 --> 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,

34:44.590 --> 34:46.410
you need time to parse it.

34:46.410 --> 34:55.130
And so we decided to open a little bit more the way people can access metrics data.

34:55.130 --> 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.

35:07.030 --> 35:11.490
We have few endpoints available, more coming up soon as we are developing.

35:11.830 --> 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.

35:21.630 --> 35:27.910
I forgot to mention the API is called the Network Status API, or NSA, for short.

35:29.770 --> 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,

35:48.930 --> 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.

36:04.430 --> 36:13.810
So this is something new, and that I believe can give a lot of flexibility to researchers to start experimenting.

36:13.810 --> 36:17.870
I hope it helps relay operators checking the status of their nodes.

36:18.130 --> 36:20.130
And you can check out the documentation.

36:20.130 --> 36:26.910
We welcome feedback and bugs reports, of course, because expect it to be broken.

36:29.250 --> 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.

36:47.990 --> 36:48.850
Okay.

36:48.850 --> 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.

36:56.250 --> 36:58.170
What can you do to help us?

36:58.170 --> 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.

37:09.730 --> 37:16.710
Maybe there are sysadmins in here right now who would love to add an extra relay on their volunteer rack.

37:16.710 --> 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.

37:23.990 --> 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.

37:33.350 --> 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.

37:46.070 --> 37:47.950
And yes, location matters.

37:47.950 --> 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.

37:57.670 --> 37:58.830
So for example, the U.S.

37:58.830 --> 38:03.930
is nowhere near the top in terms of countries that are contributing to the Tor network.

38:03.930 --> 38:04.770
I hear the U.S.

38:04.770 --> 38:09.430
has lots of hackers and lots of Internet connections and lots of computers.

38:09.490 --> 38:14.270
So there's certainly an opportunity for you to help us make the U.S.

38:14.270 --> 38:19.810
more impactful, which in turn makes performance better for users in this hemisphere.

38:19.890 --> 38:24.670
So think about diversity of location, but wherever you can run it is great.

38:24.670 --> 38:26.230
Please add more relays.

38:26.230 --> 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.

38:36.230 --> 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.

38:45.990 --> 38:46.990
How do I do it?

38:46.990 --> 38:48.070
Here are the steps.

38:48.070 --> 38:49.530
I want to do a snowflake.

38:49.530 --> 38:50.630
Here's the steps.

38:50.630 --> 38:55.690
I want to go to a relay operator meetup or learn about the relay associations.

38:55.690 --> 38:57.950
Here are the lists and documentation.

38:58.030 --> 38:59.470
So there's a lot there.

38:59.470 --> 39:01.070
And join the community in general.

39:01.070 --> 39:02.770
Come to the relay operator meetups.

39:02.770 --> 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.

39:13.430 --> 39:16.650
Maybe next year we'll join privacy village or something.

39:16.650 --> 39:21.770
But you can come talk to us afterwards and we'd love to chat with you more about relays.

39:21.770 --> 39:27.190
And if you can't run a relay , run a bridge or a snowflake or contribute in other ways .

39:30.310 --> 39:33.670
So you can also get involved with the network health team .

39:33.990 --> 39:39.490
If you're interested in network data analysis, hunting for bad relays, there's certainly space for that.

39:39.490 --> 39:41.670
We hope the API can help you.

39:42.170 --> 39:47.250
There is also one thing that we do, which is creating tools for relay operators.

39:47.250 --> 39:53.370
For example, tall weather, which gives a notification to operators when something is not right with the relay.

39:53.390 --> 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.

40:05.470 --> 40:12.750
And also we are trying to work on a better way to visualize network data.

40:13.070 --> 40:17.110
We are trying to move the parser from Java to Rust.

40:17.270 --> 40:19.190
There is a link to our wiki.

40:19.190 --> 40:20.730
Please get involved.

40:20.870 --> 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.

40:29.010 --> 40:34.430
You're helping us fighting the good fight for privacy, anonymity, and internet freedom.

40:34.430 --> 40:34.890
Thank you .

40:45.050 --> 40:49.150
We've told you a bit about how you can help us.

40:49.150 --> 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.

41:03.070 --> 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.

41:10.190 --> 41:13.010
We've got these cool badges and other things available.

41:13.010 --> 41:15.770
Or you can just ask us every possible Tor question.

41:15.770 --> 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.

41:27.410 --> 41:28.030
Thank you.

