1 00:00:00,000 --> 00:00:06,140 Hello everyone and welcome to my talk container self staying undetected using the windows containers isolation framework 2 00:00:07,180 --> 00:00:11,320 The use of containers became an integral part of any resource efficient and secure environment 3 00:00:11,900 --> 00:00:13,220 starting for middle server 4 00:00:13,220 --> 00:00:13,880 2016 5 00:00:15,120 --> 00:00:18,400 Microsoft released its version of this solution called Windows containers 6 00:00:19,940 --> 00:00:26,580 Today we will break down the containers file system isolation framework and see how it can be abused to bypass security products file system based 7 00:00:26,580 --> 00:00:27,300 malware protection 8 00:00:27,860 --> 00:00:31,020 file write restrictions and ETW based correlations 9 00:00:33,900 --> 00:00:40,120 Before we begin a bit about myself, my name is Daniel Avinom. I'm a security researcher at Deep Instinct for the past few years 10 00:00:40,680 --> 00:00:44,100 It's my work. I focus mainly on Windows internals and low-level programming 11 00:00:44,820 --> 00:00:51,120 And I'm also a bigger motorsport fan. I'll even admit to you that I have a driving simulator at home, which costed me way too much 12 00:00:53,760 --> 00:00:54,860 Okay today's agenda 13 00:00:55,420 --> 00:00:56,660 We will start by 14 00:00:56,660 --> 00:01:01,280 Overviewing the basics of the windows containers framework and get to know some of its main concepts 15 00:01:01,980 --> 00:01:04,540 We then continue to analyze the WCFS driver 16 00:01:04,540 --> 00:01:12,180 Which is the main driver the framework uses for file system isolation and see how our findings can then be utilized to bypass security products 17 00:01:13,260 --> 00:01:16,820 Finally we will summarize and provide ways to effectively mitigate the bypasses 18 00:01:19,400 --> 00:01:23,000 Okay, let's start with the basics of Windows containers job objects 19 00:01:24,140 --> 00:01:26,640 Job objects have been around since the days of Windows 20 00:01:26,660 --> 00:01:32,140 Server 2003 these objects are designed to group several processes and manage them as one unit 21 00:01:33,020 --> 00:01:39,200 This allows the system to control the attributes of all processes associated with a job like limiting the CPU usage 22 00:01:39,200 --> 00:01:43,300 IO bandwidth virtual memory usage and network activity and 23 00:01:44,280 --> 00:01:49,160 Multiprocessed applications often use these objects to manage your child processes more easily 24 00:01:49,160 --> 00:01:51,100 These are also known as nested job 25 00:01:51,100 --> 00:01:56,580 For example this Google Drive processes uses uses a nested job to manage its child 26 00:01:56,660 --> 00:01:57,000 processes 27 00:01:59,500 --> 00:02:05,180 Although they make a good start jobs themselves are not enough to provide the isolation needed for a container 28 00:02:05,780 --> 00:02:07,620 Which is why Microsoft created silos? 29 00:02:09,020 --> 00:02:12,940 Silos can be considered an extension of jobs kind of super jobs 30 00:02:13,700 --> 00:02:18,440 Similarly to traditional jobs. These objects are used for process grouping but with additional features 31 00:02:20,280 --> 00:02:24,960 Containers use a type of silo called server silo which besides providing the basic job capabilities 32 00:02:24,960 --> 00:02:26,380 It also provides 33 00:02:26,380 --> 00:02:31,580 Redirection of various system resources like the registry networking and the object manager 34 00:02:32,640 --> 00:02:40,660 The windows kernel detects processes assigned to silos using API like PS is coinciding to in server silo and PS is processing silo 35 00:02:41,220 --> 00:02:44,800 Looking at the io-unload driver snippet taken from NTS kernel 36 00:02:44,800 --> 00:02:50,960 The windows kernel checks whether the process that attempted to unload the driver is within a server silo and if it is 37 00:02:50,960 --> 00:02:55,260 It locks the operation and blocks it my returning status privilege not held 38 00:02:57,340 --> 00:03:02,560 So silos do provide a good foundation to a container, but file system separation is still needed 39 00:03:03,260 --> 00:03:05,820 Microsoft implemented this concept using repos points 40 00:03:06,360 --> 00:03:12,100 So what is a repos point a repos point is an MFT attribute and it can be given to files or directories 41 00:03:13,460 --> 00:03:22,440 It's data type. So it's a repos point data is it's typed meaning a registered registered tag identifier or the repos tag 42 00:03:23,280 --> 00:03:25,720 Determines the data structure of the repos point data itself 43 00:03:26,740 --> 00:03:31,140 It can be given to files or directories using the device IO control function 44 00:03:31,900 --> 00:03:36,700 Alongside the set repos point file system control code note that right primitive is needed for this to succeed 45 00:03:38,360 --> 00:03:45,040 Now when a file with a repos point is being opened it is handled by a file system mini filter driver according to its repos 46 00:03:45,040 --> 00:03:45,800 tag a 47 00:03:45,800 --> 00:03:49,000 Good example of these attributes can be seen in symbolic links 48 00:03:49,740 --> 00:03:52,140 Directories that functions as a symbolic link to another 49 00:03:52,960 --> 00:03:55,880 Contains behind the scene a repos point with the path to the code destination 50 00:03:57,020 --> 00:04:02,060 Using the junction 64 to from system tell us so that you can see that the see users all users for them 51 00:04:02,840 --> 00:04:09,560 Redirects using a symbolic link to see program data. This redirection again is implemented by a repos point 52 00:04:11,840 --> 00:04:17,140 So we mentioned that the previous slide mini filter divers, so let's give a bit of a background about them as well 53 00:04:18,040 --> 00:04:22,380 Mini filter drivers were designed to make the IO filtering process much easier for developers 54 00:04:23,240 --> 00:04:26,000 Since implementing a legacy federal dollar from scotch is difficult 55 00:04:26,620 --> 00:04:29,780 Microsoft provided a solution in the form of its mid filter manager 56 00:04:31,120 --> 00:04:36,060 The filter manager is a legacy filter that manages other mini filter drivers according 57 00:04:36,060 --> 00:04:42,060 So when takes care of all the heavy lifting for them for example their insertion to the device tech 58 00:04:42,580 --> 00:04:46,420 Ignoring any relevant requests and the support for multiple platforms among other 59 00:04:47,100 --> 00:04:52,580 It also exposes a mini filter dedicated API that implements the common operations used by these drivers 60 00:04:53,560 --> 00:04:55,500 This is also known as the FLT API 61 00:04:55,500 --> 00:04:58,420 We will soon see some functions starting with the FLT prefix 62 00:05:02,860 --> 00:05:09,740 Okay, each mini filter can be attached by the manager to one or more volumes getting what is called a mini filter instance and 63 00:05:10,320 --> 00:05:13,760 A volume is simply a logical storage unit that is implemented 64 00:05:13,760 --> 00:05:21,420 So that is presented to the file system as a disk for example the C Drive or when it's anti device path the hard disk volume 3 65 00:05:23,580 --> 00:05:25,440 Similarly to legacy filters and 66 00:05:25,440 --> 00:05:31,820 Mini filter instances can intercept the pre and post operations of numerous IO functions like create read and write and 67 00:05:31,820 --> 00:05:36,080 Another important concept the filter manager implements is the mini filter altitude system 68 00:05:38,980 --> 00:05:44,080 Each mini filter should specify an altitude which is a numeric value upon its registration to the manager 69 00:05:44,600 --> 00:05:52,380 The filter manager invokes its mini filter operations callbacks according to their altitudes a higher altitude mini filter will handle the pre operation before the 70 00:05:52,380 --> 00:05:54,820 ones below it and the post operation after them 71 00:05:55,440 --> 00:05:56,980 So I know that this was a long slide 72 00:05:57,780 --> 00:06:03,040 To make things a bit clearer. Let's see a demonstration of how many filters and riposte points work together 73 00:06:04,420 --> 00:06:09,740 When a call to any create file is made with a file containing a point the IO manager will be in that will build an 74 00:06:09,740 --> 00:06:12,660 IRP and interrupt request packet for this operation 75 00:06:13,960 --> 00:06:19,640 This IRP will then be sent down the device stack of the storage device the C Drive in our case until it will reach the 76 00:06:19,640 --> 00:06:20,140 filter manager 77 00:06:21,100 --> 00:06:21,820 as stated 78 00:06:22,400 --> 00:06:25,340 the filter manager organizes its mini filters in a stack 79 00:06:25,440 --> 00:06:32,180 Based on their assigned altitudes it will then invoke the pre create operation callbacks of its mini filters according to their altitudes 80 00:06:32,180 --> 00:06:33,700 from top to bottom 81 00:06:34,420 --> 00:06:37,000 And after all the pre-operation callbacks were involved 82 00:06:37,480 --> 00:06:43,140 The IRP will then be returned to the filter manager and then be sent down the storage device stack until it will reach the actual 83 00:06:43,140 --> 00:06:43,820 storage device 84 00:06:43,820 --> 00:06:50,060 until it will reach the device, the file will be read and the IRP will then go back up the device stack this time at the 85 00:06:50,060 --> 00:06:50,680 opposite direction 86 00:06:51,840 --> 00:06:53,980 And when it will reach the NTFS driver 87 00:06:53,980 --> 00:06:58,600 driver, it will recognize a file containing a point was being opened, so it will change 88 00:06:58,600 --> 00:07:00,480 the status of this IRP to status repos. 89 00:07:01,880 --> 00:07:07,180 The filter manager then will receive the IRP again, and this time it will invoke the post-operation 90 00:07:07,180 --> 00:07:11,380 callbacks of its minifilters, again according to the altitudes, this time at the opposite 91 00:07:11,380 --> 00:07:12,980 direction from bottom to top. 92 00:07:13,820 --> 00:07:19,640 Now when a minifilter that should handle a repos point gets an IRP with the status repos 93 00:07:19,640 --> 00:07:24,840 status code, it first needs to get the actual content of the repos point from the MFT attribute 94 00:07:24,840 --> 00:07:30,100 itself, and it does so by calling FLTFS control file with the get repos point file system 95 00:07:30,100 --> 00:07:35,160 control code, again this will read the actual content of the MFT attribute itself, the repos 96 00:07:35,160 --> 00:07:35,540 point data. 97 00:07:37,360 --> 00:07:39,880 Now here the minifilter faces two options. 98 00:07:40,400 --> 00:07:45,120 The first option is if the repos tag that is located in the repos data header is not 99 00:07:45,120 --> 00:07:46,040 associated with it. 100 00:07:46,420 --> 00:07:49,560 In this case it will ignore the request and will leave it to the drivers above it. 101 00:07:50,940 --> 00:07:53,920 The second option is if the tag is associated with it. 102 00:07:54,060 --> 00:08:00,940 The driver then will know how to read the repos point buffer and extract the correct 103 00:08:00,940 --> 00:08:06,920 destination path from the repos point itself, and in this case the minifilter usually replaces 104 00:08:06,920 --> 00:08:13,000 the request file object using IO replace file object name with the FLT set callback data 105 00:08:13,000 --> 00:08:13,260 dirty. 106 00:08:13,460 --> 00:08:19,020 The combination of these two functions will cause the IO manager to then repulse the name 107 00:08:19,020 --> 00:08:19,540 in the file object. 108 00:08:19,540 --> 00:08:23,120 And then pass the request back down, this time with the correct path. 109 00:08:23,380 --> 00:08:29,460 So eventually the destination path will be the destination file, so it will be returned 110 00:08:29,960 --> 00:08:30,620 to the caller. 111 00:08:32,840 --> 00:08:40,020 Okay so if you go back to containers, in order to avoid an additional copy of OS files, each 112 00:08:40,020 --> 00:08:44,200 container is using a dynamically generated image which points to the original using repos 113 00:08:44,200 --> 00:08:44,440 points. 114 00:08:45,760 --> 00:08:49,000 The result is images that contain ghost files. 115 00:08:49,000 --> 00:08:53,560 Which basically store no actual data, but point to a different volume on the system. 116 00:08:54,320 --> 00:08:58,300 When looking at a mounted container volume, we see that the Windows folder contains files 117 00:08:58,300 --> 00:09:03,040 in the size of 1.2 gigabytes, but has the actual size on disk of only 57 megabytes. 118 00:09:03,320 --> 00:09:07,780 Again this is happening because files on the container's volume doesn't contain the actual, 119 00:09:07,880 --> 00:09:09,160 doesn't store the actual content. 120 00:09:09,500 --> 00:09:15,640 They're simply links to the original files on the OS, the OS file system, and as stated 121 00:09:15,640 --> 00:09:18,760 these links are implemented by repos points. 122 00:09:20,860 --> 00:09:24,020 Okay so it was at this point that the idea struck me. 123 00:09:24,720 --> 00:09:29,700 What if I could use this redirection mechanism to obfuscate my file system operations and 124 00:09:29,700 --> 00:09:30,740 confuse security products? 125 00:09:31,920 --> 00:09:36,840 The route that I chose was not to escape the container from within, but intentionally use 126 00:09:36,840 --> 00:09:38,920 this feature while executing on the host. 127 00:09:41,420 --> 00:09:43,820 Okay let's start talking about the WCIFS driver. 128 00:09:50,980 --> 00:09:57,040 The Windows Container Isolation File System, or WCIFS, is the minifilter driver which is 129 00:09:57,040 --> 00:10:00,220 responsible for the file system separation between Windows containers and their host. 130 00:10:00,380 --> 00:10:01,580 We'll soon see exactly how. 131 00:10:02,460 --> 00:10:06,440 During my research, I was surprised to find that this driver is loaded on every Windows 132 00:10:06,440 --> 00:10:10,020 OS, starting from Windows 10, including servers by default. 133 00:10:10,580 --> 00:10:14,280 This is true even when the containers option is turned off in the Windows features menu. 134 00:10:15,060 --> 00:10:18,980 Meaning any potential abuse of this driver would affect most of today's maintenance. 135 00:10:19,000 --> 00:10:22,320 It's a very modern system, without relying on any third-party files or packages installed. 136 00:10:24,960 --> 00:10:29,580 We saw that repos points are parsed and handled by minifilters based on their tag. 137 00:10:30,860 --> 00:10:35,580 WCIFS parses repos points as well, and this is how it performs the ghost files redirection 138 00:10:35,580 --> 00:10:35,840 process. 139 00:10:36,960 --> 00:10:46,360 The main repos tags associated with this driver are IOReposTagWCI1 and IOReposTagWCILink1, 140 00:10:46,480 --> 00:10:48,980 which according to the Windows documentation are used to repos. 141 00:11:09,280 --> 00:11:14,220 After some basic reverse engineering, I managed to map both of the point's internal buffers, 142 00:11:14,280 --> 00:11:15,720 which were the same by the way. 143 00:11:16,120 --> 00:11:18,040 The buffer itself is pretty straight forward. 144 00:11:18,200 --> 00:11:18,980 It contains a lot of information. 145 00:11:18,980 --> 00:11:26,460 It contains a GUID, which is a hard-coded value I found on any of the WCI tags, and 146 00:11:26,460 --> 00:11:30,140 the path to the destination file, so nothing special here. 147 00:11:31,980 --> 00:11:37,720 And at this point, all that there was left for me to do was to attach a WCIFS driver 148 00:11:37,720 --> 00:11:44,260 to a volume, debug it using a debugger, and place a breakpoint on its post-operation callback 149 00:11:44,720 --> 00:11:47,100 to see how the repos points are being handled. 150 00:11:47,100 --> 00:11:49,780 And how can I potentially abuse it? 151 00:11:50,400 --> 00:11:56,500 So I've placed a breakpoint, and I've waited, and waited, and waited, and nothing happened. 152 00:11:56,860 --> 00:12:03,600 So it turns out that for the post-operation callback to invoke, the pre-operation callback 153 00:12:03,600 --> 00:12:09,580 must return either FLTPreop success with callback or FLTPreop synchronize, which didn't happen. 154 00:12:10,020 --> 00:12:16,580 So looking at the pre-create function of the WC driver, I saw that there was a function 155 00:12:16,580 --> 00:12:17,300 blocking me. 156 00:12:17,420 --> 00:12:20,300 This function called WC unions exists for instance. 157 00:12:22,100 --> 00:12:26,120 Stepping into this function, I saw that there were two conditions that had to be met. 158 00:12:26,760 --> 00:12:31,080 The first condition is a check of whether the process that originated the create call 159 00:12:31,080 --> 00:12:33,080 is not within the host silo. 160 00:12:33,800 --> 00:12:37,860 Host silo is the equivalent to the host OS, or in other words, if the originated process 161 00:12:37,860 --> 00:12:39,200 was not inside the silo at all. 162 00:12:40,860 --> 00:12:45,560 Simply being inside the silo is not enough, because the second condition is that the silo 163 00:12:45,560 --> 00:12:46,560 that originated the request is not within the host silo. 164 00:12:46,560 --> 00:12:48,480 The second condition is that the process will have a registered context within the 165 00:12:48,480 --> 00:12:49,420 driver's internal collections. 166 00:12:50,720 --> 00:12:53,600 Context management is another feature provided by the filter manager. 167 00:12:54,340 --> 00:12:58,560 A mini-filter can create custom-defined data, also known as union context, and link it to 168 00:12:58,560 --> 00:13:01,320 objects like files, instances, and silos using the FLT API. 169 00:13:03,580 --> 00:13:07,120 So to pass the pre-create checks of the WC driver, I had to do the following. 170 00:13:08,140 --> 00:13:10,460 First create a silo and insert my process into it. 171 00:13:11,420 --> 00:13:15,500 Then somehow inform the driver my silo is representing a container. 172 00:13:15,500 --> 00:13:18,920 So it will create a union context for it and handle it accordingly. 173 00:13:21,040 --> 00:13:25,060 The first requirement is not that difficult to fulfill, because in order to create a silo, 174 00:13:25,100 --> 00:13:29,380 we first need to create a job using create job object A and give it a name. 175 00:13:30,540 --> 00:13:36,100 Then convert it to a silo using set information job object with the job object create silo 176 00:13:36,100 --> 00:13:36,300 flag. 177 00:13:36,520 --> 00:13:38,100 This flag is undocumented, by the way. 178 00:13:39,180 --> 00:13:42,260 And finally assign our process into this new silo. 179 00:13:42,300 --> 00:13:44,920 So overall, three API functions, pretty easy. 180 00:13:45,040 --> 00:13:45,480 So let's get started. 181 00:13:46,080 --> 00:13:48,680 The second requirement, however, is a bit trickier. 182 00:13:49,760 --> 00:13:55,060 To communicate with the mini-filter driver, the filter manager offers the FLT send message 183 00:13:55,060 --> 00:13:55,360 function. 184 00:13:56,140 --> 00:14:00,120 This function receives the buffer without a specific structure and simply passes it 185 00:14:00,120 --> 00:14:02,600 to a handler function within the driver for further processing. 186 00:14:03,940 --> 00:14:07,820 In order to build a valid structure the driver will accept, I had to reverse engineer the 187 00:14:07,820 --> 00:14:09,820 get message handler function in the driver's binary. 188 00:14:12,260 --> 00:14:13,420 So I've examined the function. 189 00:14:13,580 --> 00:14:15,480 And with this, I managed to map both the function and the driver. 190 00:14:15,500 --> 00:14:20,640 So I managed to map the structure that will register a silo as a container. 191 00:14:21,400 --> 00:14:25,680 It turns out that there are several functionalities the driver offers to its user mode clients 192 00:14:25,680 --> 00:14:27,680 with the FLT send message function. 193 00:14:27,940 --> 00:14:32,260 The one that interests us is the code one message, or the set union message. 194 00:14:32,700 --> 00:14:34,700 Its data will contain the following fields. 195 00:14:34,840 --> 00:14:40,400 The notable ones are the number of unions where each union is representing a volume 196 00:14:40,400 --> 00:14:43,860 the container will work with, the name of the driver's instance. 197 00:14:44,660 --> 00:14:45,480 Both of these are the number of units where each union is representing a volume the container 198 00:14:45,500 --> 00:14:45,700 will work with. 199 00:14:45,700 --> 00:14:49,060 The first is the repos tag and repos tag links and a handle to our silo. 200 00:14:50,280 --> 00:14:52,680 At the end of the struct there are two extra structures. 201 00:14:53,020 --> 00:14:55,640 Again, one for each volume the container will work with. 202 00:14:56,200 --> 00:14:58,100 The first one is the volume union structure. 203 00:14:58,340 --> 00:15:03,420 It has a GUID, stores a GUID, which is the same GUID found on the repos points buffer. 204 00:15:04,080 --> 00:15:08,680 A Boolean that will represent if this volume is the source volume or destination volume. 205 00:15:09,080 --> 00:15:13,980 And an offset to the second structure, which is a container root ID which will store the 206 00:15:15,500 --> 00:15:21,520 the volume. Container root ID is just a different name I found in the driver symbols to a simple 207 00:15:21,520 --> 00:15:27,780 Unicode string, so it's just a simple string. To simplify this, let's see an example of a valid 208 00:15:27,780 --> 00:15:32,320 structure the driver will accept and will register our silo as a container. Again, we have the set 209 00:15:32,320 --> 00:15:37,160 union message, a code one message. The internal buffer will have two volumes, the source and 210 00:15:37,160 --> 00:15:44,580 destination volume, and both of the WCI repos tags. A handle to our silo and both the source and 211 00:15:44,580 --> 00:15:50,440 target volume unions and source and target container root IDs. Something interesting to note 212 00:15:50,440 --> 00:15:55,880 here, I haven't seen any validation of whether the source and target volumes are the same. This 213 00:15:55,880 --> 00:15:59,500 means that, in theory, it is possible to get a container that will redirect to the same volume. 214 00:15:59,640 --> 00:16:10,420 Now, this is interesting and remember this because we will use this later. Okay. So, now that 215 00:16:10,420 --> 00:16:14,480 we have fulfilled both requirements of the pre-create function, our post-create 216 00:16:14,480 --> 00:16:14,560 function will be the same. So, now that we have fulfilled both requirements of the pre-create 217 00:16:14,560 --> 00:16:16,980 function, our post-create function will invoke, allowing us to analyze how the driver handles 218 00:16:16,980 --> 00:16:23,200 his repos points. The first tag we will look at is the link one tag and, as you might guess, this 219 00:16:23,200 --> 00:16:28,060 tag acts as a regular link between two files. It is usually placed on files that should be open 220 00:16:28,060 --> 00:16:34,180 with read primitives only, for example, system files. The driver will read the destination file 221 00:16:34,180 --> 00:16:40,840 from the repos point buffer and will redirect the call to the volume the container directs to 222 00:16:41,560 --> 00:16:44,180 using IO replace file object name. So, if I go here, this is the file that will be read, so it 223 00:16:44,180 --> 00:16:49,560 Let's see an example. Let's say we have an open process that is inside a container. This 224 00:16:49,560 --> 00:16:54,320 container redirects IO calls from the container's volume, hard disk volume five in our case, to 225 00:16:54,320 --> 00:17:03,200 the host file system, the host volume. The open process opens a file with three primitives and 226 00:17:03,200 --> 00:17:08,860 the WC driver will see the status on the IRP and will see the link one which it's 227 00:17:08,860 --> 00:17:13,500 responsible for. So it will read the content of the point from the MFT attribute 228 00:17:13,500 --> 00:17:20,940 and will extract the relative part of the destination file. Then it will open a handle to the 229 00:17:20,940 --> 00:17:30,600 destination file on the destination volume. Again, the host volume. And then it will return 230 00:17:30,600 --> 00:17:35,220 this handle to the notepad process. Note that in this case the notepad process got a handle to a 231 00:17:35,220 --> 00:17:42,780 file that is outside the container dynamic images inside on the host volume. Now this is safe 232 00:17:42,780 --> 00:17:49,020 because the handle that is given to the process is with the primitives only so we cannot change it 233 00:17:49,020 --> 00:17:58,940 and cannot affect the files outside of its container. The second tab we'll look at is far more 234 00:17:58,940 --> 00:18:05,020 interesting. According to the driver symbols the WCI tag is responsible for file and directory 235 00:18:05,020 --> 00:18:12,680 expansion. Expansion is this driver's definition to copy an open protection. This tag is placed on 236 00:18:12,780 --> 00:18:16,180 files that can be opened with write primitives and can be edited. 237 00:18:17,940 --> 00:18:22,260 When encountering the WCA1 tag, the driver saves the report data in the file's object 238 00:18:22,260 --> 00:18:25,500 context and launches a work item that further handles the request. 239 00:18:26,720 --> 00:18:31,340 This work item copies the file into the source volume, the container's ghost image, so it 240 00:18:31,340 --> 00:18:35,380 would edit a copy of the file instead of the original using the FLT read file and write 241 00:18:35,380 --> 00:18:36,320 file functions. 242 00:18:36,820 --> 00:18:41,200 So going back to the same example as before, this time the NOPA process opens a file with 243 00:18:41,200 --> 00:18:43,600 write primitives, meaning it wants to edit its content. 244 00:18:44,420 --> 00:18:50,300 The driver again will see the status reparse and WCA1 tag, get the relative path of the 245 00:18:50,300 --> 00:18:51,960 destination file from the reparse point itself. 246 00:18:52,940 --> 00:18:58,420 This time it will read the content of the destination file from the host volume, note 247 00:18:58,420 --> 00:19:04,080 that the file must exist, and then it will write this content to the container's volume, 248 00:19:04,340 --> 00:19:10,680 the original file that had the reparse point, and return this handle to the NOPA process. 249 00:19:10,680 --> 00:19:14,840 Now, this time the NOPA process got a handle to the file it was originally requested, 250 00:19:15,380 --> 00:19:18,100 but the file is not a ghost file anymore. 251 00:19:18,200 --> 00:19:22,260 It has the actual content of the file, the destination file, the file that it was directing 252 00:19:22,260 --> 00:19:22,580 to. 253 00:19:22,900 --> 00:19:28,100 So the NOPA process can edit it without affecting the original file on the host volume. 254 00:19:29,320 --> 00:19:32,760 Now I've stated that the destination file must exist. 255 00:19:33,180 --> 00:19:37,940 In the case it doesn't exist, the original file that contained the reparse point will 256 00:19:37,940 --> 00:19:38,380 be deleted. 257 00:19:39,540 --> 00:19:40,660 Let's see this in this example. 258 00:19:40,660 --> 00:19:42,260 It's in the driver's decompiled code. 259 00:19:43,400 --> 00:19:47,480 It tries to open the reparse point, and if it gets back status object name not found, 260 00:19:47,600 --> 00:19:54,020 meaning the destination file doesn't exist, it will then allocate a new IRP using FLT 261 00:19:54,020 --> 00:19:58,220 allocate callback data, and will set the major function code of this IRP to set information 262 00:19:58,860 --> 00:20:00,760 alongside the file disposition delete flag. 263 00:20:00,980 --> 00:20:06,740 This will cause the original file to be deleted, and it will invoke this new IRP using FLT 264 00:20:06,740 --> 00:20:07,700 perform synchronous IO. 265 00:20:08,900 --> 00:20:10,160 Again same example. 266 00:20:10,160 --> 00:20:12,180 Another process opens the file, we cite primitives. 267 00:20:14,380 --> 00:20:16,700 Wcfs gets the relative path of the destination file. 268 00:20:17,040 --> 00:20:21,460 And this time, when it leads to the content of the destination file, it gets back such 269 00:20:21,460 --> 00:20:23,500 the subject name, not found because the file doesn't exist. 270 00:20:24,100 --> 00:20:30,400 So it will delete the original file on the container's volume and will return to the 271 00:20:30,400 --> 00:20:34,920 NOPA process because the file was requested doesn't exist anymore, was deleted. 272 00:20:38,560 --> 00:20:39,040 Okay. 273 00:20:39,840 --> 00:20:40,140 Okay. 274 00:20:40,160 --> 00:20:43,860 by this driver is the ability to copy and paste files without having to bother 275 00:20:43,860 --> 00:20:49,020 with entering a container or dealing with repost points. This is used when 276 00:20:49,020 --> 00:20:51,940 files are needed to be transferred between the container and host volume. 277 00:20:52,120 --> 00:20:55,100 So let's say we have a file on the container's dynamic image and we want 278 00:20:55,100 --> 00:21:02,220 to save it on our host volume. You can use this functionality by the WCAFS driver 279 00:21:02,620 --> 00:21:08,180 to do so. The copy and paste operations are done using, again, the FLT read file 280 00:21:08,180 --> 00:21:11,980 and write file functions, the same function as the WCA1 repost tag. 281 00:21:14,280 --> 00:21:17,820 To do this, we again send a message to the driver using FLT send message, 282 00:21:17,980 --> 00:21:23,420 this time with message code 4. The content of the message data will contain the source 283 00:21:23,420 --> 00:21:27,100 and target file paths and source and target volumes. Pretty simple, 284 00:21:27,160 --> 00:21:32,180 nothing interesting here. Okay, let's summarize what we've learned from reverse 285 00:21:32,180 --> 00:21:37,920 engineer, the WCAFS driver. We managed to create a silo, insert a process into it, 286 00:21:38,180 --> 00:21:42,660 and register it as a fake container by communicating with the WCAFS driver. 287 00:21:43,980 --> 00:21:48,560 This allowed us to resolve how the driver handles its repost points. Using the link 288 00:21:48,560 --> 00:21:54,600 one tag, we were able to open one file and receive a handle of another. Using the WCA1 289 00:21:54,600 --> 00:22:00,400 tag, we were able to override a file with the content of another or delete a file. 290 00:22:01,560 --> 00:22:05,900 And by directly communicating with the driver, we were also able to copy and paste 291 00:22:05,900 --> 00:22:06,180 files. 292 00:22:08,180 --> 00:22:11,160 So, let's see how what we've seen can be utilized. 293 00:22:19,520 --> 00:22:25,240 File system protection is an essential feature any EDR must provide, and security vendors tend to use their own 294 00:22:25,240 --> 00:22:28,700 minifilter drivers to monitor the system's IO activity. We'll soon see exactly how. 295 00:22:30,320 --> 00:22:35,460 In the previous section, we saw that the WCA driver uses FLT read file, write file, 296 00:22:35,520 --> 00:22:37,820 and performs the Conus IO to perform IO operations 297 00:22:38,180 --> 00:22:42,920 from within the kernel. Now there is something special about this function. Looking at the 298 00:22:42,920 --> 00:22:47,460 MS-DN documentation of all these three functions, we will see the following remark. 299 00:22:48,620 --> 00:22:53,360 The function will cause the request to be sent to the minifilter driver instances attached 300 00:22:53,360 --> 00:22:57,600 below the initiating instance and to the file system. The specified instance and 301 00:23:08,180 --> 00:23:11,100 And each group is associated with a certain type of minifilters. 302 00:23:11,420 --> 00:23:18,280 For example, 320,000 to 330,000 is the range for security vendors' drivers. 303 00:23:19,060 --> 00:23:24,060 And going back to where our WC driver is loaded, it is lower at 190,000. 304 00:23:24,180 --> 00:23:26,080 And can be even lower if we attach it manually. 305 00:23:26,780 --> 00:23:32,020 Which will cause EDR minifilters to simply not be notified about any of our I.O. operations 306 00:23:32,720 --> 00:23:35,440 done using these three functions from within the kernel. 307 00:23:37,440 --> 00:23:40,840 Let's visualize this by using the same example as the beginning of the talk. 308 00:23:41,080 --> 00:23:45,760 This time, the file that is being opened has the WCI1 repos point. 309 00:23:46,620 --> 00:23:52,700 So again, the I.O. manager will create an I.O.P for this operation, which will go down 310 00:23:52,700 --> 00:23:54,760 the storage device stack until it will reach the filter manager. 311 00:23:55,280 --> 00:23:59,560 The filter manager will then invoke the pre-create operation callbacks of all of its minifilter 312 00:23:59,560 --> 00:23:59,880 instances. 313 00:24:00,820 --> 00:24:04,320 Note that this includes any EDR minifilter. 314 00:24:04,420 --> 00:24:05,380 So it will receive a notification. 315 00:24:05,380 --> 00:24:09,500 This notification of our process attempting to open a file with a repos point, which we 316 00:24:09,500 --> 00:24:10,260 don't really care about. 317 00:24:10,360 --> 00:24:10,960 We'll soon see why. 318 00:24:11,840 --> 00:24:14,360 The I.O.P again will then be returned to the filter manager. 319 00:24:14,620 --> 00:24:15,540 The file will be read. 320 00:24:15,900 --> 00:24:19,380 And the EFS driver will change the status of this I.O.P to status repos. 321 00:24:19,620 --> 00:24:23,320 And the request will eventually reach the filter manager again, where it will invoke 322 00:24:23,320 --> 00:24:26,660 the post-create operation callbacks of the WC driver. 323 00:24:27,880 --> 00:24:32,900 In this function, the driver will notice the WCI1 tag, which it's responsible for. 324 00:24:33,300 --> 00:24:34,340 And as we've seen. 325 00:24:34,340 --> 00:24:38,640 It will either override the source file with the content of the target file, or it will 326 00:24:38,640 --> 00:24:41,380 delete the source file in the case the target file doesn't exist. 327 00:24:42,880 --> 00:24:47,240 These functions will cause a new I.O.P to be created and go down the same path, down 328 00:24:47,240 --> 00:24:51,260 the storage device stack until it will reach the filter manager again, the same as any I.O.P. 329 00:24:53,420 --> 00:24:58,340 This time, however, if we will go back to the remark from the previous slide, any instances 330 00:24:58,340 --> 00:25:04,080 attached above the originating instance, our WC driver, including any EDR minifilter instances, 331 00:25:04,340 --> 00:25:06,200 will not receive a notification about this operation. 332 00:25:07,760 --> 00:25:15,620 Now the I.O.P again will be sent back down, go back up, and when it will reach the filter 333 00:25:15,620 --> 00:25:19,780 manager again, the remark will apply to the post-create callbacks as well, causing the 334 00:25:19,780 --> 00:25:26,400 post-create of any instances attached above the WC driver to not be notified, including 335 00:25:26,400 --> 00:25:27,840 any EDR minifilters. 336 00:25:29,580 --> 00:25:31,840 Eventually the call will be returned to the WC driver. 337 00:25:31,920 --> 00:25:34,320 When it will return, FFT post-create. 338 00:25:34,340 --> 00:25:40,860 This will cause the entire operation to be completed, causing the file to be repulsed, 339 00:25:40,940 --> 00:25:46,780 and as we've seen, any internal operations done using the WC driver will not be notified, 340 00:25:47,540 --> 00:25:50,000 EDR minifilters will not be notified about it. 341 00:25:52,340 --> 00:25:57,300 Okay, so in order to know how this behavior can be abused, we first need to understand 342 00:25:57,300 --> 00:25:59,580 how security products implement their protection. 343 00:26:00,700 --> 00:26:04,320 To combat file system-based malware, these products leverage advanced algorithms. 344 00:26:04,320 --> 00:26:08,860 They analyze minifilter I.O.Logs, actively searching for specific patterns to detect 345 00:26:08,860 --> 00:26:10,720 and prevent any potential irreversible damage. 346 00:26:11,840 --> 00:26:17,420 Most EDRs rely on a standard set of principles to identify processes associated with a ransom 347 00:26:17,420 --> 00:26:18,220 error wipers. 348 00:26:19,140 --> 00:26:23,860 These principles include monitoring processes that open a significant number of file handles 349 00:26:23,860 --> 00:26:29,100 and exhibit behaviors, such as reading data from a file and overwriting it, making the 350 00:26:29,100 --> 00:26:30,680 original data inaccessible. 351 00:26:32,740 --> 00:26:34,300 Knowing this, let's look at some examples. 352 00:26:34,300 --> 00:26:37,360 Let's create an undetectable wiper and ransomware using the WC driver. 353 00:26:37,820 --> 00:26:39,900 We'll start with the wiper because it's a bit simpler. 354 00:26:41,280 --> 00:26:45,280 We first need to create an empty file that will be our target file, and then write a 355 00:26:45,280 --> 00:26:47,920 buffer of zeros or random data to it, it doesn't matter. 356 00:26:49,220 --> 00:26:55,380 Then we'll traverse each file on the system, and for each file, we'll set an I.O. WCR1 357 00:26:55,380 --> 00:26:59,240 repos point that will point to the target file, the file that contains the zero dot 358 00:26:59,240 --> 00:26:59,560 buffer. 359 00:27:01,400 --> 00:27:02,880 Then we'll create a silo. 360 00:27:02,920 --> 00:27:04,160 Assign our current position. 361 00:27:04,160 --> 00:27:08,440 Press into it and register it as a fabricated container, where both the source and target 362 00:27:08,440 --> 00:27:11,380 volumes are the same one, the host volume. 363 00:27:12,780 --> 00:27:14,740 We will then traverse each file on the system again. 364 00:27:14,820 --> 00:27:17,320 This time we'll simply try to open the file using create file. 365 00:27:17,640 --> 00:27:21,640 Now as we've seen, this will cause the WC driver to read the content of the destination 366 00:27:21,640 --> 00:27:26,360 file and write it for us on the file that we want to wipe, without triggering any security 367 00:27:26,360 --> 00:27:27,840 minifilter driver's callback functions. 368 00:27:29,160 --> 00:27:30,160 Let's visualize this. 369 00:27:31,260 --> 00:27:34,000 Again if we try to directly wipe the file. 370 00:27:34,600 --> 00:27:37,340 EDR algorithms will eventually detect and prevent us. 371 00:27:37,460 --> 00:27:44,180 Instead, we'll set a WCR1 repos point that will point on the source file that we want 372 00:27:44,180 --> 00:27:47,960 to wipe, that will point to the target file that contains the zero dot buffer, and we 373 00:27:47,960 --> 00:27:49,700 will insert our wiper into a container. 374 00:27:50,120 --> 00:27:52,700 Then we'll try to open the file that we want to wipe. 375 00:27:52,940 --> 00:27:56,860 The WC driver will then read the content of the destination file and write it for us, 376 00:27:57,000 --> 00:28:00,240 thus wiping the file without the detection of EDRs. 377 00:28:03,520 --> 00:28:03,960 Okay. 378 00:28:04,020 --> 00:28:04,140 This is the end. 379 00:28:04,160 --> 00:28:07,320 The ransomware algorithm is pretty much the same. 380 00:28:08,080 --> 00:28:12,360 We first need to traverse each file on the system, and for each one we'll read its content 381 00:28:12,360 --> 00:28:13,580 and encrypt it in memory. 382 00:28:14,920 --> 00:28:17,960 We'll then create a target file and write the encrypted data to it. 383 00:28:18,740 --> 00:28:23,220 Note that security minifilters will be notified about the file write, but will ignore it, 384 00:28:23,360 --> 00:28:29,540 because the encrypted content is written to a new file on the system, and an existing 385 00:28:29,540 --> 00:28:30,820 file is not being overridden. 386 00:28:32,520 --> 00:28:34,140 Then we'll set again a WCR1 repos point. 387 00:28:34,140 --> 00:28:39,260 A WCR1 repos point that will point to the target file that contains the encrypted data. 388 00:28:41,060 --> 00:28:44,280 Create a silo, assign a process into it, and register it as a fake container. 389 00:28:44,820 --> 00:28:49,360 Traverse each file on the system again and try to open it using create file, causing 390 00:28:49,360 --> 00:28:52,420 the encrypted data to be written by the WC driver. 391 00:28:54,140 --> 00:28:55,600 Let's see this ransomware in real time. 392 00:28:57,760 --> 00:29:02,480 Here we have two folders containing the exact same files and has the same size on disk. 393 00:29:02,640 --> 00:29:04,120 We have the secrets folder and the secrets folder. 394 00:29:04,140 --> 00:29:14,840 We will first try to encrypt the first folder, the secrets folder, with a traditional ransomware 395 00:29:15,290 --> 00:29:19,540 that simply opens, encrypts, and writes the encrypted data to the same file. 396 00:29:21,620 --> 00:29:26,900 The ransomware starts to encrypt some of the files, but eventually getting detected and 397 00:29:26,900 --> 00:29:29,440 terminated by the EDR installed on the system. 398 00:29:30,980 --> 00:29:33,460 Looking at the secrets folder. 399 00:29:33,460 --> 00:29:35,000 The one that we wanted to encrypt. 400 00:29:35,100 --> 00:29:37,880 You can see that some of the files were encrypted, but not all of them. 401 00:29:38,060 --> 00:29:40,460 For example, this test file was not encrypted. 402 00:29:40,740 --> 00:29:43,680 So the ransomware was prevented on time. 403 00:29:45,680 --> 00:29:50,020 We'll then execute our ransomware that uses the WC driver, encrypting the second folder, 404 00:29:50,100 --> 00:29:50,960 the secrets copy folder. 405 00:29:52,640 --> 00:29:58,000 So it first sets a repos point on the files, then encrypting them using the WC driver, 406 00:29:58,260 --> 00:30:02,440 and as you can see, the process was not terminated, and looking at the secrets copy folder, you 407 00:30:02,440 --> 00:30:03,440 can see that all of the files are encrypted. 408 00:30:03,460 --> 00:30:07,000 Including our test file. 409 00:30:16,920 --> 00:30:21,760 Another notable feature of security vendors' products is the ability to block file system 410 00:30:21,760 --> 00:30:22,440 write operations. 411 00:30:22,920 --> 00:30:26,960 This can be utilized by organizations to either enforce a read-only policy for mobile 412 00:30:26,960 --> 00:30:33,080 devices, thus effectively mitigating the risk of data exfiltration, or to block file writes, 413 00:30:33,460 --> 00:30:37,420 to folders housing sensitive data, which will add an extra layer of protection against 414 00:30:37,420 --> 00:30:38,640 unauthorized modifications. 415 00:30:39,740 --> 00:30:44,480 This protection is implemented by, you guessed it, a minifilter driver, which we can bypass 416 00:30:44,480 --> 00:30:45,020 as well. 417 00:30:45,760 --> 00:30:46,680 Let's see another demo. 418 00:30:47,800 --> 00:30:49,920 This time we have a different EDR than before. 419 00:30:50,520 --> 00:30:55,760 A USB stick is connected to the system, and when trying to copy a file to the USB stick, 420 00:30:55,960 --> 00:30:58,760 the operation is being blocked by the EDR due to a read-only policy. 421 00:31:04,040 --> 00:31:10,460 But, when copying the file using the copy and paste feature of the WC driver, so we 422 00:31:10,460 --> 00:31:16,380 copy the file to the E volume, the USB stick, the operation is completed successfully, and 423 00:31:16,380 --> 00:31:22,140 the file can be extracted from the system, and this is how you can extract the most precious 424 00:31:22,140 --> 00:31:24,800 file of all, the calculator from the organization. 425 00:31:31,680 --> 00:31:32,720 Okay, ETW. 426 00:31:32,920 --> 00:31:33,440 Okay, ETW. 427 00:31:33,440 --> 00:31:39,220 ETW, or event tracing for Windows, is a powerful and efficient logging mechanism built into 428 00:31:39,220 --> 00:31:40,200 the Windows operating system. 429 00:31:40,880 --> 00:31:45,580 The Windows kernel serves as a crucial log provider that captures a wide range of system 430 00:31:45,580 --> 00:31:48,200 operations, including those related to the file system. 431 00:31:49,460 --> 00:31:54,280 Security vendors leverage these events to analyze and identify potential threats, often 432 00:31:54,280 --> 00:31:56,140 creating attack flows by cross-referencing. 433 00:31:57,000 --> 00:32:02,240 Now, if you recall the WCI1 tag override process, the read and write operations occur within 434 00:32:02,240 --> 00:32:03,320 a kernel work item. 435 00:32:04,340 --> 00:32:09,240 Executing from a work item, which is a kernel thread, will cause the ETW log to attribute 436 00:32:09,240 --> 00:32:12,740 these actions to the system process instead of the actual process responsible. 437 00:32:13,940 --> 00:32:19,240 This will lead to misinformation for any vendor consuming events number 15 and 16 of read 438 00:32:19,240 --> 00:32:23,300 and write from the kernel file provider, bypassing any threat-handing correlation 439 00:32:23,300 --> 00:32:24,340 based on these events. 440 00:32:26,800 --> 00:32:31,540 An example of a built-in Windows tool that is ETW-based is SACL. 441 00:32:32,420 --> 00:32:33,420 Windows often uses SACL as an example. 442 00:32:33,440 --> 00:32:37,680 It offers the capability to establish an auditing policy for file system objects known 443 00:32:38,100 --> 00:32:40,620 as System Access Controllers, or SACL. 444 00:32:40,920 --> 00:32:45,740 This allows for extensive logging of all IOP operations performed on the specified 445 00:32:45,740 --> 00:32:46,180 objects. 446 00:32:47,700 --> 00:32:52,700 ETW-based Windows tools are intentionally designed to disregard logs originating from 447 00:32:52,700 --> 00:32:53,220 the system. 448 00:32:53,640 --> 00:32:57,620 This approach guarantees that such logs, which are typically irrelevant to the user monitoring 449 00:32:57,620 --> 00:33:00,640 the system, are not included to avoid unnecessary overhead. 450 00:33:01,860 --> 00:33:03,420 The result of all of this is that the ETW-based Windows tools are designed to disregard logs 451 00:33:03,440 --> 00:33:06,160 The reason for this is that our IOP requests will be absent from the logs altogether. 452 00:33:07,440 --> 00:33:08,480 Move on to the demo. 453 00:33:10,520 --> 00:33:15,940 Next we have a secret file that has the read and execute auditing rule, which will log 454 00:33:15,940 --> 00:33:19,620 any access to the file, so we are looking at the auditing policy of this file. 455 00:33:19,760 --> 00:33:24,100 You can see that we have a read and execute rule on any user on the system. 456 00:33:25,540 --> 00:33:30,560 Opening this file with no-tips, for example, will cause a log to be generated by the auditing 457 00:33:30,560 --> 00:33:30,880 policy. 458 00:33:31,100 --> 00:33:33,420 Looking at the event trás and an index Ari flagship, you will see that the announcement 459 00:33:33,420 --> 00:33:39,600 editing logs, you can see that logs were created stating that the secret file were accessed 460 00:33:39,600 --> 00:33:46,240 by the no-pair process. However, if you will create an empty file that will store the content 461 00:33:46,240 --> 00:33:51,060 of the secret that we want to steal, then set the WCR1 tag that will point to the actual 462 00:33:51,060 --> 00:33:58,000 secret file and overwrite it using the WC driver, so we set the reverse point and then 463 00:33:58,000 --> 00:34:06,120 overwrite it. The kernel work item will read and write the file's content for us without any 464 00:34:06,120 --> 00:34:12,320 log being created by the auditing policy, so the content of the secret was stolen, but looking at 465 00:34:12,320 --> 00:34:17,500 the auditing policy, you can see that no logs were creating stating that the secret, the 466 00:34:17,500 --> 00:34:22,000 original secret was accessed. . 467 00:34:28,900 --> 00:34:36,420 Okay, let's summarize. We've learned that the Windows container frameworks, the Windows 468 00:34:36,420 --> 00:34:40,820 container framework provides a file system isolation solution that is implemented by 469 00:34:40,820 --> 00:34:46,680 repass points and mini-filter drivers. Through reverse engineering of the main driver of 470 00:34:46,680 --> 00:34:52,640 the framework, the WCFS driver, we were able to create a counterfeit container and successfully 471 00:34:52,640 --> 00:34:57,120 insert our process into it. This allowed us to leverage the framework's IO redirection 472 00:34:57,120 --> 00:34:57,600 mechanism. 473 00:34:57,600 --> 00:35:02,400 causing files to be overridden, deleted, or copied without the detection of security 474 00:35:02,400 --> 00:35:08,160 products. As a result, we have identified new bypasses of file system-based model protection, 475 00:35:08,780 --> 00:35:13,720 file write restrictions, and EDW-based correlations without relying on any other known bypass 476 00:35:13,720 --> 00:35:21,080 techniques. So how to mitigate the bypasses? There are numerous routes you can take. I've found 477 00:35:21,080 --> 00:35:25,280 that the easiest way is by detecting the suspicious activity in the user mode and not the kernel 478 00:35:25,280 --> 00:35:27,580 mode. For example, detecting the suspicious activity in the user mode and not the kernel mode, 479 00:35:27,580 --> 00:35:31,300 you are selecting calls to device IO control with the set service.5 system control code, 480 00:35:31,440 --> 00:35:40,380 along the side, the any of the , from what i've seen, this activity is an issue it 481 00:35:40,380 --> 00:35:44,040 should not happen under a normal container operation as it is pretty much an anomaly 482 00:35:44,040 --> 00:35:51,580 on which looks suspicious. You can also check whether the WC communication 483 00:35:51,580 --> 00:35:56,460 blog was open or the silo was bans on this the process, or to check if the WC driver 484 00:35:56,460 --> 00:35:57,560 is attached to volume or instant connection. The window is cleaned up, both of those are indigenous tools. We're now정이 of the Navy Dual JPEG during the environmental issues, systems, incidents and 485 00:35:57,560 --> 00:35:59,560 while the container's feature is turned off. 486 00:35:59,680 --> 00:36:03,720 Again, keep in mind, these are just a few ways to detect the bypasses. 487 00:36:03,740 --> 00:36:05,440 There are plenty of other methods you can take as well, 488 00:36:05,460 --> 00:36:06,820 for example, from the kernel itself. 489 00:36:08,960 --> 00:36:10,560 So these are just a few. 490 00:36:12,560 --> 00:36:13,520 Okay, further research. 491 00:36:16,020 --> 00:36:19,500 The WCFS driver is just one of many mini-filters out there. 492 00:36:19,720 --> 00:36:21,980 I'm sure that there are plenty of other mini-filters 493 00:36:21,980 --> 00:36:23,300 that can be abused in a similar way 494 00:36:23,300 --> 00:36:26,620 to perform system operations from the kernel itself. 495 00:36:28,320 --> 00:36:31,700 It is also possible to set repass points on directories. 496 00:36:31,980 --> 00:36:34,320 The driver symbols reference directory expansion 497 00:36:34,320 --> 00:36:35,700 and possible redirection handling, 498 00:36:35,880 --> 00:36:38,160 so this is an interesting route you can take. 499 00:36:38,800 --> 00:36:39,780 And most importantly, 500 00:36:40,900 --> 00:36:43,720 mini-filter and ETW-based protection is everywhere, 501 00:36:43,960 --> 00:36:46,560 and I'm sure that there are more bypasses 502 00:36:46,560 --> 00:36:49,240 that can be achieved using the methods shown today. 503 00:36:51,520 --> 00:36:53,380 You can contact me on... 504 00:36:53,380 --> 00:36:54,260 If you have any questions, 505 00:36:54,280 --> 00:36:57,400 you can contact me on Twitter or X or whatever it is now. 506 00:36:57,560 --> 00:37:00,860 Or you can scan the QR code 507 00:37:00,860 --> 00:37:06,020 to access the POC tool shown on the demos today. 508 00:37:06,180 --> 00:37:06,820 Thank you. 509 00:37:07,320 --> 00:37:08,080 Thank you. 510 00:37:09,220 --> 00:37:10,020 Thank you.