start	end	text
2190	5810	Now, Roger here is going to share some wonderful stories.
5810	13750	He has lots of stories, and I've known him for a number of years, and he is, like many of the other folks that are here, way more approachable than you think.
13750	18510	So, he's going to offer at the end to come and hang out, answer questions, come meet all of you.
18510	21070	When he says that, he's genuine.
21170	22490	Take this opportunity.
23190	29430	Thank you for coming so often, and thank you for always being so open, and thank you for being so friendly for everybody.
29730	33690	Let's give Roger a big round of applause for everything that he's done for all of us.
37490	38290	Okay.
38290	39070	Hi, everybody.
39070	40090	Is the microphone working?
40090	41090	Seems like it is.
41090	41830	Awesome.
41830	42150	Okay.
42150	48370	Hi, I'm Roger, and indeed, the lights here are very bright, so I'm going to go like this every time I want to actually see the audience.
48370	49030	Sorry.
49230	63130	So, I wrote Tor long ago, and I have a bunch of different experiences, and I'm going to try to share some of them with you today to give you a sense of how building Tor, how running the Tor network has been over the past decades.
63130	64990	So, I've got 12 different stories.
64990	73210	We're going to start with examples of trying to teach governments and law enforcement how Tor works, some of them successfully, some of them not so successfully.
73210	81670	And then we're going to talk about trying to run the Tor network itself despite organizations and mafia and so on, people out there trying to attack it.
81670	91810	And then we'll talk a little bit about Tor in authoritarian regimes and how it's been useful and not as useful as we'd like for those situations.
91850	94510	And then I'll try to end with some more fun stories.
94550	108190	So, this is the I tell the stories phase, but afterwards, I plan to bring as many of you as I can over to the Tor booth in the nonprofit vendor area, and I will answer all of your questions as long as it takes, whatever questions you've got.
108670	108950	Okay.
108950	119450	So, I should also point out, generally, I do DEF CON talks that are more technical, like, hi, this is how Russia blocked Tor by protocol, and this is how we got around it and check out these graphs.
119550	124230	And part of that is that's the cool technical stuff, and I want to teach people about that.
124230	131730	But also, generally, I try to avoid the journalists who have their quotas and find something overhyped and so on.
131730	136210	So, if you're one of those journalists and you're excited to write about things today, great.
136230	140910	Let's talk and try to figure out how to make it something that we're both comfortable with.
142710	143310	Okay.
143310	163470	So, starting off on the FBI DOJ side of things, long ago back in 2005, I ended up meeting the EFF people, and they introduced me to some Department of Justice lawyers in Los Angeles, and I figured I'm going to go teach some feds about privacy and anonymity and why that's important.
163470	173590	And it was, I guess, the first impression I had, there were like three or four Department of Justice lawyers, and they were smart, interesting people who had, you know, good arguments on their side.
173630	181770	But also, there were like 20 Secret Service people who showed up and lined the back of the room, like they filed in all at once.
181770	183930	They never said anything for the entire meeting.
183930	185830	They never took their sunglasses off.
185830	192310	So, I don't know if this was an intimidation tactic or it's just standard dress code for Secret Service people to be doing this.
192310	197890	But that was the beginning of my let me try to teach feds about Tor experience.
197930	214030	And part of the early realization I had, we were discussing backdoors and why they make no sense, and why people shouldn't ask us for backdoors, and especially in an open source system like Tor, a distributed trust system like Tor, there shouldn't be,
214030	216330	like, it doesn't even make sense to have a backdoor.
216410	224810	And at one point I was explaining, and we've got EFF people who are happy to defend us if this happens, and anyway, nobody has even asked us for one.
224890	230510	And one of the DOJ people jokingly, not jokingly raised his hand and was like, can I have a backdoor?
230610	237370	So now I can't tell people that the feds haven't asked for a backdoor anymore, because even back in 2005 they were asking.
237370	244970	But as far as I know, nobody has done any, like, actually written formal official requests for a backdoor, at least in this country.
245770	254970	Okay, so the other lesson from that particular talk, I had been talking to a bunch of proxy anonymizing companies.
254970	257890	One of them was anonymizer.com before that.
257890	261790	And the leader of that company said, we never answer subpoenas.
261790	265170	If we ever answered a subpoena, nobody would trust us ever again.
265170	267390	So of course we don't answer subpoenas.
267390	274730	And during that DOJ meeting, just out of the blue, one of the DOJ lawyers was like, why can't you be like anonymizer?
274730	275370	It's easy.
275370	276490	We send them a subpoena.
276490	277790	They send us an answer.
277790	278690	It's easy.
278690	280570	Why can't you be like them?
280930	283710	And I say that not to pick on any particular company.
283710	285310	That company is long gone.
285310	286790	But the problem is the architecture.
286790	289370	The problem is they have the data.
289370	291410	They promise not to screw you.
291450	299190	And that's why Tor aims to be different, where there is no single point in the system, in the architecture, that knows who did what.
299190	305650	So it's not about, I hope you don't send us a subpoena or we refuse to answer you.
305650	309850	It's we actually don't have the information that you're asking about.
310310	310690	Okay.
310690	327170	So alongside those, like, Department of Justice stories, one of my side hobbies is trying to get myself invited to FBI conferences so I can argue with them about the importance of privacy and why back doors are not so helpful.
327190	338210	And one of the examples there, I've been at like this two-day workshop with a bunch of Facebook people and Google people and Twitter and a bunch of feds.
338410	346830	And towards the end of the workshop, one of the, like, senior feds came over to me and was like, surely you have a back door.
346870	351710	All these other companies that we're talking to, they all have ways of tracking all their users.
351810	355710	I don't believe you that you don't have a way of tracking your users.
355730	359730	And I tried all sorts of arguments of, you know, we distribute trust is important.
359730	360770	It's a nonprofit.
360770	362030	None of those worked.
362030	370110	But the one that did work was pointing at various FBI people in the audience and saying, those people told me they use Tor for their job.
370110	375350	Do you want me to have the ability to know what your FBI people are doing on the Tor network?
375350	386010	And that was the argument that finally sank in that made them think, well, wait a minute, I guess there is something important to having an actually secure privacy system out there.
386330	405850	And then I guess the other fun piece of that FBI teaching example is I was talking to one of the other FBI people at some, like, later conference and there I was, like, arguing on behalf of internet privacy along with Microsoft people and Facebook people and so on.
405850	409870	And the FBI guy is like, so you Tor have an image problem.
409870	413770	You've got this, like, dark web thing, bad people, journalists keep writing about you.
413770	414970	I have an idea.
414970	422010	Why don't you take just a small number of your engineers, just, like, 500 engineers and have them work on, like, press for six months.
422010	423990	I think you could totally beat this.
423990	437770	And it was at that point I realized that from his perspective he's meeting with, like, Microsoft and Facebook and Google and Tor and surely we're all, like, huge tech companies that have 10,000 employees and, boy, is that not the case for Tor.
437770	443410	So that was a big gulf of expectations that was surprising.
444230	444590	Okay.
444590	453750	And here is my laptop locking so I will try not to use too much time on the future slides.
455930	456850	Nope, nope, nope.
456850	457870	Just for me.
459810	460690	Okay.
460690	462350	Yeah, the slides are just helping me.
462350	468510	I figure the good speakers don't use slides so I'm going to see how that works for me this time.
469210	469530	Okay.
469530	470730	So story two.
471090	474150	Similarly, not in the U.S., this is in Sweden now.
474330	484970	So we have a bunch of privacy civil liberties friends in Sweden and one of them arranged a presentation for a pair of, like, Swedish government people.
484970	497410	And one of them was the guy who tried to pass the data retention bill in Sweden and he failed and he was still bitter and angry that his citizens didn't understand the importance of surveilling the entire population.
497470	503590	And the other one was, like, cyber forensics detective person for the Swedish government.
503590	511070	So I sat them both down and I taught them all about Tor and privacy and the importance of having distributed trust and so on.
511070	516970	And at the end, the data retention guy is like, you're all criminals.
517330	521870	Only people who want privacy, only criminals would do that.
522030	524790	What are you doing trying to make the world a worse place?
524970	526370	And I'm thinking, okay, great.
526370	529270	I invited you here to have this conversation.
529270	533750	Let's talk about, like, why all sorts of different people in the world need privacy.
533790	539170	Let's talk about, you know, why back doors don't make sense and so on.
539170	543230	So I opened my mouth to start trying to, you know, have that next step of the debate with him.
543230	550370	When cyber forensics guy stood up and said, actually, I use Tor every day for my job and I use it at home, too.
550370	551470	Shouldn't everybody?
551730	561090	And the look on data retention guy's face of, I thought we were here together to beat down these criminals, to, like, show them that privacy is only for bad people.
561090	567350	What are you doing undermining what I think should be the Swedish government's position of only bad people need privacy.
567350	570010	So that was an important lesson also.
570010	577090	And I guess I should stop here because I was telling some of these stories to some folks earlier and they were like, wait, you talk to cops?
577410	584310	Which is an important piece of how we as the hacker community get our messages to the right place.
584310	597750	So, yes, part of the challenge with making Tor succeed in the world is talking to other organizations out there that don't necessarily start off agreeing with us, including governments and law enforcement and so on.
597750	600430	And there are, I guess, three big reasons for doing this.
600430	606070	One of them is the Tor network needs a lot of different users so that they can blend together.
606070	611970	You can't just have Egyptian activists in the Tor network, otherwise it doesn't provide the security that they need.
611970	616470	You need to have governments and other groups all using the same network.
616470	622730	So explaining to them why they also need privacy and why Tor can help them is an important piece of it.
622730	636950	But if you don't buy that, the second example is I was talking to a friend who ended up joining the FBI and he was telling me a story about being in a room with a bunch of Department of Justice lawyers and they said, you know what we should do today?
636950	639010	We should pass a law outlawing Tor.
639370	643830	And he was in the room and got to stand up and say, I work for the FBI.
644010	645650	I use Tor every day for my job.
645650	646590	I need Tor.
646590	648930	Are you trying to make my job impossible?
649030	655670	And the fact that he was in the room that day meant that they moved on to whatever other bad law they were thinking about writing.
655790	665870	So that's, that lesson is really important in terms of having allies in the right place so that they can get the message to the right people.
665870	668430	Because I'm not going to be in that room.
668470	682550	And I guess the third example there is having somebody like that inside these organizations, like imagine you're running a relay and somebody did something bad through your exit relay and some law enforcement person shows up.
682550	688370	Nothing you say at that point is going to convince them that you're not like helping some bad people somehow.
688370	689990	They're like, I found the criminal.
689990	691890	I'm dealing with this now.
691890	695830	But if you say, call Russell down the hall from you.
695870	700810	I'm not going to explain it, but he's your colleague and he will explain what this is to you.
700870	705870	That has really been helpful in a lot of ways to have insiders at these various organizations.
705870	711910	Speaking of which, Russell is no longer an FBI person and we don't actually have a person like Russell.
711910	715430	I figure this is a DEFCON audience so it's what, 10% feds or something?
715430	733830	So if you are one of these, if you are in one of these groups and you're a TOR fan, I would love to meet you and turn you into one of our allies on the inside so that you can help to advocate for privacy and internet freedom and civil liberties and so on for all the people around the world who need it most.
736090	743650	Okay, so another example in the fun talking to government side, we had a TOR meeting in Iceland in 2014.
744270	752370	And I figure I'm going to a new country and I will offer to do some sort of TOR training for the government cyber forensics people.
752510	757490	So we reached out and we found both of the Iceland cyber people.
757490	759530	Haha, it's Iceland, yes, there are two.
759630	764970	And invited them to come down and we talked about TOR for, you know, two or three hours.
764970	771770	And at the end of those two or three hours, I'm like, okay, so I've explained a lot of things about TOR and surely this is all you need.
771770	777630	I was going to talk about onion services next, but surely, you know, you're full of information.
777670	780630	And they're like, no, actually, onion services are really interesting.
780630	781830	Please continue.
782210	786770	And it turns out that Silk Road was hosted in Iceland, but nobody knew that at the time.
786770	792010	But I guess they did and the feds had been leaning on them to learn what this TOR thing is and so on.
792010	804590	So that was a point where each of these cases, it's not like I, I mean, I tell everybody basically the same information about TOR, whether I'm talking to Egyptian activists or feds somewhere.
804590	811870	Because part of the point is that everybody needs to be sharing the same privacy system in order to blend together, to have privacy together.
812310	817130	So, yeah, that was an adventure where it turns out they really did care more.
817170	825230	Another example where things didn't go quite as well as I'd hoped, I ended up at one of these conferences meeting some DEA people.
825430	830130	And I'm like, why don't I come to your DEA headquarters and, and do a talk on TOR.
830130	831550	And I'll explain, you know, what it is.
831550	834630	And we can talk through why distributed trust is important.
834630	837990	We can talk about why a lot of different types of users are important.
838070	842090	And they, like, I started doing the talk and they're like, where is Silk Road?
842090	843690	And I'm like, I don't, I don't know.
843690	845910	But let me, let me teach you more about TOR.
845910	847570	And they're like, where is Silk Road?
847630	855030	So that was, that was an example where trying to approach these particular people didn't work as well as I hoped it would.
855830	856170	Okay.
856170	857970	And then a more fun example.
858010	866870	Somewhere in there, back in, like, 2006, I ended up inviting myself to NSA headquarters, Fort Meade, to do a talk to the NSA people.
866870	871470	And I figured, hey, I should, you know, try to learn from, as much as I can from what they're doing.
871470	876670	I talked to some people inside NSA afterwards who say that they use TOR and rely on TOR.
876670	877810	That was interesting.
877970	883410	But the most interesting part here is they wrote some notes on my talk.
883410	889470	And you can read these notes because Ed brought them out when he brought a bunch of TOR things out and sent them to the Washington Post.
889470	897010	So you can learn all about what the NSA intern or whatever wrote about what I was presenting to them.
897010	906290	And, again, I was just doing an ordinary TOR talk, like the same, here are the types of people who need privacy, this is why privacy is important, and so on.
906290	916290	But one of the fun examples from the notes, so if I'm doing a talk and the audience isn't reacting at all, I need to do a little bit more outrageous statements.
916370	919790	And there's one point in the notes where they're writing.
919790	932150	And then he says, for example, in regimes where they don't follow rule of law, such as Germany or France or United States, open paren, not sure what he meant there, close paren.
932770	948910	And a few years later when you got to read those notes in the Washington Post because certain governments were not following their own rule of law, I'd like to think that they do kind of understand what I meant by regimes, including the U.S., that do not follow their own rule of law.
948910	959490	So part of the challenge there is how do we get governments, even the ones that are supposed to be the good ones, to actually follow their laws rather than undermine them to harm human rights and civil liberties.
960950	962610	Okay, so that was phase one.
962610	964790	That was Roger talks to cops.
965050	974590	Phase two is talking more about trying to keep the Tor network itself safe, even from attacks and attackers all around the world.
974590	984530	So the example that I have here, back in 2021, there was some guy, I think in Russia, and he was like DDoSing other onion marketplaces.
984550	997390	And the idea, as I understand it, is you sell some bad stuff on the Internet, somebody else sells some bad stuff on the Internet and there's like a DDoS thing going back and forth where you try to knock your competitors off the Internet so if they can't sell the bad stuff,
997390	999430	maybe people will come buy your bad stuff.
999430	1009790	And I don't really care about, in fact, I don't really want people building these dark marketplaces on Tor because they're not actually helping us with our message about privacy and so on.
1009790	1014230	But as long as they stay to themselves and DDoS each other, you know, not so bad.
1014230	1028270	But it turns out that the DDoSs were splashing collateral damage on the rest of the Tor network because they were basically trying to overload onion services and that was producing a lot of traffic on Tor while they were trying to keep up with the attacks and so on.
1028270	1031130	And that was a problem because it was slowing down Tor.
1031130	1042930	So I had just fixed some like fairness rate limiting thing where it slowed down the attacks because it slowed down the collateral damage on the rest of the Tor network.
1042970	1044650	So at that point I'm like, sounds good.
1044650	1052510	We've at least, you know, squeezed down these jerks who are trying to be, who don't care about the Tor network as much as they should.
1052630	1056990	And then they switched to actually attacking the Tor network directly.
1056990	1063890	They were making connections through Tor to the directory authorities to fetch the directory information.
1063890	1074790	So from the perspective of the Internet, there are like 5,000 computers all around the world who are DDoSing these nine directory authorities to try to pull directory information from them.
1074790	1080310	And then we started having ISPs that are like, I'm going to fix this DDoS by blocking that IP address.
1080310	1086030	And suddenly we were getting more and more of the Tor network blocked in various people's block lists and so on.
1086030	1089570	So that was, it was a theoretical attack that we knew about.
1089570	1091990	It's easy to rate limit per IP address.
1091990	1099690	But if you're using Tor, we built an anonymity system, you can use that to get around the per IP address rate limits.
1099750	1100490	Makes sense.
1100490	1104950	So we knew this was going to happen eventually, but we were hoping it wouldn't happen then.
1104950	1112290	We did have a fix , which is basically when you try to exit from the Tor network, we check whether it's a Tor relay you're trying to connect to.
1112290	1114310	And if it is, then we disallow it.
1114310	1117430	So we don't allow reentering into the Tor network.
1117430	1122090	That way you could build infinite length paths and load things down that way.
1122090	1124830	So that was, you know, we figured out how to block that.
1124830	1125710	We blocked that.
1125710	1136510	I'd had sort of a miserable day where, or a miserable couple of days, I guess, where a lot of relay operators were sad because they were getting abuse complaints about how they were attacking somebody.
1136510	1143370	And we were trying to explain to a bunch of block lists that they should not be adding more Tor infrastructure to the block lists.
1143370	1149530	And you can see some of these attacks going back and forth where, like, sometimes our graphs show that we have 2 million daily users.
1149530	1152150	Sometimes the graphs show that we have 5 million daily users.
1152150	1156410	And those extra 3 are these jerks doing their DDoSes.
1156410	1161210	So that was, you know, mostly sorted out, mostly figured out.
1161350	1164110	And we'd been scrambling for the whole week.
1164110	1166150	So there I am at 7 a.m.
1166150	1171310	on like a Thursday and this guy shows up to IRC and he's like, yeah, that's me.
1171530	1173850	I'm the one who's been doing these attacks.
1174190	1180990	And I'm upset that you fixed the last bug because everything was going great.
1180990	1184990	And I'm thinking, okay, what exactly is your business model?
1184990	1187110	Like, I know there's this DDoS stuff going on.
1187110	1189850	So how do you make the money here?
1189850	1192330	Like, what's in this for you?
1192330	1198250	And he's like, well, I attack people and then I ask them to pay me to stop.
1198630	1201170	And I'm like, ah, so extortion.
1201270	1203590	And he's like, more or less.
1204510	1206130	Well, more really.
1207070	1214050	And I'm thinking, okay, this is definitely a strange person for me to be talking to.
1214050	1217830	And he was explaining, I don't want you to add any back doors.
1218470	1220270	Just can you like leave some bugs in?
1220270	1222990	Surely there's a way that we can, you know, make this work.
1222990	1224810	I'll give you a cut of my profits.
1224810	1226590	Like, I'm making a lot of money here.
1226590	1228370	So surely you want some.
1228370	1236310	And I guess in his world, he's like some Russian mafia dude and it's all about the money and why would you be on the internet at all if not to be making more money.
1236410	1243450	So there I am trying to like figure out, because the first answer is no, fuck you, dude.
1243870	1249070	But he's the one who was just making the Tor network under attack for the last week.
1249070	1254250	So I can't be like, I can't be as directly screw you, go away.
1254250	1257070	But I also don't want to be like, oh, tell me more.
1257350	1269590	Let me stall you while you, like give me at least three or four days to not be attacking the Tor network so I can finish patching things and finish making sure that relays upgrade and the Tor network can continue to exist.
1269590	1282450	So that was part of a challenge where I'm like trying to walk the fine line between screw you and tell me more so that I can stall you or at least, you know, can you stop doing the attacks for a little while.
1282450	1289990	And it was at that point where he says, so I just sent $10,000 of Monero to your donation address as a proof of my good faith.
1289990	1295950	That's like just to show that, you know, there's plenty more where that came from and maybe we can make this work.
1295950	1312090	And then I'm thinking, I have criminal proceeds in the donation queue now and like I know it because you just told me, oh, shit, now I've got $10,000 that like if we ever turn this into actual Tor donations, then we've just broken I don't even know how many laws in various places.
1312090	1316630	So as an aside, it turns out there is a way to light cryptocurrency on fire.
1316630	1324270	The metaphor is you send it to the zero public key and nobody knows the private key for the zero public key so it just vanishes.
1324270	1333970	So we ended up doing that in order to not cash out our criminal proceeds that the Russian asshole had so helpfully given to us.
1333970	1356750	So that was, yeah, that particular story isn't over because those DDoSs are still going on and those marketplaces are still attacking each other and that's part of a bigger issue about like sanctions and whether people, whether good cyber security people in Russia have other jobs that they can get besides criminal activities like this and as we sanction them more,
1356750	1358630	they have fewer and fewer options.
1358630	1362750	So that is an ongoing story that we should be doing in the policy track.
1363910	1364430	Okay.
1364430	1374890	So let me talk a little bit about the things that have happened in authoritarian worlds around the past 10, 15, 20 years.
1374890	1387870	So the first example is back in 2011 when Iran did its first DPI block on Tor and before that we'd been like, look, you can block us by IP address but we're going to look like TLS.
1387870	1392370	We're going to look like a browser talking to a web server and who would block TLS?
1392730	1394330	Hopefully we'll blend in well enough.
1394330	1399690	This was back before phrases like pluggable transports and things like that if you know that phrase.
1399910	1411350	So before that they'd just been blocking by address and then the very first block somehow Tor stopped working in Iran and we're like, okay, did they block all of TLS?
1411350	1412370	How did they do this?
1412370	1424350	And it turns out we had a friendly DPI engineer, Deep Packet Inspection engineer at Team Cymru who was looking at our packet traces and he's like, I found this particular constant in your source code.
1424350	1428630	I don't know what it is but when I change this number stuff starts working again.
1428690	1438710	And it turns out we had built TLS using Diffie-Hellman like the appropriate protocol and Diffie-Hellman has a parameter P, the prime, and we used a great prime.
1438710	1441210	We used a prime from the DNSSEC like RFC.
1441210	1448890	We used a good solid prime but we didn't use the same prime as Apache talking to, as Firefox talking to Apache did.
1448890	1470670	So we were using a different, same crypto system, same protocol, same everything just a different parameter and the very first blocking attempt in the world of Tor by DPI turned out to be censoring the TLS protocol looking at the parameter, the prime parameter we were using which is not at all what we were imagining the first blocking thing would be.
1470670	1475790	Surely it would be like look at the cipher suites or look at the domain you're going to or something like that.
1475790	1491290	So one of the lessons is every time we make a list of how we think a sensor is going to block us, like here are the top 20 ways that they might do it and here's what we're going to do in each case, every time we make that list the way that they actually block us turns out to be not on,
1491290	1492810	not anywhere on our list.
1492810	1496130	So it's hard to predict how these things are actually going to work.
1496130	1512890	And the other answer is the importance of community here where in no way would a couple of Tor developers sitting in a room have figured out that it was that parameter P in the time that the rest of the community did looking around and trying to figure out these are the traces,
1512890	1514530	these ones work, these ones don't.
1514530	1523650	So it's really important to have a lot of folks, especially in the debugging phase of wait a minute , Tor stopped working in this country, what did they break?
1524430	1535750	Okay, so another fun example on the Iran side, a few years earlier, 2009, so you remember when Mousavi got elected in Iran and then suddenly he wasn't in charge?
1536250	1538190	I see a couple of hands here and there.
1538190	1554110	So in terms of maybe you remember long ago the folks with the green fingers, the Green Party in Iran, so we know some of the people who were like sysadmins for the Green Party and one of the challenges they had, they had a blog talking about, you know,
1554110	1559390	political things in their country and they ran the blog on WordPress, which I guess is what everybody did.
1559390	1560330	So they had two problems.
1560330	1565970	One of them was you can DDoS the WordPress and now nobody can read that party's blog.
1565970	1574710	And the other problem was, it's WordPress, so you just break in and you write the Iranian Cyber Army was here and now nobody trusts that political party quite as much.
1574710	1587810	So I was talking to the folks who were helping to run this and we realized that this would be actually a great use for onion services where we gave them, we hooked them up with a static gigabit connection in the U.S.
1587810	1592270	so that the static version of the page would be hard for people to overload.
1592370	1597810	And then for every editor of the WordPress blog, we gave them a different onion address.
1597810	1613310	And that meant when a certain person disappears and you're worried they're in a basement having their fingernails torn off or whatever is going to happen, that person doesn't know where the WordPress server is and nothing that you can extract from him is going to help you find out where to attack it.
1613310	1623590	So in that case, it's an example of reducing surface area so that it's not about a website that everybody can reach and you hope that the bad guys don't also reach it.
1623590	1627430	It's about separating who knows what in an opposite kind of way.
1629210	1645830	And I guess the other example going on from that same Iran story, I was talking to one of those people, I guess back in 2010, 2011 or something, and he was telling me that he had been doing a bunch of trainings in Iran of various people and he taught them all,
1645830	1653430	here's how you use open proxies, here's how you use VPNs, here's how you use Tor, here's how you use other circumvention tools.
1653430	1660930	And then he realized one day that everybody he had taught anything other than Tor to was now dead or in jail.
1661230	1666790	And he realized now it is time to only teach Tor because the other ones are really not appropriate.
1666790	1686450	So there's a whole talk there of how do you convince the people in these situations that, yeah, their government isn't really that good right now at surveillance but the government is working really hard to become better and you don't know when that transition is going to happen so it's important to use the more safe tools by default from the beginning.
1687110	1691330	Here I am telling that story about Iran but the same story applies here in the U.S.
1691330	1710230	where the government is maybe not as good as it wants to be at surveillance but they're working hard to become a lot better so it might be important, just as important for these communities here to think through how do we be safe by default so later when we're surprised we turn out to not have a bunch of data trail behind us.
1710230	1712910	Okay, so that was on the Iran side.
1713170	1715270	Let's talk a little bit about Russia.
1715330	1727150	So back when Russia was invading Ukraine back in, I think it was December 2021, so before the invasion, they ended up blocking a bunch of different pieces of the Tor protocol.
1727150	1738930	They blocked all the public relays, they blocked many of the default bridges, they even blocked Snowflake which is a protocol that uses WebRTC and they ended up blocking Snowflake by blocking domain fronting.
1738930	1741850	So how many people here know what domain fronting is?
1741850	1744710	I see a couple of hands but quite a few but okay.
1744710	1755590	So domain fronting is a cool trick for getting around censorship and the idea is let's say you have some large HTTPS website that the sensor doesn't want to block.
1755590	1770470	So you do a TLS connection to that website and on the outside in the parameter called the SNI server name indicator, you specify an innocuous domain name, like something that's too big to block that nobody would care about.
1770470	1779610	But once you have done that TLS connection, inside that encrypted tunnel, you then say host colon whichever other domain you wanted to go to.
1779610	1787170	And for a bunch of CDNs back then it was Azure and Amazon and Google and CloudFlare and CDN 77 and so on.
1787190	1797370	They allowed this trick where they didn't actually make sure that the domain that you say you're asking for on the outside matches up with the actual domain that you're asking for.
1797370	1803230	So that meant that you can pretend to be going to Skype.com or something but actually you're tunneling your traffic through Tor.
1803250	1817650	And that was the way that Snowflake worked where as the first step for Snowflake, the censored user does this domain fronting technique in order to say hello, I'm a censored user, here's my IP address, I want to connect back from one of the volunteers.
1818250	1822390	But Russia blocked this somehow and we're like wait a minute, how did they do that?
1822390	1824910	And the goal is we picked like a big domain.
1824910	1826610	It was what was it called?
1827010	1830490	Ajax.aspnetcdn.com.
1830490	1835470	So this is a website that has all the JavaScript on it that all the other websites on the Internet use.
1835570	1841270	So surely they wouldn't be willing to block a domain that's so integral to the rest of the Internet .
1841530	1845310	But yeah, it turns out that Russia just blocked the whole thing.
1845450	1847810	And I'm like, oh my God, they blocked the front domain.
1847810	1850170	That was really gutsy of them.
1850170	1854090	And then we looked deeper and it turns out no, they blocked it by IP address.
1854270	1859010	And because Azure uses GeoDNS, they blocked all of Azure.
1859570	1867390	So this is my no shit let me tell you that story about the time I got Russia to block all of Azure for a day accidentally.
1867470	1874610	And I can't imagine that they actually thought through and said I accept the collateral damage but we're going to do this anyway.
1874610	1880510	It seems much more likely they ran a tool, they saw where it connected, they're like, this is an IP address, let's shut it down.
1880510	1888290	And they had no idea they just turned off Skype login, like Microsoft.com, like whatever else is hosted on Azure at the time.
1888290	1894150	So that was an example where, again, things don't quite go the way that you expect them to go.
1894610	1913970	So to a different country, I was in Germany years ago meeting with the German foreign ministry and they were trying to figure out should Europe pass a law outlawing like American and European companies selling surveillance tools to the Middle East and to Russia and China and so on.
1914110	1920910	And it was a weird meeting because it was a bunch of policy people and politicians and lawyers and I was the technical person there.
1920910	1926770	So periodically they would lean over and be like, hey, Roger, what does the developer community think of this topic?
1926850	1933330	And here I am trying to like explain what every person in this room would be answering to that question.
1933330	1935890	And I'm only one person so I did what I could.
1935890	1947010	But one of the interesting stories that I got after that, I was talking to a telecom engineer from Dubai and we'd been arguing about like having back doors and routers.
1947010	1951010	They're not called back doors, they're called lawful intercept by our government.
1951010	1957670	But basically it's a back door and a router and you're relying on the local like legal infrastructure.
1957750	1963830	You're relying on the judges to say yes or no on whether you can use the back door and the router.
1964110	1967470	And he was explaining, look, I'm in the UAE.
1967750	1971790	I've got the same routers you've got because you mandate back doors in them.
1971790	1979390	And I plug my router in and my like Emirati guy who's in charge of everything comes over and says, what's that port?
1979390	1981310	And I say, oh, that's the lawful intercept port.
1981310	1982830	And he says, I am the law.
1982830	1983810	Plug it in.
1984070	1993170	So part of the important lesson here is reusing legal assumptions that aren't really working in the U.S.
1993170	2004690	but we can at least pretend they are in a different situation where they really don't work is a big problem that our governments have been continuing to have that problem.
2004690	2010610	So we keep seeing more lawyers and politicians saying, no, no, no, let's undermine everything.
2010610	2015510	Let's break end to end encryption and don't worry because we have rule of law here.
2015510	2017930	So we'll never break our own laws.
2017930	2020790	We'll never look at the traffic we're not supposed to look at.
2020790	2022990	So that doesn't work in the U.S.
2022990	2027390	and it especially doesn't work in some other situations.
2028090	2028490	Okay.
2028490	2033190	So let me tell you a couple of last stories more on the fun side.
2033190	2039090	So I was watching Ed Snowden do his NFT and I'm just as cool as Ed.
2039090	2040890	I could do an NFT of my own.
2040890	2046210	So we did an NFT and we sold it for $2 million, which we had really good timing.
2046210	2047630	We had really good people.
2047630	2050510	I mean, nobody is actually buying the thing that we're selling.
2050510	2053970	They're doing a donation to Tor and this is the excuse that they were doing.
2053970	2062770	So we ended up selling the very first private key for the very first onion service that I made back in 2004 when I was first building onion services.
2062830	2069750	And that private key, it's like a, so it's a 1024 bit RSA key, which is already kind of bad.
2069750	2077530	And the onion address at the time is the first 80 bits of the SHA-1 of the 1024 bit RSA.
2077530	2083750	So basically every piece of that sentence is bad news in terms of good crypto systems these days.
2083750	2092790	But this was like a 20 year old design and 20, 25 years ago it made sense to be using SHA-1 and RSA 1024 and so on.
2092790	2099830	But we've been phasing out that whole older onion service design with the crappy crypto and moved up to some better ones.
2099830	2103530	And I figured that was the perfect time to sell the very first private key.
2103530	2114650	So we did that and a great group named Pleaser Dow did a big donation to Tor, which really, like before that we were wondering the pandemic has just started.
2114650	2116190	Our funding has just gone to shit.
2116190	2121110	What are we going to do when governments don't fund and people are all getting laid off?
2121110	2124810	So that was really helpful to have a big donation right then.
2124810	2131690	But the fun part of that story was then the Pleaser Dow people invited me to their nightclub party.
2131830	2134570	And at first I'm like, no, I'm not going to go get COVID at your party.
2134570	2135350	No thanks.
2135350	2140750	But then it turns out that that was right at the time when New York City had the COVID vaccine cards.
2140750	2141950	So everybody was going to be checked.
2141950	2145590	So I'm like, okay, you scheduled this thing like three blocks from where I live.
2145590	2146410	It's fate.
2146410	2147390	I should go.
2147410	2153610	And I'm used to going to like engineering technical places and I can teach people about Tor and privacy and so on.
2153610	2154670	Here I am doing it now.
2154670	2156270	But this was a different situation.
2156270	2158170	There were three categories of people there.
2158170	2162770	There were the cryptocurrency bros who wanted to like further their pyramid schemes.
2162950	2167270	There were the finance bros who wanted to take money from the cryptocurrency bros.
2167390	2169410	And there was the art.
2169490	2171090	And I was the art.
2171410	2174830	They're like, let me introduce you to Roger, who I just bought for $2 million.
2175050	2178190	And I'm like, well, that's, that's not how I would have framed it.
2178190	2179970	But yeah, that's not wrong.
2180370	2188510	So and there were other interesting art people there, like Nadia from Pussy Riot was also the art that they had bought like an NFT from.
2188510	2195610	And I got to talk to her about stories of apparently when so they did something that pissed off Putin.
2195610	2201370	And they for three weeks stayed in Moscow moving from place to place, always using Tor.
2201370	2209170	And the Russian secret police who were instructed by Putin to go find those people failed to find them for three weeks because they were using Tor.
2209170	2212450	And then one day one of them didn't use Tor and then they got arrested.
2212650	2216190	So that's a, that story happens over and over also.
2216190	2219730	So it was, it was fun to hang out with the other art in that situation.
2220710	2221190	Okay.
2221190	2228970	And then the last one that I wanted to talk about is doing this sort of Tor talk to other DEF CON audiences.
2228970	2233110	I was talking to Jeff Moss, I guess, I don't know, five or 10 years ago.
2233110	2238490	And I was trying to explain like, I'd love to go to China and I'd love to reach the audience there.
2238710	2242210	And I don't think that I, I don't think it makes sense for me to go to mainland China.
2242210	2243910	Like it would probably be fine.
2243910	2248230	But, but what if it isn't, but I mean, you've got this DEF CON Beijing thing.
2248230	2255570	So can't, wouldn't it be great if I could like go do a Tor talk at DEF CON Beijing, but I'm not sure if it would be safe.
2255570	2256830	Is there a way to make it safe?
2256890	2261430	And Jeff's like, well, the, the, the DEF CON Beijing guy is like two tables down.
2261430	2262510	Let's just go ask him.
2262830	2265310	So I, I go over and I, I do my pitch.
2265310	2266290	I'm like, hi, I'm Roger.
2266290	2272070	I want to, I want to go to Beijing and, and talk to the DEF CON audience about Tor, but I'm not sure how we can make this safe.
2272070	2275490	Is there a way to, to make this so that I don't end up arrested?
2275490	2278090	And he's like, yeah, we're, we're totally going to make it work.
2278170	2280330	Just never talk about censorship.
2280370	2283190	Only talk about privacy and we can make this work.
2283330	2284590	And I'm like, awesome.
2284590	2286710	That, I, I, I can totally work with that.
2286710	2288450	Like we don't have to talk about censorship.
2288530	2290450	There are a bunch of important privacy topics.
2290450	2293670	We can frame this for the, like the China audience.
2293950	2298550	And so I give him my card and I'm like, please contact me and, and we'll find a way to make this work.
2298550	2299030	I'm serious.
2299030	2300010	I really want to go.
2300010	2306650	And then he looks down at my card and he pauses for like 30 seconds and then he says, and don't mention Tor either.
2307990	2314030	And, and then I'm like, okay, I, I guess this isn't actually going to work the way I was hoping it was going to work.
2314030	2326270	So I guess one lesson there is if you know an audience that really needs to hear from Tor, maybe in a situation where we, the like Western Tor people can go to, let us know.
2326270	2327810	We'd love to help.
2327810	2337790	And we have contacts around the world who might be more appropriate for doing Tor talks or trainings or something in, in various other parts of the world.
2338130	2345730	So I've got a bunch of other stories that I can talk about and I think I'm going to save some of them for next time.
2345730	2351010	For example, that time that I went to GCHQ right soon after the Fort Meade talk.
2351230	2354330	And I didn't actually know I was going to GCHQ.
2354330	2358590	I met a great, like great seeming privacy engineer at a privacy conference.
2358590	2361790	And he's like, you've got to come talk to my, my organization.
2361810	2367150	And when I was on the train towards Cheltenham, I'm like, wait a minute, what, what is in Cheltenham?
2367270	2369270	What have I just signed myself up for?
2369270	2380770	And at the time I'm like, okay, I'm going to do, I'm going to do a talk that is only like, I want to be, you know, friendly and technical, but I don't want to give them anything that's going to help them in any way.
2380770	2394570	So I'm going to, I decide I'm going to do a talk about like censorship in China, the arms race, the deep packet inspection arms race where China's trying to find ways to block us by protocol and we're trying to get unblocked and like, surely that's not going to help the British like intelligence world.
2395010	2405070	And then we learned from the Snowden documents that the X key score project inside NSA and GCHQ is a surveillance based DPI engine.
2405310	2407090	So it's a different arms race.
2407090	2411590	It's a surveillance deep packet inspection, not a censorship deep packet inspection.
2411590	2421730	But it turns out I went to England and, and did a talk to the British like intelligence people about the topic that they were probably actually working on.
2421730	2429770	And so there's, there's definitely a lesson there of you can think that you're choosing an innocuous topic but, but sometimes you screw up.
2429770	2430270	Okay.
2430270	2433310	In the last couple of minutes, two, two last thoughts.
2433310	2438670	One of them is EFF has been running a campaign to get tour relays running in universities.
2438670	2442650	And we started the campaign two years ago with eight universities.
2442650	2445670	And we are now up to 37 different universities.
2445670	2447810	We just added , thank you.
2447810	2448930	And thank them.
2449310	2451790	We just added UCSD.
2451790	2455450	We added the National Research and Education Network for Morocco.
2455450	2462010	So like the, the organization that provides internet connections to universities in Morocco is running a tour relay.
2462010	2466870	We are in the process of adding one in Technical University Dresden in Germany.
2466870	2474130	And we have a bunch right now in MIT and CMU and Michigan and University of North Carolina.
2474770	2477150	And, say it again?
2477510	2480170	Some of them are exits and some of them are not.
2480170	2482150	So MIT has some exits.
2482150	2484450	Waterloo in Canada has some exits.
2484470	2485870	Michigan has an exit.
2485870	2487330	UNC has an exit.
2487350	2488930	CMU has an exit.
2488990	2490350	So some of them are.
2490350	2491630	And you can run either one.
2491630	2500310	So if anybody here is connected to a university, or it doesn't have to be a university, we have the equivalent of a junior high in Switzerland running an exit relay.
2500310	2502610	And it's because the sysadmin there set it up.
2502610	2505010	And that's just what you do in his country.
2505010	2510330	So if you're connected to an educational institution, please contact me afterwards.
2510330	2515710	I would love to help you help EFF further that particular campaign.
2515710	2523270	So they have these awesome challenge coins that they made that I'll show you later with these cute little onions jumping rope.
2523270	2526670	So do it for the human rights or do it for the shiny coin.
2526670	2528350	Whichever one works for you.
2528370	2531250	And with that, I'm close to out of time.
2531250	2535270	I'm going to stand down here and answer all of your questions.
2535390	2542230	And I'd love to hear from your perspective how the whole war stories, don't use slides, just tell stories thing goes.
2542230	2550390	And most importantly, after this, I'm going to lead as many of you as want to come over to the tour booth in the nonprofit vendor area.
2550390	2557390	And I will stand around in a bright green shirt, easy to spot, answering all of your tour questions until you have no more tour questions.
2557390	2559490	So thank you and talk to you soon.
