1 00:00:02,310 --> 00:00:06,610 Okay, thank you all for coming to my presentation. 2 00:00:10,370 --> 00:00:13,870 For those who I haven't met before, my name is Andrew Case. 3 00:00:13,870 --> 00:00:21,010 I am a core developer on the Volatility Memory Analysis Project and also the Director of Research at Vellect City. 4 00:00:22,530 --> 00:00:28,430 At Vellect City, we do a significant amount of incident response and malware analysis. 5 00:00:28,670 --> 00:00:43,930 And as part of our research workflow and being on the research team there, we make sure that for all the malware techniques that we see during our attacks and that we see other vendors reporting about, any type of malware technique, any attacker toolkit that's really being used in the wild, 6 00:00:43,930 --> 00:00:50,990 we want to make sure that we have a complete understanding of it and also that we can automatically detect it during our investigations. 7 00:00:51,890 --> 00:01:03,870 To ensure that we meet that goal and meet that reality, we very often perform very targeted, very specific deep dives on specific techniques that we see the malware using, that we see attackers using. 8 00:01:03,990 --> 00:01:14,310 And then we make sure that we document all the different techniques, all the different tools that use it, whether they're private tools from threat groups, whether it's some open source tool that has implemented it. 9 00:01:14,310 --> 00:01:17,110 And then we make infected machines with it. 10 00:01:17,110 --> 00:01:19,070 So we make our infected virtual machines. 11 00:01:19,070 --> 00:01:20,970 We make sure all the techniques are active. 12 00:01:21,010 --> 00:01:28,310 We do the deepest memory forensics research we know how to do, which we have most of the volatility developers at Vellect City, so that's pretty deep. 13 00:01:28,310 --> 00:01:31,130 And then we do talks like this where we publish it. 14 00:01:31,270 --> 00:01:41,230 For one of the latest research projects that we did, that's what I'm going to be talking to you about today, we looked at all the ways that EDRs were being evaded by real malware. 15 00:01:41,230 --> 00:01:56,790 Because what we noticed in our investigations is that we're working in enterprises, they're trying to do security correctly, they have EDRs, they have them configured, they're listed as active on these machines, but over and over again, as we were doing memory forensics, 16 00:01:56,790 --> 00:02:02,090 we were finding very potent malware in the same processes where the EDRs supposedly were. 17 00:02:02,090 --> 00:02:11,330 So obviously we wanted to figure out why that disconnect was happening, and through our memory forensics work, we wanted to be able to detect it automatically as well. 18 00:02:11,330 --> 00:02:18,110 Because as you'll see as we go through the slides, normally when malware bypasses EDRs, it's not every process. 19 00:02:18,110 --> 00:02:30,810 It's just the process or the two processes where the malware is running out of directly or where it's injected code into, so if you detect the EDR evasion, then you also directly detect the malware. 20 00:02:30,810 --> 00:02:33,750 And so this has allowed us to do very scalable work. 21 00:02:34,250 --> 00:02:46,850 And at Vilexity, where we're dealing in many investigations with dozens, hundreds, thousands of memory samples, we don't have time, and it would obviously not be very time efficient, to manually look at anything to start. 22 00:02:46,850 --> 00:02:53,610 So we want a set of techniques that will at least say, hey, out of these hundred memory samples, these are the five you really need to focus on. 23 00:02:53,610 --> 00:02:55,250 And that's where we target our research. 24 00:02:55,250 --> 00:02:56,910 We don't want a lot of false positives. 25 00:02:56,970 --> 00:02:59,150 We don't want algorithms that take forever to run. 26 00:02:59,150 --> 00:03:02,650 We just want to find the malware so that we can deep dive it. 27 00:03:02,710 --> 00:03:10,370 And then, as you can probably guess by the title and the fact that all this research was done with volatility, we're going to be looking for that malware in memory. 28 00:03:11,530 --> 00:03:27,090 If you haven't seen memory forensics before, or maybe you've never looked at a memory sample yourself, the reason why there's this whole industry now around memory forensics and why it's so vital to incorporate it in your investigations is that when you look at the real attacks in the wild, 29 00:03:27,090 --> 00:03:37,270 when you look at the malware that's going to be used in environments where the attackers don't want to get caught, where the EDRs are, where there's actually security teams, that malware is going to be memory only. 30 00:03:37,270 --> 00:03:39,550 It's not going to touch the file system. 31 00:03:39,570 --> 00:03:42,770 Anything that traverses the network is going to be encrypted. 32 00:03:42,850 --> 00:03:46,890 So if you don't get a memory sample, then you just threw all the evidence away. 33 00:03:46,890 --> 00:03:53,250 If you walk up to that compromised machine and you turn it off, as soon as that machine shuts down, the evidence is gone forever. 34 00:03:53,650 --> 00:03:59,130 And what I have highlighted here on the slide is just an interesting report from Microsoft. 35 00:03:59,130 --> 00:04:05,470 There's hundreds of reports like this that companies have published. 36 00:04:05,610 --> 00:04:10,730 But I like this one because in two sentences it really summarizes why we spend so much time doing memory. 37 00:04:10,890 --> 00:04:11,930 This was Microsoft. 38 00:04:11,930 --> 00:04:13,170 It was really interesting. 39 00:04:13,170 --> 00:04:19,650 It was basically a spyware company out of Australia that was being used to target some high-level people. 40 00:04:19,790 --> 00:04:22,970 And Microsoft burned the whole company to the ground in one report. 41 00:04:22,970 --> 00:04:26,410 They burned every piece of malware that company had, all the capabilities. 42 00:04:26,810 --> 00:04:37,030 And as I have highlighted in red here with the screenshot, over and over again, Microsoft made the point to say that where the evasion is, where the real payloads are, are in memory. 43 00:04:37,030 --> 00:04:51,410 And if you look at what these payloads are capable of, it's key logging, it's screenshots, it's recording the microphone, it's recording the webcam, exfiltrating files, everything that allowed this spyware to operate against politicians, journalists, all these people, 44 00:04:51,410 --> 00:04:52,610 it was memory only. 45 00:04:52,610 --> 00:04:55,430 So traditional disk forensics isn't going to get you anywhere. 46 00:04:55,530 --> 00:05:02,390 And you need to know how to efficiently do memory forensics to even make sense of the data and detect the malware in the first place. 47 00:05:03,290 --> 00:05:12,150 So as part of our research project, when we first broke down how EDRs are monitoring system activity, the first three have been around a while. 48 00:05:12,150 --> 00:05:25,770 Kernel callbacks is where EDRs or antivirus inside the kernel, so from their driver, they can register to say that that callback will be notified every time a process starts or a thread starts or a DLL gets loaded. 49 00:05:26,030 --> 00:05:33,190 EDRs will also monitor activity through two of the newer interfaces, so ETW and AMSI. 50 00:05:33,210 --> 00:05:41,370 ETW is where kernel drivers can receive a wide range of system activity from processes, also other parts of the kernel. 51 00:05:41,530 --> 00:05:57,670 And then AMSI, if you go to other DEF CON talks, Black Hat talks, it gets mentioned a lot because at this point, what AMSI does is it lets Defender, so Windows Defender, as well as all the AVs and EDRs, they get to register to say before a PowerShell script runs, 52 00:05:57,670 --> 00:06:08,850 before a macro runs, before all these scripting languages where traditional reversing doesn't work and there's a lot of obfuscation, those antivirus engines and the EDR engines get to scan the scripts. 53 00:06:08,850 --> 00:06:12,590 If they say they are malicious, then the scripts get blocked. 54 00:06:12,910 --> 00:06:19,230 And then what we'll really be focusing on with this talk is the last one, which is system call monitoring. 55 00:06:19,290 --> 00:06:23,230 And we'll have some pictures for that to make sure everyone is on the same page. 56 00:06:23,830 --> 00:06:38,010 And so when we broke down the bypasses, even, not even just like your really sophisticated threat groups, every ransomware family at this point, the half-decent ones, the first thing they do is load a kernel driver through Bring Your Own Vulnerable Driver, 57 00:06:38,010 --> 00:06:41,830 and they disable all the EDR callbacks and the AV callbacks. 58 00:06:41,830 --> 00:06:47,630 At that point, the ransomware can inject code, start new processes, and those systems are blind. 59 00:06:47,690 --> 00:06:57,130 For event tracing and AMSI, there are dozens and dozens of papers on how to disable these, and it's essentially a modern part of what you see in real investigations. 60 00:06:57,330 --> 00:07:05,110 But what we noticed, and as we'll see here on the next slide, is when we get to system call monitoring, we had no way to detect this. 61 00:07:05,110 --> 00:07:16,970 So before this research effort, with memory forensics, with volatility, you could very quickly determine that callbacks had been unregistered, that ETW had been tampered with, that AMSI had been tampered with. 62 00:07:16,970 --> 00:07:19,530 Again, these are going to point you right to the malware. 63 00:07:19,630 --> 00:07:27,610 But the system call monitoring that EDRs use, and it's one of the best ways they get visibility on the system, there was no way to detect this. 64 00:07:27,610 --> 00:07:35,990 And so in our investigations, we were having to do a lot of manual work to find it, to unravel it, and that just doesn't work for the scale that we operate at. 65 00:07:35,990 --> 00:07:37,450 We need automated ways. 66 00:07:40,270 --> 00:07:49,910 And the reason that the system calls are so critical to EDRs is the idea with system calls is this is your boundary from process memory to the kernel. 67 00:07:49,910 --> 00:08:03,130 So this diagram here, the Windows internals book, you have your processes running, your web browser, your office application, whatever it is that the process is running in user land or user mode, it's all the same thing. 68 00:08:03,130 --> 00:08:17,030 Besides manipulating their own memory, whenever they want to access a resource on the system, so they want to read or write a file, they want to read or write a network packet, anything beyond manipulating their own memory, they have to ask the operating system to do it. 69 00:08:17,030 --> 00:08:21,670 Because obviously you don't want your random notepad process writing directly to the hard drive. 70 00:08:21,670 --> 00:08:26,870 Or you don't want notepad writing directly to the ring buffer of your network driver. 71 00:08:26,870 --> 00:08:39,390 So, for processes that want to talk to network devices and request those operations, reading a file, writing a file, interacting with the network, it has to go through a system call. 72 00:08:39,390 --> 00:08:46,210 And that system call is going to change the execution context into the kernel, which is obviously the most privileged part. 73 00:08:46,210 --> 00:08:50,650 It has full access to the operating system itself, to other drivers, to other hardware. 74 00:08:50,990 --> 00:08:59,770 What you're seeing on the right side of this slide is the arrow that breaks down between process memory and the kernel where the system calls happen. 75 00:08:59,770 --> 00:09:02,070 You're seeing a stack trace of that here. 76 00:09:02,190 --> 00:09:05,790 When you look at a stack trace, you want to start at the bottom to make sense of it. 77 00:09:05,790 --> 00:09:12,070 So in the beginning, what these lines or these rows here with the U, this is in user land, or again, process memory. 78 00:09:12,110 --> 00:09:15,010 You can see that the Edge browser is running. 79 00:09:15,110 --> 00:09:18,570 It eventually gets to this call, ZW create file. 80 00:09:18,570 --> 00:09:22,490 Your system calls will, in almost all cases, start with ZW. 81 00:09:22,490 --> 00:09:26,750 And then you can see this is sysinternals monitoring the call stack. 82 00:09:26,750 --> 00:09:31,030 It eventually, when the system call is made, it jumps into the kernel file. 83 00:09:31,050 --> 00:09:33,070 And this K means we're in kernel memory. 84 00:09:33,170 --> 00:09:40,550 So this last call, the ZW, whatever that particular system call is, that is the last boundary before we jump in the kernel. 85 00:09:40,550 --> 00:09:45,550 And the reason we're focusing on this background so much is this is where your EDRs live. 86 00:09:45,910 --> 00:09:53,650 Because if you look at this slide, what we're seeing, I'll explain in more detail in a second, but on the left is the normal system call handler. 87 00:09:53,650 --> 00:09:56,230 So this is what you get with Windows by default. 88 00:09:56,230 --> 00:10:02,930 In this case, the slide is showing ZW protect virtual memory, so another system call on Windows. 89 00:10:02,930 --> 00:10:06,410 On the left is the normal flow that's going to reach the kernel. 90 00:10:06,450 --> 00:10:09,290 On the right is an EDR that has hooked it. 91 00:10:09,290 --> 00:10:23,950 So EDRs that want to monitor what processes are doing on the machine by injecting code into every process, hooking the system call functions of interest, it has complete control over what that process is doing right before it makes the system call. 92 00:10:23,950 --> 00:10:35,770 So if it wants to look for suspicious parameters, if it wants to log out what files are being read, what parts of the registry are being interacted with, by hooking that lowest level function, the EDR has full visibility. 93 00:10:36,130 --> 00:10:44,650 And so as we'll see here in a second, what malware wants to do is make its system calls without EDRs interfering or detecting it. 94 00:10:44,710 --> 00:10:48,250 But some background real quick while we're on a nice slide with a picture. 95 00:10:48,250 --> 00:10:54,170 What we're seeing here, again on the left, is the normal system call handler that jumped. 96 00:10:54,170 --> 00:10:55,290 We're going to go back. 97 00:10:55,370 --> 00:10:59,030 So what we see on the left is the normal system call handler. 98 00:10:59,030 --> 00:11:01,090 And there's a few things to keep in mind. 99 00:11:01,090 --> 00:11:10,270 First off, when you have the NT version of a function and then the ZW prefix version, it's the same exact function, but one's in user land, one's in the kernel. 100 00:11:10,270 --> 00:11:11,930 So we're seeing that here. 101 00:11:11,930 --> 00:11:20,390 The second thing is, from regular C code or C++ code, when you call a function, the parameters are sent in certain registers. 102 00:11:20,390 --> 00:11:22,790 We're going to focus on 64-bit machines. 103 00:11:23,050 --> 00:11:27,570 And besides RCX and R10, they're exactly the same. 104 00:11:27,570 --> 00:11:34,770 The weird thing is, with Windows, when you make a system call, your second parameter needs to be an R10 instead of RCX. 105 00:11:34,770 --> 00:11:37,410 So this has to get updated in those paths. 106 00:11:37,410 --> 00:11:41,410 And then EAX or REX has to hold the system call number. 107 00:11:41,410 --> 00:11:48,210 So for all the hundreds of system calls that Windows has for a particular version, each system call has its own number. 108 00:11:48,210 --> 00:11:56,610 And if you look at these handlers, they all look exactly like this, except this number changes, because that is the index into the system call table at runtime. 109 00:11:57,130 --> 00:12:01,130 And then we have a quick check to see what system call path is supported. 110 00:12:01,290 --> 00:12:11,810 And then to make that transition to kernel mode, we're either going to use the system call instruction, or if we're on an older processor, older version of Windows, we're going to make the int2e call. 111 00:12:11,890 --> 00:12:17,870 So again, this is, on the left, is what we would expect on a regular machine where you don't have EDRs. 112 00:12:17,870 --> 00:12:27,470 And then if you look on the right here, instead of all this code, eventually calling system call, we just have a jump out to an unknown region, which is going to be the EDR. 113 00:12:27,530 --> 00:12:35,550 And then when malware calls something like protect virtual memory here, or create file on the previous slide, the EDR has full control of that. 114 00:12:35,550 --> 00:12:38,970 It's going to kill the ransomware before it can launch any payloads. 115 00:12:38,970 --> 00:12:41,610 It's going to kill all the code injection techniques. 116 00:12:41,610 --> 00:12:48,790 And so if you have a decent EDR and it's not being tampered with, it's going to stop all these regular malware techniques from functioning. 117 00:12:48,850 --> 00:13:00,230 But like I said, we constantly do investigations where there's very potent malware on the machine, there's supposedly EDR on the machine, but when we dig into the infected processes, the EDR has been nullified. 118 00:13:07,280 --> 00:13:12,120 So what we're going to do for the rest of the talk is look at all of the bypasses that we found. 119 00:13:12,120 --> 00:13:16,040 Like I said, in our own investigations, there's a bunch of open source tools that do it as well. 120 00:13:16,040 --> 00:13:17,900 And then how we can detect them. 121 00:13:17,900 --> 00:13:20,800 The first one goes by a couple different names. 122 00:13:20,800 --> 00:13:24,280 Module unhooking, system call unhooking, API unhooking. 123 00:13:24,360 --> 00:13:29,200 The basic idea here is the malware is going to unhook the system call handlers. 124 00:13:29,280 --> 00:13:41,640 And the end goal is when malware starts running and they're in a process that EDRs have all the system calls in this hooked form, it wants to get it back to the original form so that the EDR is blind to what's going on. 125 00:13:42,600 --> 00:13:57,840 The way this works, and this PowerPoint keeps jumping a lot, the way this works, this is a screenshot from a very recent report from a very recent report maybe two or three months ago of malware that did this to then spread across a huge network. 126 00:13:57,880 --> 00:14:03,560 The basic idea is where system calls are implemented in memory is NTDLL. 127 00:14:03,680 --> 00:14:11,180 So the first DLL that loads in every process is NTDLL that has all of those system call handlers, one per system call. 128 00:14:11,340 --> 00:14:12,900 And that's what the EDRs hook. 129 00:14:12,900 --> 00:14:20,700 They put the jump instruction, it goes directly to the EDR code and then like I said, the EDR can evaluate the parameters before the system call is made. 130 00:14:20,760 --> 00:14:23,860 So you can see it in the steps here, this report was really nice. 131 00:14:23,860 --> 00:14:33,860 What this malware did is it read the clean copy of NTDLL from disk so that copy on disk is what Microsoft published that does not have any EDR hooks present. 132 00:14:33,860 --> 00:14:42,860 So it reads NTDLL from disk, it finds where those system call handlers are in their clean state on disk and it just overwrites all the EDRs hooks. 133 00:14:42,860 --> 00:14:55,140 And now the malware can call any system call at once with whatever malicious parameters it wants, any malicious end goal that it has, and even though the EDR is technically loaded in that process, its code is never going to be activated. 134 00:14:55,140 --> 00:14:58,200 And so when we look at ransomware and we're like, how can it inject code? 135 00:14:58,200 --> 00:14:59,760 How's it encrypting all the files? 136 00:14:59,760 --> 00:15:01,100 How's it elevating privileges? 137 00:15:01,100 --> 00:15:07,840 It's because the EDR has no idea what's going on, and this is one of the many ways that we'll talk about how it happens. 138 00:15:07,840 --> 00:15:22,720 So again, you go from the state where every process on the machine has their system calls hooked, the malicious code, the malware is going to run in its own process, or it's going to inject code into a victim process, and in that victim process, or the malware's own process, 139 00:15:22,720 --> 00:15:30,300 the system call handlers will be reverted back to where they were on disk, but all the other processes will have the hooked form. 140 00:15:30,360 --> 00:15:42,220 So what we realized is instead of trying to figure out the 50 different variations for module unhooking, we could just use data in memory to tell us where the malware is. 141 00:15:42,220 --> 00:15:55,560 So what our new volatility plugin does is it enumerates every process, it reads the bytes of all the system call handlers that the malware often targets, and then we just compare the implementations. 142 00:15:55,560 --> 00:16:06,840 And as you'll see here in a couple slides, what we can do is say, you have 100 processes running, 99 of them have one implementation, and this one process on its own has a different implementation. 143 00:16:06,840 --> 00:16:13,840 The 99 are the ones where the EDR is still active, and that one kind of outlier process is the one that the malware is unhooked. 144 00:16:14,580 --> 00:16:20,520 And so we like, when we do this type of research, we like to make experiments that can be repeated by anyone else. 145 00:16:20,520 --> 00:16:33,120 Obviously not everyone works at Velocity and has access to our infected samples from the wild, so we come up with experiments using open source tools where you can recreate this on your own and you can test it in your own environment. 146 00:16:33,220 --> 00:16:41,260 So a very nice tool for testing EDR, a very nice open source tool for testing EDR bypasses is called SilentStrike. 147 00:16:41,260 --> 00:16:48,860 So this is an open source EDR, and it was actually developed just to test these bypasses and then see if you could detect them. 148 00:16:48,860 --> 00:16:53,360 The way SilentStrike works is it hooks NT protect virtual memory. 149 00:16:53,360 --> 00:17:00,840 This is one of the main functions that malware needs to perform code injection and also to try to keep that code injection stealthy. 150 00:17:00,840 --> 00:17:13,560 And so what this open source EDR does is it hooks that function if it gets called where the region is going to become readable, writable, and executable the EDR says you can't do that, and that stops a lot of different code injection techniques. 151 00:17:13,680 --> 00:17:19,780 So for our experiment what we did is we took a base Windows 10 install, so no EDR. 152 00:17:20,020 --> 00:17:27,260 With SilentStrike you can tell it to create individual processes that it will then treat as an EDR and protect. 153 00:17:27,340 --> 00:17:30,120 So we started a notepad and we started a wordpad. 154 00:17:30,120 --> 00:17:34,820 At this point they have SilentStrike active in it which is your EDR. 155 00:17:34,820 --> 00:17:36,860 We then took a memory sample. 156 00:17:37,000 --> 00:17:46,040 After that we ran R77 which is an open source rootkit that does this module unhooking and we unhooked the notepad process. 157 00:17:46,040 --> 00:17:47,940 And then we took a second memory sample. 158 00:17:47,940 --> 00:18:04,000 So we have the state before and after the malware ran and with our new plugin, so unhook system calls to volatility 3 what it's saying here is what we do is we enumerate all the functions the slide is cut, there's probably like 50 functions we actually check. 159 00:18:04,000 --> 00:18:09,920 But the idea is we're saying for these processes down here, there's no distinct implementations. 160 00:18:09,920 --> 00:18:21,860 So every process inside of that memory sample had the same version of the function and then the two that we started under SilentStrike, their NT protect virtual memory, had the EDR's view. 161 00:18:21,860 --> 00:18:24,260 This is before we ran R77. 162 00:18:24,420 --> 00:18:28,760 We then ran the R77 rootkit on the machine. 163 00:18:28,820 --> 00:18:35,780 We unhooked notepad and you can see it removes from distinct implementations it's been reverted back to the base form. 164 00:18:35,780 --> 00:18:48,800 So then we took this plugin ran it across the many hundreds of memory samples that we have to test our code on and the only place this plugin fired was either traditional API hooking or EDR unhooks. 165 00:18:48,800 --> 00:18:56,280 So there's no false positives with this if the EDR's hooked every process it doesn't make sense that it would skip one or that one should be reverted. 166 00:18:56,280 --> 00:18:59,220 This directly tells you where the malware is running. 167 00:19:00,560 --> 00:19:04,860 We then started looking into other ways to read NTDLL. 168 00:19:04,860 --> 00:19:26,020 So you saw it in the screenshot before from that malware report and I walked you through where to, for unhooking to work, the malware needs access to a clean copy of NTDLL which normally you can just read from disk but there were several EDR vendors that started detecting that because why would some random process need to read NTDLL as a file and like parse the section? 169 00:19:26,020 --> 00:19:30,300 The only reason to do that is to unhook the EDR out of memory. 170 00:19:30,300 --> 00:19:36,740 So this made it harder for that malware to operate it can't read NTDLL from disk or it's going to get caught. 171 00:19:36,780 --> 00:19:44,120 So we saw some malware samples and some open source tools that abused suspended processes to get the clean copy. 172 00:19:44,120 --> 00:19:54,720 If you've ever investigated process hollowing, whether you were writing code for it or you were trying to detect it, creating suspended processes is the first step of every process hollowing technique. 173 00:19:54,720 --> 00:19:58,080 So we'll see that we catch some of those as well as kind of a side effect. 174 00:19:58,080 --> 00:20:04,260 But the idea for EDR bypasses is the malware will create a suspended process. 175 00:20:04,260 --> 00:20:11,880 The idea with a suspended process is that the only thing that's going to load is the application executable and NTDLL. 176 00:20:11,880 --> 00:20:14,800 It's kind of like a half created process at that point. 177 00:20:15,020 --> 00:20:24,720 Once the EXE and NTDLL are mapped into the process then at that point the parent process, the one who created the process, gets control back. 178 00:20:24,860 --> 00:20:30,800 So then what the malware does is it just reads from its child process, the clean NTDLL out of memory. 179 00:20:30,820 --> 00:20:35,000 The EDR doesn't see a suspended process until it actually starts running. 180 00:20:35,000 --> 00:20:37,920 So this puts a clean copy of NTDLL in memory. 181 00:20:37,920 --> 00:20:40,220 The malware doesn't have to go read it from disk. 182 00:20:40,220 --> 00:20:43,220 And so obviously we want it to be able to detect this as well. 183 00:20:44,240 --> 00:20:50,920 So we did some reverse engineering and read some pre-existing reports on what happens with suspended processes. 184 00:20:50,920 --> 00:20:55,600 Like I said, we see it a lot because you have to do this if you want to create a hollowed process. 185 00:20:55,740 --> 00:21:00,560 But what you have in kernel memory is for every process you have an E-process structure. 186 00:21:00,560 --> 00:21:04,140 For every thread you have an E-thread or a K -thread structure. 187 00:21:04,180 --> 00:21:09,620 When that process gets created in the suspended state every process starts with one thread. 188 00:21:09,740 --> 00:21:16,880 And when you create the thread suspended, its suspense count goes to one, which tells the operating system not to run it. 189 00:21:16,880 --> 00:21:23,020 Normally if you just create a process in the normal way or you double click it on your desktop, the suspend count is going to be zero. 190 00:21:23,020 --> 00:21:26,600 And as soon as that process can get scheduled, its threads are going to run. 191 00:21:26,640 --> 00:21:39,220 But what we saw in every piece of malware that we had and every open source tool we had access to that did this, when they create the suspended process just to read the clean NTDLL, they're never going to run that child process. 192 00:21:39,220 --> 00:21:44,420 They are just getting that into memory to get access to the clean system call handlers. 193 00:21:44,460 --> 00:21:45,860 So this was pretty easy. 194 00:21:45,860 --> 00:21:47,180 We wrote a plugin. 195 00:21:47,180 --> 00:21:50,760 Volatility could already enumerate every thread of every process. 196 00:21:50,760 --> 00:21:55,820 And then we just added an extra step to say does that thread have a suspend count greater than zero. 197 00:21:55,820 --> 00:22:06,600 Running it across our large data set of memory samples, the only false positive we had, which was pretty random, is this work folder shell DLL inside of edge makes suspended threads. 198 00:22:06,600 --> 00:22:07,580 We don't know why. 199 00:22:07,580 --> 00:22:11,040 So we just added that to the list of ones we don't print out. 200 00:22:11,040 --> 00:22:13,960 And besides that, we didn't have a single false positive. 201 00:22:14,100 --> 00:22:20,340 And then like I said, at Vlexity, we have hundreds and hundreds of memory samples in different states that we test these things on. 202 00:22:20,340 --> 00:22:34,460 And quite a few of the samples that we know have process hollowing in them, they were detected too, because if you're familiar with that technique, the idea is you create a process in a suspended state, you overwrite the code, and then you let that new process run. 203 00:22:34,460 --> 00:22:44,340 And so not only is this plugin picking up all the EDR bypasses, we caught a bunch of different... we generically caught a bunch of different process hollowing techniques as well. 204 00:22:51,750 --> 00:23:00,150 At Blackhat Europe, maybe two years ago now, three years ago, there was a really cool white paper and talk on a project called Dirty Vanity. 205 00:23:00,150 --> 00:23:05,550 The idea was they tested against basically every commercial EDR they could get their hands on. 206 00:23:05,550 --> 00:23:12,030 And the idea is they wanted to be able to do code injection into a victim process without the EDRs catching them. 207 00:23:12,030 --> 00:23:17,750 And if you're familiar with this, to do code injection, there's five or six APIs you have to call to make that work. 208 00:23:17,930 --> 00:23:28,890 And if you call all those in a row and you're injecting, the end result is you're going to inject into your victim process, any half-decent EDR, any enterprise-level EDR is going to catch that. 209 00:23:28,990 --> 00:23:36,930 So what was really interesting about Dirty Vanity is they instead created clone processes, or a forked process if you're more familiar with Linux. 210 00:23:36,950 --> 00:23:48,410 So the idea with a clone or a forked process is your process is running, you create a clone of your own process, so that child process you created has your same exact state. 211 00:23:48,530 --> 00:24:00,030 So then what Dirty Vanity did is they called the first couple APIs from the parent and then they create the clone, which has the same exact state as the parent and they called the final set of APIs from the child. 212 00:24:00,030 --> 00:24:10,510 So the end result is they're still injecting code into the victim process, but none of the EDRs that they tested were able to detect the calls going across the process boundary. 213 00:24:10,530 --> 00:24:15,150 So obviously we wanted to be able to detect this from a memory forensic standpoint. 214 00:24:15,390 --> 00:24:26,810 So while we were looking into what it means to clone a process in Windows, the real internal state, we saw that what Windows does when it's setting up that clone is it makes a suspended thread. 215 00:24:26,810 --> 00:24:37,390 So that child that's being cloned into has its first thread suspended and with Dirty Vanity it never restarted the child process or the initial thread of the child process. 216 00:24:37,390 --> 00:24:40,210 So the plugin that we had detected it right away. 217 00:24:40,330 --> 00:24:43,670 And if you're interested in this I have it cited here at the bottom. 218 00:24:43,670 --> 00:24:46,890 We found this thing called the Definitive Guide to Process Cloning on Windows. 219 00:24:46,890 --> 00:24:56,070 It's like 40 pages of APIs and data structures and background, but it pretty much told us exactly what we needed to know on top of what we saw with reversing. 220 00:24:57,190 --> 00:25:04,890 We made a memory sample that was infected with Dirty Vanity and as you can see we're running our suspended threads plugin. 221 00:25:04,890 --> 00:25:22,410 It's telling us that inside of the fake EXE process, which is what Dirty Vanity calls itself if you just compile it straight from GitHub and then it's saying that this process ID, 6752 this thread, it is suspended or suspend count is greater than zero. 222 00:25:22,470 --> 00:25:40,370 And then if you look at PSTree in Volatility so this is drawing out the parent child relationship of processes you can see that the original fake EXE has a child called fake EXE so this is that process that was created through cloning. 223 00:25:40,490 --> 00:25:57,850 So this is the parent, this is where Dirty Vanity will call the first couple APIs it then forks or clones off a child process where it will call the remaining APIs bypassing the EDR, but what you can see Volatility picking up on is the child's always going to have it's main thread suspended. 224 00:25:57,970 --> 00:26:08,070 And so we pick up on that right away, you would then run PSTree would probably be the next thing if this was a real investigation, you would figure out the parent that created the suspended process. 225 00:26:08,270 --> 00:26:20,050 And then you can see here what it does in demo mode, so if you don't have an EDR you're targeting Dirty Vanity will run command shell with some shell code that makes a pop up on the screen or prints it to the terminal. 226 00:26:20,050 --> 00:26:23,010 So you see that here as well, that child process. 227 00:26:23,010 --> 00:26:29,730 But through the new plugin you see exactly which process is malicious, you can then do your normal memory forensics workflow. 228 00:26:34,060 --> 00:26:44,140 As you've been seeing in the slides, the previous techniques that we looked into for bypassing the system call handlers relied on overwriting code. 229 00:26:44,260 --> 00:26:56,060 And you might have been thinking, especially if you've done debugging before or low level programming before, the idea that you're going to overwrite NTDLL the entire thing or certain functions at run time is a bit unsafe. 230 00:26:56,060 --> 00:27:11,000 Because you can imagine if you're overwriting 30 or 40 functions code in memory, if any other thread is using that function or a system call was just made and you're waiting for user land to return again, you just blew away the code that was technically running on the CPU. 231 00:27:11,100 --> 00:27:14,380 So malware does it, it generally works, but it's a bit unsafe. 232 00:27:14,380 --> 00:27:18,240 And then the other thing you could imagine is EDR could just check for its hooks. 233 00:27:18,240 --> 00:27:28,280 If it hooked 40 or 50 system call handlers and then it checks whatever frequency later and its handlers are overwritten, it knows that there's malware inside of that process. 234 00:27:28,280 --> 00:27:36,220 So this led to what was some really interesting research on the open source side, and like I said, we saw it in private malware as well. 235 00:27:36,220 --> 00:27:40,560 So there were alternative methods developed where the code is not overwritten. 236 00:27:40,560 --> 00:27:49,800 The malware, as you'll see, can still make its malicious system calls, it can still do any system calls at once with any parameters, but we're not overwriting code. 237 00:27:49,800 --> 00:28:05,280 So inside of NTDLL, in that EDR protected process, the original implementation that the EDR gave is the same, the hooks are present, the EDR would get control if the real system call was used, but malware is just going to avoid those code paths. 238 00:28:05,280 --> 00:28:08,840 So we'll look at the different ways they do that and the ways we can detect it. 239 00:28:09,540 --> 00:28:12,640 The first one we looked at were direct system calls. 240 00:28:12,680 --> 00:28:18,860 So the malware authors realized that why do I need to call the system call handler inside of NTDLL? 241 00:28:18,860 --> 00:28:24,500 You saw that a system call handler is only 5 or 6 instructions, why don't I just do that myself? 242 00:28:24,500 --> 00:28:32,840 So rather than going through NTDLL, which the EDR is hooked, I'm just going to set up the registers that are needed and I'm going to make the syscall instruction on my own. 243 00:28:32,920 --> 00:28:40,200 And again, the EDRs that are trying to catch you through system call hooks, they are blind to you because you're not going through their hooked code. 244 00:28:40,200 --> 00:28:54,700 The problem with this, and there was a very interesting series of posts by Elastic that I have cited at the end, this is where they started doing call stack examination, Elastic does this really well, there's some open source implementations of it also, 245 00:28:54,700 --> 00:29:09,260 but the idea is, if you were making a system call instruction, or you're calling a system call instruction outside of NTDLL, so you're in some random DLL that you've injected, or you're in a shellcode region, your EDR in kernel mode can see that. 246 00:29:09,260 --> 00:29:16,160 And then it's going to say, why is a system call being made from a random shellcode region that wouldn't normally happen on a running machine? 247 00:29:16,260 --> 00:29:21,400 And then the other downside to this, as we'll see, is you have to know where the system call indexes are. 248 00:29:21,400 --> 00:29:27,040 So like I said, there's hundreds of system calls per release of Windows, and the indexes change almost every time. 249 00:29:27,040 --> 00:29:28,860 The indexes are not guaranteed. 250 00:29:28,960 --> 00:29:37,380 If you're writing normal legitimate code, you shouldn't care about the indexes, you just call the higher level API, and the operating system does the work for you. 251 00:29:37,380 --> 00:29:48,020 But in this case, where you want to make the system call yourself, and you don't want to use the normal APIs because the EDR has hooked them, you have to be able to get that index value to put into EAX. 252 00:29:48,500 --> 00:29:56,060 So if we look at the way that this has evolved over time, the first tool that made this popular is called dumpERT. 253 00:29:56,060 --> 00:30:07,920 It's an open source tool, it's still on GitHub, has a very nice companion blog post, and as you can see, for every system call it wants to make available to the malware, it has to put that little stub itself. 254 00:30:07,920 --> 00:30:23,220 It has to update R10, update EAX with the very specific index for the very specific system call, then it can call system call in return, and at this point you can make those, but if you look at the code, this is hard-coded to one version of Windows 7, 255 00:30:23,220 --> 00:30:29,260 one release under Service Pack 1, this is not something you could use in generic malware. 256 00:30:29,460 --> 00:30:38,040 So instead what we want to be able to have is where that is very loud, instead we want to make it where system calls can be resolved dynamically. 257 00:30:38,040 --> 00:30:48,820 So instead of your malware having what would literally be hundreds of hard-coded system call tables for different versions of Windows, we want to find those indexes dynamically. 258 00:30:49,400 --> 00:30:52,800 The first implementation of this is called Hell's Gate. 259 00:30:52,800 --> 00:30:56,820 Almost every technique has gate in the name, which makes it kind of annoying to remember. 260 00:30:56,880 --> 00:30:58,620 So the first one is Hell's Gate. 261 00:30:58,640 --> 00:31:02,080 In this case, what it did is it parsed NTDLL on disk. 262 00:31:02,080 --> 00:31:12,820 Kind of like we talked about before, but instead of overwriting pre-existing code or the EDR's code, it's just parsing NTDLL on disk and then it's dynamically resolving the numbers. 263 00:31:13,020 --> 00:31:17,780 Because, for example, let's say in this case it wants to call a ZW open process. 264 00:31:17,840 --> 00:31:34,320 Instead of having to know beforehand that on Windows 7 Service Pack 1 the index is 23 hex, it can just load NTDLL, it can call get proc address for ZW open process, it can do some automated disassembly on the code, and it can read out the index dynamically. 265 00:31:34,620 --> 00:31:35,920 So this was Hell's Gate. 266 00:31:35,920 --> 00:31:38,020 You can see the code here on the right. 267 00:31:38,020 --> 00:31:43,500 Instead of being hard-coded to a certain number, it has a little API wrapper that you use as a programmer. 268 00:31:43,640 --> 00:31:52,300 You prep the system call, that's going to fill in this global variable, and then when it comes time to make the system call, it will fill in the number correctly for you. 269 00:31:52,300 --> 00:32:08,020 The problem with this, like I said, is most decent EDRs, I'm not going to say certain vendors, but most decent EDRs, if random code is reading NTDLL and parsing the P header and all of that, the EDR is going to flag on it because it's just not something legitimate code would do. 270 00:32:08,020 --> 00:32:10,660 So this led to even more gates. 271 00:32:10,660 --> 00:32:22,900 There is Tataris Gate, which initially, there was some detections and some YARA rules that were put out to detect this code pattern that's very hard-coded and this code pattern that's very hard-coded. 272 00:32:22,900 --> 00:32:27,700 All it did was make it a little more difficult to where those naive patterns would break. 273 00:32:27,700 --> 00:32:32,560 It put some no-op instructions, it put some other instructions that didn't have a side effect. 274 00:32:32,560 --> 00:32:40,140 But remember, you're in the system call handler path, so you can't add a bunch of junk instructions or you will kill performance on the machine. 275 00:32:40,140 --> 00:32:44,140 In a real process, you're going to have thousands and thousands of system calls running. 276 00:32:44,140 --> 00:32:48,480 You cannot have where you put in a bunch of junk code just to throw off a YARA rule. 277 00:32:48,480 --> 00:32:53,020 So even adding a few extra instructions will have a real impact on the system. 278 00:32:53,280 --> 00:33:00,640 So like I said, Tataris Gate is just trying to make it where if all you have is a kind of brittle, basic YARA rule, you will not catch those code patterns. 279 00:33:00,660 --> 00:33:07,260 There was then Halos Gate, which was an interesting twist on reading NTDLL from disk. 280 00:33:07,260 --> 00:33:12,400 So they wanted to, these malware authors wanted to get away from reading NTDLL from disk. 281 00:33:12,400 --> 00:33:18,040 So instead what they do is they kind of rely on the fact that the EDRs aren't going to hook every system call. 282 00:33:18,040 --> 00:33:25,200 They're just going to, the malware is only going to unhook this, sorry, the EDR is only going to hook the system calls that it wants to monitor. 283 00:33:25,200 --> 00:33:33,400 So what Halos Gate does is it dynamically goes through all the other system calls that the EDR is not hooking and then it just does some math. 284 00:33:33,400 --> 00:33:40,500 It says, OK, I know the system call before it and the system call after it are this number, so the one in the middle, it can dynamically figure it out. 285 00:33:40,500 --> 00:33:43,700 Again, this avoids reading NTDLL from disk. 286 00:33:43,900 --> 00:33:47,160 And then there's a really cool technique called address sorting. 287 00:33:47,640 --> 00:33:54,500 One of the authors of this open source project realized that all the system calls are put in order alphabetically. 288 00:33:54,500 --> 00:33:59,140 So if you just read the addresses of where they all are, it's kind of the same idea. 289 00:33:59,140 --> 00:34:01,660 You alphabetically sort them. 290 00:34:01,740 --> 00:34:08,360 If they're the one that you're trying to use as hooked, you just look at the one before it and you add one and now you know the index that you need. 291 00:34:08,540 --> 00:34:11,820 And then even dealing with all of that previously was kind of difficult. 292 00:34:11,820 --> 00:34:14,480 There's a lot of assembly, a lot of low level C code. 293 00:34:14,480 --> 00:34:17,600 So there's this really nice project called Sys Whisperers 2. 294 00:34:17,600 --> 00:34:23,400 And the 2 is important because the first version was not very good, but the second version is very powerful. 295 00:34:23,420 --> 00:34:25,640 This integrates with Visual Studio. 296 00:34:25,640 --> 00:34:33,240 You call directly through this and it does all the nasty work in the background for you to dynamically resolve those system call indexes. 297 00:34:33,240 --> 00:34:48,760 So if you want to write code that bypasses EDRs, you want to be able to make whatever system call you want without being detected, all you have to do is import the Sys Whispers 2 into your Visual Studio project, write your malware freely and it does all the hard work in the background for you. 298 00:34:48,820 --> 00:34:55,660 So with all these different techniques that make EDRs blind to what's happening, we wanted to be able to detect this. 299 00:34:55,660 --> 00:35:11,000 So we kind of already knew this before going into it, but we did a large sweep across all of our Windows memory samples and for every version of Windows going back to XP through the latest Windows 11, there's only 3 DLLs that legitimately implement system calls. 300 00:35:11,000 --> 00:35:22,080 There's the NTDLL that I talked about, Wow64 for 32-bit processes and then Win32 is for the GUI, so what you're seeing here on the screen with Explorer and PowerPoint. 301 00:35:22,260 --> 00:35:35,700 So the idea is through memory forensics, if we find the instructions needed to make a system call instruction and set the parameters and it's not in one of those 3 DLLs, this is malware trying to bypass the system. 302 00:35:37,400 --> 00:35:41,120 And then like I mentioned, it's some very, very cool low-level work. 303 00:35:41,120 --> 00:35:54,860 I threw this screenshot in literally last second, like right before I sent these slides to DEF CON, because there was a talk by a security vendor as I was making the slides, right as I was about to upload it and I took this screenshot and threw it in last second, 304 00:35:54,860 --> 00:36:09,000 because it was talking about malware that was just used recently in the last 1 or 2 months in real attacks and it, the malware was called Dodgebox and it's talking about how in every phase of the malware, every component the malware had, it did call stack spoofing, 305 00:36:09,000 --> 00:36:21,280 so bypassing the EDRs to make it appear where those system calls, so it's doing direct system calls, making it appear where it came from the trusted binary, so the ones we saw in the last slide, instead of the malware itself. 306 00:36:21,300 --> 00:36:32,520 And so it's this constant back and forth between EDRs and malware, trying to figure out that system calls are being made from the wrong spot but quite honestly the EDRs are in a tough spot and usually the malware wins. 307 00:36:32,760 --> 00:36:46,780 We don't have these problems with memory forensics, we don't have to detect the system call the second it's made, we're trying to find proof of code that can do that or does that through memory forensics, and so what we did is we wrote, we used Capstone, 308 00:36:46,780 --> 00:37:02,620 which is a very flexible disassembly library, has Python support so you can use it directly in volatility and what we do is look for blocks of code, so block code pattern blocks where EAX gets updated, that's your system call index, where R10 gets updated, 309 00:37:02,620 --> 00:37:06,480 where one of the system call instruction happens and where there's a return. 310 00:37:06,500 --> 00:37:21,460 We did a bunch of work so that simple things like Tataris gate with this noops wouldn't bypass our code, we're not doing pattern matching, we're doing actual automated static disassembly and when we tested this on every implementation that we had of this technique, 311 00:37:21,460 --> 00:37:24,340 our new plug-in direct system calls detected it. 312 00:37:24,340 --> 00:37:41,080 In this case, just to make it fit on a slide nicer, this is Hell's Descent from Hell's Gate, so this is where it's calling the system call instruction on its own, and then the plug-in saying, hey, inside of this process, executable with this PID, and it shows you right in memory where that system call handler is. 313 00:37:41,080 --> 00:37:48,260 So it's as simple as running this plug-in across your potentially infected samples, and it tells you right where the malware is. 314 00:37:49,620 --> 00:38:05,040 And then with the indirect system calls, the idea is, instead of having that code pattern where you're making syscall or int2e directly from your malware code or your shell code, which, again, you have to do a bunch of call stack spoofing and things, or the EDRs will see you, 315 00:38:05,040 --> 00:38:16,620 the idea is you find the address of the syscall instruction in ntdll, but instead of calling the function of that, you find where the syscall instruction is, and you jump to it. 316 00:38:16,620 --> 00:38:31,140 So you set the registers yourself, you do all the prereqs yourself, you jump to the syscall instruction, it looks like it's coming from ntdll, and then depending on which EDR you have, that EDR is going to think it's the real system call, and then you've bypassed it. 317 00:38:31,900 --> 00:38:43,320 So we wanted to be able to detect that as well, and something that also gets used with this technique are the exception handlers and the debug registers, which is the last thing we cover in this talk. 318 00:38:43,320 --> 00:38:59,800 So the idea is debug registers have been abused forever by malware, there was a frack article in 2008 that's the first, considered the first public documentation of it, and the idea is by abusing debug registers, you can get your exception handler called at any point in time, 319 00:38:59,800 --> 00:39:07,440 and then from your exception handler, you're going to make the system call instruction, and EDRs do not follow this well as, at all. 320 00:39:07,440 --> 00:39:11,020 They don't expect malware to be running inside of exception handlers. 321 00:39:11,720 --> 00:39:27,600 So a cool open source project for this, if you want to see it yourself, is called MutationGate, it is on GitHub, and you can see what it's doing, it's adding a vectored exception handler, so it's saying it wants to handle exceptions in its process, this is the function that's going to be called, 322 00:39:27,600 --> 00:39:43,680 and then on its own, it sets a breakpoint at this innocuous system call, NTDrawText, that has nothing to do with code injection or malware, so the idea is, this malware, this code injection, uh, this EDR bypass technique, will get called whenever a breakpoint is set, 323 00:39:43,680 --> 00:39:50,880 and then it explicitly sets a breakpoint on where the system call instruction is inside of this innocuous function. 324 00:39:51,280 --> 00:40:09,960 So then, in the implementation of it, what it does, is every time the malware wants to make a malicious system call, it just calls NTDrawText, which again, you can't do anything malicious with that, and then the malware, the MutationGate, it updates RAX right before the system call instruction to be the real system call. 325 00:40:09,960 --> 00:40:18,860 So your EDR is going to think, hey, this malicious code's calling DrawText, it's going to write something on the screen, but in reality, it's all the prereqs you need for code injection. 326 00:40:20,500 --> 00:40:39,500 So we wanted to detect this, we didn't even have to do any major reversing for this, there was two very nice blog posts on the topic that we have referenced here, and the only downside to this is legitimate software uses uh, exception handlers, you don't want your software having an unhandled exception and then like crashing the machine, 327 00:40:39,500 --> 00:40:46,340 so by having an exception handler, you make it where your code gets to handle the exception and then you can cleanly exit. 328 00:40:46,360 --> 00:41:02,320 So what we did is we, instead of just listing them all out like some plugins do, we applied very similar static disassembly to the function handlers, we looked at all the malicious techniques, we saw which registers they interacted with, which per- which actions they performed, 329 00:41:02,320 --> 00:41:10,140 and so instead of just listing out every vector exception handler, we apply the static disassembly, and then we only list out the malicious ones. 330 00:41:10,160 --> 00:41:17,600 And as you can see here, with our new plugin, we're catching mutation gate generically right away, because of how it interacts with it. 331 00:41:18,280 --> 00:41:32,660 There was also a cool project by Marcus Hutchins, where he wanted to bypass EDRs in the same way, instead of the vector exception handler, he used the higher level one, the unhandled exception filter. 332 00:41:32,660 --> 00:41:41,700 In this case, this is going to be the address of where he has his exception handler called, and then he's calling setThreadContext on what's an invalid address. 333 00:41:41,700 --> 00:41:44,500 So this is going to trigger the exception handler. 334 00:41:44,860 --> 00:41:46,860 So what we did here was very similar. 335 00:41:46,860 --> 00:41:51,920 We enumerate all the handlers, and then we make it- this keeps jumping a lot. 336 00:41:51,920 --> 00:42:04,260 We enumerate all the handlers, we apply our static disassembly, and then in this case we find his malicious process generically, because the exception handler is doing things that you would need to bypass an EDR. 337 00:42:04,800 --> 00:42:16,100 And then with the debug registers, the last thing we really show here, if you're familiar with AMSI bypasses, one of the things you need to do is, one of the functions you're probably going to tamper with is the scanBuffer1. 338 00:42:16,100 --> 00:42:24,580 In this case, they set a breakpoint on it, and they make it where that function doesn't get- anytime that function returns, it returns that the code is okay. 339 00:42:24,580 --> 00:42:37,460 So you can send whatever malicious PowerShell you want through, whatever malicious macros that you have, and with this code present, all of your EDRs are forced to say, hey yeah, this is clean, and then it gets to execute on the system. 340 00:42:37,680 --> 00:42:40,360 And you can see that here with our new plugin. 341 00:42:40,480 --> 00:42:43,760 So with the vector exception handler, we're catching it right away. 342 00:42:43,760 --> 00:42:48,400 The project that implements what you're seeing on these slides is called Patchless AMSI. 343 00:42:48,400 --> 00:42:59,960 So we're not only catching its vector exception handler, we're also catching its abuse of the debug registers so that it can be called whenever the code is going to get scanned by the AMSI subsystem. 344 00:43:00,380 --> 00:43:10,200 So the end result of our project is we documented and went through every single way that EDRs get bypassed in user land, and then we wrote a bunch of volatility plugins to automatically detect it. 345 00:43:10,200 --> 00:43:12,100 Two quick things before I break. 346 00:43:12,100 --> 00:43:14,480 We wrote a 19-page white paper about this. 347 00:43:14,480 --> 00:43:17,420 It should be on the DEF CON website by like now or tomorrow. 348 00:43:17,480 --> 00:43:19,220 Feel free to email me if not. 349 00:43:19,220 --> 00:43:20,260 Also, the slides. 350 00:43:20,260 --> 00:43:22,360 Don't try to take pictures of the next couple slides. 351 00:43:22,360 --> 00:43:26,480 These are all the references that you were seeing with the numbers at the top of the slides. 352 00:43:26,480 --> 00:43:27,980 We have like 45 references. 353 00:43:27,980 --> 00:43:29,500 It was a huge research effort. 354 00:43:29,660 --> 00:43:33,120 The slides are on the DEF CON website as well, or email me if you can't find them. 355 00:43:33,120 --> 00:43:39,100 But if you really want to understand in great detail, read the paper, and then read all the references as well. 356 00:43:39,140 --> 00:43:41,200 And again, thank you for coming to the talk. 357 00:43:42,860 --> 00:43:45,260 Thank you.