1 00:00:00,000 --> 00:00:02,780 Thank you for all of your audience to attend this session. 2 00:00:03,220 --> 00:00:05,560 This is about Chinese security. 3 00:00:06,140 --> 00:00:07,280 Actually, I come from Hong Kong. 4 00:00:07,400 --> 00:00:11,540 I would like to share my personal experience on kinds of censorship 5 00:00:11,540 --> 00:00:16,740 to have kinds of East-Mid-West seminar and talk and much more sharing. 6 00:00:17,460 --> 00:00:22,140 Censorship is not just for China, but many countries or many nations have censorship. 7 00:00:22,500 --> 00:00:25,020 So that's the reason I would like to trigger the research 8 00:00:25,020 --> 00:00:28,560 and trigger our ideas how to protect our privacy. 9 00:00:30,900 --> 00:00:34,140 For me, I will talk about censorship overview, 10 00:00:34,460 --> 00:00:38,360 the tour and bridges from Jacob, and the Green Dam and Green Dam bus from John. 11 00:00:40,740 --> 00:00:42,860 Okay, there's no national secret. 12 00:00:43,920 --> 00:00:47,940 Is there any spies? Any China spies? Chinese spies? Taiwanese spies? 13 00:00:48,340 --> 00:00:50,860 No worries. All things from the Internet. 14 00:00:51,560 --> 00:00:52,080 Search. 15 00:00:55,220 --> 00:00:57,200 I've got my objective right now, right? 16 00:00:57,560 --> 00:00:58,700 Be relaxed, okay? 17 00:00:59,200 --> 00:00:59,980 Encourage telegrams. 18 00:01:00,000 --> 00:01:01,900 I'm going to talk about technical research and technologies in privacy protection 19 00:01:01,900 --> 00:01:07,420 and how we do the work out of censorship and share my personal experience with you guys. 20 00:01:08,780 --> 00:01:09,960 Okay, let's start. 21 00:01:11,600 --> 00:01:17,760 I work on penetration tests, like co-audit and training, and do the merit analysis. 22 00:01:18,160 --> 00:01:23,180 If some of you guys attend my Black Hat session about China made merit, 23 00:01:23,460 --> 00:01:25,420 then it would be hope you like it. 24 00:01:25,680 --> 00:01:29,200 And also I set up my research group, maybe study the exploit, 25 00:01:29,380 --> 00:01:29,980 and I'm going to talk about China made merit, and I'm going to talk about China made merit, 26 00:01:29,980 --> 00:01:30,340 and I'm going to talk about China made merit. 27 00:01:30,780 --> 00:01:31,020 Yeah. 28 00:01:32,600 --> 00:01:34,080 And this is what I've done. 29 00:01:35,260 --> 00:01:35,660 Censorship. 30 00:01:36,980 --> 00:01:42,900 This is, I will go through this list in 15 minutes, then in around 50 slides, 31 00:01:43,060 --> 00:01:46,060 then you will find it very, have a rhythm, okay? 32 00:01:47,700 --> 00:01:48,400 IP blocking. 33 00:01:49,160 --> 00:01:52,540 Actually, IP blocking is very, I mean, it's very easy one. 34 00:01:52,640 --> 00:01:56,020 It's a white listing, black listing, black listing, not block listing, right? 35 00:01:58,420 --> 00:01:59,760 And you will find that in 2002, 36 00:01:59,980 --> 00:02:03,360 you. And when you go to Google, then you will find it to the 37 00:02:03,360 --> 00:02:06,420 maze. You will find the excessive color of the, oh, 38 00:02:07,340 --> 00:02:11,980 sorry. Excessive color. This is the search engine in China. 39 00:02:12,360 --> 00:02:17,320 Okay? The Google, the blue one, the same. The fonts is the same. 40 00:02:17,460 --> 00:02:21,140 The bar, the location is the same. Yeah. Then we go to 41 00:02:21,140 --> 00:02:27,560 Google.com, you'll go to the TeamRen.com. Yeah. These are 42 00:02:27,560 --> 00:02:32,460 the kinds of DNS points in it. And, like, use points in the 43 00:02:32,460 --> 00:02:36,100 song file. Use the packet injection. And other issues 44 00:02:36,100 --> 00:02:41,400 about the root server issues. Especially for me in, I tried to 45 00:02:41,400 --> 00:02:45,600 connect to some China proxy in, proxy servers in Hong Kong or 46 00:02:45,600 --> 00:02:49,360 even I traveled to China. When I go to Facebook, actually we 47 00:02:49,360 --> 00:02:57,540 solved, we solved the IP 66.220.153 and 153. And 48 00:02:57,560 --> 00:03:02,200 it's the correct one. However, you'll find it here, the 93.46.89 49 00:03:02,700 --> 00:03:07,160 actually is a false one. I mean, it's not exist. They will do 50 00:03:07,160 --> 00:03:10,900 this kind of DNS points in it. There's a root server in the 51 00:03:10,900 --> 00:03:16,980 Internet. However, there's a news just in March. It's about 52 00:03:16,980 --> 00:03:20,380 when you go to the YouTube, Facebook, and the Twitter, you 53 00:03:20,380 --> 00:03:26,300 redirect to the servers in China. And also, like, after 54 00:03:26,300 --> 00:03:27,540 talking about DNS server, you'll find that there's a 55 00:03:27,560 --> 00:03:30,020 smtp server. We're talking about China product. Okay? China 56 00:03:30,020 --> 00:03:34,420 made product. It's great, man. You'll find the smtp server. 57 00:03:35,420 --> 00:03:43,920 You'll find that there's a withholding policy. Oops. The 58 00:03:43,920 --> 00:03:52,000 policy here, right? Okay? And there's also, like, how to 59 00:03:52,460 --> 00:03:57,520 un-audit e-mail. Audit e-mails. Then you could audit the, you 60 00:03:57,520 --> 00:04:06,820 know, user name. And also, like, the administrator could audit 61 00:04:06,820 --> 00:04:11,600 the e-mail, right? And got the user names. Right? Very good 62 00:04:12,260 --> 00:04:16,220 filtering. And of the keywords, yeah, you put any keywords as 63 00:04:16,220 --> 00:04:19,480 you like. This is my first time to find a server, smtp server, 64 00:04:19,620 --> 00:04:25,700 with this powerful censorship ability, capability. And some 65 00:04:25,700 --> 00:04:27,500 basic UDP and TCP records. This is my first time to find a 66 00:04:32,160 --> 00:04:35,400 server. So, I will not go through this. This is the basic 67 00:04:35,400 --> 00:04:40,760 TCP handshaking, right? Just handshaking. However, when I 68 00:04:40,760 --> 00:04:46,020 would like to do kinds of go to this website, appoday.com.hk, 69 00:04:46,200 --> 00:04:51,560 it is broke in China. Once I visit them, they provide different 70 00:04:53,100 --> 00:04:57,480 reset here. Reset, reset. Reset, reset. Reset, reset. Reset. Reset. 71 00:04:57,500 --> 00:05:05,280 reset my connection. And go to the, it is a type in the Chinese, it's about 1989 democracy 72 00:05:05,280 --> 00:05:15,240 campaign in Chinese. Then I got more reset. Yeah, powerful reset. That's a research paper 73 00:05:15,240 --> 00:05:22,840 about how to identify forged reset packet. And go to Shanghai, I go to the expo, the 74 00:05:22,840 --> 00:05:28,220 war expo, it's a long queue. Anyone go to the China expo? Wow, great. You need to have 75 00:05:28,220 --> 00:05:33,600 a queuing up or have a wheelchair. Then you could have a fast expressway into the expo 76 00:05:33,600 --> 00:05:39,760 museum. And I tried Facebook, Google services and Twitter, YouTube, I can't go there. But 77 00:05:39,760 --> 00:05:46,720 you could only get reset. This is the site. Actually, you could check whether your site 78 00:05:46,720 --> 00:05:52,180 is blocked in China. However, this site is blocked in China. Okay. 79 00:05:55,280 --> 00:06:03,300 Let's guess, GFW. No, not BMW. Okay. It's a great firewall. This is a GFW diagram. But 80 00:06:03,300 --> 00:06:08,120 not, not officially. It's guessed by the brokers. However, these diagrams are put in the 81 00:06:08,120 --> 00:06:15,620 individual researchers in China. But they put it like that. However, they put, I mean, they 82 00:06:15,620 --> 00:06:22,160 put off in a few days. They've got a bad list, content filtering system, keyword list. Okay. 83 00:06:22,160 --> 00:06:27,940 And also permanent black list. Okay. And there's a many, I mean, it's a very daily back 84 00:06:27,940 --> 00:06:32,840 list. There's many human resources to spend all the time and to filter, to find the sensitive 85 00:06:32,840 --> 00:06:44,020 words. QQ, do you know what is QQ? Like MSN and like ICQ. However, very interesting, there's 86 00:06:44,020 --> 00:06:50,580 news from the Internet, I got it, that once you install the QQ in the previous version, then it 87 00:06:52,160 --> 00:06:56,760 will be a new version. Yeah. It is an anti-virus capability, maybe. Scan your executable, and 88 00:06:56,760 --> 00:07:03,200 scan your document to see whether any embedded shell code. I don't know. But simply, they put it 89 00:07:03,200 --> 00:07:10,520 like that. Scan all of them. Yeah. Good scanner. And also, it's Skype. It's customized by 90 00:07:10,520 --> 00:07:15,700 China's lead by tom.com. Actually it's in tom.skype.com. Tom.com has a specialized, 91 00:07:16,260 --> 00:07:21,820 specialized edition of the Skype. If you want censorship, please go there. Download it, install 92 00:07:21,820 --> 00:07:29,300 story, you enjoy the Keras filtering. Yeah, and there are many 47 million 93 00:07:29,300 --> 00:07:34,060 gesture users in China using Tom's Skype. Okay, however, they changed the code. The 94 00:07:34,060 --> 00:07:38,180 Tom.com changed the code without authorization from Skype. The Skype CEO comes to here and 95 00:07:38,180 --> 00:07:43,500 says, oh, I'm sorry, we don't know they changed the code. And also it's like an advanced 96 00:07:43,500 --> 00:07:48,280 citizenship, upgrade your software. Actually another news is about a Beijing, some kind 97 00:07:48,280 --> 00:07:54,580 of people for human rights, however, when he logs into the QQ and finds there's a box, 98 00:07:54,760 --> 00:08:01,260 like, please upgrade your QQ. However, he struggles to log in with his machine and with 99 00:08:01,260 --> 00:08:07,540 this one, but there's no upgrade request. It's quite on one to one, monitoring customer 100 00:08:07,540 --> 00:08:13,880 service. This is a phishing for censorship, right? Asking for the person to upgrade, 101 00:08:14,160 --> 00:08:17,720 however, the target's friend, no, no such upgrade problem. 102 00:08:19,140 --> 00:08:28,020 Hopefully I will not get it. And ultimate censorship weapon is the 7-Eleven Korean store 103 00:08:28,020 --> 00:08:33,720 like the staff there to monitor the blog, monitor the forums. In ten seconds, a few 104 00:08:33,720 --> 00:08:39,840 minutes, if you talk about some sensitive thing, then it will be moved. Quite efficient, 105 00:08:40,000 --> 00:08:47,680 right? And this is what we are talking about, sensitive words. And when you type in this, 106 00:08:48,280 --> 00:08:57,140 this Chinese word, means commemorative, this word. It's broke because maybe near the time 107 00:08:57,140 --> 00:09:03,260 of some sensitive period for the government. We call this sensitive words. So this is 108 00:09:03,260 --> 00:09:08,940 a trendy China language. When your language, maybe your message is broke, it will place 109 00:09:08,940 --> 00:09:15,820 with these sensitive words. Then some China netizen make a joke with the government, like, 110 00:09:15,900 --> 00:09:17,940 I love Beijing. Actually this word is tin-almond. 111 00:09:17,940 --> 00:09:23,300 Then broke it up. Then they put a sensitive word. I love Beijing, sensitive words. Sun 112 00:09:23,300 --> 00:09:28,160 Wises ad, sensitive words. Our great leader, sensitive words. Guiding our community to 113 00:09:28,160 --> 00:09:38,680 progress. And another joke is like the China growth, 6.4%, but it is for the 6.4%. 114 00:09:41,880 --> 00:09:47,920 Okay. Green Dam. Okay. Sometimes this is the one I like a lot because I don't like the 115 00:09:47,940 --> 00:09:52,600 fact that I do the reverse engineering in the, I mean, in Hong Kong to know how it works. 116 00:09:52,940 --> 00:09:57,960 And about fueling bad content for the youth, like the sex and some bad violence content. 117 00:09:58,340 --> 00:10:04,500 And however, some exploits fund and cooks are suspected from, oh, I have not, cyber 118 00:10:04,500 --> 00:10:10,580 shipper? Yep. However, the China government would like to install it, but it is banned. 119 00:10:12,540 --> 00:10:15,820 Okay. I put the baby face. I test it. It's nude and broke. 120 00:10:20,520 --> 00:10:34,020 I put, oh, here, I'm sorry. Here, you'll find it. I put some wordings about 64, 4th of June. 121 00:10:34,140 --> 00:10:44,600 I write it, like, in the look pad. It's broad and cute. Yeah. I put the chairman here. 122 00:10:45,720 --> 00:10:47,920 And he said, I don't know what to do. I don't know what to do. I don't know what to do. 123 00:10:47,940 --> 00:10:57,380 It is an inappropriate pictures. Why? Why scan, why censor our China chairman? 124 00:10:58,420 --> 00:11:07,820 And also, why censor our communist logo? And said, this is a bad picture. 125 00:11:07,940 --> 00:11:17,160 You highlight here. And also, I do some kind of very simple U.S. engineering to find it. 126 00:11:17,940 --> 00:11:26,600 But there's a lot of the executable they are monitoring. Right. QQ is there. Yep. 127 00:11:26,640 --> 00:11:35,040 Different executables. Email look pad. The most of it is about when you go to the internet 128 00:11:35,040 --> 00:11:40,120 cafe, then you need to register your name. Okay. And also, the IPv6 will identify the 129 00:11:40,120 --> 00:11:47,380 location and address of the information of those netizens. And another project is about the 130 00:11:47,380 --> 00:11:53,120 web chamber project. Actually, it's an open project for how to bypass the GFW in China. 131 00:11:53,300 --> 00:12:00,660 And it applies to refer to the paper, research paper, about the insertion, invention, and 132 00:12:00,660 --> 00:12:05,300 denial of service. And it's very good for that. They could manipulate the research paper and 133 00:12:05,300 --> 00:12:13,440 to do some work. Then what is the theory on that, behind that, is the send of thin packet 134 00:12:13,440 --> 00:12:17,360 from the kind to server. And the GFW believes the client has end the connection. And the 135 00:12:17,380 --> 00:12:23,060 server will ignore the thin. And the packet sent from the client will not be monitored by the GFW. 136 00:12:24,040 --> 00:12:29,060 Another point is the client send an ARC packet with incorrect sequence number to the server. 137 00:12:29,160 --> 00:12:35,320 And server replies with RST packet to the client. And GFW is cheat. And also, the server has 138 00:12:35,320 --> 00:12:41,240 terminate the connection. It stops the monitoring and censorship. Okay. It's very good. I love this 139 00:12:41,240 --> 00:12:46,320 kind of research and application. Kindly ignore the reset packets and sends by the server. It's no 140 00:12:47,380 --> 00:12:55,520 good for the GFW. And set up the GFW DNS fingerprint. If there's a fingerprint is posted by the 141 00:12:55,520 --> 00:13:02,020 GFW, we simply filtering out, right? At the normal DNS, we probably will not be affected. 142 00:13:03,560 --> 00:13:11,620 This is the, I mean, the diagram, the flow. Yeah. We like that. These are pictures captured 143 00:13:11,620 --> 00:13:15,120 from our local newspaper. Yeah. You'll find it's a battleship. 144 00:13:17,380 --> 00:13:24,720 And thank you to this Japanese adult star. Because there's a news about in the April in 2010. 145 00:13:25,280 --> 00:13:31,160 And actually, he go to the Twitter. You could add him, add her right now. And there's over 146 00:13:31,740 --> 00:13:38,620 40,000 netizens would like to go to Twitter and try to bypass them to bypass firewall on that 147 00:13:38,620 --> 00:13:45,640 night. So, if they are adult star, radio star, much maybe helpful to the, helpful to education. 148 00:13:46,100 --> 00:13:46,780 What are their answers? 149 00:13:47,380 --> 00:13:52,080 Stand on the stage to talk about bypassing censorship or working on censorship. 150 00:13:53,660 --> 00:13:59,440 Summary, then you do censorship. Sometimes you are more like to increase the workload. Okay? 151 00:13:59,640 --> 00:14:05,580 You increase the resources a lot. It may not solve the problem. And my summary is encourage 152 00:14:05,580 --> 00:14:10,640 research to inspect, I mean, the creativity. And other countries may have the, I mean, the 153 00:14:10,640 --> 00:14:16,340 censorship strategy. But we need to have a balance between the privacy and the censorship and 154 00:14:16,340 --> 00:14:21,060 build up the business opportunities like the VPN. Most of the Chinese in business there is work on 155 00:14:21,060 --> 00:14:27,500 the VPN service. I mean, the VPN connection for in the company. Okay. It's Jake's part. Thank you. 156 00:14:34,820 --> 00:14:37,860 So, before you get started here, Jake, why don't we throw out one of these guys. 157 00:14:38,120 --> 00:14:38,560 Oh, yeah. Sure. 158 00:14:38,640 --> 00:14:40,300 Anthony, you want to describe what the hell this is? 159 00:14:42,240 --> 00:14:46,320 This is a horse. But this horse is with a very great, very strong, very strong, very strong 160 00:14:46,320 --> 00:14:53,080 voice. Zoom in, please, this one. Because this horse is called Chorima. It's a grass-root horse. 161 00:14:53,780 --> 00:14:59,380 Actually, you see, in China, there's some kind of foreign language like it's a motherfucker. 162 00:14:59,840 --> 00:15:08,440 Okay? However, the censorship broke it up. So they use grass-root horse in alphabet and use 163 00:15:08,440 --> 00:15:12,820 their communication in the forum. However, the China, I mean, their censorship also broke it up. 164 00:15:13,120 --> 00:15:16,100 So I'm now trying to throw this Chorima. 165 00:15:17,060 --> 00:15:18,920 To you guys. Okay? 166 00:15:18,960 --> 00:15:19,540 So I want it. 167 00:15:19,700 --> 00:15:20,240 Want it? 168 00:15:25,440 --> 00:15:31,620 Yeah. Hopefully you like it. But don't do this. Don't speak like that to the Chinese. Okay? 169 00:15:36,420 --> 00:15:45,580 Okay. So part of the thing that people generally want to do when they're in China is they want to get around the Great Firewall. 170 00:15:46,320 --> 00:15:50,420 The thing is that I want to make it, I mean, we're giving a talk about China, but I want to be kind of clear. 171 00:15:50,560 --> 00:15:53,680 This applies basically to everywhere in the world, including the United States. 172 00:15:54,600 --> 00:15:59,080 Depending on where you are, there's some guy sniffing the network or some girl sniffing the network. 173 00:15:59,340 --> 00:16:01,080 And they're going to do some nasty stuff. 174 00:16:01,360 --> 00:16:05,700 So we have a couple things we need in order to be resistant to these types of censorship attacks. 175 00:16:06,060 --> 00:16:09,760 And one of the things that Anthony talked about was the idea of detection. Right? 176 00:16:09,840 --> 00:16:16,300 So, like, you have a keyword. It goes through. And when you have this keyword on the network, the network is able to sort of detect it. 177 00:16:16,300 --> 00:16:17,180 And react to you. 178 00:16:17,380 --> 00:16:20,220 So one of the things you want to have is confidentiality. 179 00:16:20,340 --> 00:16:27,760 If you don't have confidentiality, it makes it really, like, extremely easy for someone to, like, especially if they're on the local network, they can intercept anything. 180 00:16:27,960 --> 00:16:28,940 And they can send resets. 181 00:16:28,980 --> 00:16:30,060 Like, they could be much better. 182 00:16:30,240 --> 00:16:32,260 They could imitate your TCP stack better. 183 00:16:32,440 --> 00:16:34,360 They could imitate your DNS responses better. 184 00:16:35,460 --> 00:16:39,400 Depending on the type of attacker, it's kind of varying. 185 00:16:39,600 --> 00:16:42,060 So if you're on a backbone, you have a different kind of capacity. 186 00:16:42,440 --> 00:16:44,580 And you have a different sort of memory, so to speak. 187 00:16:44,580 --> 00:16:49,180 But if you're on a local network and you have a very small segment, then there's almost no limit to what you can do. 188 00:16:49,540 --> 00:16:51,240 So it's important to not trigger that. 189 00:16:51,340 --> 00:16:52,480 So you want confidentiality. 190 00:16:52,680 --> 00:16:58,700 And you also want to make sure that when you send a request, the receiver of the request knows that it's exactly what you sent. 191 00:16:59,000 --> 00:17:00,440 And so you need integrity as well. 192 00:17:00,760 --> 00:17:11,520 And, of course, since TCP IP is, I mean, about as open as you can get, you need to make sure that you don't directly connect to the thing that you want to connect to. 193 00:17:11,560 --> 00:17:14,560 Because if you do that, there's a pretty good chance that the thing that you send is not going to be connected to the thing that you want to connect to. 194 00:17:14,560 --> 00:17:20,080 So the thing you're connecting to, if it's high profile, like, for example, Facebook or Twitter or something like this, 195 00:17:20,240 --> 00:17:25,040 it's actual IP addresses for whatever services that they use for hosting their website. 196 00:17:25,580 --> 00:17:28,580 Those IPs will actually be in the block list. 197 00:17:29,740 --> 00:17:31,920 And so you want to have an intermediary in between. 198 00:17:33,080 --> 00:17:41,260 So the idea with Tor is that we sort of provide all of this and then some accidentally as part of being an anonymity system. 199 00:17:41,540 --> 00:17:44,540 So I guess some of you have probably heard of Tor. 200 00:17:44,560 --> 00:17:44,900 Have you used Tor? 201 00:17:45,520 --> 00:17:46,080 Any of you? 202 00:17:46,620 --> 00:17:46,640 Yeah? 203 00:17:48,500 --> 00:17:48,840 Okay. 204 00:17:49,640 --> 00:17:52,240 Who here has never used Tor, I guess, is the question? 205 00:17:52,480 --> 00:17:54,400 Just like one guy in the corner? 206 00:17:54,500 --> 00:17:54,860 Two guys? 207 00:17:55,200 --> 00:17:55,700 Okay, cool. 208 00:17:55,820 --> 00:17:56,380 Sorry it's low. 209 00:17:58,740 --> 00:18:00,640 I mean, you know, how fast do you want to die? 210 00:18:00,920 --> 00:18:06,400 So Tor, basically, if we were to go through it, it would take quite some time. 211 00:18:06,460 --> 00:18:12,080 There are, like, hours-long lectures where we can talk about circuits and we can talk about cells and we can talk about the crypto and stuff like that. 212 00:18:12,280 --> 00:18:14,540 But in short, it allows you to do most of the work. 213 00:18:14,560 --> 00:18:20,520 There are lots of things you want to do on the Internet anonymously where you get all of these things that I was previously mentioning, right? 214 00:18:20,620 --> 00:18:22,200 You want these different properties. 215 00:18:22,480 --> 00:18:24,880 You want a lot more than those properties, but those are the most important ones. 216 00:18:25,780 --> 00:18:30,800 So you can make DNS queries through Tor, but you don't get the ability to make arbitrary UDP packets. 217 00:18:31,040 --> 00:18:32,040 So there's a big difference, right? 218 00:18:32,140 --> 00:18:40,220 We have a DNS port, which is like a DNS server, and you can make DNS queries, and those queries will allow you to connect to sites. 219 00:18:40,380 --> 00:18:44,100 So if you have to deal with DNS blocking, you can just use Tor for your DNS. 220 00:18:44,560 --> 00:18:45,660 If that's the only filter. 221 00:18:45,860 --> 00:18:49,760 And if you don't care about anything else, it will transport your DNS requests just fine. 222 00:18:50,620 --> 00:18:52,800 And there's a guy who's here. 223 00:18:52,880 --> 00:18:53,600 His name is Colin Milner. 224 00:18:53,760 --> 00:18:56,340 We've been working on this project called TT-DNSD. 225 00:18:56,620 --> 00:19:04,940 And it allows you to make arbitrary DNS requests through Tor by making TCP connections to recursive DNS servers that are upstream. 226 00:19:05,240 --> 00:19:06,720 And it uses the Tor network first. 227 00:19:07,400 --> 00:19:14,080 And that means that if you're only worried about DNS blocking, you don't have to worry about Tor being slow because you can do all your DNS results and then just connect directly. 228 00:19:14,560 --> 00:19:22,240 And unless the IP address is actually blocked or the content of the messages you're sending are blocked, you can sort of do a hybrid thing to get around some kinds of filtering. 229 00:19:23,740 --> 00:19:27,480 Anyway, in short, the way that Tor works is that you have this large network. 230 00:19:27,620 --> 00:19:31,180 It's essentially a peer-to-peer network with a series of directory authorities. 231 00:19:31,460 --> 00:19:33,840 All of our directory authorities are, of course, blocked in China. 232 00:19:35,000 --> 00:19:40,540 So at the moment, a client in China actually has some amount of trouble connecting to the Tor network. 233 00:19:42,020 --> 00:19:43,020 So we'll get to that. 234 00:19:45,280 --> 00:19:50,840 But the 60th anniversary of some guy making this country, the PRC, happened recently. 235 00:19:51,120 --> 00:19:54,000 And when that happened, they blocked the Tor network. 236 00:19:54,360 --> 00:19:59,400 So what they did is they downloaded a list of relays, which is the directory authorities give out a list of relays. 237 00:19:59,500 --> 00:20:00,940 That's how clients make routing decisions. 238 00:20:01,240 --> 00:20:02,560 It's a source-based routing protocol. 239 00:20:02,780 --> 00:20:05,460 So the source says, I want to route through three hops. 240 00:20:05,880 --> 00:20:07,040 These are my three hops. 241 00:20:07,200 --> 00:20:07,960 It builds a circuit. 242 00:20:08,120 --> 00:20:12,480 There's cryptographic handshakes that happen in each step of the way so you know who you're talking to. 243 00:20:12,580 --> 00:20:13,840 It's who you think you're talking to. 244 00:20:15,440 --> 00:20:20,060 And the problem is that if you can't get that list, you can't build that circuit and you can't make your connection. 245 00:20:20,440 --> 00:20:27,620 So what the Chinese government did on the 60th anniversary or five days before is they downloaded that list and tossed it into the Great Firewall. 246 00:20:27,920 --> 00:20:31,860 So now we have this problem, which is that if you want to connect directly, you need a new intermediary. 247 00:20:31,920 --> 00:20:38,980 You can't just use the normal Tor network as your intermediary to connect to, for example, Facebook or Jabber or whatever you want. 248 00:20:40,020 --> 00:20:40,820 So it's a problem. 249 00:20:40,900 --> 00:20:44,120 Like all that crypto, all that integrity and confidentiality you've got. 250 00:20:44,120 --> 00:20:46,040 It's totally like it doesn't matter because you're blocked. 251 00:20:46,320 --> 00:20:56,680 So we can't solve this problem very easily in that you have 2,000 IP addresses, which you have to give to everyone so that they can use this system to be secure. 252 00:20:56,920 --> 00:21:04,840 And if you don't give those IP addresses to everyone, you have a partitioning problem, which means that you can give one section of the network to one person and one section to another. 253 00:21:05,040 --> 00:21:11,680 And you can't do that in an anonymity system because if you do, you start to be able to partition users' behavior. 254 00:21:11,980 --> 00:21:14,100 And you start to be able to potentially de-anonymous. 255 00:21:14,120 --> 00:21:19,800 So instead of partitioning, what we did is we came up with this idea, which is called bridges. 256 00:21:21,260 --> 00:21:23,120 And I'll get to that in just a second. 257 00:21:23,240 --> 00:21:26,100 But first I want to talk about single hop versus multi-hop. 258 00:21:26,700 --> 00:21:35,420 So part of the reason that you want to have multiple hops when you're using the Tor network is that you don't want to have a privacy by policy system. 259 00:21:35,680 --> 00:21:42,300 So if any of you use a VPN, you know that what you're basically saying to the VPN provider is, okay, you know who I am. 260 00:21:42,380 --> 00:21:43,480 You know where I'm connecting from. 261 00:21:43,560 --> 00:21:44,040 And you know everything. 262 00:21:44,120 --> 00:21:44,700 You know everything I do online. 263 00:21:45,020 --> 00:21:46,640 But you promise you won't write it down. 264 00:21:47,100 --> 00:21:47,460 Okay. 265 00:21:47,480 --> 00:21:48,200 You wrote it down. 266 00:21:48,560 --> 00:21:49,860 You promise you won't tell anyone. 267 00:21:50,120 --> 00:21:50,320 Okay. 268 00:21:50,360 --> 00:21:52,180 You shared it with your critical business partners. 269 00:21:52,320 --> 00:21:56,140 But you won't share it with, like, I don't know, law enforcement or someone that breaks into your systems. 270 00:21:56,440 --> 00:21:56,800 Okay. 271 00:21:56,840 --> 00:21:58,420 You share it with them for, like, specific things. 272 00:21:58,880 --> 00:22:00,920 And, like, you see this path where it goes. 273 00:22:01,000 --> 00:22:03,240 And we want to build something stronger than that. 274 00:22:03,560 --> 00:22:09,880 Because even if the proxy operator is 100% honest and everything is totally solid, they can still be monitored. 275 00:22:10,140 --> 00:22:10,420 Right? 276 00:22:10,660 --> 00:22:13,620 Every machine on the Internet is near another one that can be compromised. 277 00:22:13,620 --> 00:22:17,560 So you want to make sure that you are not using just a single hop. 278 00:22:17,700 --> 00:22:25,000 And you also want to make sure that your traffic is mixed with other people so that it's extremely difficult to sort of, like, decide which traffic is the most interesting. 279 00:22:25,560 --> 00:22:27,400 And hopefully that can be helpful to you. 280 00:22:27,640 --> 00:22:35,700 And the way that Tor tries to avoid this type of surveillance is that we know that there's a correlation attack, which is that incoming traffic and outgoing traffic can be correlated. 281 00:22:35,900 --> 00:22:37,060 And then you can deanonymize someone. 282 00:22:37,380 --> 00:22:41,300 So if it's just a very small network, like a VPN provider, that's trivial. 283 00:22:41,640 --> 00:22:43,260 If it's a global network. 284 00:22:43,260 --> 00:22:45,240 That spans every country in the world. 285 00:22:45,360 --> 00:22:46,920 That becomes very difficult to block. 286 00:22:47,060 --> 00:22:48,260 And very difficult to surveil. 287 00:22:48,540 --> 00:22:52,620 And even if every country was cooperating legally, it's still technically very difficult. 288 00:22:52,840 --> 00:22:54,080 But they're not cooperating legally. 289 00:22:54,280 --> 00:22:56,140 So it's also socially very difficult. 290 00:22:58,660 --> 00:23:02,300 So bridges are how we solve the Chinese blocking problem. 291 00:23:02,560 --> 00:23:03,820 This is also how we solve it in Iran. 292 00:23:04,100 --> 00:23:05,620 And in a number of other countries. 293 00:23:06,240 --> 00:23:08,720 And, you know, I'm pretty happy to say and kind of proud. 294 00:23:08,980 --> 00:23:12,880 Most of the bridges that I've seen are actually run by Americans and Germans. 295 00:23:13,520 --> 00:23:14,900 There are some people from Sweden. 296 00:23:14,980 --> 00:23:17,220 A lot of people from Sweden actually that run relays as well. 297 00:23:18,120 --> 00:23:22,500 But most of the bridges that I've seen are actually in the United States and in Germany. 298 00:23:22,620 --> 00:23:23,360 Which is pretty awesome. 299 00:23:23,680 --> 00:23:25,580 I mean, people here really care about free speech. 300 00:23:25,720 --> 00:23:27,780 It's very inspiring to see that. 301 00:23:28,460 --> 00:23:31,020 So what a bridge is, is essentially a relay. 302 00:23:31,180 --> 00:23:33,440 Just like the relays that are in the directory authority. 303 00:23:33,720 --> 00:23:35,940 So you can do cryptographic operations with them. 304 00:23:36,000 --> 00:23:38,740 And you can send them data and build circuits and attach streams. 305 00:23:39,660 --> 00:23:42,560 But the difference is they're not in the directory at all. 306 00:23:42,560 --> 00:23:46,260 So they don't exist basically as far as anyone else is concerned. 307 00:23:46,580 --> 00:23:48,480 So you need to connect to the Tor network. 308 00:23:48,760 --> 00:23:50,800 But you don't want to have a privacy by policy system. 309 00:23:51,100 --> 00:23:55,620 So what you do is you connect to a bridge that maybe I run for Anthony. 310 00:23:55,820 --> 00:23:58,820 Like if I ran one in California, I don't tell anybody about it. 311 00:23:58,840 --> 00:24:03,000 But I tell him maybe by communicating with him in some other way over chat or something. 312 00:24:03,260 --> 00:24:04,380 He can connect to me. 313 00:24:04,560 --> 00:24:07,380 But he doesn't want to trust me with all of his sensitive information. 314 00:24:07,700 --> 00:24:08,800 So he connects to me. 315 00:24:08,940 --> 00:24:12,540 And then from that Tor automatically uses that bridge to bridge into the network. 316 00:24:12,560 --> 00:24:16,360 And now he's in the Tor network and he doesn't have to trust me. 317 00:24:16,500 --> 00:24:18,740 And the Tor network doesn't know he's coming from China anymore. 318 00:24:18,980 --> 00:24:20,960 So it's extremely difficult to target him. 319 00:24:23,520 --> 00:24:29,500 So interesting thing here is that when these blocking events happen with China, they harvest this information. 320 00:24:30,020 --> 00:24:31,520 So we have two types of bridges. 321 00:24:31,680 --> 00:24:33,280 We have public bridges and private bridges. 322 00:24:33,840 --> 00:24:40,960 Public bridges are essentially just like relays except instead of going to a directory, they go to what's called the bridge authority or the bridge DB. 323 00:24:41,340 --> 00:24:42,540 And we have a web server. 324 00:24:42,560 --> 00:24:45,140 We have a web site, bridges.torproject.org, which will give you bridges. 325 00:24:45,580 --> 00:24:48,280 And the way that works is that we have this hash ring, essentially. 326 00:24:48,600 --> 00:24:53,740 And if you are coming from a certain set of IP addresses, you're in one section of the hash ring. 327 00:24:54,060 --> 00:24:59,500 And if you are sending an email to bridges at torproject.org, you again enter the hash ring in a different position. 328 00:24:59,720 --> 00:25:02,400 And every time you make a request, you enter in the same position. 329 00:25:02,640 --> 00:25:04,580 So you always get the same bucket of IP addresses. 330 00:25:04,880 --> 00:25:08,220 So no one party can easily harvest the entire hash ring of data. 331 00:25:09,380 --> 00:25:10,860 I mean, it is, of course, possible. 332 00:25:10,940 --> 00:25:12,540 For example, if you have, like, an IP address. 333 00:25:12,540 --> 00:25:15,380 If you have, like, 10,000 Gmail accounts to send 10,000 requests and get them. 334 00:25:15,540 --> 00:25:20,920 But what we're doing is offloading that work so that they have to break Google's capture instead of some capture that we spend months engineering or something. 335 00:25:21,200 --> 00:25:23,540 So it's possible, but it just changes it a little bit. 336 00:25:23,660 --> 00:25:25,060 It makes it a little bit easier for us. 337 00:25:25,680 --> 00:25:27,940 So, like, the Tor network is one geographic location. 338 00:25:28,780 --> 00:25:31,000 And China is another geographic location. 339 00:25:31,420 --> 00:25:35,240 And, of course, the interesting thing is the public bridges have actually all been harvested. 340 00:25:35,560 --> 00:25:42,520 So on a regular basis, people go to bridges.torproject.org and bridges at torproject.org. 341 00:25:42,520 --> 00:25:45,220 And they get all the bridges and put them into the great firewall. 342 00:25:45,740 --> 00:25:50,820 So they're actively harvesting things that take a great deal of effort to try to block access to the Tor network. 343 00:25:51,100 --> 00:25:55,980 And actually, at the moment, unless you have a private bridge, there's a really good chance that you can't use Tor in China right now. 344 00:25:56,320 --> 00:25:58,160 Which is really extremely disappointing. 345 00:25:58,560 --> 00:26:00,180 But it's not because of protocol filtering. 346 00:26:00,380 --> 00:26:05,060 It's just because of IP port and IP address blocking in the firewall. 347 00:26:07,600 --> 00:26:12,340 So, unfortunately, because they are able to adapt and to grab this information. 348 00:26:12,340 --> 00:26:16,220 It's sort of, it's kind of a cat and mouse game. 349 00:26:16,400 --> 00:26:19,980 But we did take it from something we can never win, which is a public list that we give to everyone. 350 00:26:20,400 --> 00:26:25,820 And we reduced it to a private list that sometimes is given to some people. 351 00:26:26,000 --> 00:26:28,680 But in some cases, like private bridges, they're not given away at all. 352 00:26:28,920 --> 00:26:30,640 The private bridges always continue to work. 353 00:26:30,780 --> 00:26:31,860 The public ones don't. 354 00:26:32,040 --> 00:26:34,240 So some people will have access to this network. 355 00:26:34,800 --> 00:26:39,600 And some people won't because they're spending lots of someone's taxpayer dollars to do that. 356 00:26:40,200 --> 00:26:42,000 An interesting side effect of this. 357 00:26:42,340 --> 00:26:44,720 When they harvest, so I run one of the Tor directory authorities. 358 00:26:46,580 --> 00:26:50,140 They connect to me, potentially, or to someone else. 359 00:26:50,780 --> 00:26:53,020 And they pull down that list of IP addresses. 360 00:26:53,640 --> 00:26:55,160 And then they put that into the firewall. 361 00:26:56,620 --> 00:26:57,920 Does anybody see a problem with that? 362 00:26:59,400 --> 00:27:04,620 Like, this is kind of a funny, like an unintended consequence here would be that if all of the Tor network decided to do this. 363 00:27:04,740 --> 00:27:09,480 All the directory authorities could, for example, put in the IP addresses of every place where you request a visa to leave the country. 364 00:27:10,000 --> 00:27:12,320 And then all of a sudden, none of those sites work anymore. 365 00:27:12,340 --> 00:27:13,060 Because they're all blocked. 366 00:27:14,780 --> 00:27:15,140 Right? 367 00:27:15,340 --> 00:27:17,280 So there's a kind of funny thing here. 368 00:27:17,340 --> 00:27:21,920 When you know that you are the source of information for censorship, you can affect the outcome of that censorship. 369 00:27:22,780 --> 00:27:23,760 We have not done that. 370 00:27:24,040 --> 00:27:31,740 And I think it's probably not a wise thing to fuck with the bull unless you're willing to get the horns. 371 00:27:34,520 --> 00:27:37,620 But I guess those of you that know me know that I probably don't have a problem with that. 372 00:27:37,760 --> 00:27:42,040 So in the future, I can imagine that you might see something like that. 373 00:27:50,340 --> 00:27:52,440 Although I don't think the Tor project wants to do that. 374 00:27:52,560 --> 00:27:53,380 So it probably won't happen. 375 00:27:53,540 --> 00:27:54,320 How much does it cost? 376 00:27:54,680 --> 00:27:55,820 How much does what cost? 377 00:27:56,220 --> 00:27:57,060 To pay you off. 378 00:27:57,260 --> 00:27:58,060 To pay me off? 379 00:28:00,360 --> 00:28:01,200 Die in a fire. 380 00:28:05,060 --> 00:28:07,240 Sorry to all of those that have actually died in a fire. 381 00:28:08,260 --> 00:28:08,620 . 382 00:28:11,860 --> 00:28:12,900 So here's the deal. 383 00:28:13,020 --> 00:28:15,320 If you run a bridge, you can actually help someone. 384 00:28:15,500 --> 00:28:15,660 Right? 385 00:28:15,840 --> 00:28:17,260 You can help someone directly right now. 386 00:28:17,460 --> 00:28:20,160 I hate to sound like the save the children woman or something. 387 00:28:20,360 --> 00:28:24,460 But unfortunately, censorship is a really big problem. 388 00:28:24,680 --> 00:28:28,340 And it's not trivial to make it go away because it's socially very successful. 389 00:28:28,660 --> 00:28:31,980 A lot of people really believe that they should not have access to information. 390 00:28:32,240 --> 00:28:34,540 And they should not be able to make decisions on their own. 391 00:28:34,680 --> 00:28:37,360 And that someone else is better making decisions for them. 392 00:28:37,360 --> 00:28:40,520 And that they don't need autonomy or agency in order to make changes in the world. 393 00:28:41,220 --> 00:28:42,440 I say fuck that. 394 00:28:42,660 --> 00:28:43,260 Straight up. 395 00:28:43,460 --> 00:28:43,860 Right? 396 00:28:46,700 --> 00:28:49,960 If you're not clapping, I'm a little disappointed. 397 00:28:50,200 --> 00:28:52,960 And if you are clapping, you can run a bridge and you can also do this. 398 00:28:53,100 --> 00:28:53,240 Right? 399 00:28:53,300 --> 00:28:54,440 It doesn't take anything special. 400 00:28:54,700 --> 00:28:55,440 It's a peer-to-peer network. 401 00:28:55,580 --> 00:28:59,400 It's as easy as clicking an install and checking a box. 402 00:28:59,600 --> 00:29:00,640 And you literally help people. 403 00:29:00,800 --> 00:29:06,220 And while in some cases China is harvesting it, interestingly enough, the Chinese government isn't sharing their block list with other countries. 404 00:29:06,220 --> 00:29:09,080 So everybody else has to reproduce this effort. 405 00:29:09,300 --> 00:29:13,040 Which means that since they're not doing that, your bridge is still useful in a lot of other places. 406 00:29:13,140 --> 00:29:18,400 Like Iran or Canada or here or wherever you happen to be that does some sort of network censorship. 407 00:29:21,580 --> 00:29:22,480 Anyway, that's it. 408 00:29:22,580 --> 00:29:23,460 Check that single box. 409 00:29:23,800 --> 00:29:25,740 And you can do it automatically. 410 00:29:26,120 --> 00:29:27,120 And you have no liability. 411 00:29:27,380 --> 00:29:29,560 If you do this, they can only connect to the rest of the Tor network. 412 00:29:29,900 --> 00:29:33,280 So there's no harm that can possibly come to you unless Tor were to become illegal. 413 00:29:33,440 --> 00:29:34,320 Which it's not going to. 414 00:29:36,800 --> 00:29:37,240 Thanks. 415 00:29:45,620 --> 00:29:46,720 Thank you, Jacob. 416 00:29:46,880 --> 00:29:55,420 In this last part, we'll be talking a little bit further detail on the technical operation of the Green Dam software that Anthony hinted about. 417 00:29:55,740 --> 00:29:59,480 And I think it makes a good transition from Jake's slides. 418 00:29:59,560 --> 00:30:06,200 The fact that, you know, the success of these Tor bridges and the Tor network in general has really sort of changed the game. 419 00:30:06,220 --> 00:30:07,040 In terms of censorship. 420 00:30:08,580 --> 00:30:15,900 A lot of these entities, whether they're governments or other organizations trying to impose the censorship software, sort of have this fine balance they need to strike. 421 00:30:16,520 --> 00:30:22,900 Obviously, if China really wanted to crack down on their network, they could go with the whitelisting approach where they're only going to allow certain websites. 422 00:30:23,140 --> 00:30:27,220 But that would make for a lot of angry citizens and also a lot of, you know, outrage. 423 00:30:27,720 --> 00:30:36,100 So when they kind of play this whack-a-mole game where they're going after, you know, Tor bridges or trying to harvest these addresses of the bridges. 424 00:30:36,100 --> 00:30:44,980 To block this, it turns out to be this sort of leaky sieve where these bridge IPs can be passed around privately and distributed in sort of a peer-to-peer social fashion. 425 00:30:45,680 --> 00:30:57,240 So, you know, I think that when these entities or these governments are looking at this problem, they think, hey, you know, why don't we push this same functionality that we have down to the end host where we'll have more control. 426 00:30:57,400 --> 00:31:06,040 We'll actually be able to inspect upon the processes that the guest is running, have more flexibility, and have more protection against a user potentially trying to evade. 427 00:31:06,100 --> 00:31:09,700 Or remove the censorship functionality, excuse me. 428 00:31:10,580 --> 00:31:13,240 So, whoa, sorry about the formatting there. 429 00:31:13,420 --> 00:31:16,220 I think some open office nuances. 430 00:31:17,560 --> 00:31:21,480 Green Dam is the host-based censorship software that was introduced by the Chinese government. 431 00:31:22,020 --> 00:31:25,400 This was, I think, early last year is when they first announced it. 432 00:31:25,540 --> 00:31:31,520 And originally they were saying, hey, all PCs that are sold in China are going to come with this Green Dam software. 433 00:31:31,920 --> 00:31:35,720 And there was, you know, a bit of a hoopla around that announcement. 434 00:31:36,100 --> 00:31:46,440 And, you know, they kind of slowly backed down as more and more information came out about this Green Dam software and, you know, how port was built and some of the components that were stolen to build it. 435 00:31:46,940 --> 00:31:48,560 The Chinese government kind of backed down. 436 00:31:48,660 --> 00:31:56,440 And I think now it's still deployed in, like, Internet cafes where users might not have full control over their computer. 437 00:31:56,640 --> 00:32:01,360 And I think they might be rolling it out to, like, schools and stuff, too, or other government organizations. 438 00:32:01,980 --> 00:32:03,280 Actually, they are out of funding. 439 00:32:03,400 --> 00:32:06,080 But they have target to move this problem. 440 00:32:06,100 --> 00:32:07,180 So I think it's a good product to sell in Taiwan. 441 00:32:07,820 --> 00:32:16,560 Yeah, there was an announcement recently that they lost their government funding, the company that was developing the Green Dam software, which is not surprising because they did a pretty poor job. 442 00:32:18,340 --> 00:32:20,100 So, again, no titles. 443 00:32:20,220 --> 00:32:21,600 I apologize for the formatting here. 444 00:32:21,780 --> 00:32:26,100 But these are the features of the Green Dam software, what Anthony briefly went over. 445 00:32:26,300 --> 00:32:31,700 They have a content filter, which, you know, looks at the actual content you're creating in these applications. 446 00:32:31,860 --> 00:32:35,820 Like if you're writing a Word document or writing in a text file, as Anthony showed the screenshot for. 447 00:32:35,820 --> 00:32:40,980 It will actually pop up that nice little warning, which, I don't know, what does that translate to, Anthony? 448 00:32:42,400 --> 00:32:43,420 The Chinese message? 449 00:32:43,620 --> 00:32:43,680 Yeah. 450 00:32:44,160 --> 00:32:46,160 This message is inappropriate. 451 00:32:47,160 --> 00:32:48,440 It will be filtered. 452 00:32:48,880 --> 00:32:49,280 Okay. 453 00:32:49,380 --> 00:32:49,660 Yeah. 454 00:32:52,300 --> 00:32:59,460 And there's also these network filtering capabilities that are, you know, deployed on the end host, but, you know, filter the network connections coming out of it. 455 00:32:59,540 --> 00:33:03,400 And they actually did steal some software or some blacklist from the Cyber City company. 456 00:33:03,600 --> 00:33:05,560 Just, like, straight up pulled down their blacklist. 457 00:33:05,820 --> 00:33:06,620 And included them in the software. 458 00:33:07,300 --> 00:33:08,620 Which was pretty blatant. 459 00:33:08,920 --> 00:33:11,900 And I think there was some lawsuits over that. 460 00:33:13,000 --> 00:33:17,400 Also, the image pornography filtering using the OpenCV package, which looks for the skin tones in the picture. 461 00:33:17,500 --> 00:33:21,120 So, you know, that baby picture that Anthony showed has a lot of skin tone colors. 462 00:33:21,240 --> 00:33:23,360 So that's why it was considered inappropriate. 463 00:33:24,100 --> 00:33:31,680 But the bonus features are the interesting ones, where, you know, there were some very, very poor programming practices once you start digging into the Green Dam software. 464 00:33:32,060 --> 00:33:35,280 You know, trivial stuff like some of my colleagues at the University of Michigan. 465 00:33:35,400 --> 00:33:35,800 Like, you know, like, you know, like, you know. 466 00:33:35,820 --> 00:33:38,920 I think the first thing they tried, they, you know, had a long URL that you click on. 467 00:33:39,060 --> 00:33:41,080 That URL is actually inspected by Green Dam. 468 00:33:41,240 --> 00:33:43,340 And it's just a straight stack smash. 469 00:33:43,840 --> 00:33:45,100 Just with a long URL. 470 00:33:45,220 --> 00:33:47,660 This is like, you know, 1990s programming mistakes. 471 00:33:49,120 --> 00:33:53,240 So, those features are not necessarily what we're going to focus on today. 472 00:33:53,420 --> 00:33:57,860 But we're going to look at, you know, how Green Dam actually operates and how it actually hooks into your host. 473 00:33:58,340 --> 00:34:01,760 And sort of the techniques we use to actually unhook those hooks. 474 00:34:02,220 --> 00:34:05,300 So there's a wide range of interposition mechanisms at Green Dam. 475 00:34:06,460 --> 00:34:08,580 The one that you guys might be most familiar with. 476 00:34:08,680 --> 00:34:13,380 If you're familiar with any sort of rootkits or sort of Ring 3 rootkits. 477 00:34:14,200 --> 00:34:15,120 They can hook these. 478 00:34:15,300 --> 00:34:21,660 There's an API called SetWindowsHook which allows you to be notified of certain activity like window messages or keyboard activity. 479 00:34:22,380 --> 00:34:27,500 So you can, some, you know, poor keyloggers will use SetWindowsHook in order to get your keystrokes. 480 00:34:27,760 --> 00:34:32,840 It also uses the Winsock LSP which is mostly a headache for normal users. 481 00:34:33,060 --> 00:34:35,300 The layered service provider functionality by Winsock. 482 00:34:35,820 --> 00:34:37,460 You know, install LSPs and then try to remove them. 483 00:34:37,600 --> 00:34:39,860 Usually ends up working the entire Winsock stack. 484 00:34:41,080 --> 00:34:47,040 These guys hooked, you know, a number of your traditional Winsock socket calls to inspect on the traffic that's going in and out of your system. 485 00:34:47,480 --> 00:34:51,280 And that's in one of the DLLs that's injected into all the processes on your machine. 486 00:34:52,140 --> 00:34:56,060 And lastly, there was, you know, a number of API hooks they use. 487 00:34:56,240 --> 00:35:02,720 Which we'll talk a little bit about the techniques that are used to inject the DLLs and also hook the API calls. 488 00:35:02,960 --> 00:35:05,360 And there's a list of these, I think, processes. 489 00:35:05,820 --> 00:35:10,060 Anthony showed a screenshot of, you know, particular processes by name that are targeted. 490 00:35:10,580 --> 00:35:13,500 So a lot of this stuff, if you change your process name, you won't be targeted. 491 00:35:13,680 --> 00:35:15,980 But, you know, you might not be able to do that without administrative privileges. 492 00:35:17,600 --> 00:35:23,980 So traditionally, if you're familiar with rootkits or API hooking, there's sort of two ways to go about it. 493 00:35:23,980 --> 00:35:30,140 You can go about it the good way and actually write a kernel driver, which will actually protect the integrity of your hooks in the user space applications. 494 00:35:30,560 --> 00:35:35,800 Or you can go the lazy route, which is what these guys did with the ring three rootkits or ring three hooks. 495 00:35:35,820 --> 00:35:41,980 Which is when you actually implement these API hooking functionality in user space in memory of the process. 496 00:35:42,280 --> 00:35:44,660 So you're sort of on this even ground. 497 00:35:44,940 --> 00:35:52,960 So traditionally how this happens is you can either patch the import address table when you're actually injecting yourself into different processes on the system. 498 00:35:53,100 --> 00:36:00,300 Or you can actually do sort of the trampolines where you will overwrite the first few bytes of each function in order to jump to your hooking code. 499 00:36:00,440 --> 00:36:03,700 And then rewrite the instruction that used to be there and jump back. 500 00:36:03,920 --> 00:36:05,360 And this is what's used in, you know. 501 00:36:05,820 --> 00:36:08,360 Fairly poorly written rootkits and spyware. 502 00:36:09,000 --> 00:36:15,460 So what you would do is you inject into all the running processes on the system using this create remote thread functionality in the Windows platform. 503 00:36:15,660 --> 00:36:19,700 Which is awesome functionality for rootkits and malware authors. 504 00:36:20,100 --> 00:36:23,260 But it can also be used, I guess for good purposes, we're going to use it. 505 00:36:23,820 --> 00:36:28,220 But essentially it allows you to actually, you know, like it says, create a remote thread in a process. 506 00:36:28,580 --> 00:36:29,940 Allocate memory in that process. 507 00:36:30,200 --> 00:36:33,420 Put your executable code into that process. 508 00:36:33,660 --> 00:36:35,800 And then execute it within the context of that remote thread. 509 00:36:35,820 --> 00:36:36,220 And then run the remote process. 510 00:36:36,880 --> 00:36:39,560 So by doing this you can inject into all the running processes. 511 00:36:39,920 --> 00:36:42,760 Hook the create process call inside each of those processes. 512 00:36:42,880 --> 00:36:48,140 Such that when they launch further processes, you're able to sort of spread virally into those new processes as well. 513 00:36:49,420 --> 00:36:53,260 So how Green Damp works is it injects itself into this list of processes. 514 00:36:53,460 --> 00:36:54,900 Whether it's Firefox or Notepad. 515 00:36:55,040 --> 00:37:00,920 And then we can actually go in and just un-inject all of the Green Damp code that's been put in there. 516 00:37:01,580 --> 00:37:02,720 So that's what I did. 517 00:37:02,800 --> 00:37:04,220 I wrote a tool called Damp Burst. 518 00:37:04,340 --> 00:37:05,720 Which I think is interesting. 519 00:37:05,720 --> 00:37:12,520 From the standpoint that us security researchers don't usually get to use our skills for good purposes, so to speak. 520 00:37:12,980 --> 00:37:17,660 The same techniques that Damp Burst uses are good for, you know, writing root kits. 521 00:37:17,840 --> 00:37:24,460 But, you know, when we can actually use this functionality and our skills to help users who are facing this censorship. 522 00:37:24,700 --> 00:37:25,740 It's kind of a win-win. 523 00:37:25,820 --> 00:37:27,320 Because you get to do something that's technically interesting. 524 00:37:27,440 --> 00:37:30,100 But it also has a good side effect on society. 525 00:37:30,760 --> 00:37:33,920 So while there were these interesting vulnerabilities in the Green Damp software. 526 00:37:33,920 --> 00:37:36,020 Which would allow us to own all of China. 527 00:37:36,880 --> 00:37:40,320 It's always good to try to help the users as opposed to infecting them. 528 00:37:40,960 --> 00:37:42,900 So a few properties about Damp Burst. 529 00:37:42,960 --> 00:37:48,260 Which, you know, we try to make more friendly for users who might be in restricted environments. 530 00:37:49,060 --> 00:37:50,740 It doesn't require administrative privileges. 531 00:37:51,200 --> 00:37:55,140 Obviously if you have administrative privileges you can remove or uninstall the Green Damp software. 532 00:37:55,500 --> 00:37:59,240 But in many of these cases where you're in an internet cafe or other public computers. 533 00:37:59,480 --> 00:38:01,800 You might not have the, you don't own the box. 534 00:38:01,940 --> 00:38:02,880 So you might not have admin rights. 535 00:38:02,880 --> 00:38:04,460 And you might not be able to remove the software. 536 00:38:04,720 --> 00:38:08,200 And we also made this a very transient functionality. 537 00:38:08,300 --> 00:38:11,720 Such that it doesn't leave behind a lot of evidence that you were running it. 538 00:38:11,800 --> 00:38:12,660 So if you were in an internet cafe. 539 00:38:13,160 --> 00:38:16,600 And you bursted a few of the processes on that box in order to evade the censorship. 540 00:38:17,380 --> 00:38:19,540 And someone else came to that box later to look at it. 541 00:38:19,580 --> 00:38:20,840 They wouldn't know that you had done this. 542 00:38:20,960 --> 00:38:22,800 And you can kind of get away scot-free. 543 00:38:23,220 --> 00:38:28,860 And then lastly, of course, it actually, by uninjecting the Damp Burst routines that are vulnerable. 544 00:38:29,040 --> 00:38:31,120 It actually increases the security of your computer. 545 00:38:31,260 --> 00:38:32,760 Because you're sort of cutting off these vulnerabilities. 546 00:38:32,880 --> 00:38:34,580 And you can get a code pass for being executed. 547 00:38:35,020 --> 00:38:37,880 So the injection process works like so. 548 00:38:38,080 --> 00:38:41,300 As I mentioned, these are all standard parts of Win32. 549 00:38:41,520 --> 00:38:44,400 Which allow you to allocate memory in the remote processes. 550 00:38:44,720 --> 00:38:46,760 And actually write your code into that process. 551 00:38:47,060 --> 00:38:51,320 And then start a thread based out of that DLL that you just loaded. 552 00:38:51,680 --> 00:38:56,200 And similarly, for the patching of the Winsock LSPs. 553 00:38:56,620 --> 00:39:02,860 Once we're actually running code inside the process of the same process that's been infected with Green Damp. 554 00:39:02,860 --> 00:39:05,940 We can simply overwrite the LSPs. 555 00:39:06,020 --> 00:39:07,260 Since removing them are pain in the ass. 556 00:39:07,440 --> 00:39:09,520 We can simply overwrite them with no ops. 557 00:39:09,720 --> 00:39:13,340 And just make sure that its functionality is effectively neutered. 558 00:39:13,580 --> 00:39:15,120 So we pop into each process. 559 00:39:15,320 --> 00:39:19,040 We patch out the functionality of Green Damp. 560 00:39:19,180 --> 00:39:22,660 And then we unload it lastly to make sure that the vulnerable routines are no longer in there. 561 00:39:23,080 --> 00:39:24,860 And I wanted to show you guys a demo. 562 00:39:25,360 --> 00:39:27,440 But I don't have the VM on this laptop. 563 00:39:27,900 --> 00:39:29,380 But this is what it would look like. 564 00:39:29,500 --> 00:39:32,120 You know, you're searching for porn or whatever you really want to find down there. 565 00:39:32,860 --> 00:39:34,960 Immediately when you hit enter, nothing happens. 566 00:39:35,080 --> 00:39:35,960 The connection is interrupted. 567 00:39:36,360 --> 00:39:39,780 And Green Damp has filtered that because it recognizes it as an offensive word. 568 00:39:40,520 --> 00:39:44,560 And you can see that in the little screenshot near the bottom there. 569 00:39:44,620 --> 00:39:47,500 You see the handler, inject, lib, db, filter, surf guard. 570 00:39:47,620 --> 00:39:50,600 Those are all DLLs that Green Damp has injected. 571 00:39:50,860 --> 00:39:56,300 And in the Green Damp snapshot you can see the applications that are specifically targeted by Green Damp in red. 572 00:39:56,560 --> 00:39:58,880 So you see Firefox and Notepad there. 573 00:39:59,180 --> 00:40:02,560 Have all of the DLLs injected into their process. 574 00:40:02,560 --> 00:40:03,040 Address space. 575 00:40:03,740 --> 00:40:05,640 And some of the other ones are just partially injected. 576 00:40:05,820 --> 00:40:08,560 They don't have all of the same filtering routines injected into those processes. 577 00:40:08,960 --> 00:40:12,260 But you can select any process that you want to burst it or you can just click burst all. 578 00:40:12,520 --> 00:40:16,240 Our code will go in there and burst all those processes such that this is disabled. 579 00:40:16,540 --> 00:40:21,400 And you can search for your porn successfully or your politically motivated material. 580 00:40:21,620 --> 00:40:23,740 Whatever you're looking for that Green Damp does not approve of. 581 00:40:24,960 --> 00:40:28,020 So getting back to sort of the theme of this. 582 00:40:29,180 --> 00:40:31,500 Green Damp was an initial attempt. 583 00:40:31,500 --> 00:40:33,060 This host-based sensorware. 584 00:40:33,440 --> 00:40:40,860 And as I mentioned the news report that was recently released took all the government funding from this company that was developing Green Damp. 585 00:40:41,140 --> 00:40:44,600 And from this first attempt we can see that they did a pretty poor job. 586 00:40:45,220 --> 00:40:46,440 They didn't hire the right company. 587 00:40:46,660 --> 00:40:50,320 They didn't cross their T's and dot their I's before releasing this. 588 00:40:50,460 --> 00:40:55,580 And I don't think they were really aware of the backlash they would get and the quality of the code that they were releasing. 589 00:40:56,060 --> 00:41:00,380 So it is kind of scary to think that in the future they're definitely going to do a much better job. 590 00:41:00,380 --> 00:41:02,100 I mean they're not going to make the same mistakes. 591 00:41:02,920 --> 00:41:16,000 And I think that the success of the tools that Tor is providing and that Jacob is providing will only drive more entities and government organizations to approach this censorship problem from the host-based level. 592 00:41:16,500 --> 00:41:20,140 So I think we'll undoubtedly see more of this host-based censorship software. 593 00:41:20,400 --> 00:41:27,360 And I did see just a few weeks ago an article about a new Green Damp or a host-based censorship software in Vietnam. 594 00:41:27,620 --> 00:41:29,040 And I haven't looked into that at all. 595 00:41:29,040 --> 00:41:30,880 But it's not surprising. 596 00:41:31,020 --> 00:41:32,380 I think we'll see a lot more of this in the future. 597 00:41:33,340 --> 00:41:35,720 And with that, Anthony, you want to conclude? 598 00:41:35,980 --> 00:41:36,200 Yep. 599 00:41:38,260 --> 00:41:40,740 Thank you, John, actually, for presenting. 600 00:41:41,060 --> 00:41:45,840 And I would like to just and also Jake also present like a short brief of our conclusion. 601 00:41:46,340 --> 00:41:49,180 Actually, I suppose the Internet censorship happens everywhere. 602 00:41:49,680 --> 00:41:50,040 Okay. 603 00:41:50,240 --> 00:41:55,100 So however, we need to have a balance between the monitoring and privacy and free-for-all information. 604 00:41:55,700 --> 00:41:57,620 And we are not target. 605 00:41:57,620 --> 00:42:01,220 I'm not target to take an 18-hour flight to here to bring my country. 606 00:42:01,420 --> 00:42:03,640 However, the problem is we have the issues. 607 00:42:03,780 --> 00:42:05,640 We have some areas to improve the technologies. 608 00:42:06,020 --> 00:42:06,360 Okay. 609 00:42:06,480 --> 00:42:13,340 So how to get more, I mean, more step forward from the research. 610 00:42:13,640 --> 00:42:20,360 And so thanks to Jacob, John, and also to give this censorship, I mean, this talk with us. 611 00:42:20,420 --> 00:42:26,700 And also I'm thankful to my teammates, Sam, Jackie, and Charles, and my professor, Rocky. 612 00:42:26,700 --> 00:42:30,640 And he gives me a lot of insights in the censorship and the network monitoring. 613 00:42:30,980 --> 00:42:34,140 And my Chinese brokers, like I said, and Digital Boy. 614 00:42:34,280 --> 00:42:40,120 And Cholima is purchased from Digital Boy in $100 in 10 Cholima. 615 00:42:40,920 --> 00:42:42,820 And also my wife and my dog's family. 616 00:42:43,020 --> 00:42:44,300 This is my head of army. 617 00:42:45,120 --> 00:42:46,680 And this is my elder sister. 618 00:42:47,000 --> 00:42:49,240 And Gigi is the head of, has the wife. 619 00:42:49,320 --> 00:42:49,900 Thank you.