[00:02.880 --> 00:03.280] Okay. [00:03.460 --> 00:03.840] Hello, everyone. [00:03.980 --> 00:05.960] Thank you all very much for coming out to my talk today. [00:06.380 --> 00:10.680] On a Sunday afternoon, I want to say thank you very much to the Holt people for having me out here. [00:10.960 --> 00:22.180] It's a tremendous honor of mine to be speaking up here on the stage under the banner of a conference, which so many people whom I respect and admire tremendously have spoken at or are speaking at now. [00:23.980 --> 00:27.200] This talk is TOR, the Dark Arts of Attack and Defense. [00:27.380 --> 00:33.740] We're going to be talking about some practical attacks on the TOR ecosystem as well as some defensive measures that operators can take. [00:34.560 --> 00:38.320] I'm EOF, or End-of-file, if you're not into the whole brevity thing. [00:38.900 --> 00:39.680] My real name is Hunter. [00:40.540 --> 00:41.860] That's just my mundane name. [00:42.040 --> 00:43.120] It doesn't matter what the hell you call me. [00:43.180 --> 00:44.480] You can call me Susan if it makes you happy. [00:45.740 --> 00:46.600] Actually, don't do that. [00:46.680 --> 00:47.820] That's a little kinky for me. [00:48.800 --> 00:49.800] But who the hell am I? [00:49.860 --> 00:50.920] Why should you care what I have to say? [00:51.900 --> 00:53.920] I'm basically just some random guy. [00:54.280 --> 00:56.480] I'm not affiliated with the TOR project in any way. [00:56.700 --> 00:58.240] I really respect the work that they do. [00:58.520 --> 01:00.140] I just don't have anything to do with them. [01:00.620 --> 01:06.260] My background is in pen testing, security research, net sex, admin type stuff. [01:07.660 --> 01:09.400] I consider myself a hacker. [01:10.020 --> 01:19.880] I think it's important to clarify what I mean when I say that because I think, unfortunately, that term has been distorted and perverted, not only in the media, but in the cybersecurity industry. [01:20.480 --> 01:26.560] When I say I'm a hacker, I mean that I'm someone who enjoys playful cleverness. [01:27.440 --> 01:30.460] I like asking questions and refusing to stop asking them. [01:31.020 --> 01:33.700] I mean, you could ask ten different people what does being a hacker mean. [01:33.800 --> 01:35.060] You'd probably get twelve different answers. [01:35.360 --> 01:43.320] But I put it as a separate point because being a hacker has absolutely f*cking nothing to do with what your job title is or what letters you have after your name. [01:45.080 --> 01:46.680] So why would I want to give this talk? [01:47.800 --> 01:59.180] Well, I think that, fundamentally speaking, I think that the freedoms of privacy, freedom of expression online, anonymity, so on and so forth, these are more than just online rights. [01:59.420 --> 02:01.280] I think that they're fundamental human rights. [02:01.940 --> 02:04.940] But a right is not a right if someone can take it away from you. [02:05.820 --> 02:10.940] So rights stay our rights by virtue of our ability to defend those rights. [02:11.620 --> 02:16.160] Some of the ways that you can defend your rights against the surveillance machine is by using software like Tor. [02:16.900 --> 02:25.120] But using software is not necessarily enough because, just as you would seek to exercise your rights, there are entities out there that would seek to subvert those rights. [02:25.120 --> 02:30.540] So you need to understand the security of the software that you're using and understand how to use it in a secure way. [02:31.080 --> 02:37.420] I also want to give this talk to showcase some examples to help maybe inspire further security research on the Tor ecosystem. [02:39.680 --> 02:41.860] A brief outline of some of the things we're going to be talking about. [02:42.140 --> 02:49.700] I presume that if you're here today and you're at this talk, you probably have at least a basic level of understanding of what Tor is and how it kind of works. [02:49.900 --> 02:53.260] So we'll just do a brief overview of how it functions. [02:53.880 --> 02:55.920] Talk about some of the limitations of it. [02:56.700 --> 02:58.820] Some of the motivations an attacker might have. [02:59.240 --> 03:03.940] Explore some of the different components of the network ecosystem that you might target for attack. [03:04.680 --> 03:09.400] Take a quick look at a couple case studies in recent years and finally wrap things up with some defensive measures. [03:11.160 --> 03:14.140] What this talk is not, I just want to get this out of the way straight up. [03:14.700 --> 03:16.620] There's no Tor 0-day here today, guys. [03:16.800 --> 03:18.000] Sorry if you came out here for that. [03:18.640 --> 03:20.420] I'm not going to be talking about cracking encryption. [03:21.100 --> 03:22.560] Not a lot of spy thriller stuff. [03:22.740 --> 03:33.520] I know sometimes certain media outlets like to sensationalize stories involving privacy and encryption with narratives about espionage, which is useful sometimes, but that's just not what this is. [03:34.300 --> 03:40.520] And try to limit the discussion about the dark web, deep web, deep net, dark net, whatever the hell you want to call it. [03:41.560 --> 03:47.980] Unfortunately, when looking at practical examples of Tor security, there's not a lot of other places to look, so we do have to look at it a little bit. [03:49.840 --> 03:51.280] So just a very brief overview. [03:51.400 --> 03:54.700] As I say, I assume everybody here is probably at least basically familiar with it. [03:55.300 --> 03:56.380] How does Tor work? [03:56.500 --> 04:04.040] This is a slide which you may have seen before, depicting a Tor connection to just a basic site on the Internet. [04:04.220 --> 04:07.900] You have the client initiates the connection to an entry guard. [04:08.320 --> 04:10.160] It's then forwarded through some hops. [04:10.300 --> 04:16.600] There's some encapsulation and encryption before it gets spat out the other end, and then eventually comes back to the same circuit. [04:18.840 --> 04:28.340] The way it functions is encapsulating these, like the layers of an onion, so that none of the nodes can see what the actual content is or know the originating source. [04:31.040 --> 04:34.120] Onion services are a little more complicated in how they work. [04:34.260 --> 04:36.880] Just a very, very high level overview of how they function. [04:38.060 --> 04:42.420] You have an onion service that chooses a series of entry points. [04:42.780 --> 04:44.760] It then publishes these to a descriptor. [04:44.940 --> 04:55.640] When a user tries to access that onion service, they retrieve the descriptor from the distributed hash table, initiate a connection to the rendezvous point, and then utilize that channel for communication. [04:57.720 --> 05:01.520] Why would an attacker target the onion ecosystem? [05:02.260 --> 05:03.500] There are a few different reasons. [05:03.800 --> 05:13.460] Obviously, data theft in the case of onion services that are maybe, for example, illegal marketplaces that are dealing with high levels of cryptocurrency. [05:13.460 --> 05:17.460] They may be motivated to steal cryptocurrency or steal other data. [05:18.840 --> 05:25.420] Recovering metadata, targeting nodes or things like that to see what connections are made to this host, from where, when, for how long. [05:26.040 --> 05:27.260] Spying on communications. [05:28.200 --> 05:31.820] Just trying to see what the operators are doing, who they're talking to, what they're talking about. [05:32.380 --> 05:33.140] Law enforcement. [05:33.360 --> 05:40.640] Law enforcement may have legitimate cause to target onion services and users in the case of child abuse material and so forth. [05:42.380 --> 05:42.860] Defacement. [05:43.020 --> 05:43.800] Sometimes, you see that. [05:44.380 --> 05:52.320] Competing services in the ecosystem will, you know, hack one and put it in, you know, hacked by elite hacks or squad or whatever. [05:54.140 --> 05:59.980] Furthering additional attacks, so network-level attacks or taking over an onion service to try to target the users. [06:01.040 --> 06:06.400] And, of course, the traditional kinds of things we always see, like dissemination of spam, malware, botnets, download service. [06:07.980 --> 06:10.140] Some of the things that Tor cannot protect you from. [06:10.900 --> 06:14.580] It cannot protect you from what's called a global passive adversary. [06:14.720 --> 06:19.380] If you have someone that can see everything coming in and out of the network, it can't protect you from that. [06:19.980 --> 06:22.080] It can't protect you from malware on your workstation. [06:22.460 --> 06:26.040] That maybe seems obvious to people in this room, but I've seen a lot of questions about that online. [06:26.360 --> 06:33.920] If you have a keylogger on your machine, it doesn't really matter if what you're sending out is encrypted if some attacker is stealing it before doing it's sent. [06:34.520 --> 06:35.820] It can't protect you from the Borg. [06:36.100 --> 06:38.260] You will be assimilated if you encounter the Borg. [06:39.200 --> 06:49.880] And it cannot protect you from yourself, which seems kind of silly, but if you're using it in an irresponsible way, you're going to mess up and you're going to get de-anonymized or worse. [06:51.660 --> 06:53.980] So a brief overview of network-level attacks. [06:54.500 --> 06:58.840] In researching this, I found that a lot of network-level attacks have been researched really thoroughly. [06:59.600 --> 07:03.000] And they're absolutely awesome and they're definitely worth researching. [07:03.500 --> 07:06.280] But due to time constraints, I couldn't do a deep dive in any of these. [07:06.520 --> 07:10.300] They basically function around a couple of different strategies. [07:11.540 --> 07:17.860] Different kinds of correlation attacks, trying to correlate data coming out of the network with the data that was sent in or vice versa. [07:19.860 --> 07:21.720] Performing analysis on it and so forth. [07:22.040 --> 07:28.160] Discovering the entry point of a user or an onion service to try to uncover where it originated. [07:29.240 --> 07:30.020] Timing attacks. [07:31.300 --> 07:36.120] Attacks by putting a lot of malicious nodes on the network to further other attacks. [07:36.800 --> 07:39.840] Men in the middle, in the case of malicious exit relays. [07:41.240 --> 07:42.440] And of course, denial of service. [07:43.200 --> 07:48.640] Fingerprinting, looking for ways in which a service is unique or that its network sac is unique. [07:48.740 --> 07:51.720] Things that are unique to it that can be used to help you de-anonymize it. [07:52.200 --> 07:53.860] And then, of course, good old-fashioned exploits. [07:53.860 --> 08:01.960] I mean, you know, owning a service in the hidden service or an exploit against the Tor service itself. [08:03.940 --> 08:04.940] Attacking the browser. [08:08.140 --> 08:14.180] So browsers make a very attractive target for an attacker because they provide a very large attack surface. [08:14.660 --> 08:21.100] If you consider all the things that a modern web browser does, there's a lot of intricate moving parts and sometimes they're quite delicate. [08:22.520 --> 08:28.580] The interesting thing about the fundamental technologies of the web is that they weren't really designed with privacy and anonymity in mind. [08:28.760 --> 08:36.020] If you consider when you use a regular web browser to go to a site, it's perfectly ordinary that the site knows where that connection originated. [08:36.620 --> 08:40.620] In the case of Tor, though, that could be a really serious problem if the site knows where the request originated. [08:41.220 --> 08:52.020] So there's this interesting additional, I don't know what you'd call it attack surface of not just traditional browser-based attacks, but actually inducing the browser to maybe make a request. [08:52.280 --> 08:59.220] Something as simple as that that doesn't use Tor or give it to give up some kind of information that's unique to it or fingerprintable. [09:01.760 --> 09:02.360] JavaScript. [09:03.000 --> 09:07.120] JavaScript is a horrible abomination from the beyond. [09:07.340 --> 09:09.200] It's caused untold misery and sorrow. [09:10.440 --> 09:15.360] Some of the more recent Tor browser exploits that I came across utilized JavaScript. [09:16.060 --> 09:20.600] JavaScript is attractive for attackers because it makes it easy to do things like keep spraying. [09:21.720 --> 09:24.840] There are a couple of exploits that were linked to law enforcement. [09:26.640 --> 09:29.680] But it's not just about memory corruption and code execution. [09:29.900 --> 09:30.720] There are other things as well. [09:31.160 --> 09:37.480] Things like using JavaScript to glean information from a browser that's unique to that browser or unique to the system on which it's running. [09:38.440 --> 09:45.640] And then JavaScript injection, not just talking about cross-site scripting, for example, but injecting JavaScript through a malicious relay. [09:46.820 --> 09:48.300] JavaScript is not the only culprit, though. [09:48.920 --> 09:51.440] And disabling JavaScript is not a cure-all. [09:51.860 --> 09:54.600] There have been some interesting attacks that have not used JavaScript in the past. [09:54.740 --> 09:56.860] There was an attack in 2017. [09:57.180 --> 09:58.480] It was called tormoil. [09:58.900 --> 10:02.020] Basically using a file URL. [10:03.300 --> 10:04.780] Caused an IP address leak. [10:05.500 --> 10:11.640] There's an interesting bug that I think only affected really limited versions of the browser in, like, specific time frame. [10:11.880 --> 10:17.500] But it's still interesting to think about an attack outside of the traditional attack model we think about in browsers. [10:17.940 --> 10:35.900] Essentially, it was possible to, if you operated a malicious relay, exit relay, and you had a spoofed or valid TLS for add-ons at Mozilla.org, you could spoof the response back to the browser's auto-update and get it to download a malicious extension. [10:36.640 --> 10:38.020] So it's kind of an interesting attack. [10:39.600 --> 10:41.320] Attacking Onion services and infrastructure. [10:42.340 --> 10:45.560] You know, there's really nothing magical or special about them. [10:46.500 --> 10:53.260] Just following a pin testing methodology, looking for misconfigurations, looking for unique identifiers. [10:53.440 --> 11:01.580] Things like service banners, HTTP headers, things like that that you could plug into Shodan and search for and uncover. [11:02.200 --> 11:03.960] There was one interesting case I came across. [11:04.300 --> 11:05.560] I can't remember the name of the market. [11:06.360 --> 11:12.660] It was an illegal market that had decided it would be a good idea to put the name of their illegal market in the HTTP response header. [11:13.920 --> 11:17.840] So someone searched for that on Shodan and uncovered the real IP. [11:18.020 --> 11:21.020] And I don't know what happened to those guys, but that's an example of a bad idea. [11:21.800 --> 11:27.300] If it's running as a web application, I mean, look for basic things like your OSP top 10 type bugs. [11:27.880 --> 11:29.720] Injection, you know, that kind of stuff. [11:30.560 --> 11:34.660] And also keep in mind that your end goal may not necessarily be remote code execution. [11:35.220 --> 11:41.140] Perhaps maybe just inducing the service to initiate a request that doesn't use Tor might be enough. [11:41.840 --> 11:47.340] And there are tools like Onion Scan that can perform some real basic scanning to look for low-hanging fruit and things like that. [11:49.900 --> 11:50.860] Attacking the user. [11:51.540 --> 11:58.460] Those of you who work in security probably know that the weakest link in the security chain is usually the user, unfortunately. [11:59.360 --> 12:04.820] A lot of attacks that we've seen on users in the Tor ecosystem kind of fall under the umbrella of social engineering. [12:05.660 --> 12:09.300] Things like phishing, again, in the case of darknet markets and so forth. [12:10.800 --> 12:13.220] Cloning an Onion service, just creating a copycat. [12:13.500 --> 12:22.140] Maybe even, you know, creating a lookalike hash with something like Scallion to have it look more legitimate and induce people to visit it. [12:22.460 --> 12:26.720] An interesting thing about Onion addresses is that they ignore everything to the left. [12:27.000 --> 12:36.480] So you could have, like, you know, the first several characters mimic a legitimate Onion service, but it's actually your evil as f*ck Onion service. [12:36.800 --> 12:39.420] And somebody not paying attention might not notice that. [12:40.300 --> 12:44.880] Things like malicious files, getting people to download files and execute them outside of Tor. [12:46.040 --> 12:48.080] And then threading together OPSEC failures. [12:48.760 --> 13:07.620] Particularly in anonymous communities, maybe you're targeting an individual user, just looking at ways in which this person has made OPSEC mistakes, or spoken about themselves, or other things that you can kind of piece together to either begin the anonymizing them or gain enough information so that when you finally do uncover them, [13:07.760 --> 13:08.780] you have a case against them. [13:11.480 --> 13:12.740] Some interesting case studies. [13:13.500 --> 13:16.460] So each one of these could probably fill a talk in out of itself. [13:17.240 --> 13:20.200] And there have been a lot of talks about the Silk Road. [13:20.340 --> 13:22.020] It happened like 300 years ago, I think. [13:23.180 --> 13:30.380] But essentially, the operator of Silk Road, Ross Ulbricht, made a couple of careless OPSEC mistakes. [13:30.600 --> 13:35.500] He associated handles he had used previously with his Onion operations. [13:36.120 --> 13:42.720] The FBI was able to get the Silk Road service to give up its real IP through some mechanism. [13:43.140 --> 13:44.360] It's disputed how they actually did it. [13:44.560 --> 13:49.140] But basically, with all of that, they were able to build a case and he's not in prison. [13:54.960 --> 13:59.920] Operation Anonymous was another law enforcement operation against darknet markets. [14:00.260 --> 14:02.680] They took down Silk Road 2.0, among others. [14:03.000 --> 14:11.440] At the time, there was some speculation that it was like some kind of conspiracy or like the FBI had hired a university to do it. [14:11.700 --> 14:12.840] Not really sure what happened. [14:13.360 --> 14:19.340] I mean, and at the time, they said, like the FBI said that they had cracked like 400 services or something like that. [14:19.480 --> 14:20.940] And it was really far, far less. [14:21.080 --> 14:22.100] I think it was something like 27. [14:23.320 --> 14:29.940] And that's actually something that they do, is they purposefully spread fear and uncertainty and doubt about the network and try to undermine it. [14:31.240 --> 14:33.200] As in the case of Operation Bayonet. [14:33.380 --> 14:37.120] So Alpha Bay was another illegal market. [14:37.900 --> 14:40.400] It was operated by a Canadian guy in Thailand. [14:41.840 --> 14:46.300] He had also made some critical OPSEC mistakes that ultimately cost him his life. [14:46.580 --> 14:52.360] He had associated email addresses and handles and things like that with his illegal marketplace. [14:53.460 --> 14:59.360] When the police came to his house, they said that he was actually had the site up and was administrating it at that very moment. [14:59.680 --> 15:05.280] They also found documents with like his illegal proceeds and things like that in it. [15:06.400 --> 15:11.580] And once that was shut down, a lot of people fled to another competing market. [15:11.860 --> 15:16.200] But what they didn't know was that law enforcement had actually already infiltrated it. [15:16.800 --> 15:27.140] And they had done a number of things like induce users to download like a transaction summary that was actually a malicious Excel document. [15:28.460 --> 15:36.860] They had done things like put back doors in the encrypted chat so that, you know, you thought you were sending a PGP chat but it was actually being long as plain text. [15:37.440 --> 15:37.980] Excuse me. [15:39.740 --> 15:44.120] They like deleted all the images to try to get people to re-upload them so they could steal EXIF data. [15:45.100 --> 15:46.120] A lot of things like that. [15:46.220 --> 15:51.360] And it's actually part of their ongoing strategy to try to you know, as I said, spread fear. [15:51.440 --> 15:53.340] Make people think that Tor is broken or something like that. [15:53.440 --> 15:55.480] Which I think is shitty of them to do. [15:55.640 --> 16:01.100] But I think it goes to show that they don't have some magic spell they can cast to just de-anonymize anything. [16:01.600 --> 16:03.160] Or they probably wouldn't have to do that in my opinion. [16:04.320 --> 16:05.880] There are a couple of other things. [16:06.920 --> 16:09.660] Operation Torpedo and Operation Pacifier. [16:10.460 --> 16:15.440] These were operations against onion services that were child abuse sites. [16:15.880 --> 16:19.260] Essentially the FBI took them over and deployed what they called a NIT. [16:19.960 --> 16:21.700] They really love those acronyms, right? [16:22.440 --> 16:25.260] It was a network investigative tool technique. [16:25.840 --> 16:27.420] Basically what we would call an exploit. [16:27.700 --> 16:35.180] They delivered malware that induced the user's computer to make a request outside of the network and reveal their true IP address. [16:38.520 --> 16:40.720] Freedom Hosting was another site. [16:40.880 --> 16:44.320] This was a service for hosting onion services. [16:44.680 --> 16:46.660] It was attacked in a similar fashion. [16:47.400 --> 16:49.960] The feds used it to distribute malware in a similar way. [16:50.160 --> 16:53.600] Freedom Hosting 2 was another hosting service. [16:54.060 --> 17:00.700] In that case, I believe it was just a vigilante hacker took it over and they didn't use any kind of magic exploits or anything like that. [17:00.880 --> 17:04.820] If you go and actually read the write-up of what they did, which you can find online, they did a step-by-step. [17:05.180 --> 17:07.480] It's really just basic Unix privilege escalation. [17:08.520 --> 17:14.800] Kind of, you know, exploding misconfigurations, symlink bypasses and things like that. [17:16.260 --> 17:18.240] So, getting into some defensive measures. [17:19.840 --> 17:20.980] Hardening your onion. [17:21.700 --> 17:25.280] I mean, really basic server hardening gets you a long way. [17:26.680 --> 17:44.480] You know, removing unneeded services, hardening your logins, actually patching, disabling things you don't need, like directory listing server status, only listening on local host, removing any kind of unique identifiers like banners, service versions, [17:45.020 --> 17:46.800] server headers, things like that that might be unique. [17:48.260 --> 17:51.580] Protecting the keys so that people who steal them can't identify you. [17:52.420 --> 17:53.340] Only routing toward traffic. [17:53.580 --> 17:54.020] Isolating. [17:54.900 --> 17:57.420] Consider using like an isolating proxy or something like that. [17:58.240 --> 18:02.020] Avoiding leaks like DNS lookups or other kinds of protocol leaks that you might not think about. [18:02.900 --> 18:04.000] Actually monitor it. [18:04.240 --> 18:06.760] You know, see what's going on under the hood. [18:07.200 --> 18:09.220] Make sure you understand what's happening on your service. [18:12.670 --> 18:17.870] Consider using Unix sockets to avoid TCP or running the service in a CH route. [18:18.330 --> 18:21.090] And, of course, actually test it once you get it set up. [18:21.230 --> 18:24.630] I mean, if you're not a security person, find a friend who is and ask them to look at it for you. [18:27.910 --> 18:30.450] Security with the Tor browser is pretty straightforward. [18:30.670 --> 18:33.970] I mean, you want to use strict security settings, disable JavaScript. [18:35.010 --> 18:37.190] Unfortunately, I know that breaks a lot of websites. [18:37.970 --> 18:44.110] There are a lot of people out there that write sites that need, like, 100 megs of JavaScript just to render a f*cking news article. [18:45.010 --> 18:50.610] But, if you're doing things that might jeopardize your freedom, that's something that you need to accept. [18:51.250 --> 18:52.730] And, yes, there are trade-offs. [18:52.870 --> 18:54.230] It's inconvenient, but it's more secure. [18:54.670 --> 18:57.530] Don't mix your anonymous and your non-anonymous activity. [18:58.330 --> 19:07.030] Don't use Tor browser to go to some website, you know, where you're known, under an alias, post there and talk about stuff, and then come back to it under, you know, a regular browser. [19:08.010 --> 19:09.930] Be careful what you download over Tor. [19:10.070 --> 19:12.810] Don't download something, you know, sketchy and then run it. [19:13.270 --> 19:14.530] You know, you could get exploited. [19:14.910 --> 19:16.210] Have common sense, basically. [19:16.650 --> 19:19.890] And I know common sense isn't so common, but a little bit goes a long way. [19:21.830 --> 19:27.410] Some advanced techniques, not really actually so advanced, but using Tails, something like Tails. [19:27.550 --> 19:29.690] Tails is a live USB system. [19:29.970 --> 19:32.850] You could just plug it in, boot it up, and everything is going over Tor. [19:33.670 --> 19:36.990] You could configure a transparent proxy of your own, if you'd like. [19:37.350 --> 19:47.290] You could also use an isolating proxy, something that's... or physical isolation, and even to actually force everything through Tor in a separate exterior node. [19:48.910 --> 19:50.370] Dump your own traffic and check it. [19:50.670 --> 19:54.210] You know, once you've set these things up, don't just blindly trust that it's going to work. [19:54.370 --> 19:57.150] Actually, you know, run something and look at the traffic. [19:57.690 --> 19:58.530] Perform requests. [19:58.970 --> 20:04.290] Try to induce requests that you might not have thought about to get it to make requests outside of Tor. [20:04.470 --> 20:05.810] Just test it yourself. [20:06.110 --> 20:07.370] Set up a passive tap or something. [20:07.790 --> 20:12.610] If that sounds like too much work for you, you should really reconsider whatever it is that you're using that to do. [20:12.830 --> 20:16.070] Because if it's something that's going to jeopardize your freedom, it's worth the extra work. [20:18.290 --> 20:19.350] There are a number of trade-offs. [20:19.590 --> 20:21.290] I mean, there are a lot of different things you can do. [20:21.370 --> 20:22.870] This is from the Hoonix website. [20:23.110 --> 20:23.670] I love Hoonix. [20:24.190 --> 20:24.950] Great stuff. [20:25.670 --> 20:30.370] But depending on what configuration you have, there are a number of different considerations to take into account. [20:31.470 --> 20:33.910] Some of them protect you from some things and don't from others. [20:34.170 --> 20:39.510] I mean, it really just depends on your own needs and the level of security that's required for what you're doing. [20:42.210 --> 20:43.090] Operational security. [20:44.030 --> 20:44.470] So... [20:46.630 --> 20:51.470] Operational security I think kind of gets brushed aside a lot because we kind of take it for granted. [20:51.670 --> 20:53.350] We all think like, oh, I'm smart. [20:53.470 --> 20:53.930] I know what I'm doing. [20:54.450 --> 20:55.470] There's famous last words. [20:56.210 --> 21:07.890] And I think that it's been shown that a number of people who were, you know, quite successful at doing bad things probably thought they were untouchable and they ultimately got caught due to operational security mistakes. [21:08.870 --> 21:15.530] So the rule zero, the cardinal rule of OPSEC, if you ask me to boil everything down into one thing, it's shut the f*ck up. [21:16.650 --> 21:18.090] I mean, that's pretty straightforward. [21:18.330 --> 21:20.490] Don't, don't, just don't. [21:20.710 --> 21:21.390] Just don't. [21:21.850 --> 21:25.590] But no, but don't talk to people about things that you're doing that could jeopardize your freedom. [21:26.530 --> 21:36.130] I can't tell you how many times I've had total strangers come up to me like at a security conference and start telling me about things that they're doing that maybe could jeopardize their freedom and it's not a good idea to do that. [21:37.110 --> 21:38.750] Don't reveal operational information. [21:39.410 --> 21:40.550] This is an interesting one. [21:40.910 --> 21:51.270] You don't want to talk about, like in the case of anonymous communities and things like that, you don't want to talk about things that you have done, things that you are doing or things that you intend to do. [21:51.450 --> 21:54.250] And you also don't want to talk about what you're using. [21:54.390 --> 21:59.070] Don't tell people what software you use, what versions you use, you know, what your configuration is. [21:59.190 --> 22:01.550] That's just giving them more More information to target you. [22:02.970 --> 22:03.730] Trust no one. [22:04.890 --> 22:05.990] Don't trust me, certainly. [22:07.410 --> 22:08.930] But really, don't trust anybody on there. [22:09.030 --> 22:13.270] I mean, your friends in IRC are not going to go to jail for you, so don't trust them. [22:13.410 --> 22:15.350] I mean, don't trust the hidden service that you're visiting. [22:15.490 --> 22:22.690] For all you know, it could have been owned by law enforcement or, you know, it could have been owned by some kind of oppressive regime or something like that. [22:25.450 --> 22:27.350] Don't mix business and pleasure. [22:27.610 --> 22:36.310] If your activity that you're engaging in is something that is vocational, then you need to treat it with a degree of professionalism and recognize it as that. [22:36.450 --> 22:37.570] And don't start doing it for fun. [22:38.050 --> 22:43.810] If you use drugs or alcohol, you know, don't go do it while you're under the influence because you're gonna get sloppy and you're gonna make a mistake. [22:46.310 --> 22:47.330] Don't work from home. [22:47.550 --> 22:48.790] This is an interesting one. [22:50.410 --> 23:08.630] You know, there have been cases where, okay, so you're using Tor and we can't see what's going on, but let's say that we're investigating you and, you know, it can be seen that, okay, this person at this house is connected to Tor at this time and this alias is active in this IRC at this time. [23:08.890 --> 23:10.550] And there have been cases where that's actually happened. [23:11.950 --> 23:12.750] Be paranoid. [23:12.930 --> 23:14.630] I mean, again, that's just a big rule. [23:14.790 --> 23:16.110] It's just you have to be paranoid. [23:16.270 --> 23:20.170] In fact, I think the Grug put it best when he said you have to be proactively paranoid. [23:20.690 --> 23:22.510] Paranoia does not work retroactively. [23:22.990 --> 23:31.370] What's interesting about operational security is if you're conducting operations, you have to take on the role of a defender. [23:32.010 --> 23:34.890] And if you're in security, you understand how hard that actually is. [23:35.370 --> 23:38.410] Because the attacker, they just need you to make one mistake. [23:39.050 --> 23:40.270] They just need you to screw up one time. [23:40.570 --> 23:42.370] And that's really hard to not do. [23:42.870 --> 23:44.050] So you need to be paranoid. [23:45.170 --> 23:55.830] Compartmentalize, not just from a technological point of view, putting things that are, you know, that you're using for anonymous activity separate in separate machines, and so on and so forth. [23:55.950 --> 24:00.890] That way you don't, like, accidentally forget to enable Tor when you connect to that IRC or server that one time. [24:02.170 --> 24:03.790] But also compartmentalize your life. [24:03.910 --> 24:07.110] I mean, if you're engaging in activity that could jeopardize your freedom. [24:07.310 --> 24:09.030] And I'm not just talking about doing illegal stuff. [24:09.230 --> 24:19.690] I'm talking about if you're, if you're a leaker or a journalist or something like that, you want to keep that part of your identity separate from your real identity so that it's not correlated. [24:21.710 --> 24:22.850] Keep a clean house. [24:23.650 --> 24:26.230] You know, don't leave things lying around that could incriminate you. [24:26.990 --> 24:33.930] The Canadian guy in Thailand, you know, they show up, he's got my illegal drug money on it, you know, in an Excel doc. [24:34.550 --> 24:41.970] I mean, or if you're a journalist or a leaker and you've got documents that are really gonna piss some people off, maybe don't just leave them lying on your desk. [24:43.750 --> 24:44.750] Don't talk to the police. [24:45.250 --> 24:46.690] I hope that goes without saying. [24:46.950 --> 24:47.970] The police are not your friends. [24:48.390 --> 24:49.530] They're not there to help you. [24:49.710 --> 24:50.410] They're gonna lie to you. [24:50.730 --> 24:52.910] And they're going to try to get you to incriminate yourself. [24:53.130 --> 24:54.850] So never, never talk to the police. [24:55.150 --> 24:55.970] I'm not a lawyer. [24:56.550 --> 24:58.950] If you need a lawyer go get one, because I'm not one. [24:59.410 --> 25:01.990] But a basic rule is don't talk to them. [25:02.190 --> 25:04.350] If they try to get you to talk to Demand a lawyer. [25:05.610 --> 25:14.370] Don't get in a situation where other people have got power over you or are able to blackmail you in some way or get you to take risks for them. [25:16.930 --> 25:19.210] And finally, surveillance self-defense. [25:22.580 --> 25:24.000] This is the NSA logo. [25:26.780 --> 25:30.820] Surveillance self-defense is kind of a tricky thing. [25:31.380 --> 25:35.840] Because it's easy to make recommendations about, oh, you know, use signal, use Tor. [25:36.820 --> 25:39.180] But I don't think that that actually solves the problem. [25:39.340 --> 25:40.800] And I'm not saying that people shouldn't do that. [25:40.980 --> 25:42.840] And I'm not saying that we shouldn't write that kind of software. [25:42.960 --> 25:45.500] That's absolutely an incredible thing to do. [25:45.600 --> 25:47.280] And I have a lot of respect for the people that do it. [25:48.500 --> 25:53.640] But I think fundamentally, we have to understand that surveillance isn't going away right now. [25:53.900 --> 25:58.200] It's actually seems to have gotten much worse, at least here in the United States, in my recent memory. [25:58.960 --> 26:02.820] And I don't know that writing blog posts is going to fix it. [26:03.060 --> 26:11.560] So I think that what we need to do, or if you really, really want to piss them off, what you actually have to do is organize, like politically organize. [26:13.340 --> 26:16.440] Not just like disparate things and, you know, writing your congressman. [26:16.540 --> 26:17.240] I mean, that's important. [26:17.360 --> 26:17.780] Don't get me wrong. [26:18.020 --> 26:24.960] But I think actual political organization is one of the things that's going to have to happen for surveillance to stop at a fundamental level. [26:25.940 --> 26:30.500] Now, I'm not like a political activist or an organizer, so don't ask me how we do that. [26:30.640 --> 26:32.220] I don't have all the answers to what we did. [26:32.680 --> 26:36.180] But I see that as really the only way that it's going to go away. [26:37.460 --> 26:40.340] So I'm actually, like, really under time here. [26:40.880 --> 26:42.680] And I appreciate everybody coming out. [26:44.320 --> 26:46.640] Thanks to the TOR project for all the work that you guys do. [26:47.160 --> 26:48.420] Thanks for all the prior researchers. [26:48.720 --> 26:50.600] I'm really standing on the shoulders of giants with this. [26:50.760 --> 26:56.040] There's going to be a companion right up to this soonish, whenever I stop being lazy and put it up. [26:56.460 --> 26:57.820] If you want to stalk me on Twitter, go ahead. [26:58.500 --> 27:01.120] Otherwise, I think we have some time for questions. [27:01.320 --> 27:05.000] So if anyone would like to ask a question, be my guest. [27:15.690 --> 27:16.490] So thanks. [27:16.690 --> 27:17.990] Thanks for coming out and giving this talk. [27:18.290 --> 27:42.230] I'm curious on the client side, the TOR client side of hardening things, if this would be overkill or if anyone has ever done any research into writing SELinux policies for Firefox as a part of, you know, Tails or some kind of distribution that would give a little more of a, [27:42.230 --> 27:46.670] you know, mandatory access control kind of level of security around the TOR. [27:46.790 --> 27:56.670] Because you have those zero days and it seems like some of those exploits relied on things that we could stop with SELinux, even with the zero day president. [27:56.670 --> 28:04.770] Have you heard any talk about people trying to use SELinux or some other mandatory access control system to help fix that? [28:04.850 --> 28:05.130] Sure, sure. [28:05.430 --> 28:07.430] So yes, I have seen things about that online. [28:08.370 --> 28:09.810] I think that's a great idea. [28:10.110 --> 28:11.890] I would definitely love to see some stuff about that. [28:13.250 --> 28:25.370] One of the things that I see a lot is, like I said, isolating proxies so that in the event of like an exploit against the browser, those requests can't actually exit the network, like, because they're isolated physically. [28:26.070 --> 28:28.250] But I think that's actually, that's an awesome idea. [28:28.350 --> 28:29.290] I'd love to see more about that. [28:32.930 --> 28:39.410] I have a question about an attack on the hidden, on the onion itself. [28:39.790 --> 28:52.130] I am aware that the V2 onions are based on RSA 1024, which would be somewhat short if you consider like nation state actors. [28:53.530 --> 29:02.650] Do you have any evidence that anybody has actually, just brute forced, V2, RSA 1024 based onion? [29:03.310 --> 29:09.430] And if you do, would you know approximately how much computing power we're looking with and how many, how many GPUs? [29:11.670 --> 29:12.590] No, I don't. [29:12.730 --> 29:14.630] Or GPU hours, I'd say. [29:14.890 --> 29:15.150] Yeah. [29:16.090 --> 29:17.430] I'm not aware of that. [29:18.810 --> 29:19.810] I'm not aware of that. [29:20.030 --> 29:21.130] I don't think that that's been done. [29:21.310 --> 29:22.830] I haven't seen any evidence that's been done. [29:23.570 --> 29:28.010] And I'm not a crypto person, so I wouldn't be able to tell you, like, how long it would take. [29:29.490 --> 29:29.830] Okay. [29:29.830 --> 29:31.390] You don't need to be a crypto person. [29:31.510 --> 29:46.910] It's just, if you're like a system engineer, admin, and you're just kind of a vague idea on, like, kind of hash rate, and, you know, hash rate of cards, and how many you can shove into, like, a 4U rack, and then how many 4U racks you have in a cabinet, [29:47.070 --> 29:48.770] and how many cabinets you can have in a data center. [29:50.250 --> 29:50.590] Yeah. [29:50.590 --> 29:51.350] No, I'm sorry. [29:51.510 --> 29:53.090] I actually, I don't know the answer to that. [29:54.210 --> 29:54.910] I wish I did. [29:55.230 --> 29:56.910] I would definitely say to look into that. [29:57.110 --> 30:03.710] I'm sure there's, I'm sure that there are people who have put in documentation together on that, so I would look online for that, but I don't have that answer. [30:04.010 --> 30:04.430] All right. [30:04.510 --> 30:04.690] Thank you. [30:07.790 --> 30:08.330] Hi there. [30:08.450 --> 30:08.710] Thank you. [30:08.810 --> 30:11.330] I have two questions in slightly different areas. [30:11.930 --> 30:22.630] You know, you talked about the evidence of user-based attacks being really common by law enforcement, sort of as an indication that maybe the network has not been as broken as I want everyone to think. [30:22.670 --> 30:28.490] Is it possible that there's evidence of this breakage, but it's, you know, been sealed away from, you know, public documentation? [30:28.750 --> 30:29.370] I don't know. [30:29.530 --> 30:30.190] I mean, yeah, what the hell? [30:30.290 --> 30:32.470] Maybe they're paying, playing like four dimensional chess or something. [30:32.770 --> 30:33.170] I mean... [30:33.170 --> 30:38.530] I mean, if you've ever seen the wire, there's the idea that they're doing the wire tapping illegally. [30:38.790 --> 30:39.470] Yeah, absolutely. [30:39.650 --> 30:39.890] Absolutely. [30:40.210 --> 30:44.030] No, I, I, um, kidding aside, seriously, I, that is something that's crossed my mind. [30:44.270 --> 30:46.030] I don't really know the answer to that. [30:46.030 --> 30:58.030] Um, I, what I will say is that I don't know, to my knowledge, I have not seen any evidence that there is, like I say, some magic spell that law enforcement can cast to de-anonymize services. [30:58.330 --> 31:03.190] Um, I think if such a thing existed, someone would have found it, although maybe not. [31:03.410 --> 31:07.330] But, um, no, to my knowledge, there's no evidence that that's what's going on. [31:07.330 --> 31:09.570] Um, and thanks. [31:09.770 --> 31:25.070] And also, I was curious if you've ever seen a project or maybe know the feasibility of a project that would heuristically analyze your, um, you know, your, your proxy traffic and look for leakages that you would, would otherwise be, uh, you know, fatal in terms of privacy. [31:25.630 --> 31:26.870] No, I have not actually. [31:27.130 --> 31:28.070] Um, does such a thing exist? [31:28.290 --> 31:29.070] Uh, I, I don't know. [31:29.190 --> 31:30.850] I'm curious if anyone's worked on it. [31:31.050 --> 31:31.490] Grep. [31:31.770 --> 31:32.210] Anyone? [31:32.690 --> 31:33.130] Grep. [31:33.370 --> 31:33.810] Grep. [31:33.970 --> 31:34.450] Yeah, Grep. [31:37.590 --> 31:39.930] Okay, no, I, I, that's not something I had found. [31:40.130 --> 31:40.630] Okay, thanks. [31:40.910 --> 31:41.270] Thank you. [31:51.450 --> 31:56.190] Hey, pardon me if this is a new question, but I was just curious, at the bottom of one of your slides, it said to run into a root. [31:56.690 --> 32:00.010] What, uh, can you provide a little more technical reason of why that's more secure? [32:00.530 --> 32:09.150] Sure, so, like, um, a root, for example, um, in the case that, like, the service gets exploited, it kind of limits what's possible to be done from there. [32:09.970 --> 32:12.910] Um, I can get you some more information about that if you want to get with me after. [32:13.730 --> 32:16.030] I could give you some links to how that all works. [32:16.250 --> 32:16.690] Yeah, sure. [32:16.830 --> 32:17.030] Thank you. [32:19.930 --> 32:22.990] Any thoughts on comparing Tor to I2P? [32:23.550 --> 32:24.890] Um, compare contrast? [32:25.310 --> 32:25.870] Okay, yeah. [32:26.190 --> 32:28.710] Um, well, I2P, actually, I have not looked at it that much. [32:29.330 --> 32:31.070] Um, I am aware of it. [32:31.070 --> 32:34.250] I kind of know what it does, but it's not something I've actually researched a tremendous amount. [32:34.730 --> 32:37.190] Um, so I wouldn't really be able to tell you that. [32:43.520 --> 32:46.840] Okay, I think that's it, unless anybody else has anything. [32:48.960 --> 32:49.680] Thank you. [32:50.160 --> 32:50.640] Thank you. [32:51.180 --> 32:51.800] Thank you. [32:51.940 --> 32:52.160] Thank you very much. [32:52.160 --> 32:52.340] Thank you very much. [32:52.360 --> 32:53.100] Thank you very much.