1 00:00:00,000 --> 00:00:06,480 Okay, I'd like to introduce our next speaker, Manfred, who I've actually never actually 2 00:00:06,480 --> 00:00:12,200 met, which is so I'm really excited because I've heard quite a bit about him. 3 00:00:12,200 --> 00:00:19,760 Manfred is presenting, by the way, he's from DEF CON 858 in San Diego, California. 4 00:00:19,760 --> 00:00:24,520 Manfred is presenting How I Learned to Stop Worrying and Love the Band, The Arms Race 5 00:00:24,520 --> 00:00:26,880 and Online Gaming. 6 00:00:26,880 --> 00:00:31,640 This talk will go on over the evolution of cheats and anti-cheat countermeasures in online 7 00:00:31,640 --> 00:00:32,640 gaming. 8 00:00:32,640 --> 00:00:38,520 Real examples will be given from games like Ultima Online, World of Warcraft, Rift Online, 9 00:00:38,520 --> 00:00:44,120 and Present-day Games and Showcase from the point of view of a for-profit gamehacker and 10 00:00:44,120 --> 00:00:50,000 monetization strategies, obstacles, and the ongoing arms race and cheaters versus anti-cheat 11 00:00:50,000 --> 00:00:51,880 technologies. 12 00:00:51,880 --> 00:00:56,640 Present-day state-of-the-art cheat and anti-cheat tech will be discussed along with examples 13 00:00:56,640 --> 00:01:03,320 of consequences to end users, security, privacy, and what upcoming tech is on the horizon. 14 00:01:03,320 --> 00:01:07,960 Manfred started out by taking apart toasters and breaking things to find out how they 15 00:01:07,960 --> 00:01:08,960 were. 16 00:01:08,960 --> 00:01:11,720 Wow, this sounds so familiar. 17 00:01:11,720 --> 00:01:18,040 That curiosity moved him to client-server authorization online games and snowballed 18 00:01:18,040 --> 00:01:25,520 into a 20-plus year career operating in the dark alleys of shadow markets. 19 00:01:25,520 --> 00:01:30,840 That has been in the trenches of hacking online games while building out a tool belt to keep 20 00:01:30,840 --> 00:01:35,720 an upper hand in the ever-changing cheat versus anti-cheat arms race. 21 00:01:35,720 --> 00:01:40,080 So everybody, I'd like you to welcome Manfred to the stage. 22 00:01:40,080 --> 00:01:46,920 Wow, that was a very nice and crazy intro. 23 00:01:46,920 --> 00:01:51,480 I'm sorry to rug pull you guys, but I'm here to actually sell time shares. 24 00:01:51,480 --> 00:01:54,200 Is anybody interested in the time share? 25 00:01:54,200 --> 00:01:57,560 I lived in Florida, so I feel right at home. 26 00:01:57,560 --> 00:01:59,760 Okay, let's see if this works. 27 00:01:59,760 --> 00:02:03,480 I have this crazy two-laptop system set up because I like to see speaker notes and I 28 00:02:03,480 --> 00:02:06,360 like to see which slide is next. 29 00:02:06,360 --> 00:02:10,960 But yeah, I'm a big fan of the movie Dr. Strangelove. 30 00:02:10,960 --> 00:02:11,960 I am Manfred. 31 00:02:11,960 --> 00:02:17,440 This is DEF CON 32, and it's 3 o'clock Pacific time. 32 00:02:17,440 --> 00:02:26,960 All right, cool, it works. 33 00:02:26,960 --> 00:02:32,520 So today's agenda, we're going to talk about games, all types of games, online games, single 34 00:02:32,520 --> 00:02:35,360 player games, multiplayer games, peer-to-peer games. 35 00:02:35,360 --> 00:02:41,040 We're going to talk about what makes online games special, why they are a big target for 36 00:02:41,040 --> 00:02:44,400 hackers and trolls and cheaters and everybody else. 37 00:02:44,760 --> 00:02:50,720 We'll talk about the economy in games, the multiplayer economy, what motivates exploits 38 00:02:50,720 --> 00:02:53,960 and hackers, or hackers to find exploits. 39 00:02:53,960 --> 00:02:59,200 And then there's a lot of cool stuff going on in the cheat, anti-cheat, anti-anti-cheat 40 00:02:59,200 --> 00:03:01,200 arms race. 41 00:03:01,200 --> 00:03:02,680 Things are accelerating very fast. 42 00:03:02,680 --> 00:03:08,400 It used to be back in between, I'd say, 2000 and 2010, it was the Wild West. 43 00:03:08,400 --> 00:03:12,960 You could tamper with the game plans any way you wanted, and the game plan wouldn't 44 00:03:12,960 --> 00:03:14,360 care. 45 00:03:14,360 --> 00:03:21,280 Anti-cheat, game client obfuscation techniques started coming into play around 2010, and things 46 00:03:21,280 --> 00:03:25,360 just got crazier and crazier since then, especially the past couple of years. 47 00:03:25,360 --> 00:03:30,640 And then if we have time, I'll go over a couple of practical examples of how you exploit an 48 00:03:30,640 --> 00:03:34,880 online economy for profit. 49 00:03:34,880 --> 00:03:37,720 So who's this guy up on stage? 50 00:03:37,720 --> 00:03:39,360 My online nickname is Manfred. 51 00:03:39,360 --> 00:03:44,840 I was named by a game master and a game called Ultima Online back in 1997. 52 00:03:44,840 --> 00:03:48,000 They didn't like the name, I picked for myself, so they just gave me a random name. 53 00:03:48,000 --> 00:03:50,480 It was a random NPC named Manfred. 54 00:03:50,480 --> 00:03:55,920 They happened to be nearby, he's like, hey, you're going to be called Manfred, you know? 55 00:03:55,920 --> 00:04:01,800 Like most people in the cyber sex space, I'm curiosity driven, and I typically break things. 56 00:04:01,800 --> 00:04:07,960 I blue screened a lot of laptops, I broke a lot of laptops, broke a lot of devices. 57 00:04:07,960 --> 00:04:08,960 Luckily it's all being good. 58 00:04:08,960 --> 00:04:11,520 Nothing has been irreversible. 59 00:04:11,520 --> 00:04:16,160 And my specialty are things I like to do the most, because I'm crazy. 60 00:04:16,160 --> 00:04:22,680 I like to look at custom protocols and obfuscated code, and how games and process in general 61 00:04:22,680 --> 00:04:26,560 interact with the operating system, and what you can discern from that. 62 00:04:26,560 --> 00:04:27,560 What's this game doing? 63 00:04:27,560 --> 00:04:30,440 Is it trying to be malicious? 64 00:04:30,440 --> 00:04:34,920 Is it basically a root kit disguised as a game? 65 00:04:34,920 --> 00:04:38,720 Is it sending back home a bunch of sensitive information that shouldn't be sending? 66 00:04:38,720 --> 00:04:42,680 It actually happens more so than not. 67 00:04:42,680 --> 00:04:47,160 And I've learned all of this through my 20-year career in like, exploiting online games. 68 00:04:47,160 --> 00:04:48,520 They used to be my full-time job. 69 00:04:48,520 --> 00:04:53,520 I'd wake up in the morning, install a new game, if a new game was out, find an exploit 70 00:04:53,520 --> 00:04:58,440 in it, and then that evening I'd be selling stuff online, and I'd kind of go into that 71 00:04:58,440 --> 00:04:59,440 later. 72 00:04:59,440 --> 00:05:04,080 But through that entire span, I've always had my security researcher hat and I've been 73 00:05:04,080 --> 00:05:08,160 a security analyst, I've done other stuff outside of the game hacking. 74 00:05:09,160 --> 00:05:15,000 Coming back to the title of the stock, I've been banned over 10,000 times from a lot of 75 00:05:15,000 --> 00:05:16,000 different games. 76 00:05:16,000 --> 00:05:19,640 I'll chat about that. 77 00:05:19,640 --> 00:05:22,160 But first, what's the curiosity you draw in the hacker? 78 00:05:22,160 --> 00:05:27,400 An example of this was when I was eight, I had a Nintendo Entertainment System, and I 79 00:05:27,400 --> 00:05:29,400 had a lot of free time on my hands. 80 00:05:29,400 --> 00:05:34,040 That's like the formula for when things go wrong with hackers is like, when you have 81 00:05:34,040 --> 00:05:37,920 electronic gadgets in a lot of free time, bad stuff happens. 82 00:05:38,680 --> 00:05:44,760 So I discovered that if you take a Nintendo System and you take a fork and you short out 83 00:05:44,760 --> 00:05:49,640 some pins in that Nintendo System, you get like garbled graphics. 84 00:05:49,640 --> 00:05:54,800 I got lucky and I was able to like short out some data pins on how the cartridge was talking 85 00:05:54,800 --> 00:06:00,320 to the CPU, and I was able to do like cool stuff like garbled the graphics, get weird 86 00:06:00,320 --> 00:06:01,560 ass characters to appear. 87 00:06:01,560 --> 00:06:04,600 I was like, I was feeling like hacker Jesus himself. 88 00:06:04,600 --> 00:06:10,760 I was like, man, this is the tops, I peaked at the age of eight. 89 00:06:10,760 --> 00:06:18,160 But I continued on shorting out different pins, and then I figured out what an electrical 90 00:06:18,160 --> 00:06:19,160 fire smells like. 91 00:06:19,160 --> 00:06:22,680 Kind of smells cool, but also it breaks stuff. 92 00:06:22,680 --> 00:06:27,920 So I was very sad because I didn't have a Nintendo for the rest of that summer, or for 93 00:06:27,920 --> 00:06:28,920 the rest of the year. 94 00:06:29,440 --> 00:06:32,240 But anyway, then I discovered online gaming. 95 00:06:35,840 --> 00:06:43,960 Before we go into online gaming, I want to share with you guys a typical DEFCON talk 96 00:06:43,960 --> 00:06:48,320 prep that I think a lot of people do at DEFCON is you Google something first. 97 00:06:49,320 --> 00:06:52,520 You Google what the status of limitations for computer crimes is. 98 00:06:53,520 --> 00:06:54,600 Luckily, it's five years. 99 00:06:56,120 --> 00:06:57,760 So back to gaming things. 100 00:06:59,600 --> 00:07:03,760 My motivation mainly was for curiosity, like how does an online game work? 101 00:07:04,400 --> 00:07:05,560 What protocol does it use? 102 00:07:05,560 --> 00:07:06,720 Does it use HTTP? 103 00:07:06,720 --> 00:07:07,560 Is it encrypted? 104 00:07:07,560 --> 00:07:08,920 Is it using WebSockets? 105 00:07:09,440 --> 00:07:14,040 If it's not using HTTP protocols, is it using UDP, TCP? 106 00:07:15,320 --> 00:07:16,800 Are they using stuff aftershelf? 107 00:07:16,800 --> 00:07:18,960 Are they like hand-wronging their own custom protocols? 108 00:07:20,160 --> 00:07:22,160 And then I made a discovery at the same time. 109 00:07:22,800 --> 00:07:25,760 And that is, can you guys hear me? 110 00:07:29,320 --> 00:07:30,000 Yeah, you're fine. 111 00:07:30,600 --> 00:07:31,480 Yeah, we're fine. 112 00:07:32,960 --> 00:07:33,160 Yeah. 113 00:07:33,160 --> 00:07:33,400 Okay. 114 00:07:33,640 --> 00:07:34,640 It felt like I was lagging. 115 00:07:35,720 --> 00:07:40,000 At around the same time, I discovered that players like buying gold from other 116 00:07:40,000 --> 00:07:42,320 players, especially in the MMORPGs. 117 00:07:43,640 --> 00:07:47,960 Initially, game developers didn't sell gold or items directly to players. 118 00:07:48,400 --> 00:07:52,800 So I came in, swooped in, and I filled that unmet demand. 119 00:07:54,720 --> 00:07:58,000 So I created a business, a for-profit business of like going into games, 120 00:07:58,720 --> 00:08:03,200 farming items in gold, or hacking items in gold, creating them out of thin air, 121 00:08:03,760 --> 00:08:05,920 and supplying them to other players in the outside markets. 122 00:08:05,920 --> 00:08:11,920 So it first started on eBay, and then moved to Chinese resourcer sites like IGE, 123 00:08:11,920 --> 00:08:14,840 EGPAL, player auctions, and things like that. 124 00:08:15,200 --> 00:08:18,320 Activity in this is what's known as the shadow market, and the shadow market is 125 00:08:18,320 --> 00:08:19,520 pretty big, I'll get into that later. 126 00:08:20,800 --> 00:08:23,720 So what's an opportunity like for a game? 127 00:08:23,720 --> 00:08:26,640 For an example game, what can you profit off of it? 128 00:08:28,280 --> 00:08:31,920 So this is a recreation of an actual conversation I had with one of my 129 00:08:32,080 --> 00:08:33,880 wholesalers that was looking for gold. 130 00:08:34,520 --> 00:08:38,280 So I hit him up, I was like, hello, there are some hot games in demand. 131 00:08:38,480 --> 00:08:42,760 And this wholesaler said, Lord of the Rings online is pretty good, 132 00:08:42,840 --> 00:08:45,120 third page of Kamma is still pretty hot. 133 00:08:45,840 --> 00:08:51,360 And then the seller said they always need more Final Fantasy 14 gold. 134 00:08:52,560 --> 00:08:54,520 And then they asked me, can you do FIFA online? 135 00:08:54,680 --> 00:08:58,280 FIFA had this new system called FIFA Ultimate Team Points, I think. 136 00:08:59,440 --> 00:09:01,960 And I was like, I never looked into it, and the demand is pretty good. 137 00:09:02,560 --> 00:09:06,320 And they told me they can buy around half a million dollars USD 138 00:09:06,320 --> 00:09:08,520 per day worth of FIFA coins. 139 00:09:08,520 --> 00:09:10,120 I was like, hmm, interesting. 140 00:09:10,120 --> 00:09:13,800 So I did some backchalling cross-check their thinking. 141 00:09:13,800 --> 00:09:16,120 And yeah, there was a huge demand for FIFA coins. 142 00:09:16,920 --> 00:09:21,000 I found out Electronic Arts was also selling FIFA coins to players directly 143 00:09:21,000 --> 00:09:25,280 for cash. And I didn't want to cross that boundary of interfering 144 00:09:25,280 --> 00:09:28,400 with Electronic Arts' business model. 145 00:09:29,080 --> 00:09:32,040 There are some people that did, and it's well documented. 146 00:09:32,040 --> 00:09:36,360 If you Google FIFA coin gold farmers, 147 00:09:38,600 --> 00:09:41,560 they made a lot of money very quickly, I think a few million dollars 148 00:09:41,560 --> 00:09:42,880 in spending a few months. 149 00:09:43,840 --> 00:09:46,120 But FIFA has a very big, big legal team. 150 00:09:46,720 --> 00:09:49,760 These guys got found out and it was a very happy story in the end. 151 00:09:50,360 --> 00:09:53,960 So I'm glad I stayed away from competing with the game company 152 00:09:53,960 --> 00:09:55,440 and how they monetized their games. 153 00:09:57,080 --> 00:10:02,760 But a brief timeline of my 20-year career in hacking online games for profit. 154 00:10:03,560 --> 00:10:04,960 Start off with Ultimate Online. 155 00:10:04,960 --> 00:10:08,680 It ended off with Guildverse 2 around 2017. 156 00:10:10,000 --> 00:10:13,680 And in red, here's a number of accounts that have been banned in each game. 157 00:10:13,800 --> 00:10:16,480 UO was around 100. 158 00:10:16,480 --> 00:10:18,800 Dark Age of Galant was around 1000 accounts that got banned. 159 00:10:20,400 --> 00:10:25,440 Also, Dark Age of Camelot, I used the same exact exploit for about 13 years 160 00:10:25,440 --> 00:10:27,280 before they discovered what was going on. 161 00:10:29,000 --> 00:10:31,560 Final Fantasy around 500 accounts, 162 00:10:32,320 --> 00:10:36,280 Lineage around 100, Final Fantasy 11, 500. 163 00:10:37,360 --> 00:10:40,040 Rift Online, they were very good at banning my accounts. 164 00:10:40,040 --> 00:10:45,440 I went through about maybe 50 accounts per day, lost 4,000 accounts there. 165 00:10:46,200 --> 00:10:48,560 Guildverse 2, also very good at banning accounts, 166 00:10:48,560 --> 00:10:53,800 went through 20 to 80 accounts per day, lost about 4,000 accounts there. 167 00:10:55,800 --> 00:11:00,000 And then, games like Shadowbane and Wildstar, they never actually caught on. 168 00:11:00,840 --> 00:11:04,120 Maybe they didn't have any, like, monitoring tools on the back end 169 00:11:04,120 --> 00:11:09,000 to see if you had level one players with like 3 billion gold running around 170 00:11:09,120 --> 00:11:11,800 or insane amounts that a player shouldn't have. 171 00:11:12,800 --> 00:11:16,440 And then, this black dotted line happens to coincide 172 00:11:16,440 --> 00:11:18,680 with the Statutes of Limitation for Computer Crimes. 173 00:11:19,320 --> 00:11:25,640 I'm just kidding, I never continued hacking games after I left that field in 2017. 174 00:11:28,520 --> 00:11:30,840 So, let's set the stage a little bit. 175 00:11:30,840 --> 00:11:33,000 This should be pretty obvious to everybody, 176 00:11:33,000 --> 00:11:36,200 but we'll talk about, like, what are the different types of games 177 00:11:36,200 --> 00:11:37,880 and what are the pros and cons. 178 00:11:38,880 --> 00:11:42,800 So, old school, you had single player local games. 179 00:11:42,800 --> 00:11:46,000 You played a game and the game state is saved, 180 00:11:46,000 --> 00:11:48,080 typically to the file system on your disk, 181 00:11:48,080 --> 00:11:52,800 and it kind of keeps track of, like, the world state and your character state. 182 00:11:53,600 --> 00:11:56,200 So, when you open up the game, it reads the game state 183 00:11:56,200 --> 00:11:58,120 and you resume wherever you left off. 184 00:12:00,480 --> 00:12:03,360 There's problems with this, because if you uninstall the game, 185 00:12:03,360 --> 00:12:07,080 you lose all your progress, because the save file will probably get deleted. 186 00:12:07,360 --> 00:12:09,320 If you install the game on a different device, 187 00:12:09,320 --> 00:12:11,720 it's hard to transfer that progress, 188 00:12:11,720 --> 00:12:16,440 especially if you don't have, like, a root on an Android or iOS device 189 00:12:16,440 --> 00:12:19,160 or some other device that's locked down. 190 00:12:20,680 --> 00:12:24,400 But more importantly, the state of your game save can be easily modified. 191 00:12:24,400 --> 00:12:27,480 Like, you can just use a text editor and go in, typically, 192 00:12:27,480 --> 00:12:30,920 and give yourself all the gold points and items you want. 193 00:12:31,920 --> 00:12:38,160 So, then came, you know, single player online games, 194 00:12:38,160 --> 00:12:41,640 where the game state is stored online 195 00:12:41,640 --> 00:12:45,600 through some RPC call to a game server on the back end, 196 00:12:45,600 --> 00:12:49,040 and the game server keeps track and calculates your progress. 197 00:12:51,960 --> 00:12:53,520 This has some benefits. 198 00:12:53,520 --> 00:12:56,520 If you uninstall the game, your save data is typically preserved, 199 00:12:56,520 --> 00:12:59,280 because it's tied typically to, like, some sort of account, 200 00:12:59,320 --> 00:13:01,920 or if you're using Apple ID or Google ID or Steam, 201 00:13:01,920 --> 00:13:04,600 it's tied to your identity there. 202 00:13:05,360 --> 00:13:09,200 If you install the game on a different device, your save state is loaded. 203 00:13:11,760 --> 00:13:15,720 Most importantly, it's difficult to directly edit the save state. 204 00:13:16,520 --> 00:13:21,160 So, when you're playing a game that has scarcity built into the economy, 205 00:13:21,160 --> 00:13:25,800 like, let's say, you fight a really epic monster and it drops an epic sword, 206 00:13:26,800 --> 00:13:30,800 you can be pretty assured that no other player is going to have that sword. 207 00:13:30,800 --> 00:13:34,400 Therefore, you know, it becomes a status symbol 208 00:13:34,400 --> 00:13:40,040 or what have you in that game, an item of envy, I guess, to other players. 209 00:13:40,040 --> 00:13:43,040 So, when you get really cool stuff, you're happy, 210 00:13:43,040 --> 00:13:46,040 because you're like, hey, this is something I earned, 211 00:13:46,040 --> 00:13:50,040 and I trust the game company not to, like, give this item out to everybody, 212 00:13:50,040 --> 00:13:53,040 so it makes it more special for me, because it's more rare. 213 00:13:54,040 --> 00:13:58,040 Single-player online problems, as you need an internet connection, 214 00:13:58,040 --> 00:14:00,040 but these days, pretty much everybody has this, 215 00:14:00,040 --> 00:14:02,040 and you need to handle authentication, 216 00:14:02,040 --> 00:14:05,040 but that's also provided by third-party identity providers. 217 00:14:07,040 --> 00:14:09,040 Then you have multiplayer peer-to-peer. 218 00:14:09,040 --> 00:14:12,040 Grim, Dawn is an example. 219 00:14:12,040 --> 00:14:15,040 There's a lot of different games that use this model, 220 00:14:15,040 --> 00:14:19,040 and it's basically each player is in charge of saving your own game state, 221 00:14:19,040 --> 00:14:23,040 and they share this game state with each other's game clients. 222 00:14:23,040 --> 00:14:27,040 It's a lot like the single-player model, local model, 223 00:14:27,040 --> 00:14:30,040 but the game state is shared between game clients. 224 00:14:30,040 --> 00:14:32,040 There's no server involved. 225 00:14:35,040 --> 00:14:38,040 So, benefits with this is it's more fun to play games with friends, 226 00:14:38,040 --> 00:14:42,040 but you still have the problem of if you uninstall the game, 227 00:14:42,040 --> 00:14:45,040 you lose the progress, and if you transfer the game to a different device, 228 00:14:45,040 --> 00:14:47,040 you still lose the progress. 229 00:14:47,040 --> 00:14:49,040 You still lose the progress. 230 00:14:49,040 --> 00:14:52,040 And the save state can easily be modified, 231 00:14:52,040 --> 00:14:54,040 so your friend might be like, 232 00:14:54,040 --> 00:14:58,040 hey, what if I give myself superpowers or tons of gold, 233 00:14:58,040 --> 00:15:00,040 and then you log in to play with your friend, 234 00:15:00,040 --> 00:15:02,040 and you'll be like, hey, you're boosting. 235 00:15:02,040 --> 00:15:04,040 There's no way I'm going to catch up to you because you're cheating. 236 00:15:04,040 --> 00:15:06,040 I don't want to cheat, stuff like that. 237 00:15:06,040 --> 00:15:09,040 So it creates conflicts and friction in the gameplay experience. 238 00:15:11,040 --> 00:15:14,040 Then my favorite is you have multiplayer online, 239 00:15:14,040 --> 00:15:18,040 where typically there's an authoritative server involved 240 00:15:18,040 --> 00:15:20,040 in pretty much every single action, 241 00:15:20,040 --> 00:15:25,040 every single player transmits that server. 242 00:15:25,040 --> 00:15:29,040 So here in the very famous Ultimate Night Screenshot, 243 00:15:29,040 --> 00:15:32,040 where you have two friendly neighbors, 244 00:15:32,040 --> 00:15:35,040 player one and player two each have their own game clients 245 00:15:35,040 --> 00:15:37,040 and they're talking to the game server, 246 00:15:37,040 --> 00:15:41,040 and the game server is keeping track of player ones and player twos game states. 247 00:15:42,040 --> 00:15:47,040 Again, if you're going to try and hack this, 248 00:15:47,040 --> 00:15:49,040 you have to reverse engineer the client, 249 00:15:49,040 --> 00:15:52,040 reverse engineer the RPC protocol 250 00:15:52,040 --> 00:15:54,040 and how the game client is talking to the server 251 00:15:54,040 --> 00:15:59,040 in order to modify your gold or progression inside the game, 252 00:15:59,040 --> 00:16:02,040 which is difficult to do typically. 253 00:16:02,040 --> 00:16:07,040 So you had an increased illusion of scarcity 254 00:16:07,040 --> 00:16:11,040 and value for the items you're inside the game. 255 00:16:11,040 --> 00:16:15,040 But again, I feel like I'll install the game and install it on a different computer. 256 00:16:15,040 --> 00:16:19,040 Your save state will transfer over. 257 00:16:19,040 --> 00:16:23,040 Again, you need an internet connection, authentication, 258 00:16:23,040 --> 00:16:26,040 but all that is typically handled by something else. 259 00:16:26,040 --> 00:16:30,040 But for the game developer, it gets more challenging 260 00:16:30,040 --> 00:16:32,040 because you need to build complicated systems 261 00:16:32,040 --> 00:16:36,040 to track the game state of a massively multiplayer game. 262 00:16:36,040 --> 00:16:39,040 Some of these servers handle maybe 50,000 players 263 00:16:39,040 --> 00:16:42,040 and they need to handle how items are spawned, 264 00:16:42,040 --> 00:16:45,040 how items are transferred to different players, 265 00:16:45,040 --> 00:16:48,040 how auction houses look like in-game mail. 266 00:16:48,040 --> 00:16:52,040 Some games allow you to mail items to other players, 267 00:16:52,040 --> 00:16:54,040 different auction mechanics, 268 00:16:54,040 --> 00:16:57,040 and there's always a developer-to-player cash store. 269 00:16:57,040 --> 00:17:01,040 Typically, game companies have to reinvent the wheel on all of this 270 00:17:01,040 --> 00:17:03,040 for every single game, 271 00:17:03,040 --> 00:17:08,040 and what that leads to is the same exploits found over and over again. 272 00:17:11,040 --> 00:17:14,040 So let's chat about game economies. 273 00:17:14,040 --> 00:17:16,040 At a super high level, there's two types. 274 00:17:16,040 --> 00:17:21,040 There's a game economy that's intended to be played as by the developer, 275 00:17:21,040 --> 00:17:23,040 like the revision of how the game should be played, 276 00:17:23,040 --> 00:17:25,040 and then there's what really takes place. 277 00:17:25,040 --> 00:17:29,040 And as we know, players are like a box of cats, 278 00:17:29,040 --> 00:17:32,040 and it's really hard to hurt in cats. 279 00:17:32,040 --> 00:17:36,040 So in a MMORPG economy, 280 00:17:36,040 --> 00:17:38,040 you typically have what's known as faucets, 281 00:17:38,040 --> 00:17:40,040 things that generate items, 282 00:17:40,040 --> 00:17:42,040 and then you have drains, things that consume items. 283 00:17:42,040 --> 00:17:44,040 And in the mix, you have players. 284 00:17:44,040 --> 00:17:48,040 They interact with each through gameplay and other mechanics. 285 00:17:48,040 --> 00:17:54,040 So a way of getting items inside the game is to play the game, 286 00:17:54,040 --> 00:17:57,040 you kill stuff, you either farm resources, 287 00:17:57,040 --> 00:18:01,040 and you get gear, resources like iron ore and stuff like that, 288 00:18:01,040 --> 00:18:03,040 or gold coins. 289 00:18:03,040 --> 00:18:07,040 The other way is to do an app purchase flow where you buy cosmetics, 290 00:18:07,040 --> 00:18:10,040 typically, like a new hat or quality of life things, 291 00:18:10,040 --> 00:18:12,040 like things that let you teleport to friends, 292 00:18:12,040 --> 00:18:17,040 or maybe let you get more XP more quickly. 293 00:18:17,040 --> 00:18:22,040 And these items can typically be traded with your friends inside the game. 294 00:18:22,040 --> 00:18:23,040 That's totally fine. 295 00:18:23,040 --> 00:18:26,040 But as soon as you try to sell those items for cash, 296 00:18:26,040 --> 00:18:31,040 on like some forum like player auctions or eBay, 297 00:18:31,040 --> 00:18:34,040 that's known as RMT, real-money trading, 298 00:18:34,040 --> 00:18:39,040 and you get banned for that. 299 00:18:39,040 --> 00:18:44,040 And that shallow market or that real-money transaction shallow market, 300 00:18:44,040 --> 00:18:46,040 it's pretty big. 301 00:18:46,040 --> 00:18:49,040 Players interact with black market sales all the time. 302 00:18:49,040 --> 00:18:51,040 It's a multi-billion dollar industry. 303 00:18:51,040 --> 00:18:55,040 For example, in Fortnite, 304 00:18:55,040 --> 00:19:00,040 people were interacting a billion dollars worth of game accounts annually. 305 00:19:00,040 --> 00:19:07,040 And any game that allows player-to-player transfers is always going to have a black market. 306 00:19:07,040 --> 00:19:12,040 And then this is, like I said, against the terms of service. 307 00:19:12,040 --> 00:19:15,040 Typically, sites, shallow market sites that you interact with 308 00:19:15,040 --> 00:19:18,040 will have like in bold red on top of the site saying, 309 00:19:18,040 --> 00:19:22,040 hey, if you buy golden items through us, you risk getting banned. 310 00:19:22,040 --> 00:19:26,040 And even though that's widely known by players, they still participate in it. 311 00:19:26,040 --> 00:19:32,040 Because it's one way to avoid tedious tasks inside of the game that are grind. 312 00:19:32,040 --> 00:19:37,040 Like in some games, you might have to grind for a couple of weeks to get an epic sword. 313 00:19:37,040 --> 00:19:40,040 Some players don't have the time to do that. 314 00:19:40,040 --> 00:19:44,040 So they'd rather go to some seller on the shadow site 315 00:19:44,040 --> 00:19:48,040 and pay a couple hundred bucks to bypass all that work. 316 00:19:48,040 --> 00:19:51,040 So it's in huge demand. 317 00:19:51,040 --> 00:19:53,040 And popular items are being traded. 318 00:19:53,040 --> 00:19:57,040 You have game currency, gear, and sometimes entire accounts. 319 00:19:57,040 --> 00:20:03,040 And the workflow for that for a farmer or anybody that wants to supply the shadow market 320 00:20:03,040 --> 00:20:07,040 is you log into the game, you gather items and gold, 321 00:20:07,040 --> 00:20:13,040 and you sell it to the players directly, or you sell it to resellers. 322 00:20:14,040 --> 00:20:17,040 So why do people exploit in games? 323 00:20:17,040 --> 00:20:21,040 Two obvious ones, for fun and profit, the old saying. 324 00:20:21,040 --> 00:20:25,040 For fun, typically you have things like wall hacking, radar views, 325 00:20:25,040 --> 00:20:28,040 anything that lets you get an advantage over another player, 326 00:20:28,040 --> 00:20:31,040 teleporting around, aim bots. 327 00:20:31,040 --> 00:20:34,040 If you're looking to earn some money, you can have a farming bot 328 00:20:34,040 --> 00:20:41,040 just play the game for you and amass tons and tons of items that you can resell. 329 00:20:42,040 --> 00:20:45,040 I'm a big fan of trolling, exploiting for trolling. 330 00:20:45,040 --> 00:20:49,040 As long as it's done responsibly, it can be pretty fun. 331 00:20:51,040 --> 00:20:56,040 And also a big part of it is exploiting online games is a huge tactical challenge. 332 00:20:56,040 --> 00:21:00,040 You've got to figure out how all this stuff works before you can break it, 333 00:21:00,040 --> 00:21:04,040 and that in itself is a game by itself. 334 00:21:04,040 --> 00:21:09,040 For profit, there's no shortage of sites trying to sell in-game gold 335 00:21:09,040 --> 00:21:14,040 in games like World of Warcraft, pretty much any game that has trading. 336 00:21:14,040 --> 00:21:19,040 You'll have a site popping up up there to sell you gold and items from that game. 337 00:21:19,040 --> 00:21:22,040 Again, it's against the terms of service, you'll get banned for it, 338 00:21:22,040 --> 00:21:26,040 but it's still a huge industry. 339 00:21:27,040 --> 00:21:33,040 Then you have people selling services and tools in games. 340 00:21:34,040 --> 00:21:39,040 This is a screenshot of a site I won't call out, 341 00:21:39,040 --> 00:21:45,040 but they basically have exploits for pretty much every single major game out there. 342 00:21:45,040 --> 00:21:49,040 They claim that their exploits are undetected because they use very crazy, 343 00:21:49,040 --> 00:21:55,040 advanced, kernel-level-based exploits that kind of live inside of the Windows operating system. 344 00:21:56,040 --> 00:22:00,040 So it's harder to detect using anti-cheat methods. 345 00:22:01,040 --> 00:22:04,040 Some of these sites, they make millions of dollars per month 346 00:22:04,040 --> 00:22:08,040 because they have thousands or tens or thousands of players 347 00:22:08,040 --> 00:22:13,040 spending $20 to $100 a month to get undetected cheats in their favorite game. 348 00:22:16,040 --> 00:22:23,040 If you want to get into game hacking, you will need to build out a tool set. 349 00:22:24,040 --> 00:22:29,040 This is a really big rabbit hole because typically you want tools 350 00:22:29,040 --> 00:22:31,040 that are not off-the-shelf. 351 00:22:31,040 --> 00:22:34,040 If you use off-the-shelf tools, you will get banned. 352 00:22:34,040 --> 00:22:38,040 Today's games, pretty much all of them use some sort of anti-cheat, 353 00:22:38,040 --> 00:22:41,040 and all the anti-cheat systems look for common tools, 354 00:22:41,040 --> 00:22:44,040 like, hey, are you running IDA in the background? 355 00:22:44,040 --> 00:22:48,040 Are you running a hex editor that has memory access? 356 00:22:48,040 --> 00:22:50,040 Are you running a debugger? 357 00:22:50,040 --> 00:22:53,040 Things like that, and typically you'll get flagged 358 00:22:53,040 --> 00:22:56,040 and maybe kicked from the game with a friendly error 359 00:22:56,040 --> 00:23:01,040 saying, hey, you're running a program that's not supposed to be run alongside this game. 360 00:23:01,040 --> 00:23:05,040 Sometimes these anti-cheat things go a little wild, 361 00:23:05,040 --> 00:23:07,040 but sometimes I play games on my development system 362 00:23:07,040 --> 00:23:10,040 and I had MySQL running in the background, 363 00:23:10,040 --> 00:23:14,040 and I tried to log into, I think the game was Star Wars All the Republic, 364 00:23:14,040 --> 00:23:17,040 and I logged in and the game kicked me out 365 00:23:17,040 --> 00:23:19,040 and said, hey, you're running a banned program, 366 00:23:19,040 --> 00:23:21,040 and said the banned program was MySQL. 367 00:23:21,040 --> 00:23:24,040 I was like, that doesn't sound right, but okay, whatever. 368 00:23:27,040 --> 00:23:30,040 So when you're building out your tool set, 369 00:23:30,040 --> 00:23:38,040 your main goal is to somehow be able to modify the game client, 370 00:23:38,040 --> 00:23:42,040 get read write memory access to its memory space. 371 00:23:42,040 --> 00:23:48,040 From there you can build out pretty much anything you want, 372 00:23:48,040 --> 00:23:52,040 like if you hook functions, you can modify your run speed, 373 00:23:52,040 --> 00:23:55,040 you can look at how the data is being sent between the game client 374 00:23:55,040 --> 00:23:57,040 and the game server to start fuzzing it. 375 00:23:57,040 --> 00:23:59,040 You can modify the game anyway you want, 376 00:23:59,040 --> 00:24:01,040 as long as you have memory access. 377 00:24:01,040 --> 00:24:03,040 That's the hard part. 378 00:24:03,040 --> 00:24:08,040 To get there you have to use tools to reverse your game client, 379 00:24:08,040 --> 00:24:11,040 while trying to avoid getting banned. 380 00:24:11,040 --> 00:24:18,040 Sometimes you'll have to sacrifice an account or a machine or a PC, 381 00:24:18,040 --> 00:24:21,040 because sometimes these days when you're banned, 382 00:24:21,040 --> 00:24:25,040 your hardware ID of your PC will also get blacklisted. 383 00:24:28,040 --> 00:24:32,040 Sometimes I have a throwaway PC or a VM machine 384 00:24:32,040 --> 00:24:37,040 that I do my initial recon on using tools like X64 debug, 385 00:24:37,040 --> 00:24:41,040 Wireshark maybe, although that's not as useful in online games, 386 00:24:41,040 --> 00:24:44,040 because most of them are encrypted and use custom protocols. 387 00:24:44,040 --> 00:24:47,040 That's a good way to get a quick play of the land 388 00:24:47,040 --> 00:24:50,040 and see how the game client is talking to the server. 389 00:24:50,040 --> 00:24:53,040 And how it's interacting with the operating system. 390 00:24:53,040 --> 00:24:58,040 See if there's any ways you can load a DLL into its process space 391 00:24:58,040 --> 00:25:01,040 easily through different vulnerabilities. 392 00:25:01,040 --> 00:25:05,040 Maybe get an idea of how the game client is trying to detect 393 00:25:05,040 --> 00:25:07,040 if you're using anti-cheat tools, 394 00:25:07,040 --> 00:25:10,040 if it's querying the operating system to be like, 395 00:25:10,040 --> 00:25:14,040 hey, a memory division process in this user's system, 396 00:25:14,040 --> 00:25:17,040 so I can flag the ones that are blacklisted. 397 00:25:18,040 --> 00:25:19,040 Things like that. 398 00:25:19,040 --> 00:25:22,040 A good tool for this, that's like a Swiss Army Life, 399 00:25:22,040 --> 00:25:23,040 it's called Cheat Engine. 400 00:25:23,040 --> 00:25:26,040 Highly recommend playing around with that. 401 00:25:26,040 --> 00:25:30,040 It's basically a debugger and a memory editor specifically built 402 00:25:30,040 --> 00:25:35,040 for workflows you do in developing cheats in games, 403 00:25:35,040 --> 00:25:36,040 especially single-player games, 404 00:25:36,040 --> 00:25:38,040 but you can also work on online games. 405 00:25:41,040 --> 00:25:43,040 So the goal is to get memory access, 406 00:25:43,040 --> 00:25:45,040 but also to be undetectable. 407 00:25:45,040 --> 00:25:48,040 And that's very hard to do these days. 408 00:25:50,040 --> 00:25:52,040 I'll kind of go into that. 409 00:25:52,040 --> 00:25:54,040 So back in the day, 410 00:25:54,040 --> 00:25:57,040 you could run all of your cheat tools inside of userland 411 00:25:57,040 --> 00:26:02,040 or ring three in Windows where you basically had your cheat tool 412 00:26:02,040 --> 00:26:06,040 and for example, you could call Windows APIs 413 00:26:06,040 --> 00:26:09,040 to read and write process memory for the game client. 414 00:26:09,040 --> 00:26:11,040 And then that could get you a foothold 415 00:26:12,040 --> 00:26:15,040 starting to tamper with that game client, 416 00:26:15,040 --> 00:26:17,040 reading values for memory, 417 00:26:17,040 --> 00:26:19,040 and then maybe potentially injecting some code 418 00:26:19,040 --> 00:26:21,040 to modify how the game works. 419 00:26:23,040 --> 00:26:26,040 This is pretty... 420 00:26:26,040 --> 00:26:28,040 Out of all the options up there, 421 00:26:28,040 --> 00:26:30,040 this is like a lower learning curve. 422 00:26:30,040 --> 00:26:33,040 You could probably do a userland-based cheat 423 00:26:33,040 --> 00:26:37,040 for a single-player game inside of a few hours, 424 00:26:37,040 --> 00:26:40,040 especially with the help of like chat GPT or something. 425 00:26:41,040 --> 00:26:43,040 If you mess up, the game client will crash. 426 00:26:43,040 --> 00:26:46,040 Your computer won't blue screen. 427 00:26:46,040 --> 00:26:49,040 And it's well-documented on how to pull this off 428 00:26:49,040 --> 00:26:53,040 in different communities and LLMs 429 00:26:53,040 --> 00:26:55,040 that have been fed with all this data. 430 00:26:55,040 --> 00:26:58,040 I'll link all this stuff at the end of the presentation. 431 00:26:58,040 --> 00:27:00,040 And it's likely to work with different OS versions 432 00:27:00,040 --> 00:27:03,040 because you're working at the application layer 433 00:27:03,040 --> 00:27:06,040 and you're not doing crazy, exotic, 434 00:27:06,040 --> 00:27:09,040 kernel and API calls. 435 00:27:09,040 --> 00:27:11,040 You're doing well-defined stuff that's going to be maintained 436 00:27:11,040 --> 00:27:13,040 between operating system versions. 437 00:27:13,040 --> 00:27:16,040 For example, some of the stuff I built in like 1997 438 00:27:16,040 --> 00:27:19,040 just spins right up in the works in this year 439 00:27:19,040 --> 00:27:21,040 on Windows 11. 440 00:27:21,040 --> 00:27:24,040 And I think I designed this stuff for Windows XP. 441 00:27:26,040 --> 00:27:30,040 So there's less maintenance and overhead to maintain your code. 442 00:27:30,040 --> 00:27:33,040 The only thing I had to do was make my code compile 443 00:27:33,040 --> 00:27:36,040 on X64 because all the games were switched over to 64-bit 444 00:27:37,040 --> 00:27:39,040 in the past 10 years. 445 00:27:39,040 --> 00:27:42,040 The problem with this is it's super easy to detect. 446 00:27:42,040 --> 00:27:46,040 I wouldn't recommend this method for anything other than 447 00:27:46,040 --> 00:27:49,040 maybe single-player games or games that you know 448 00:27:49,040 --> 00:27:52,040 that don't have anti-cheat present. 449 00:27:55,040 --> 00:27:59,040 An example of a user-land tool that I built 450 00:27:59,040 --> 00:28:02,040 over 20 years ago and is still very relevant to this. 451 00:28:02,040 --> 00:28:05,040 I still use it almost every day. 452 00:28:06,040 --> 00:28:10,040 So what's going on here is you have 453 00:28:13,040 --> 00:28:16,040 it basically injects a DLL into the game plant 454 00:28:19,040 --> 00:28:21,040 that is injected into the game plant. 455 00:28:21,040 --> 00:28:23,040 It brings up a window. 456 00:28:24,040 --> 00:28:27,040 So view the packets that are going out of the game. 457 00:28:33,040 --> 00:28:35,040 And then send it. 458 00:28:35,040 --> 00:28:38,040 So that way, this is kind of like a burp suite 459 00:28:38,040 --> 00:28:40,040 for binary protocols. 460 00:28:54,040 --> 00:28:56,040 Okay, there we go. 461 00:28:56,040 --> 00:28:58,040 Is that better? 462 00:28:59,040 --> 00:29:01,040 Yeah, thanks a lot. 463 00:29:01,040 --> 00:29:04,040 Okay, so kind of what you see here is like me playing around 464 00:29:04,040 --> 00:29:06,040 with it going in and out. 465 00:29:06,040 --> 00:29:09,040 And then I discovered like what's it look like to move 466 00:29:09,040 --> 00:29:12,040 an item in your inventory using a packet. 467 00:29:12,040 --> 00:29:15,040 Just to validate everything is working correctly. 468 00:29:20,040 --> 00:29:22,040 Okay, I'll kind of skip forward. 469 00:29:29,040 --> 00:29:32,040 The next type of tools, 470 00:29:33,040 --> 00:29:36,040 I started developing work kernel-based tools 471 00:29:37,040 --> 00:29:40,040 because their user-land stuff is getting detected, 472 00:29:40,040 --> 00:29:42,040 especially in like late 2000s. 473 00:29:42,040 --> 00:29:45,040 You had Warden, then you had Punkaposter, 474 00:29:45,040 --> 00:29:48,040 then a lot of the games built their own proprietary 475 00:29:48,040 --> 00:29:50,040 anti-cheat stuff. 476 00:29:50,040 --> 00:29:53,040 I think that's around the time easy anti-cheat started coming out. 477 00:29:53,040 --> 00:29:56,040 So I had to move my tools into the kernel space 478 00:29:56,040 --> 00:29:59,040 or be a part of basically the Windows operating system. 479 00:29:59,040 --> 00:30:02,040 That gave me access to physical memory directly. 480 00:30:02,040 --> 00:30:05,040 It wasn't detected by any existing cheats, 481 00:30:05,040 --> 00:30:08,040 especially for games I was targeting. 482 00:30:08,040 --> 00:30:10,040 It does have a steep learning curve. 483 00:30:10,040 --> 00:30:14,040 It took me, you know, almost a year to transfer my tools 484 00:30:14,040 --> 00:30:18,040 and my knowledge and learn all about Windows internals, 485 00:30:18,040 --> 00:30:21,040 used many undocumented features of Windows 486 00:30:21,040 --> 00:30:25,040 and Intel CPUs to help me do interesting things. 487 00:30:25,040 --> 00:30:28,040 So it has a very steep learning curve. 488 00:30:28,040 --> 00:30:31,040 You have to modify your kernel-based tools 489 00:30:31,040 --> 00:30:34,040 for every single version of the operating system. 490 00:30:34,040 --> 00:30:38,040 You'll have a lot of blue screens and it's a big time sink. 491 00:30:38,040 --> 00:30:40,040 And then at the end, when you're done, 492 00:30:40,040 --> 00:30:42,040 you still have to sign your driver because Windows, 493 00:30:42,040 --> 00:30:46,040 especially since I think 2008, 494 00:30:46,040 --> 00:30:48,040 wouldn't allow you to load the driver 495 00:30:48,040 --> 00:30:50,040 unless we'll sign by Microsoft. 496 00:30:50,040 --> 00:30:52,040 So either you either pay Microsoft 497 00:30:52,040 --> 00:30:55,040 and appear to be as a legitimate business 498 00:30:55,040 --> 00:30:57,040 saying, hey, I want to sign this driver 499 00:30:57,040 --> 00:31:00,040 because it lets me help with my business, 500 00:31:00,040 --> 00:31:02,040 or you exploit vulnerable drivers. 501 00:31:02,040 --> 00:31:04,040 And that's another deep rabbit hole. 502 00:31:04,040 --> 00:31:06,040 There's tons of vulnerable drivers. 503 00:31:06,040 --> 00:31:09,040 You can exploit to gain basically 504 00:31:09,040 --> 00:31:12,040 read and write functionality to physical memory, 505 00:31:12,040 --> 00:31:14,040 and that way you can get a foothold 506 00:31:14,040 --> 00:31:18,040 to interact with the game plans. 507 00:31:18,040 --> 00:31:22,040 More recently, driver-based anti-cheat systems 508 00:31:22,040 --> 00:31:26,040 have detected all of this, so it's hitting this. 509 00:31:26,040 --> 00:31:29,040 There's a lot out there 510 00:31:29,040 --> 00:31:31,040 that will not get detected by anti-cheat systems, 511 00:31:31,040 --> 00:31:32,040 and there's a lot out there 512 00:31:32,040 --> 00:31:34,040 that will get detected by anti-cheat systems, 513 00:31:34,040 --> 00:31:40,040 so it's a roll of the dice. 514 00:31:40,040 --> 00:31:46,040 Here's that again. 515 00:31:46,040 --> 00:31:51,040 Here's an example of a tool that's in the second generation. 516 00:31:51,040 --> 00:31:55,040 I wrote the first generation completely in the Windows driver, 517 00:31:55,040 --> 00:31:57,040 and then I got together with a buddy of mine. 518 00:31:57,040 --> 00:31:59,040 We slapped a cool gooey on it, 519 00:31:59,040 --> 00:32:02,040 and kind of rewrote everything to be more efficient. 520 00:32:02,040 --> 00:32:05,040 Basically, what this tool does is... 521 00:32:13,040 --> 00:32:19,040 What this tool does is it helps you examine 522 00:32:19,040 --> 00:32:21,040 what a game client is doing 523 00:32:21,040 --> 00:32:24,040 when it's executing based on user input. 524 00:32:24,040 --> 00:32:29,040 What I mean by that is when you're reversing a game, 525 00:32:29,040 --> 00:32:32,040 most games are really big in size. 526 00:32:32,040 --> 00:32:35,040 They're between 20 and 100 megabytes, 527 00:32:35,040 --> 00:32:38,040 and when you disassemble that game, 528 00:32:38,040 --> 00:32:40,040 you might have half a million function calls. 529 00:32:40,040 --> 00:32:42,040 You're going to be looking at that, 530 00:32:42,040 --> 00:32:46,040 and it's really hard to find the functions that you're interested in. 531 00:32:46,040 --> 00:32:50,040 When I'm reversing or doing binary protocols, 532 00:32:50,040 --> 00:32:52,040 I'm very interested in how a game client 533 00:32:52,040 --> 00:32:54,040 is sending data out to the server, 534 00:32:54,040 --> 00:32:56,040 how that data is being encrypted, 535 00:32:56,040 --> 00:32:59,040 and how that data is being transported. 536 00:32:59,040 --> 00:33:03,040 To do that, you could do a bunch of manual debugging 537 00:33:03,040 --> 00:33:06,040 with OliDebug or X64Debug. 538 00:33:06,040 --> 00:33:08,040 You could start with a WinSockSend function 539 00:33:08,040 --> 00:33:10,040 and trace your way backwards, 540 00:33:10,040 --> 00:33:12,040 but then it gets really hairy 541 00:33:12,040 --> 00:33:14,040 because most games are multi-threaded, 542 00:33:14,040 --> 00:33:17,040 so the data gets shuffled around between different threads, 543 00:33:17,040 --> 00:33:19,040 and then you get lost really quickly 544 00:33:19,040 --> 00:33:22,040 in the rat's maze of function calls, call stacks, 545 00:33:22,040 --> 00:33:24,040 and where your data is at. 546 00:33:24,040 --> 00:33:30,040 I created this tool to basically analyze the process as it's running. 547 00:33:30,040 --> 00:33:33,040 I feed it one input at the string of interest, 548 00:33:33,040 --> 00:33:36,040 and whenever the game client executes on the string, 549 00:33:36,040 --> 00:33:40,040 or whenever the string appears on the call stack for a function, 550 00:33:40,040 --> 00:33:43,040 this tool will pick it up. 551 00:33:43,040 --> 00:33:47,040 Just let me cut down my reversal during time 552 00:33:47,040 --> 00:33:49,040 from weeks and months 553 00:33:49,040 --> 00:33:52,040 using a traditional debugger method 554 00:33:52,040 --> 00:33:54,040 to a couple of hours 555 00:33:54,040 --> 00:33:58,040 and helping me find a way to hook the network stack 556 00:33:58,040 --> 00:34:00,040 at the application layer 557 00:34:00,040 --> 00:34:02,040 so that I can start buzzing the protocol 558 00:34:02,040 --> 00:34:04,040 and finding exploits inside the game. 559 00:34:04,040 --> 00:34:06,040 This is just an example of me going through it 560 00:34:06,040 --> 00:34:09,040 and then finding functions that process the string 561 00:34:09,040 --> 00:34:16,040 that said hello at whatever exclamation point. 562 00:34:16,040 --> 00:34:19,040 This way, you're able to find which functions you want to hook 563 00:34:19,040 --> 00:34:21,040 to examine data that's being sent out 564 00:34:21,040 --> 00:34:25,040 and which functions you want to call to send 565 00:34:25,040 --> 00:34:32,040 mock or spoofed data out on to start buzzing the protocol. 566 00:34:32,040 --> 00:34:35,040 My favorite, there's a lot of... 567 00:34:35,040 --> 00:34:40,040 So the anti-cheat-race is getting very hot. 568 00:34:40,040 --> 00:34:43,040 Drivers are being detected, 569 00:34:43,040 --> 00:34:45,040 and it's very difficult to build the drivers 570 00:34:45,040 --> 00:34:47,040 that are stealthy now 571 00:34:47,040 --> 00:34:50,040 because all the anti-cheat typically lives 572 00:34:50,040 --> 00:34:52,040 at the operating system level now. 573 00:34:52,040 --> 00:34:56,040 So people are moving out of the ring zero operating system layer, 574 00:34:56,040 --> 00:35:00,040 and now they're doing hardware hacks, 575 00:35:00,040 --> 00:35:05,040 basically, to give you direct memory access to physical RAM. 576 00:35:05,040 --> 00:35:09,040 These are typically not detected by user-land anti-cheats, 577 00:35:09,040 --> 00:35:14,040 and they weren't detected up until a few months ago 578 00:35:14,040 --> 00:35:17,040 by kernel mode anti-cheat systems. 579 00:35:17,040 --> 00:35:20,040 The way this works is you plug in a phony PCI device, 580 00:35:20,040 --> 00:35:25,040 and that PCI device has direct access to all your RAM, 581 00:35:25,040 --> 00:35:27,040 and then you connect the cable to it, 582 00:35:27,040 --> 00:35:35,040 and you basically pipe memory access to a different computer. 583 00:35:35,040 --> 00:35:37,040 So a second PC can be like, 584 00:35:37,040 --> 00:35:40,040 hey, malicious PCI device, 585 00:35:40,040 --> 00:35:45,040 give me physical memory belonging to this process, basically. 586 00:35:45,040 --> 00:35:47,040 So you have a two-PC setup. 587 00:35:47,040 --> 00:35:50,040 One PC is a host for the dummy PCI card 588 00:35:50,040 --> 00:35:52,040 that gives you full memory access, 589 00:35:52,040 --> 00:35:55,040 and then you have a second PC 590 00:35:55,040 --> 00:35:58,040 that is able to issue commands and read memory. 591 00:35:58,040 --> 00:36:00,040 This has a steep learning curve. 592 00:36:00,040 --> 00:36:02,040 Again, it's always version-specific. 593 00:36:02,040 --> 00:36:03,040 It can be expensive. 594 00:36:03,040 --> 00:36:07,040 These cards can go for hundreds, if not thousands of dollars, 595 00:36:07,040 --> 00:36:11,040 and they are also detected by anti-cheat systems. 596 00:36:11,040 --> 00:36:14,040 Currently, some kernel-based anti-cheat systems 597 00:36:14,040 --> 00:36:17,040 will detect this stuff. 598 00:36:17,040 --> 00:36:20,040 And again, you're playing with hardware, cables, 599 00:36:20,040 --> 00:36:23,040 different weird stuff going on here. 600 00:36:23,040 --> 00:36:26,040 So if you mess up in how you're using it, 601 00:36:26,040 --> 00:36:29,040 how you flash the phony PCI card, 602 00:36:29,040 --> 00:36:32,040 you might break a $400 PCI card, 603 00:36:32,040 --> 00:36:34,040 or you might break your PC. 604 00:36:34,040 --> 00:36:37,040 So again, it's a big roll of the dice, 605 00:36:37,040 --> 00:36:41,040 but when you pull it off, it's pretty cool and worth it. 606 00:36:41,040 --> 00:36:43,040 It's a good hobby. 607 00:36:43,040 --> 00:36:51,040 So you have sheets that's running on a separate PC now, 608 00:36:51,040 --> 00:36:54,040 and then you have your main PC that you're playing the game on. 609 00:36:54,040 --> 00:36:57,040 So another piece of hardware that's important 610 00:36:57,040 --> 00:36:59,040 is called an HDMI fuser, 611 00:36:59,040 --> 00:37:03,040 where you fuse the display of the second PC onto the main PC. 612 00:37:03,040 --> 00:37:06,040 So if you're building something like a radar hack or a wall hack 613 00:37:06,040 --> 00:37:09,040 where you're outlining boxes around enemy players, 614 00:37:09,040 --> 00:37:14,040 you want to be able to overlay those things on your main gaming PC 615 00:37:14,040 --> 00:37:18,040 so you can see what's going on in the game as you're playing it 616 00:37:18,040 --> 00:37:23,040 instead of looking over to a second monitor to see what's going on. 617 00:37:23,040 --> 00:37:26,040 PCI or an HDMI fuser is on the deck, 618 00:37:26,040 --> 00:37:29,040 and both are working on the HDMI level on the cable 619 00:37:29,040 --> 00:37:31,040 that's going out to your monitor, 620 00:37:31,040 --> 00:37:34,040 so there's nothing that can be done against that. 621 00:37:34,040 --> 00:37:36,040 There's companies that sell entire kits. 622 00:37:36,040 --> 00:37:40,040 They'll sell you the PCI direct memory access card, 623 00:37:40,040 --> 00:37:43,040 all the cabling, the HDMI fuser, 624 00:37:43,040 --> 00:37:46,040 and if you want to emulate the keyboard and mouse, 625 00:37:46,040 --> 00:37:48,040 you can get an emulator. 626 00:37:48,040 --> 00:37:50,040 I don't recommend this. 627 00:37:50,040 --> 00:37:54,040 It's a lot of money, and you will probably get banned 628 00:37:54,040 --> 00:37:57,040 because in the games you'd want to use this in, 629 00:37:57,040 --> 00:38:02,040 especially competitive FPS games like Valorant and Call of Duty, 630 00:38:02,040 --> 00:38:05,040 the anti-cheat systems that are running on those 631 00:38:05,040 --> 00:38:09,040 will detect these things if they're not configured properly, 632 00:38:09,040 --> 00:38:11,040 or even if they are, you still have to make sure 633 00:38:11,040 --> 00:38:14,040 to see if the anti-cheat systems are being updated 634 00:38:14,040 --> 00:38:18,040 to detect the current method of hardware cheat devices. 635 00:38:18,040 --> 00:38:25,040 So it's a very rapidly evolving cat and mouse game right now, 636 00:38:25,040 --> 00:38:27,040 and what your risk is getting an account ban 637 00:38:27,040 --> 00:38:30,040 and potentially getting your hardware banned. 638 00:38:30,040 --> 00:38:33,040 Again, it's a good hobby. 639 00:38:33,040 --> 00:38:40,040 Here's an example I found of somebody running this direct memory access cheat. 640 00:38:40,040 --> 00:38:44,040 On this screen on the left is the cheat computer 641 00:38:44,040 --> 00:38:47,040 that's analyzing physical memory from the gaming PC, 642 00:38:47,040 --> 00:38:51,040 and then it's able to extract data of where players are at 643 00:38:51,040 --> 00:38:56,040 and then draw hitboxes around them. 644 00:38:56,040 --> 00:38:59,040 And then using an HDMI fuser, you overlay this to your main game, 645 00:38:59,040 --> 00:39:07,040 and then you can see exactly where the players are. 646 00:39:07,040 --> 00:39:10,040 I mean, you get an unfair advantage. 647 00:39:10,040 --> 00:39:13,040 I've never actually done this in practice 648 00:39:13,040 --> 00:39:17,040 because there's a couple of things wrong with this. 649 00:39:17,040 --> 00:39:19,040 Well, one, that's super cool and novel. 650 00:39:19,040 --> 00:39:21,040 It's like bleeding edge technology, 651 00:39:21,040 --> 00:39:24,040 but two, most games, especially competitive shooters, 652 00:39:24,040 --> 00:39:26,040 use field-based matchmaking. 653 00:39:26,040 --> 00:39:29,040 So if you're using this and you're completely dominating the playing field, 654 00:39:29,040 --> 00:39:32,040 what you're going to get paired with is other cheaters, 655 00:39:32,040 --> 00:39:36,040 and then everybody's on the same playing field. 656 00:39:36,040 --> 00:39:41,040 So the end result is you're going to be playing with other players 657 00:39:41,040 --> 00:39:44,040 just as good as yourself after using hacks for that. 658 00:39:44,040 --> 00:39:51,040 So it gets kind of interesting. 659 00:39:51,040 --> 00:39:54,040 So let's, we have time, we have time. 660 00:39:54,040 --> 00:39:59,040 So let's go through and see what economic exploits look like 661 00:39:59,040 --> 00:40:05,040 and what a for-profit exploit lifecycle looks like. 662 00:40:05,040 --> 00:40:07,040 So when you want to hack a game, 663 00:40:07,040 --> 00:40:12,040 the lifecycle or the workflow is you find a game that is going to be popular. 664 00:40:12,040 --> 00:40:15,040 If it's popular, it's going to generate more money for you. 665 00:40:15,040 --> 00:40:20,040 Then you reverse-engineer this game, find exploits. 666 00:40:20,040 --> 00:40:22,040 Once you find an exploit, you stockpile, 667 00:40:22,040 --> 00:40:25,040 gold and iron and save this game on your account. 668 00:40:25,040 --> 00:40:28,040 Then you transfer this account to a wholesale supplier 669 00:40:28,040 --> 00:40:32,040 that will resell out of your account to other players, 670 00:40:32,040 --> 00:40:34,040 be it some website or something. 671 00:40:34,040 --> 00:40:36,040 And then the exploit gets fixed. 672 00:40:36,040 --> 00:40:41,040 Typically exploits live for, I'd say on average, 673 00:40:41,040 --> 00:40:45,040 most exploits before they get detected live for a few months. 674 00:40:45,040 --> 00:40:49,040 I've had exploits get fixed the same day I discovered them, 675 00:40:49,040 --> 00:40:52,040 and I've had exploits live for about 13 years, 676 00:40:52,040 --> 00:40:55,040 and I've had everything in between. 677 00:40:55,040 --> 00:40:59,040 Once that happens, you either go through this same loop again 678 00:40:59,040 --> 00:41:02,040 to discover a new exploit. 679 00:41:02,040 --> 00:41:07,040 In my experience, every game has about 5 to 10 economic exploits 680 00:41:07,040 --> 00:41:12,040 that you can use to your advantage to mint infinite items and gold inside the game 681 00:41:12,040 --> 00:41:14,040 to resell to other players. 682 00:41:14,040 --> 00:41:20,040 Once that is exhausted, you find a new game or a new target. 683 00:41:20,040 --> 00:41:24,040 The exploit research itself, it's a big time sink. 684 00:41:24,040 --> 00:41:28,040 If it's your first day at the rodeo of deploying games, 685 00:41:28,040 --> 00:41:33,040 I expect to sink about 200 hours to get a simple exploit 686 00:41:33,040 --> 00:41:36,040 or not even an exploit, a simple tool set go on 687 00:41:36,040 --> 00:41:41,040 that will help you discover exploits. 688 00:41:41,040 --> 00:41:46,040 So let me jump back really quick to a side story. 689 00:41:46,040 --> 00:41:50,040 This is an AI-generated image of me, basically, 690 00:41:50,040 --> 00:41:56,040 and I'm at Best Buy buying every single Final Fantasy 11 box they had. 691 00:41:56,040 --> 00:42:00,040 This is a very popular MMORPG back in the day, 692 00:42:00,040 --> 00:42:05,040 and the way you bought those games back then is you get a box, 693 00:42:05,040 --> 00:42:10,040 and then inside the box, there's a CD and a CD key that you use to create an account. 694 00:42:10,040 --> 00:42:15,040 So I went to a Best Buy, and I bought every single box they had, 695 00:42:15,040 --> 00:42:18,040 and the guy checking me out was like, hey, why are you buying so many? 696 00:42:18,040 --> 00:42:22,040 Do you own a game land or whatever workshop? 697 00:42:22,040 --> 00:42:24,040 I didn't know what to say, so I was like, 698 00:42:24,040 --> 00:42:28,040 and I get banned for profanity a lot, so I'm going through a lot of accounts. 699 00:42:28,040 --> 00:42:30,040 I had a lot of desires, and I was like, oops, 700 00:42:30,040 --> 00:42:32,040 the section that said that was kind of cringe. 701 00:42:32,040 --> 00:42:38,040 But anyway, like I said, I was supplying Final Fantasy 11. 702 00:42:38,040 --> 00:42:44,040 They banned a lot of accounts, so I needed about 40 accounts per day. 703 00:42:44,040 --> 00:42:50,040 And the cost-profit breakdown for this was back in the day, 704 00:42:50,040 --> 00:42:54,040 a million gold in this game was selling for $100. 705 00:42:54,040 --> 00:43:00,040 I could load a point of account safely with 60 million gold without getting detected. 706 00:43:00,040 --> 00:43:06,040 So my per-profit or per-account profit was $8,000. 707 00:43:06,040 --> 00:43:10,040 A single box of Final Fantasy 11 costs $30, 708 00:43:10,040 --> 00:43:15,040 so my profit margin was close to 100%. 709 00:43:15,040 --> 00:43:18,040 So like what anybody else would do, 710 00:43:18,040 --> 00:43:22,040 I drove around in the LA area to every single Best Buy in the area, 711 00:43:22,040 --> 00:43:25,040 and I bought out every single Final Fantasy box they had. 712 00:43:25,040 --> 00:43:30,040 I'm sure Square Enix was like, why is our game so hot in this area? 713 00:43:30,040 --> 00:43:33,040 Who knows. 714 00:43:33,040 --> 00:43:36,040 So let's kind of jump forward a little bit. 715 00:43:36,040 --> 00:43:39,040 So let's say you want to hack a game, 716 00:43:39,040 --> 00:43:44,040 you develop your toolset, you're going to attack the protocol. 717 00:43:44,040 --> 00:43:48,040 Again, the attack surface is either attack the IT infrastructure, 718 00:43:48,040 --> 00:43:52,040 and you get database root and modify your database that way. 719 00:43:52,040 --> 00:43:54,040 I wouldn't recommend that. 720 00:43:54,040 --> 00:43:56,040 That's highly illegal. 721 00:43:56,040 --> 00:44:02,040 I recommend for abusing functionality that the game server exposes to you. 722 00:44:02,040 --> 00:44:07,040 Typically, your game server has packet handlers or PC handlers 723 00:44:07,040 --> 00:44:11,040 to handle things like logging in, logging out, moving, 724 00:44:11,040 --> 00:44:15,040 or one of my favorite exploits, I'll get into this in a little bit, 725 00:44:15,040 --> 00:44:19,040 is if you have something in your inventory and you delete it, 726 00:44:19,040 --> 00:44:23,040 there's a command you could issue to the server for that. 727 00:44:23,040 --> 00:44:27,040 And the server will process that command and modify your storage. 728 00:44:27,040 --> 00:44:30,040 For example, World of Worldcraft had many commands 729 00:44:30,040 --> 00:44:33,040 that the game client sent to the server. 730 00:44:33,040 --> 00:44:38,040 I think it has close to 500 commands that the game client sent to the server, 731 00:44:38,040 --> 00:44:42,040 and about 600 commands that the server can send back to the game client. 732 00:44:42,040 --> 00:44:45,040 Most online games have more than 100 commands 733 00:44:45,040 --> 00:44:49,040 that you can start playing with in fuzzing. 734 00:44:49,040 --> 00:44:53,040 So let's go through a very simple exploit. 735 00:44:53,040 --> 00:44:56,040 This is one of my favorite exploits. 736 00:44:56,040 --> 00:44:59,040 This was present in actually a few games. 737 00:44:59,040 --> 00:45:03,040 Let's say you have two trash items in your inventory, 738 00:45:03,040 --> 00:45:05,040 and you want to delete them. 739 00:45:05,040 --> 00:45:08,040 There's an example packet where it has an opcode saying, 740 00:45:08,040 --> 00:45:10,040 hey, this means delete this item. 741 00:45:10,040 --> 00:45:12,040 It has your character ID. 742 00:45:12,040 --> 00:45:15,040 It has your inventory ID or your container ID. 743 00:45:15,040 --> 00:45:18,040 It has the slot number. 744 00:45:18,040 --> 00:45:21,040 And then the quantity of how many of those items you want to delete. 745 00:45:21,040 --> 00:45:23,040 So if you want to delete this whole stack of green potions, 746 00:45:23,040 --> 00:45:27,040 you'd kind of send this packet and you would delete both potions 747 00:45:27,040 --> 00:45:30,040 and you'd have nothing left. 748 00:45:30,040 --> 00:45:35,040 But well, if you delete a very large negative number, 749 00:45:35,040 --> 00:45:39,040 when you take a negative and you subtract the negative from it, 750 00:45:39,040 --> 00:45:41,040 I mean, when you take a number and you subtract the negative from it, 751 00:45:41,040 --> 00:45:43,040 you end up adding it to it. 752 00:45:43,040 --> 00:45:47,040 So if you try to delete a negative amount from your inventory, 753 00:45:47,040 --> 00:45:50,040 what will happen is it'll end up being added to your inventory. 754 00:45:50,040 --> 00:45:54,040 And this happened probably in 90% of the games I went after 755 00:45:54,040 --> 00:45:57,040 is you could delete something, give it a negative number, 756 00:45:57,040 --> 00:46:01,040 and then you just start minting that item out of there. 757 00:46:01,040 --> 00:46:04,040 For example, in Final Fantasy XI, 758 00:46:04,040 --> 00:46:08,040 I had stacks of 2 billion items in every single inventory slot. 759 00:46:08,040 --> 00:46:10,040 And I had like 60 inventory slots. 760 00:46:10,040 --> 00:46:16,040 So I'm talking about insane numbers. 761 00:46:16,040 --> 00:46:20,040 My favorite type of exploit that's present in, again, 762 00:46:20,040 --> 00:46:23,040 almost every single game is a data race condition. 763 00:46:23,040 --> 00:46:26,040 Because typically your game servers are distributed systems 764 00:46:26,040 --> 00:46:28,040 and then distributed systems. 765 00:46:28,040 --> 00:46:31,040 Data synchronization is a huge problem. 766 00:46:31,040 --> 00:46:34,040 And when you're developing a game and you're under the gun 767 00:46:34,040 --> 00:46:38,040 to push the game out on a launch schedule 768 00:46:38,040 --> 00:46:40,040 that the marketing team decided, 769 00:46:40,040 --> 00:46:42,040 you're going to avoid things like security issues 770 00:46:42,040 --> 00:46:45,040 with data synchronization and distributed systems. 771 00:46:45,040 --> 00:46:49,040 So this is very present in different or in a lot of games. 772 00:46:49,040 --> 00:46:52,040 So let's say we're interacting with a game shop here 773 00:46:52,040 --> 00:46:55,040 and we're sending an opcode of 6 or I mean 4. 774 00:46:55,040 --> 00:46:59,040 You have your character ID and we're issuing a buy command. 775 00:46:59,040 --> 00:47:02,040 You have the item ID, which happens to be a health potion, 776 00:47:02,040 --> 00:47:05,040 and you want to buy one of those. 777 00:47:05,040 --> 00:47:10,040 Nothing fancy there, you're buying one potion. 778 00:47:10,040 --> 00:47:16,040 So instead of using a buy command, you do a sell command. 779 00:47:16,040 --> 00:47:19,040 And what would happen if you sent that sell command 780 00:47:19,040 --> 00:47:23,040 two times in a row in rapid succession? 781 00:47:23,040 --> 00:47:26,040 So what would happen is somewhere on the back end, 782 00:47:26,040 --> 00:47:28,040 two threads or two different processes 783 00:47:28,040 --> 00:47:31,040 would handle each packet separately. 784 00:47:31,040 --> 00:47:33,040 And then each one will go through its checks. 785 00:47:33,040 --> 00:47:35,040 It'll be like, hey, does this player have this item 786 00:47:35,040 --> 00:47:36,040 that they're trying to sell? 787 00:47:36,040 --> 00:47:38,040 It'll be like, the first thread is going to be like, yes, they do. 788 00:47:38,040 --> 00:47:40,040 The second thread is going to be like, yes, they do. 789 00:47:40,040 --> 00:47:41,040 All right, cool. 790 00:47:41,040 --> 00:47:43,040 Increase or gold balance. 791 00:47:43,040 --> 00:47:44,040 Increase or gold balance. 792 00:47:44,040 --> 00:47:45,040 Both of them do this. 793 00:47:45,040 --> 00:47:48,040 And then the first one tries to delete the item. 794 00:47:48,040 --> 00:47:50,040 It's like, all right, the item's gone. 795 00:47:50,040 --> 00:47:52,040 The second thread tries to delete the item. 796 00:47:52,040 --> 00:47:55,040 And it'll probably error out, but it'll error out gracefully. 797 00:47:55,040 --> 00:47:57,040 And then it'll be like, yeah, cool. 798 00:47:57,040 --> 00:47:58,040 The item's gone. 799 00:47:58,040 --> 00:47:59,040 I don't know what happened. 800 00:47:59,040 --> 00:48:00,040 There was some kind of error. 801 00:48:00,040 --> 00:48:02,040 Hopefully somebody will check it out someday. 802 00:48:02,040 --> 00:48:06,040 But in the end, as a player, you have 200 gold 803 00:48:06,040 --> 00:48:08,040 because you just sold the same item twice 804 00:48:08,040 --> 00:48:12,040 and abused a data race condition on the back end. 805 00:48:12,040 --> 00:48:16,040 Again, this is very common in the Final Fantasy 1114. 806 00:48:17,040 --> 00:48:21,040 Guild Wars 2 pretty much every game I've ever touched. 807 00:48:25,040 --> 00:48:29,040 When I was preparing this talk, I was like, a friend of mine 808 00:48:29,040 --> 00:48:32,040 was like, are you going to mention the Web 3 at all? 809 00:48:32,040 --> 00:48:36,040 And the short answer is no, because Web 3 gaming is a dumpster 810 00:48:36,040 --> 00:48:40,040 fire full of poop emojis. 811 00:48:40,040 --> 00:48:43,040 The quality of Web 3 games isn't great, 812 00:48:43,040 --> 00:48:46,040 and they're mostly all made to be pyramid schemes 813 00:48:46,040 --> 00:48:49,040 to make money of unsuspecting people. 814 00:48:49,040 --> 00:48:52,040 AAA Web 3 gaming might be a thing one day, 815 00:48:52,040 --> 00:48:57,040 but right now I'd stay away from it. 816 00:48:57,040 --> 00:49:00,040 So if I haven't scared you guys away or bored you to death 817 00:49:00,040 --> 00:49:03,040 and you want to dive into some game hacking stuff, 818 00:49:03,040 --> 00:49:07,040 I recommend these communities, Unknown Cheats, 819 00:49:07,040 --> 00:49:09,040 Guided Hacking, and Fearless Revolution. 820 00:49:09,040 --> 00:49:12,040 There's a bunch of people talking about anti-cheat, 821 00:49:12,040 --> 00:49:15,040 driver stuff, hardware stuff, anything you name. 822 00:49:15,040 --> 00:49:19,040 They go down very deep rabbit holes. 823 00:49:19,040 --> 00:49:22,040 Information sharing is challenging now, 824 00:49:22,040 --> 00:49:24,040 because any information that gets shared publicly, 825 00:49:24,040 --> 00:49:27,040 especially on public forums, because people from Riot 826 00:49:27,040 --> 00:49:31,040 or Blizzard, Microsoft, they're watching these forums 827 00:49:31,040 --> 00:49:34,040 to make sure to be up to date on what's going on 828 00:49:34,040 --> 00:49:37,040 in the underground hacking scene. 829 00:49:37,040 --> 00:49:40,040 So a lot of the times when somebody finds like a novel way 830 00:49:40,040 --> 00:49:44,040 to bypass anti-cheat, they either won't post it 831 00:49:44,040 --> 00:49:46,040 or they'll post the results of it. 832 00:49:46,040 --> 00:49:48,040 They'll be like, hey, I created this really cool thing 833 00:49:48,040 --> 00:49:50,040 that's undetectable. 834 00:49:50,040 --> 00:49:51,040 If somebody asks them to post the source code, 835 00:49:51,040 --> 00:49:53,040 they'll be like, no, because they'll just get fixed 836 00:49:53,040 --> 00:49:57,040 by the game company, because they're watching these forums. 837 00:49:57,040 --> 00:49:59,040 But it's a really good place to start, 838 00:49:59,040 --> 00:50:04,040 and there's a lot of overlap between game hacking, 839 00:50:04,040 --> 00:50:07,040 tool development, cheating, and all that, 840 00:50:07,040 --> 00:50:10,040 and malware development, because malware development 841 00:50:10,040 --> 00:50:14,040 is all about staying stealthy and interacting with processes 842 00:50:14,040 --> 00:50:17,040 in a way that won't trigger either antivirus 843 00:50:17,040 --> 00:50:20,040 or other things from blocking it. 844 00:50:20,040 --> 00:50:22,040 Same thing with developing cheat tools. 845 00:50:22,040 --> 00:50:24,040 You're interacting with a game client, 846 00:50:24,040 --> 00:50:28,040 and then you have very advanced and sophisticated components 847 00:50:28,040 --> 00:50:31,040 looking at the interactions of that game client 848 00:50:31,040 --> 00:50:34,040 to make sure that nobody's interacting with it 849 00:50:34,040 --> 00:50:36,040 in a malicious way. 850 00:50:36,040 --> 00:50:41,040 So I recommend looking into Maldiv Academy. 851 00:50:41,040 --> 00:50:44,040 There's a lot of good information on operating systems, 852 00:50:44,040 --> 00:50:47,040 how virtual memories lay down, 853 00:50:47,040 --> 00:50:50,040 spreading pretty much anything you want to know 854 00:50:50,040 --> 00:50:54,040 about when you're trying to develop tooling 855 00:50:54,040 --> 00:50:56,040 to help exploit video games. 856 00:50:56,040 --> 00:50:59,040 And of course, a book I highly recommend 857 00:50:59,040 --> 00:51:02,040 is Windows Internals. 858 00:51:02,040 --> 00:51:04,040 There's a few additions. 859 00:51:04,040 --> 00:51:09,040 I think the last addition covered Windows 10 or 8. 860 00:51:09,040 --> 00:51:11,040 It hasn't been updated in a while, 861 00:51:11,040 --> 00:51:14,040 and I think the last addition was published in 2015, 862 00:51:14,040 --> 00:51:16,040 but it's very current on what's going on 863 00:51:16,040 --> 00:51:18,040 in Windows Internals right now. 864 00:51:18,040 --> 00:51:20,040 And again, I have a Twitter, 865 00:51:20,040 --> 00:51:23,040 if anybody wants to hit me up for any questions, 866 00:51:23,040 --> 00:51:25,040 and I think that's all I have. 867 00:51:25,040 --> 00:51:28,040 So thank you very much. 868 00:51:28,040 --> 00:51:31,040 Thank you. That was an excellent presentation. 869 00:51:31,040 --> 00:51:34,040 I actually have a question relating to VR 870 00:51:34,040 --> 00:51:36,040 that came out of gaming. 871 00:51:36,040 --> 00:51:40,040 We've noticed, as we were looking into replacements 872 00:51:40,040 --> 00:51:42,040 for Alt Space VR, 873 00:51:42,040 --> 00:51:48,040 that a number of the VR services out there, 874 00:51:48,040 --> 00:51:50,040 VRChat being one of them, 875 00:51:50,040 --> 00:51:53,040 essentially are using the same kinds of root kits 876 00:51:53,040 --> 00:51:57,040 that games use in order to find cheaters. 877 00:51:57,040 --> 00:52:00,040 And we decided not to use those, 878 00:52:00,040 --> 00:52:02,040 because we felt that people from these DEF CON 879 00:52:02,040 --> 00:52:04,040 would probably be a little resistant 880 00:52:04,040 --> 00:52:06,040 to installing a root kit on a machine 881 00:52:06,040 --> 00:52:08,040 just to watch a VR event. 882 00:52:08,040 --> 00:52:11,040 I'm glad you used the word root kit. 883 00:52:11,040 --> 00:52:12,040 I was going to bring it up, 884 00:52:12,040 --> 00:52:14,040 but I didn't want to stir a harness in this, 885 00:52:14,040 --> 00:52:17,040 because it's a topic that's very controversial. 886 00:52:17,040 --> 00:52:21,040 Yes, anybody that is playing first-person shooter games 887 00:52:21,040 --> 00:52:24,040 that installs Vanguard anti-heat or easy anti-heat 888 00:52:24,040 --> 00:52:27,040 are essentially installing root kits, 889 00:52:27,040 --> 00:52:30,040 especially they are very high priority, 890 00:52:30,040 --> 00:52:32,040 well, high priority loaded drivers 891 00:52:32,040 --> 00:52:34,040 that are like the first to load 892 00:52:34,040 --> 00:52:36,040 when the operating system boots. 893 00:52:36,040 --> 00:52:38,040 So they have a lot of power and a lot of access, 894 00:52:38,040 --> 00:52:41,040 and you're trusting the game company 895 00:52:41,040 --> 00:52:45,040 to either behave in an ethical way 896 00:52:45,040 --> 00:52:47,040 and not collect data on you. 897 00:52:47,040 --> 00:52:50,040 And you're trusting them not to get owned, 898 00:52:50,040 --> 00:52:52,040 and then having a malicious driver get pushed out 899 00:52:52,040 --> 00:52:54,040 through the distribution channel. 900 00:52:54,040 --> 00:52:57,040 That's a lot of trust. 901 00:52:57,040 --> 00:53:01,040 I don't think anti-heat should live on the operating system 902 00:53:01,040 --> 00:53:03,040 or on game clients. 903 00:53:03,040 --> 00:53:05,040 My solution to this whole problem 904 00:53:05,040 --> 00:53:09,040 would be to monitor player behavior on the server side 905 00:53:09,040 --> 00:53:12,040 and do things like skill-based matchmaking 906 00:53:12,040 --> 00:53:14,040 and other high-level analytics you could do 907 00:53:14,040 --> 00:53:16,040 without actually, you know, 908 00:53:16,040 --> 00:53:18,040 peering into a user's operating system 909 00:53:18,040 --> 00:53:20,040 and see what you're doing. 910 00:53:20,040 --> 00:53:22,040 Well, in my experience, 911 00:53:22,040 --> 00:53:24,040 when I was reverse engineering games, 912 00:53:24,040 --> 00:53:27,040 especially around 2010 to 2015 period, 913 00:53:27,040 --> 00:53:29,040 a lot of them were signing a game, 914 00:53:29,040 --> 00:53:31,040 or a lot of them were, you know, 915 00:53:31,040 --> 00:53:33,040 phoning home with interesting data. 916 00:53:33,040 --> 00:53:36,040 Like they would send a process list back to the server, 917 00:53:36,040 --> 00:53:38,040 and that process list would have command line arguments 918 00:53:38,040 --> 00:53:40,040 because they wouldn't ship them down 919 00:53:40,040 --> 00:53:42,040 and things like that. 920 00:53:44,040 --> 00:53:46,040 Back then, that was pretty dangerous, 921 00:53:46,040 --> 00:53:48,040 but that is very dangerous now, 922 00:53:48,040 --> 00:53:50,040 especially if you have processes running 923 00:53:50,040 --> 00:53:54,040 with command line arguments that are very sensitive. 924 00:53:54,040 --> 00:53:56,040 One example would be like some Web 3 stuff. 925 00:53:56,040 --> 00:53:58,040 If you have a wallet running 926 00:53:58,040 --> 00:54:00,040 and if you have some sort of private key 927 00:54:00,040 --> 00:54:02,040 or cryptographic secrets on the command line, 928 00:54:02,040 --> 00:54:04,040 which you shouldn't, but it happens. 929 00:54:04,040 --> 00:54:06,040 You know, those could be transmitted 930 00:54:06,040 --> 00:54:08,040 over the wire back to a game company. 931 00:54:08,040 --> 00:54:11,040 And who knows what kind of software that gets propagated to. 932 00:54:11,040 --> 00:54:15,040 So, yeah, I agree that you guys shouldn't be using VRChat 933 00:54:15,040 --> 00:54:18,040 or anything that compromises privacy. 934 00:54:25,040 --> 00:54:27,040 Great talk, Manfred. 935 00:54:27,040 --> 00:54:30,040 I always enjoyed listening to your presentations. 936 00:54:30,040 --> 00:54:35,040 Thank you so much for doing it in the DCG VR. 937 00:54:35,040 --> 00:54:36,040 Appreciate it. 938 00:54:36,040 --> 00:54:38,040 Cool. Thank you very much. 939 00:54:38,040 --> 00:54:40,040 And I will step off now.