Thank you for all of your audience to attend this session. This is about Chinese security. Actually, I come from Hong Kong. I would like to share my personal experience on kinds of censorship to have kinds of East-Mid-West seminar and talk and much more sharing. Censorship is not just for China, but many countries or many nations have censorship. So that's the reason I would like to trigger the research and trigger our ideas how to protect our privacy. For me, I will talk about censorship overview, the tour and bridges from Jacob, and the Green Dam and Green Dam bus from John. Okay, there's no national secret. Is there any spies? Any China spies? Chinese spies? Taiwanese spies? No worries. All things from the Internet. Search. I've got my objective right now, right? Be relaxed, okay? Encourage telegrams. I'm going to talk about technical research and technologies in privacy protection and how we do the work out of censorship and share my personal experience with you guys. Okay, let's start. I work on penetration tests, like co-audit and training, and do the merit analysis. If some of you guys attend my Black Hat session about China made merit, then it would be hope you like it. And also I set up my research group, maybe study the exploit, and I'm going to talk about China made merit, and I'm going to talk about China made merit, and I'm going to talk about China made merit. Yeah. And this is what I've done. Censorship. This is, I will go through this list in 15 minutes, then in around 50 slides, then you will find it very, have a rhythm, okay? IP blocking. Actually, IP blocking is very, I mean, it's very easy one. It's a white listing, black listing, black listing, not block listing, right? And you will find that in 2002, you. And when you go to Google, then you will find it to the maze. You will find the excessive color of the, oh, sorry. Excessive color. This is the search engine in China. Okay? The Google, the blue one, the same. The fonts is the same. The bar, the location is the same. Yeah. Then we go to Google.com, you'll go to the TeamRen.com. Yeah. These are the kinds of DNS points in it. And, like, use points in the song file. Use the packet injection. And other issues about the root server issues. Especially for me in, I tried to connect to some China proxy in, proxy servers in Hong Kong or even I traveled to China. When I go to Facebook, actually we solved, we solved the IP 66.220.153 and 153. And it's the correct one. However, you'll find it here, the 93.46.89 actually is a false one. I mean, it's not exist. They will do this kind of DNS points in it. There's a root server in the Internet. However, there's a news just in March. It's about when you go to the YouTube, Facebook, and the Twitter, you redirect to the servers in China. And also, like, after talking about DNS server, you'll find that there's a smtp server. We're talking about China product. Okay? China made product. It's great, man. You'll find the smtp server. You'll find that there's a withholding policy. Oops. The policy here, right? Okay? And there's also, like, how to un-audit e-mail. Audit e-mails. Then you could audit the, you know, user name. And also, like, the administrator could audit the e-mail, right? And got the user names. Right? Very good filtering. And of the keywords, yeah, you put any keywords as you like. This is my first time to find a server, smtp server, with this powerful censorship ability, capability. And some basic UDP and TCP records. This is my first time to find a server. So, I will not go through this. This is the basic TCP handshaking, right? Just handshaking. However, when I would like to do kinds of go to this website, appoday.com.hk, it is broke in China. Once I visit them, they provide different reset here. Reset, reset. Reset, reset. Reset, reset. Reset. Reset. reset my connection. And go to the, it is a type in the Chinese, it's about 1989 democracy campaign in Chinese. Then I got more reset. Yeah, powerful reset. That's a research paper about how to identify forged reset packet. And go to Shanghai, I go to the expo, the war expo, it's a long queue. Anyone go to the China expo? Wow, great. You need to have a queuing up or have a wheelchair. Then you could have a fast expressway into the expo museum. And I tried Facebook, Google services and Twitter, YouTube, I can't go there. But you could only get reset. This is the site. Actually, you could check whether your site is blocked in China. However, this site is blocked in China. Okay. Let's guess, GFW. No, not BMW. Okay. It's a great firewall. This is a GFW diagram. But not, not officially. It's guessed by the brokers. However, these diagrams are put in the individual researchers in China. But they put it like that. However, they put, I mean, they put off in a few days. They've got a bad list, content filtering system, keyword list. Okay. And also permanent black list. Okay. And there's a many, I mean, it's a very daily back list. There's many human resources to spend all the time and to filter, to find the sensitive words. QQ, do you know what is QQ? Like MSN and like ICQ. However, very interesting, there's news from the Internet, I got it, that once you install the QQ in the previous version, then it will be a new version. Yeah. It is an anti-virus capability, maybe. Scan your executable, and scan your document to see whether any embedded shell code. I don't know. But simply, they put it like that. Scan all of them. Yeah. Good scanner. And also, it's Skype. It's customized by China's lead by tom.com. Actually it's in tom.skype.com. Tom.com has a specialized, specialized edition of the Skype. If you want censorship, please go there. Download it, install story, you enjoy the Keras filtering. Yeah, and there are many 47 million gesture users in China using Tom's Skype. Okay, however, they changed the code. The Tom.com changed the code without authorization from Skype. The Skype CEO comes to here and says, oh, I'm sorry, we don't know they changed the code. And also it's like an advanced citizenship, upgrade your software. Actually another news is about a Beijing, some kind of people for human rights, however, when he logs into the QQ and finds there's a box, like, please upgrade your QQ. However, he struggles to log in with his machine and with this one, but there's no upgrade request. It's quite on one to one, monitoring customer service. This is a phishing for censorship, right? Asking for the person to upgrade, however, the target's friend, no, no such upgrade problem. Hopefully I will not get it. And ultimate censorship weapon is the 7-Eleven Korean store like the staff there to monitor the blog, monitor the forums. In ten seconds, a few minutes, if you talk about some sensitive thing, then it will be moved. Quite efficient, right? And this is what we are talking about, sensitive words. And when you type in this, this Chinese word, means commemorative, this word. It's broke because maybe near the time of some sensitive period for the government. We call this sensitive words. So this is a trendy China language. When your language, maybe your message is broke, it will place with these sensitive words. Then some China netizen make a joke with the government, like, I love Beijing. Actually this word is tin-almond. Then broke it up. Then they put a sensitive word. I love Beijing, sensitive words. Sun Wises ad, sensitive words. Our great leader, sensitive words. Guiding our community to progress. And another joke is like the China growth, 6.4%, but it is for the 6.4%. Okay. Green Dam. Okay. Sometimes this is the one I like a lot because I don't like the fact that I do the reverse engineering in the, I mean, in Hong Kong to know how it works. And about fueling bad content for the youth, like the sex and some bad violence content. And however, some exploits fund and cooks are suspected from, oh, I have not, cyber shipper? Yep. However, the China government would like to install it, but it is banned. Okay. I put the baby face. I test it. It's nude and broke. I put, oh, here, I'm sorry. Here, you'll find it. I put some wordings about 64, 4th of June. I write it, like, in the look pad. It's broad and cute. Yeah. I put the chairman here. And he said, I don't know what to do. I don't know what to do. I don't know what to do. It is an inappropriate pictures. Why? Why scan, why censor our China chairman? And also, why censor our communist logo? And said, this is a bad picture. You highlight here. And also, I do some kind of very simple U.S. engineering to find it. But there's a lot of the executable they are monitoring. Right. QQ is there. Yep. Different executables. Email look pad. The most of it is about when you go to the internet cafe, then you need to register your name. Okay. And also, the IPv6 will identify the location and address of the information of those netizens. And another project is about the web chamber project. Actually, it's an open project for how to bypass the GFW in China. And it applies to refer to the paper, research paper, about the insertion, invention, and denial of service. And it's very good for that. They could manipulate the research paper and to do some work. Then what is the theory on that, behind that, is the send of thin packet from the kind to server. And the GFW believes the client has end the connection. And the server will ignore the thin. And the packet sent from the client will not be monitored by the GFW. Another point is the client send an ARC packet with incorrect sequence number to the server. And server replies with RST packet to the client. And GFW is cheat. And also, the server has terminate the connection. It stops the monitoring and censorship. Okay. It's very good. I love this kind of research and application. Kindly ignore the reset packets and sends by the server. It's no good for the GFW. And set up the GFW DNS fingerprint. If there's a fingerprint is posted by the GFW, we simply filtering out, right? At the normal DNS, we probably will not be affected. This is the, I mean, the diagram, the flow. Yeah. We like that. These are pictures captured from our local newspaper. Yeah. You'll find it's a battleship. And thank you to this Japanese adult star. Because there's a news about in the April in 2010. And actually, he go to the Twitter. You could add him, add her right now. And there's over 40,000 netizens would like to go to Twitter and try to bypass them to bypass firewall on that night. So, if they are adult star, radio star, much maybe helpful to the, helpful to education. What are their answers? Stand on the stage to talk about bypassing censorship or working on censorship. Summary, then you do censorship. Sometimes you are more like to increase the workload. Okay? You increase the resources a lot. It may not solve the problem. And my summary is encourage research to inspect, I mean, the creativity. And other countries may have the, I mean, the censorship strategy. But we need to have a balance between the privacy and the censorship and build up the business opportunities like the VPN. Most of the Chinese in business there is work on the VPN service. I mean, the VPN connection for in the company. Okay. It's Jake's part. Thank you. So, before you get started here, Jake, why don't we throw out one of these guys. Oh, yeah. Sure. Anthony, you want to describe what the hell this is? This is a horse. But this horse is with a very great, very strong, very strong, very strong voice. Zoom in, please, this one. Because this horse is called Chorima. It's a grass-root horse. Actually, you see, in China, there's some kind of foreign language like it's a motherfucker. Okay? However, the censorship broke it up. So they use grass-root horse in alphabet and use their communication in the forum. However, the China, I mean, their censorship also broke it up. So I'm now trying to throw this Chorima. To you guys. Okay? So I want it. Want it? Yeah. Hopefully you like it. But don't do this. Don't speak like that to the Chinese. Okay? 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. 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. This applies basically to everywhere in the world, including the United States. Depending on where you are, there's some guy sniffing the network or some girl sniffing the network. And they're going to do some nasty stuff. So we have a couple things we need in order to be resistant to these types of censorship attacks. And one of the things that Anthony talked about was the idea of detection. Right? 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. And react to you. So one of the things you want to have is confidentiality. 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. And they can send resets. Like, they could be much better. They could imitate your TCP stack better. They could imitate your DNS responses better. Depending on the type of attacker, it's kind of varying. So if you're on a backbone, you have a different kind of capacity. And you have a different sort of memory, so to speak. 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. So it's important to not trigger that. So you want confidentiality. 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. And so you need integrity as well. 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. 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. So the thing you're connecting to, if it's high profile, like, for example, Facebook or Twitter or something like this, it's actual IP addresses for whatever services that they use for hosting their website. Those IPs will actually be in the block list. And so you want to have an intermediary in between. 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. So I guess some of you have probably heard of Tor. Have you used Tor? Any of you? Yeah? Okay. Who here has never used Tor, I guess, is the question? Just like one guy in the corner? Two guys? Okay, cool. Sorry it's low. I mean, you know, how fast do you want to die? So Tor, basically, if we were to go through it, it would take quite some time. 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. But in short, it allows you to do most of the work. 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? You want these different properties. You want a lot more than those properties, but those are the most important ones. So you can make DNS queries through Tor, but you don't get the ability to make arbitrary UDP packets. So there's a big difference, right? 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. So if you have to deal with DNS blocking, you can just use Tor for your DNS. If that's the only filter. And if you don't care about anything else, it will transport your DNS requests just fine. And there's a guy who's here. His name is Colin Milner. We've been working on this project called TT-DNSD. And it allows you to make arbitrary DNS requests through Tor by making TCP connections to recursive DNS servers that are upstream. And it uses the Tor network first. 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. 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. Anyway, in short, the way that Tor works is that you have this large network. It's essentially a peer-to-peer network with a series of directory authorities. All of our directory authorities are, of course, blocked in China. So at the moment, a client in China actually has some amount of trouble connecting to the Tor network. So we'll get to that. But the 60th anniversary of some guy making this country, the PRC, happened recently. And when that happened, they blocked the Tor network. So what they did is they downloaded a list of relays, which is the directory authorities give out a list of relays. That's how clients make routing decisions. It's a source-based routing protocol. So the source says, I want to route through three hops. These are my three hops. It builds a circuit. There's cryptographic handshakes that happen in each step of the way so you know who you're talking to. It's who you think you're talking to. 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. 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. So now we have this problem, which is that if you want to connect directly, you need a new intermediary. You can't just use the normal Tor network as your intermediary to connect to, for example, Facebook or Jabber or whatever you want. So it's a problem. Like all that crypto, all that integrity and confidentiality you've got. It's totally like it doesn't matter because you're blocked. 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. 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. And you can't do that in an anonymity system because if you do, you start to be able to partition users' behavior. And you start to be able to potentially de-anonymous. So instead of partitioning, what we did is we came up with this idea, which is called bridges. And I'll get to that in just a second. But first I want to talk about single hop versus multi-hop. 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. 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. You know where I'm connecting from. And you know everything. You know everything I do online. But you promise you won't write it down. Okay. You wrote it down. You promise you won't tell anyone. Okay. You shared it with your critical business partners. But you won't share it with, like, I don't know, law enforcement or someone that breaks into your systems. Okay. You share it with them for, like, specific things. And, like, you see this path where it goes. And we want to build something stronger than that. Because even if the proxy operator is 100% honest and everything is totally solid, they can still be monitored. Right? Every machine on the Internet is near another one that can be compromised. So you want to make sure that you are not using just a single hop. 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. And hopefully that can be helpful to you. 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. And then you can deanonymize someone. So if it's just a very small network, like a VPN provider, that's trivial. If it's a global network. That spans every country in the world. That becomes very difficult to block. And very difficult to surveil. And even if every country was cooperating legally, it's still technically very difficult. But they're not cooperating legally. So it's also socially very difficult. So bridges are how we solve the Chinese blocking problem. This is also how we solve it in Iran. And in a number of other countries. And, you know, I'm pretty happy to say and kind of proud. Most of the bridges that I've seen are actually run by Americans and Germans. There are some people from Sweden. A lot of people from Sweden actually that run relays as well. But most of the bridges that I've seen are actually in the United States and in Germany. Which is pretty awesome. I mean, people here really care about free speech. It's very inspiring to see that. So what a bridge is, is essentially a relay. Just like the relays that are in the directory authority. So you can do cryptographic operations with them. And you can send them data and build circuits and attach streams. But the difference is they're not in the directory at all. So they don't exist basically as far as anyone else is concerned. So you need to connect to the Tor network. But you don't want to have a privacy by policy system. So what you do is you connect to a bridge that maybe I run for Anthony. Like if I ran one in California, I don't tell anybody about it. But I tell him maybe by communicating with him in some other way over chat or something. He can connect to me. But he doesn't want to trust me with all of his sensitive information. So he connects to me. And then from that Tor automatically uses that bridge to bridge into the network. And now he's in the Tor network and he doesn't have to trust me. And the Tor network doesn't know he's coming from China anymore. So it's extremely difficult to target him. So interesting thing here is that when these blocking events happen with China, they harvest this information. So we have two types of bridges. We have public bridges and private bridges. 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. And we have a web server. We have a web site, bridges.torproject.org, which will give you bridges. And the way that works is that we have this hash ring, essentially. And if you are coming from a certain set of IP addresses, you're in one section of the hash ring. And if you are sending an email to bridges at torproject.org, you again enter the hash ring in a different position. And every time you make a request, you enter in the same position. So you always get the same bucket of IP addresses. So no one party can easily harvest the entire hash ring of data. I mean, it is, of course, possible. For example, if you have, like, an IP address. If you have, like, 10,000 Gmail accounts to send 10,000 requests and get them. 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. So it's possible, but it just changes it a little bit. It makes it a little bit easier for us. So, like, the Tor network is one geographic location. And China is another geographic location. And, of course, the interesting thing is the public bridges have actually all been harvested. So on a regular basis, people go to bridges.torproject.org and bridges at torproject.org. And they get all the bridges and put them into the great firewall. So they're actively harvesting things that take a great deal of effort to try to block access to the Tor network. 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. Which is really extremely disappointing. But it's not because of protocol filtering. It's just because of IP port and IP address blocking in the firewall. So, unfortunately, because they are able to adapt and to grab this information. It's sort of, it's kind of a cat and mouse game. But we did take it from something we can never win, which is a public list that we give to everyone. And we reduced it to a private list that sometimes is given to some people. But in some cases, like private bridges, they're not given away at all. The private bridges always continue to work. The public ones don't. So some people will have access to this network. And some people won't because they're spending lots of someone's taxpayer dollars to do that. An interesting side effect of this. When they harvest, so I run one of the Tor directory authorities. They connect to me, potentially, or to someone else. And they pull down that list of IP addresses. And then they put that into the firewall. Does anybody see a problem with that? 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. All the directory authorities could, for example, put in the IP addresses of every place where you request a visa to leave the country. And then all of a sudden, none of those sites work anymore. Because they're all blocked. Right? So there's a kind of funny thing here. When you know that you are the source of information for censorship, you can affect the outcome of that censorship. We have not done that. And I think it's probably not a wise thing to fuck with the bull unless you're willing to get the horns. But I guess those of you that know me know that I probably don't have a problem with that. So in the future, I can imagine that you might see something like that. Although I don't think the Tor project wants to do that. So it probably won't happen. How much does it cost? How much does what cost? To pay you off. To pay me off? Die in a fire. Sorry to all of those that have actually died in a fire. . So here's the deal. If you run a bridge, you can actually help someone. Right? You can help someone directly right now. I hate to sound like the save the children woman or something. But unfortunately, censorship is a really big problem. And it's not trivial to make it go away because it's socially very successful. A lot of people really believe that they should not have access to information. And they should not be able to make decisions on their own. And that someone else is better making decisions for them. And that they don't need autonomy or agency in order to make changes in the world. I say fuck that. Straight up. Right? If you're not clapping, I'm a little disappointed. And if you are clapping, you can run a bridge and you can also do this. Right? It doesn't take anything special. It's a peer-to-peer network. It's as easy as clicking an install and checking a box. And you literally help people. And while in some cases China is harvesting it, interestingly enough, the Chinese government isn't sharing their block list with other countries. So everybody else has to reproduce this effort. Which means that since they're not doing that, your bridge is still useful in a lot of other places. Like Iran or Canada or here or wherever you happen to be that does some sort of network censorship. Anyway, that's it. Check that single box. And you can do it automatically. And you have no liability. If you do this, they can only connect to the rest of the Tor network. So there's no harm that can possibly come to you unless Tor were to become illegal. Which it's not going to. Thanks. Thank you, Jacob. 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. And I think it makes a good transition from Jake's slides. The fact that, you know, the success of these Tor bridges and the Tor network in general has really sort of changed the game. In terms of censorship. 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. 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. But that would make for a lot of angry citizens and also a lot of, you know, outrage. 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. 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. 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. 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. Or remove the censorship functionality, excuse me. So, whoa, sorry about the formatting there. I think some open office nuances. Green Dam is the host-based censorship software that was introduced by the Chinese government. This was, I think, early last year is when they first announced it. And originally they were saying, hey, all PCs that are sold in China are going to come with this Green Dam software. And there was, you know, a bit of a hoopla around that announcement. 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. The Chinese government kind of backed down. And I think now it's still deployed in, like, Internet cafes where users might not have full control over their computer. And I think they might be rolling it out to, like, schools and stuff, too, or other government organizations. Actually, they are out of funding. But they have target to move this problem. So I think it's a good product to sell in Taiwan. 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. So, again, no titles. I apologize for the formatting here. But these are the features of the Green Dam software, what Anthony briefly went over. They have a content filter, which, you know, looks at the actual content you're creating in these applications. Like if you're writing a Word document or writing in a text file, as Anthony showed the screenshot for. It will actually pop up that nice little warning, which, I don't know, what does that translate to, Anthony? The Chinese message? Yeah. This message is inappropriate. It will be filtered. Okay. Yeah. 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. And they actually did steal some software or some blacklist from the Cyber City company. Just, like, straight up pulled down their blacklist. And included them in the software. Which was pretty blatant. And I think there was some lawsuits over that. Also, the image pornography filtering using the OpenCV package, which looks for the skin tones in the picture. So, you know, that baby picture that Anthony showed has a lot of skin tone colors. So that's why it was considered inappropriate. 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. You know, trivial stuff like some of my colleagues at the University of Michigan. Like, you know, like, you know, like, you know. I think the first thing they tried, they, you know, had a long URL that you click on. That URL is actually inspected by Green Dam. And it's just a straight stack smash. Just with a long URL. This is like, you know, 1990s programming mistakes. So, those features are not necessarily what we're going to focus on today. But we're going to look at, you know, how Green Dam actually operates and how it actually hooks into your host. And sort of the techniques we use to actually unhook those hooks. So there's a wide range of interposition mechanisms at Green Dam. The one that you guys might be most familiar with. If you're familiar with any sort of rootkits or sort of Ring 3 rootkits. They can hook these. There's an API called SetWindowsHook which allows you to be notified of certain activity like window messages or keyboard activity. So you can, some, you know, poor keyloggers will use SetWindowsHook in order to get your keystrokes. It also uses the Winsock LSP which is mostly a headache for normal users. The layered service provider functionality by Winsock. You know, install LSPs and then try to remove them. Usually ends up working the entire Winsock stack. 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. And that's in one of the DLLs that's injected into all the processes on your machine. And lastly, there was, you know, a number of API hooks they use. Which we'll talk a little bit about the techniques that are used to inject the DLLs and also hook the API calls. And there's a list of these, I think, processes. Anthony showed a screenshot of, you know, particular processes by name that are targeted. So a lot of this stuff, if you change your process name, you won't be targeted. But, you know, you might not be able to do that without administrative privileges. So traditionally, if you're familiar with rootkits or API hooking, there's sort of two ways to go about it. 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. Or you can go the lazy route, which is what these guys did with the ring three rootkits or ring three hooks. Which is when you actually implement these API hooking functionality in user space in memory of the process. So you're sort of on this even ground. 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. 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. And then rewrite the instruction that used to be there and jump back. And this is what's used in, you know. Fairly poorly written rootkits and spyware. 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. Which is awesome functionality for rootkits and malware authors. But it can also be used, I guess for good purposes, we're going to use it. But essentially it allows you to actually, you know, like it says, create a remote thread in a process. Allocate memory in that process. Put your executable code into that process. And then execute it within the context of that remote thread. And then run the remote process. So by doing this you can inject into all the running processes. Hook the create process call inside each of those processes. Such that when they launch further processes, you're able to sort of spread virally into those new processes as well. So how Green Damp works is it injects itself into this list of processes. Whether it's Firefox or Notepad. And then we can actually go in and just un-inject all of the Green Damp code that's been put in there. So that's what I did. I wrote a tool called Damp Burst. Which I think is interesting. From the standpoint that us security researchers don't usually get to use our skills for good purposes, so to speak. The same techniques that Damp Burst uses are good for, you know, writing root kits. But, you know, when we can actually use this functionality and our skills to help users who are facing this censorship. It's kind of a win-win. Because you get to do something that's technically interesting. But it also has a good side effect on society. So while there were these interesting vulnerabilities in the Green Damp software. Which would allow us to own all of China. It's always good to try to help the users as opposed to infecting them. So a few properties about Damp Burst. Which, you know, we try to make more friendly for users who might be in restricted environments. It doesn't require administrative privileges. Obviously if you have administrative privileges you can remove or uninstall the Green Damp software. But in many of these cases where you're in an internet cafe or other public computers. You might not have the, you don't own the box. So you might not have admin rights. And you might not be able to remove the software. And we also made this a very transient functionality. Such that it doesn't leave behind a lot of evidence that you were running it. So if you were in an internet cafe. And you bursted a few of the processes on that box in order to evade the censorship. And someone else came to that box later to look at it. They wouldn't know that you had done this. And you can kind of get away scot-free. And then lastly, of course, it actually, by uninjecting the Damp Burst routines that are vulnerable. It actually increases the security of your computer. Because you're sort of cutting off these vulnerabilities. And you can get a code pass for being executed. So the injection process works like so. As I mentioned, these are all standard parts of Win32. Which allow you to allocate memory in the remote processes. And actually write your code into that process. And then start a thread based out of that DLL that you just loaded. And similarly, for the patching of the Winsock LSPs. Once we're actually running code inside the process of the same process that's been infected with Green Damp. We can simply overwrite the LSPs. Since removing them are pain in the ass. We can simply overwrite them with no ops. And just make sure that its functionality is effectively neutered. So we pop into each process. We patch out the functionality of Green Damp. And then we unload it lastly to make sure that the vulnerable routines are no longer in there. And I wanted to show you guys a demo. But I don't have the VM on this laptop. But this is what it would look like. You know, you're searching for porn or whatever you really want to find down there. Immediately when you hit enter, nothing happens. The connection is interrupted. And Green Damp has filtered that because it recognizes it as an offensive word. And you can see that in the little screenshot near the bottom there. You see the handler, inject, lib, db, filter, surf guard. Those are all DLLs that Green Damp has injected. And in the Green Damp snapshot you can see the applications that are specifically targeted by Green Damp in red. So you see Firefox and Notepad there. Have all of the DLLs injected into their process. Address space. And some of the other ones are just partially injected. They don't have all of the same filtering routines injected into those processes. But you can select any process that you want to burst it or you can just click burst all. Our code will go in there and burst all those processes such that this is disabled. And you can search for your porn successfully or your politically motivated material. Whatever you're looking for that Green Damp does not approve of. So getting back to sort of the theme of this. Green Damp was an initial attempt. This host-based sensorware. And as I mentioned the news report that was recently released took all the government funding from this company that was developing Green Damp. And from this first attempt we can see that they did a pretty poor job. They didn't hire the right company. They didn't cross their T's and dot their I's before releasing this. 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. So it is kind of scary to think that in the future they're definitely going to do a much better job. I mean they're not going to make the same mistakes. 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. So I think we'll undoubtedly see more of this host-based censorship software. And I did see just a few weeks ago an article about a new Green Damp or a host-based censorship software in Vietnam. And I haven't looked into that at all. But it's not surprising. I think we'll see a lot more of this in the future. And with that, Anthony, you want to conclude? Yep. Thank you, John, actually, for presenting. And I would like to just and also Jake also present like a short brief of our conclusion. Actually, I suppose the Internet censorship happens everywhere. Okay. So however, we need to have a balance between the monitoring and privacy and free-for-all information. And we are not target. I'm not target to take an 18-hour flight to here to bring my country. However, the problem is we have the issues. We have some areas to improve the technologies. Okay. So how to get more, I mean, more step forward from the research. And so thanks to Jacob, John, and also to give this censorship, I mean, this talk with us. And also I'm thankful to my teammates, Sam, Jackie, and Charles, and my professor, Rocky. And he gives me a lot of insights in the censorship and the network monitoring. And my Chinese brokers, like I said, and Digital Boy. And Cholima is purchased from Digital Boy in $100 in 10 Cholima. And also my wife and my dog's family. This is my head of army. And this is my elder sister. And Gigi is the head of, has the wife. Thank you.