1 00:00:03,740 --> 00:00:04,880 Hopefully this will work. 2 00:00:12,440 --> 00:00:18,000 Okay, so what I'm going to talk about is rootkits and also ways to detect rootkits. 3 00:00:18,260 --> 00:00:21,780 I've developed a freeware tool called VICE that does that. 4 00:00:21,860 --> 00:00:28,280 So if you came to see a bunch of hookers taken away by some policemen, you're in the wrong room. 5 00:00:29,940 --> 00:00:33,320 I know, I know, the limo got broke down, you know, whatever. 6 00:00:35,620 --> 00:00:37,520 So as he said, my name is Foozanop. 7 00:00:38,200 --> 00:00:40,680 If you came to Black Hat, you know I'm also Jamie Butler. 8 00:00:41,200 --> 00:00:43,740 It's in your program. That's no secret. 9 00:00:43,980 --> 00:00:45,100 I'm at rootkit.com. 10 00:00:45,580 --> 00:00:48,480 Everything I discuss here you can download from rootkit.com. 11 00:00:49,560 --> 00:00:52,360 But wait until Monday or Tuesday of next week. 12 00:00:54,420 --> 00:00:57,380 The source code for all the rootkit stuff I will talk about 13 00:00:57,380 --> 00:00:58,260 is always rootkit.com. 14 00:00:58,280 --> 00:01:01,780 So you can have that and change it or whatever. 15 00:01:02,480 --> 00:01:06,800 VICE, the freeware tool, currently is downloadable in binary format. 16 00:01:09,040 --> 00:01:11,240 So what we're going to do, we're going to talk about hooking 17 00:01:11,240 --> 00:01:16,820 and how a lot of really lame rootkits hook and user land and so forth. 18 00:01:18,220 --> 00:01:21,280 Then we're going to talk about the tool VICE to detect it. 19 00:01:21,500 --> 00:01:23,940 Then we're going to talk about direct kernel object manipulation, 20 00:01:24,480 --> 00:01:26,820 which is incorporated into FU 21 00:01:26,820 --> 00:01:28,420 and a demonstration. 22 00:01:29,840 --> 00:01:31,160 Pardon my voice today. 23 00:01:31,240 --> 00:01:33,520 It's pretty dry. 24 00:01:35,560 --> 00:01:39,660 So just we'll cover a few general overview of an operating system. 25 00:01:39,940 --> 00:01:42,200 This talk applies mainly to Win32, 26 00:01:42,400 --> 00:01:46,100 but you could also apply all the rootkit technologies 27 00:01:46,100 --> 00:01:49,460 and concepts to a Linux or Spark or whatever. 28 00:01:49,940 --> 00:01:54,340 So in a Win32 type of environment, there's user land, 29 00:01:54,500 --> 00:01:56,480 and that's supported. 30 00:01:56,480 --> 00:01:59,980 It's supported by kernel32.dll and ntdll.dll. 31 00:02:00,420 --> 00:02:02,300 So whenever you write a program, 32 00:02:04,340 --> 00:02:06,320 that's the libraries you link to, 33 00:02:06,460 --> 00:02:09,480 and you use the functionalities exported by those DLLs. 34 00:02:10,580 --> 00:02:12,840 Once those DLLs get a hold of your request, 35 00:02:13,140 --> 00:02:14,980 they eventually call down to the kernel 36 00:02:15,480 --> 00:02:17,420 through some means we'll talk about in a moment. 37 00:02:17,960 --> 00:02:20,700 The kernel is what implements the low-level functionality 38 00:02:21,540 --> 00:02:23,620 to allow these APIs to work. 39 00:02:24,080 --> 00:02:25,980 So it's the kernel doing all the work. 40 00:02:26,480 --> 00:02:28,200 And then the other thing I wanted to talk about 41 00:02:28,200 --> 00:02:28,300 is how the rootkit can be used to do things like 42 00:02:28,300 --> 00:02:29,640 basically just pass-through. 43 00:02:31,820 --> 00:02:33,360 So tax scenario. 44 00:02:34,480 --> 00:02:38,100 Rootkits are not about how to exploit a box. 45 00:02:38,980 --> 00:02:40,760 There's been other talks here, 46 00:02:41,580 --> 00:02:46,180 FX and Alvar and other talks at Black Hat, 47 00:02:47,620 --> 00:02:49,960 or experts at Shellcode and so forth. 48 00:02:50,120 --> 00:02:53,000 So I won't talk about how to gain access the first time. 49 00:02:53,980 --> 00:02:56,260 What a rootkit is for is to maintain 50 00:02:56,480 --> 00:03:01,700 access so hide your presence you want a remote command and control channel that 51 00:03:01,700 --> 00:03:08,100 is undetectable by IDS's and by the kernel itself and maybe intrusion 52 00:03:08,100 --> 00:03:14,160 provision. In the most part for the ones I write they'll exist in the kernel so they 53 00:03:14,160 --> 00:03:20,520 act as part of the kernel and we'll talk about why. Until recently most root 54 00:03:20,520 --> 00:03:25,420 kits were nothing more than a Trojan program this is probably like an 80s 55 00:03:25,420 --> 00:03:30,900 thing they would they would replace PS or LS or something but when an 56 00:03:30,900 --> 00:03:35,200 administrator would run the command they would get a Trojan version of the 57 00:03:35,200 --> 00:03:42,520 executable. Of course companies have come along and for the large part solve this 58 00:03:42,520 --> 00:03:49,820 problem and now root kits evolved to filter data by hooking functions in 59 00:03:49,820 --> 00:03:55,240 memory. This way they could achieve the same results. By hooking a function you 60 00:03:55,240 --> 00:03:55,400 can run a function in memory and it can run a function in memory. This way they could achieve the same results. By hooking a function you can 61 00:03:55,400 --> 00:04:01,080 change what that function returned. So for instance if it's you're asking for 62 00:04:01,080 --> 00:04:06,840 a list of processes on the machine by hooking you can filter out your your 63 00:04:06,840 --> 00:04:12,700 rogue process that you do not want displayed. Hooking can be done at many 64 00:04:12,700 --> 00:04:17,720 different places. The import address table is one and I think we'll have a 65 00:04:17,720 --> 00:04:21,340 diagram of that in a moment. You can hook the system call table you can hook the 66 00:04:21,340 --> 00:04:22,260 interrupt descriptor table. 67 00:04:24,480 --> 00:04:30,180 Really this is only a few places you could hook there's quite a multitude. So 68 00:04:30,900 --> 00:04:36,080 this is just a diagram I don't have a light pen so sorry I can't point out 69 00:04:36,080 --> 00:04:41,620 the relevant features on the slide but this is the green represents the big 70 00:04:41,620 --> 00:04:46,300 green box represents a program that's running and it needs functionality from 71 00:04:46,300 --> 00:04:52,240 another DLL. So it does it has stubs in its code called the import address 72 00:04:52,240 --> 00:04:58,560 table. When the loader loads the program into memory it will set the 73 00:04:58,560 --> 00:05:03,540 appropriate function address for these functions that are in other DLLs in this 74 00:05:03,540 --> 00:05:07,340 IAT table and that's a blow up there. They're either exported by function name 75 00:05:07,340 --> 00:05:13,660 or by ordinal and the one two one one two two three three four four represents 76 00:05:13,660 --> 00:05:20,160 the address in a different DLL that that function would actually be located at. So 77 00:05:22,240 --> 00:05:28,440 this is the normal control flow code and your program goes and the application goes 78 00:05:28,440 --> 00:05:38,280 through the IAT the IAT calls into some DLL such as kernel 32 etc. You can inject 79 00:05:38,280 --> 00:05:45,360 a DLL into another process through a couple different means we won't cover those but they're 80 00:05:45,360 --> 00:05:52,220 well documented and it's also rootkit.com there's at least three different rootkits that use DLL in general. 81 00:05:52,240 --> 00:06:01,520 to hook things. So in this case, the rootkit is changing the IET entry so that the program 82 00:06:01,520 --> 00:06:11,220 control flow changes to it instead of the original DLL. Now here's an example of a system call hook. 83 00:06:11,220 --> 00:06:25,040 So on the, I guess, my left, there's the system calls being made. That's an application asking the operating system 84 00:06:25,040 --> 00:06:33,300 to do something on its behalf. It passes through that magic barrier there. Now it's in kernel mode. In kernel mode, 85 00:06:33,400 --> 00:06:40,080 there's a function called, in the kernel, in TS kernel, there's a function called chaos system service. Chaos system 86 00:06:40,080 --> 00:06:41,040 service will resolve. 87 00:06:41,220 --> 00:06:50,120 The, the number of the function you're trying to call. So for instance, like, um, ZW create key for creating a 88 00:06:50,120 --> 00:06:59,340 registry key. Maybe that's function number 3B. It uses that as an index into the system service descriptor table, 89 00:06:59,480 --> 00:07:09,100 and that just contains function pointers. Each, there's a blowup, blowup of each table entry, and they're 90 00:07:09,100 --> 00:07:11,200 merely, um, functions. 91 00:07:11,220 --> 00:07:12,720 There are functions points that are indexed by call number. 92 00:07:15,080 --> 00:07:18,300 The function, uh, is represented here. 93 00:07:19,540 --> 00:07:22,640 So you go through the call table to the function that's in question 94 00:07:23,600 --> 00:07:25,140 with his control flow. 95 00:07:26,400 --> 00:07:27,900 Now if you have a rootkit, 96 00:07:28,540 --> 00:07:31,560 obviously you can divert that control flow to yourself. 97 00:07:32,180 --> 00:07:37,660 This is the same as a userlan IET hook more or less it's just a little bit more 98 00:07:37,660 --> 00:07:38,080 complicated 99 00:07:38,600 --> 00:07:41,200 because not as many people seem to know how to write that. 100 00:07:41,220 --> 00:07:47,780 kernel code and can get some things wrong this is an example of a more 101 00:07:47,780 --> 00:07:54,080 advanced technique where after going through the system call table it still 102 00:07:54,080 --> 00:07:59,040 goes to the correct function which is represented there at the top however the 103 00:07:59,040 --> 00:08:04,780 functions been hooked by immediate jump and the immediate jump jumps to the 104 00:08:04,780 --> 00:08:11,360 rootkit and then the rootkit has control once again this is a lot more 105 00:08:11,360 --> 00:08:19,880 advanced technique it's sometimes hard to get correct quick overview again in 106 00:08:19,880 --> 00:08:24,260 case this is an animated slide that represents it may be a little bit better 107 00:08:24,260 --> 00:08:30,880 so kernel32.dll runs for a while this function represents create file w to 108 00:08:30,880 --> 00:08:34,040 create a file in the file system it eventually calls into 109 00:08:34,040 --> 00:08:34,600 NT 110 00:08:34,600 --> 00:08:41,560 DLL calling the function NT create file that runs for a while and then it calls 111 00:08:41,560 --> 00:08:46,520 into the system so at each one of those places on the slide you could have hooked 112 00:08:46,520 --> 00:08:49,380 at the beginning of the function you could have hooked up where the function 113 00:08:49,380 --> 00:08:58,100 made the call you could hook the IETs etc once you're in the kernel or on 114 00:08:58,100 --> 00:09:04,340 Linux the the interrupt for requesting service of the kernel is interrupt80 115 00:09:04,340 --> 00:09:16,220 on Windows it's int2e so if you hit int2e then that's when you'll jump to a 116 00:09:16,220 --> 00:09:20,920 system chaos system service which will resolve the number of the system call 117 00:09:20,920 --> 00:09:28,240 that you wanted and also where your user parameters are and so forth just for 118 00:09:28,240 --> 00:09:32,440 reference in the EAX register is the system call number 119 00:09:35,000 --> 00:09:36,940 in this case it would correspond to 120 00:09:36,940 --> 00:09:37,640 in this case it would correspond to 121 00:09:37,640 --> 00:09:52,600 ntcrate file and in EDX is a pointer to the user supply parameters so once in a system call table again it's just an address and it jumps off to the real function in 122 00:09:52,600 --> 00:10:04,320 question this slide is an anime but you could have hooked Nt create file by overriding push ebp movie SP into ebp and xor xor 123 00:10:04,340 --> 00:10:09,420 or you would have to at least overwrite that many, maybe the push also. 124 00:10:10,140 --> 00:10:14,300 Because a jump is a 5-byte instruction, it's at least 5 bytes, 125 00:10:15,120 --> 00:10:17,880 so you have to overwrite at least the first 5 bytes of the function. 126 00:10:21,100 --> 00:10:26,200 So, in rootkit.com, there's a whole lot of rootkits that are user-mode rootkits. 127 00:10:27,140 --> 00:10:30,820 And user-mode rootkits aren't the way to go if you want to write a rootkit, 128 00:10:31,420 --> 00:10:33,860 because they're fairly trivial to find. 129 00:10:34,820 --> 00:10:41,500 By hooking the IAT and so forth, they leave a really big footprint that you can look for, 130 00:10:42,140 --> 00:10:45,140 because you know the range of the DLL and so forth. 131 00:10:45,340 --> 00:10:50,700 So you can look for jumps outside of an acceptable range and then flag those. 132 00:10:53,580 --> 00:10:55,260 So vice was to take care of that. 133 00:10:55,700 --> 00:11:02,200 Also, hooking even in the curls, usually it's a little bit old school now. 134 00:11:02,280 --> 00:11:04,220 It's been around for at least... 135 00:11:04,340 --> 00:11:06,240 Six years, probably, in public source stuff. 136 00:11:06,620 --> 00:11:09,220 And maybe in the Linux world even longer than that. 137 00:11:09,260 --> 00:11:10,220 I'm not familiar with that. 138 00:11:11,880 --> 00:11:17,440 So, vice detects kernel hooks, 132 API hooks, and inline function patching. 139 00:11:17,780 --> 00:11:22,160 What I mean by that is when you would overwrite the first 5 bytes of a function, 140 00:11:22,320 --> 00:11:24,100 that's inline function patching. 141 00:11:25,080 --> 00:11:32,860 Also, the not only slide is if the device drivers in memory have a table of function pointers also. 142 00:11:34,340 --> 00:11:34,780 There's... 143 00:11:35,720 --> 00:11:40,400 Whenever you talk to a driver, you're talking through our request packet. 144 00:11:41,040 --> 00:11:44,520 So like when you use netstack to list all the available ports, 145 00:11:45,320 --> 00:11:49,740 you're talking actually under the hood to tcpip.sys. 146 00:11:50,220 --> 00:11:55,760 And you're passing it rp underscore mj underscore query. 147 00:11:56,420 --> 00:11:59,420 That's one of the ERPs you'll pass down to the driver. 148 00:11:59,760 --> 00:12:03,940 Well, there's a function pointer within the driver object that describes 149 00:12:03,940 --> 00:12:04,320 Well, there's a function pointer within the driver object that describes 150 00:12:04,320 --> 00:12:08,300 which function handles, or the address of the function that handles that particular ERP. 151 00:12:08,960 --> 00:12:11,060 So you can also hook there. 152 00:12:11,460 --> 00:12:17,140 However, I haven't currently come across any public rootkits that do that in the Windows world. 153 00:12:17,380 --> 00:12:21,360 And I'm doubting it's done much in the Linux world. 154 00:12:21,480 --> 00:12:23,820 I'm not sure of the format of the LKM structure. 155 00:12:28,120 --> 00:12:30,980 So I'll try to get to a vice demonstration now. 156 00:12:31,320 --> 00:12:33,240 And show you how it works. 157 00:12:33,300 --> 00:12:33,500 And... 158 00:12:33,500 --> 00:12:35,540 That you can use it when you go home. 159 00:13:00,600 --> 00:13:01,240 Okay, well... 160 00:13:01,620 --> 00:13:02,400 Let's run that key. 161 00:13:02,500 --> 00:13:03,480 I'll try to show it in a minute. 162 00:13:03,500 --> 00:13:04,340 If I have extra time. 163 00:13:04,760 --> 00:13:06,340 The key's not installed right now. 164 00:13:06,780 --> 00:13:11,020 So, to save the day, I have backup slides. 165 00:13:13,200 --> 00:13:15,420 So here's vice versus hacker defender. 166 00:13:16,200 --> 00:13:20,780 Hacker defender is a very good rootkit that's on rootkit.com. 167 00:13:21,100 --> 00:13:23,280 I believe it was written by Holy Father. 168 00:13:23,760 --> 00:13:26,140 And he's very knowledgeable. 169 00:13:26,160 --> 00:13:29,400 I've discussed rootkit stuff with him in email. 170 00:13:31,420 --> 00:13:32,520 Here's the vice output. 171 00:13:33,500 --> 00:13:35,180 I'm not sure if it's completely readable. 172 00:13:35,360 --> 00:13:37,080 But all these slides should be on your CD also. 173 00:13:38,160 --> 00:13:40,460 The things there with the embers glue. 174 00:13:40,960 --> 00:13:42,080 A little icon. 175 00:13:42,320 --> 00:13:43,300 You'll see it's hooking. 176 00:13:43,660 --> 00:13:45,940 There's something hooking kernel32.dll. 177 00:13:46,760 --> 00:13:48,780 And actually that turns out to be... 178 00:13:49,960 --> 00:13:53,260 In this case, way up top of the screen is NTDLL. 179 00:13:53,700 --> 00:13:56,400 So you might say, well, NTDLL is not a rootkit. 180 00:13:56,800 --> 00:13:57,540 That's correct. 181 00:13:57,740 --> 00:14:01,960 But the way it's used in the system... 182 00:14:01,960 --> 00:14:03,480 It actually hooks... 183 00:14:03,500 --> 00:14:05,940 It hooks other Windows API's occasionally. 184 00:14:06,520 --> 00:14:08,780 And so therefore it is a hook. 185 00:14:09,420 --> 00:14:11,660 And that's what vice catches. 186 00:14:12,600 --> 00:14:15,000 So, the thing with the Swiss Army knife. 187 00:14:15,560 --> 00:14:16,420 A little icon. 188 00:14:16,860 --> 00:14:21,420 That's all the functions that vice called hacker defender hooking. 189 00:14:21,960 --> 00:14:29,840 When possible, vice will output where on the file system you can find the hooking module in question. 190 00:14:30,540 --> 00:14:33,020 So that will allow you to go to the file system. 191 00:14:33,020 --> 00:14:36,940 And delete that bad DLL or whatever off of the system. 192 00:14:37,640 --> 00:14:40,600 In this case, it couldn't resolve hacker defender. 193 00:14:40,940 --> 00:14:43,740 Vice is, you know, a project still in the works. 194 00:14:44,080 --> 00:14:48,080 And maybe in the future we will be able to resolve that on the file system. 195 00:14:49,220 --> 00:14:53,360 So you can see it hooking things like create process and so on and so forth. 196 00:14:54,160 --> 00:14:56,720 It also gives you the address and memory. 197 00:14:57,380 --> 00:14:58,020 Vice does. 198 00:14:58,100 --> 00:15:00,200 So if you wanted to go and reverse engineer it yourself. 199 00:15:00,620 --> 00:15:03,000 And figure out exactly what their function is. 200 00:15:03,020 --> 00:15:04,380 You can do this. 201 00:15:06,460 --> 00:15:08,240 Here's vice versus vankwish. 202 00:15:08,600 --> 00:15:12,600 Vankwish is another popular rootkit at rootkit.com. 203 00:15:14,140 --> 00:15:16,000 And enough said about that. 204 00:15:16,940 --> 00:15:19,880 How many read KDM's paper on FRAC 62? 205 00:15:20,980 --> 00:15:21,580 Anyone? 206 00:15:23,180 --> 00:15:28,120 Okay, he stated that vice could not catch his rootkit called NT Illusion. 207 00:15:28,320 --> 00:15:32,220 Which is an entirely user land rootkit. 208 00:15:33,020 --> 00:15:35,100 This was correct at the time he tested. 209 00:15:35,640 --> 00:15:37,680 There was a bug in vice. 210 00:15:37,680 --> 00:15:43,640 And vice had not had any development on it since it was first written in mid-April. 211 00:15:44,220 --> 00:15:46,000 However, now that bug is fixed. 212 00:15:47,160 --> 00:15:49,980 And as you can see, it catches NT Illusion. 213 00:15:52,160 --> 00:15:55,560 What's noteworthy here is not only did it catch NT Illusion. 214 00:15:55,880 --> 00:15:58,580 It also lists where on the file system it is. 215 00:15:58,960 --> 00:16:00,280 So you can go delete it. 216 00:16:04,560 --> 00:16:08,780 So that was sort of the rootkit spin and hooking. 217 00:16:09,340 --> 00:16:11,900 We talked about how hooking is detectable. 218 00:16:12,540 --> 00:16:21,880 And now we're going to go into a little bit more of what consumers are currently doing in the world of trying to prevent viruses. 219 00:16:21,900 --> 00:16:24,820 Trying to prevent rootkits and so on and so forth. 220 00:16:25,480 --> 00:16:28,480 Everyone is running to third-party personal firewalls. 221 00:16:28,620 --> 00:16:31,620 And also host-based intrusion prevention systems. 222 00:16:38,820 --> 00:16:40,480 So what are HIDs? 223 00:16:40,540 --> 00:16:42,900 HIDs are host-based intrusion detection system. 224 00:16:43,320 --> 00:16:45,560 HIPs being host-based intrusion prevention system. 225 00:16:46,520 --> 00:16:47,740 What are they there for? 226 00:16:48,220 --> 00:16:51,420 They're there to detect what processes are running on the system. 227 00:16:51,620 --> 00:16:53,500 Maybe if a new process has started. 228 00:16:54,060 --> 00:16:57,540 Block access to things like netcat and so forth from running. 229 00:16:58,520 --> 00:17:00,820 What files are created or deleted or modified. 230 00:17:01,040 --> 00:17:02,900 That may be important to a HIPs. 231 00:17:03,020 --> 00:17:08,380 Like don't let anyone write to the WinMT or Windows system 32 directory. 232 00:17:08,740 --> 00:17:11,160 Because that's probably going to be a bad thing. 233 00:17:12,660 --> 00:17:18,440 HIPs also keep track of network connections made and possibly deny those connections. 234 00:17:18,800 --> 00:17:22,460 And they try to do a little bit with privilege escalation. 235 00:17:23,780 --> 00:17:25,960 And they look for buffer overflows and so forth. 236 00:17:27,020 --> 00:17:30,000 However for a lot of these different pieces of functionality. 237 00:17:30,780 --> 00:17:35,100 HIPs and the current security products rely on the operating system itself. 238 00:17:35,780 --> 00:17:37,700 So if you lie to the operating system. 239 00:17:38,580 --> 00:17:39,940 You lie to the HIPs. 240 00:17:42,440 --> 00:17:46,840 Here's some different functionality that's built into the operating systems today. 241 00:17:46,960 --> 00:17:48,240 That allow HIPs to work. 242 00:17:50,220 --> 00:17:51,800 If it allows the HIPs to work. 243 00:17:51,860 --> 00:17:52,820 It can also probably. 244 00:17:53,460 --> 00:17:56,060 You could use this as a starting point to where to look. 245 00:17:56,380 --> 00:17:58,600 To try to unlink a HIPs. 246 00:17:58,780 --> 00:17:59,560 For instance. 247 00:17:59,560 --> 00:18:00,340 In your kernel. 248 00:18:00,880 --> 00:18:04,800 So you can register OS provided callback functions. 249 00:18:05,260 --> 00:18:06,080 For instance. 250 00:18:06,160 --> 00:18:10,220 If you want to be notified every time a process is created. 251 00:18:10,600 --> 00:18:14,020 You can register an address to be called. 252 00:18:14,140 --> 00:18:15,160 In that case. 253 00:18:15,180 --> 00:18:16,120 And the kernel will do so. 254 00:18:16,780 --> 00:18:18,480 That works for threads also. 255 00:18:19,580 --> 00:18:21,080 Images loaded into memory. 256 00:18:21,380 --> 00:18:24,220 There's all these different pieces that HIPs use. 257 00:18:24,460 --> 00:18:27,060 To detect new things coming into the kernel. 258 00:18:27,180 --> 00:18:28,320 Or coming into the process. 259 00:18:30,180 --> 00:18:31,360 You can hook these. 260 00:18:32,080 --> 00:18:33,380 You could remove. 261 00:18:34,080 --> 00:18:37,360 These are nothing more than a linked list of functions to call. 262 00:18:37,700 --> 00:18:42,100 You could remove a HIPs product from that linked list probably. 263 00:18:42,460 --> 00:18:43,880 Without a whole lot of problems. 264 00:18:48,560 --> 00:18:51,200 Some HIPs actually hook the system call table. 265 00:18:52,040 --> 00:18:53,120 You have to do that. 266 00:18:53,200 --> 00:18:54,240 Especially on Windows. 267 00:18:54,300 --> 00:18:55,040 If you want to. 268 00:18:56,120 --> 00:18:58,640 If you want to filter on registry key access. 269 00:18:58,640 --> 00:19:01,160 Because there's no easily. 270 00:19:02,580 --> 00:19:05,500 There's a user land API that you can call for a callback. 271 00:19:05,500 --> 00:19:06,620 When a registry key changes. 272 00:19:06,840 --> 00:19:07,980 Or any of its children. 273 00:19:08,540 --> 00:19:10,880 But it doesn't provide you much useful details. 274 00:19:11,040 --> 00:19:12,460 It just says hey something changed. 275 00:19:13,120 --> 00:19:15,580 And you would have to reparse all the keys. 276 00:19:15,780 --> 00:19:18,100 To figure out exactly what it was that changed. 277 00:19:18,780 --> 00:19:21,000 And therefore you'd have to sort of keep state. 278 00:19:21,100 --> 00:19:21,940 Like before and after. 279 00:19:23,060 --> 00:19:24,120 That's not very useful. 280 00:19:24,520 --> 00:19:28,520 So HIPs for the most part just hook the system call table directly. 281 00:19:30,520 --> 00:19:33,740 HIPs can hook user land API functions. 282 00:19:34,580 --> 00:19:42,180 How many saw the FRAC article on bypassing third party Windows buffer overflow protection? 283 00:19:43,080 --> 00:19:47,420 Okay that was done by myself and two other anonymous co-authors. 284 00:19:48,160 --> 00:19:49,440 Who I'd like to thank. 285 00:19:50,520 --> 00:19:51,980 And they know who they are. 286 00:19:53,680 --> 00:19:54,520 So anyway. 287 00:19:55,500 --> 00:19:58,140 Some products were hooking the user land APIs. 288 00:19:58,140 --> 00:20:02,040 And we wrote some shellcode and so forth that totally bypassed. 289 00:20:02,240 --> 00:20:07,100 Their implementation of buffer overflow protection at the API level. 290 00:20:07,720 --> 00:20:09,820 And then you can query the kernel of course. 291 00:20:10,100 --> 00:20:15,660 So if you want to know what network connections are open. 292 00:20:15,740 --> 00:20:17,280 You can query the kernel and it will tell you. 293 00:20:19,740 --> 00:20:22,840 Well there's a problem with a lot of these HIPs designs. 294 00:20:23,160 --> 00:20:27,160 And it goes back to the FRAC article really. 295 00:20:27,160 --> 00:20:31,320 It requires that they be on the execution path of any malicious code. 296 00:20:31,620 --> 00:20:34,560 And they have to know where that execution path would be ahead of time. 297 00:20:36,980 --> 00:20:44,900 So there's no reason that we have to use the APIs in the kernel or even in user land. 298 00:20:45,100 --> 00:20:46,940 So the ones that we know that they're watching. 299 00:20:47,340 --> 00:20:48,620 We don't use those APIs. 300 00:20:49,180 --> 00:20:52,540 And I'll introduce DECOM in a second. 301 00:20:52,580 --> 00:20:57,060 Which uses absolutely no APIs to make its changes. 302 00:20:57,160 --> 00:21:02,080 It may use some APIs once in a while to gather information. 303 00:21:02,340 --> 00:21:06,720 But this is really benign information that would never be blocked anyway. 304 00:21:08,080 --> 00:21:10,520 So let's talk about operating system design quickly. 305 00:21:13,220 --> 00:21:15,840 Intel has four privilege levels. 306 00:21:15,960 --> 00:21:18,000 Or four rings as you see here demonstrated. 307 00:21:19,840 --> 00:21:24,960 However, Microsoft and other OS vendors do not use all four of these rings. 308 00:21:25,140 --> 00:21:25,940 They only use two. 309 00:21:25,940 --> 00:21:29,340 There's ring zero of course which is completely privilege code. 310 00:21:29,700 --> 00:21:33,400 Which is the kernel itself or device drivers or LKMs. 311 00:21:33,740 --> 00:21:35,280 Then there's ring three. 312 00:21:35,920 --> 00:21:37,880 Ring three is all applications. 313 00:21:39,920 --> 00:21:41,860 So when you're running in ring three. 314 00:21:43,580 --> 00:21:47,740 For instance, ring three is just ring three. 315 00:21:47,800 --> 00:21:51,860 Like the HIPs doesn't have any more privilege than you do at that point. 316 00:21:52,120 --> 00:21:54,400 If it's only implemented at ring three. 317 00:21:54,400 --> 00:21:59,620 Which is the case of some of these 132 buffer overflow protection mechanisms. 318 00:22:00,540 --> 00:22:04,460 Ring zero you have access to all of kernel memory. 319 00:22:05,080 --> 00:22:09,080 So everything that the kernel uses like objects to keep track. 320 00:22:09,300 --> 00:22:12,200 The kernel is more or less a big accounting arm. 321 00:22:12,520 --> 00:22:14,480 So it's keeping track of all the processes. 322 00:22:14,840 --> 00:22:16,940 All the ports and so forth. 323 00:22:17,200 --> 00:22:21,840 And it does this in structures that Microsoft calls objects. 324 00:22:21,840 --> 00:22:26,660 So these are kernel objects not to be confused with C++ objects. 325 00:22:28,940 --> 00:22:32,500 So once you have this no separation of powers. 326 00:22:32,580 --> 00:22:33,740 There's only two privilege levels. 327 00:22:34,460 --> 00:22:40,920 Every single device driver has access to all these accounting objects that the kernel has access to. 328 00:22:42,500 --> 00:22:45,540 Therefore you can modify it just as much as the kernel can. 329 00:22:45,820 --> 00:22:48,460 You just have to be very careful how you do so. 330 00:22:48,620 --> 00:22:50,560 You have to understand what the structures are. 331 00:22:50,560 --> 00:22:52,300 How to find them. 332 00:22:52,360 --> 00:22:53,040 What they do. 333 00:22:53,400 --> 00:22:55,680 And how the kernel expects them to look. 334 00:22:56,140 --> 00:22:58,920 So if you don't understand those important details. 335 00:22:59,260 --> 00:23:02,400 You may modify an object in memory and cause a blue screen. 336 00:23:04,540 --> 00:23:07,360 There are so many third party device drivers. 337 00:23:07,600 --> 00:23:09,300 I mean there's your printer drivers. 338 00:23:09,580 --> 00:23:10,420 Your fax drivers. 339 00:23:10,700 --> 00:23:11,560 All these different things. 340 00:23:14,060 --> 00:23:17,660 And there really should be different levels of protection between the two. 341 00:23:18,040 --> 00:23:19,620 Between the kernel and the drivers. 342 00:23:20,940 --> 00:23:25,600 So the next generation of rootkit technology is DECOM. 343 00:23:25,740 --> 00:23:28,360 It's a play on obviously Microsoft's terminology. 344 00:23:28,700 --> 00:23:31,380 But in this case direct kernel object manipulation. 345 00:23:32,220 --> 00:23:33,600 So what does it do? 346 00:23:34,020 --> 00:23:37,600 It modifies objects directly in memory. 347 00:23:38,100 --> 00:23:39,760 Never going through APIs. 348 00:23:40,320 --> 00:23:48,100 So there's well known APIs to for instance add a SID to a token in a Windows process. 349 00:23:48,620 --> 00:23:49,300 Well. 350 00:23:49,300 --> 00:23:55,500 First of all the kernel is going to see if you have the appropriate privilege to add that SID. 351 00:23:55,780 --> 00:23:57,200 And it may stop you there. 352 00:23:58,940 --> 00:24:05,000 Also the HIPS or other third parties may wrap around that function flow. 353 00:24:05,140 --> 00:24:06,400 The function control flow. 354 00:24:06,700 --> 00:24:08,420 And try to intercept that call. 355 00:24:08,820 --> 00:24:10,080 And limit you there. 356 00:24:10,780 --> 00:24:13,060 But if you write just directly to the memory. 357 00:24:13,200 --> 00:24:14,300 There's nothing to stop you. 358 00:24:17,820 --> 00:24:21,260 So you can use DECOM to hide a process. 359 00:24:21,340 --> 00:24:22,640 Add a privilege to a token. 360 00:24:22,880 --> 00:24:24,280 Add groups to tokens. 361 00:24:25,600 --> 00:24:28,420 Cool application is to fake out the Windows event viewer. 362 00:24:29,000 --> 00:24:31,660 So that if a user. 363 00:24:32,840 --> 00:24:35,520 I should say if a process spawns another process. 364 00:24:35,820 --> 00:24:36,940 Such as netcat. 365 00:24:37,640 --> 00:24:41,920 If the administrator has detailed process logging turned on. 366 00:24:42,300 --> 00:24:43,760 In the Windows event viewer. 367 00:24:43,760 --> 00:24:44,620 They will see. 368 00:24:45,820 --> 00:24:48,100 An event that says that administrator. 369 00:24:48,720 --> 00:24:50,440 Or whoever you're logged in as. 370 00:24:50,700 --> 00:24:52,000 You know just started. 371 00:24:52,560 --> 00:24:54,500 CMD or regedit32 or whatever. 372 00:24:56,140 --> 00:24:56,660 Well. 373 00:24:57,560 --> 00:24:59,200 If you change your token. 374 00:24:59,660 --> 00:25:01,760 To look like someone else's. 375 00:25:01,880 --> 00:25:03,500 Just by changing a couple bytes. 376 00:25:04,160 --> 00:25:06,520 Then the administrator will be thrown off. 377 00:25:06,820 --> 00:25:07,940 Because it'll look like. 378 00:25:08,040 --> 00:25:09,640 You can make it look like system did it. 379 00:25:09,920 --> 00:25:12,100 So system just spawned netcat. 380 00:25:12,100 --> 00:25:14,540 Now obviously that's going to be a red flag. 381 00:25:14,600 --> 00:25:17,400 To any halfway competent administrator. 382 00:25:18,520 --> 00:25:20,840 However it's not going to point at possibly. 383 00:25:21,240 --> 00:25:23,280 The user account that you subverted. 384 00:25:23,680 --> 00:25:25,200 It's going to be a red herring. 385 00:25:25,240 --> 00:25:26,300 That they're going to have to chase. 386 00:25:26,640 --> 00:25:28,000 For a couple weeks probably. 387 00:25:28,140 --> 00:25:29,780 Before they really figure out what happened. 388 00:25:30,400 --> 00:25:32,080 And maybe they'll never figure it out. 389 00:25:33,160 --> 00:25:35,140 So another thing of DECOM. 390 00:25:35,220 --> 00:25:36,180 You could use it to hide ports. 391 00:25:36,840 --> 00:25:39,580 Currently the FU rootkit does not hide ports. 392 00:25:40,120 --> 00:25:41,360 But you can do it. 393 00:25:44,040 --> 00:25:46,700 So obviously the implications of hidden processes. 394 00:25:47,140 --> 00:25:48,840 The hidden process can have. 395 00:25:49,260 --> 00:25:50,940 Potentially full control of the system. 396 00:25:51,180 --> 00:25:52,120 There's no accountability. 397 00:25:52,760 --> 00:25:54,760 It defeats the. 398 00:25:55,420 --> 00:25:57,360 Heads and hips type of paradigm. 399 00:25:58,080 --> 00:26:00,640 And it can skew the results of forensics. 400 00:26:01,040 --> 00:26:02,400 It all depends on how. 401 00:26:03,000 --> 00:26:04,780 How advanced your forensics are. 402 00:26:05,020 --> 00:26:06,300 But you only have to. 403 00:26:07,100 --> 00:26:08,960 Be overcome the slowest. 404 00:26:10,460 --> 00:26:11,280 Forensic tools. 405 00:26:11,360 --> 00:26:12,500 For the most case. 406 00:26:14,840 --> 00:26:16,060 So how would you go about. 407 00:26:16,060 --> 00:26:17,360 Hiding a process in the Windows kernel. 408 00:26:17,860 --> 00:26:18,520 Here's a. 409 00:26:19,760 --> 00:26:21,700 Here's a picture of how the objects look. 410 00:26:21,960 --> 00:26:22,700 In memory. 411 00:26:27,740 --> 00:26:28,220 The. 412 00:26:28,380 --> 00:26:30,080 The kernel has a. 413 00:26:30,700 --> 00:26:31,820 Processor control block. 414 00:26:33,780 --> 00:26:35,420 It's represented there at the top. 415 00:26:35,820 --> 00:26:38,020 Within there's three key pointers. 416 00:26:38,540 --> 00:26:39,900 One is to the current thread. 417 00:26:39,900 --> 00:26:40,820 One is to the next thread. 418 00:26:40,920 --> 00:26:41,880 And one is to the idle thread. 419 00:26:42,500 --> 00:26:44,100 So you need to find. 420 00:26:44,460 --> 00:26:45,540 Your current thread. 421 00:26:45,640 --> 00:26:47,680 Because that's going to lead you to your current process. 422 00:26:48,800 --> 00:26:50,780 So you go to the processor control block. 423 00:26:50,980 --> 00:26:52,540 Follow that pointer to the current thread. 424 00:26:53,200 --> 00:26:55,280 That's represented there by the E thread block. 425 00:26:55,440 --> 00:26:56,700 That's sort in the middle of the diagram. 426 00:26:57,560 --> 00:26:58,700 The E thread block. 427 00:26:58,900 --> 00:27:01,120 Or object contains a K thread object. 428 00:27:02,180 --> 00:27:03,720 Completely embedded within it. 429 00:27:03,780 --> 00:27:05,340 At the beginning of the E thread object. 430 00:27:05,900 --> 00:27:07,240 And that contains a pointer. 431 00:27:07,820 --> 00:27:08,960 That leads to. 432 00:27:08,960 --> 00:27:10,280 The E process block. 433 00:27:10,960 --> 00:27:12,800 Every process in a Windows. 434 00:27:13,480 --> 00:27:15,820 Operating system has to have at least one thread. 435 00:27:16,400 --> 00:27:18,540 And it has an E process block. 436 00:27:19,360 --> 00:27:19,880 So. 437 00:27:20,560 --> 00:27:21,800 These structures are. 438 00:27:21,940 --> 00:27:23,140 For the most part undocumented. 439 00:27:24,280 --> 00:27:26,840 Some of them now are becoming a little bit more documented. 440 00:27:27,320 --> 00:27:30,200 However they change a lot between versions of service packs. 441 00:27:31,940 --> 00:27:34,120 And also major versions of the operating system. 442 00:27:35,600 --> 00:27:36,780 So you have to do. 443 00:27:36,940 --> 00:27:38,580 At first when I did this. 444 00:27:38,580 --> 00:27:39,900 Two years ago. 445 00:27:39,960 --> 00:27:40,880 It was all reverse engineering. 446 00:27:41,580 --> 00:27:42,980 Now you can use Win debug. 447 00:27:43,920 --> 00:27:45,500 Load up the symbols appropriately. 448 00:27:45,720 --> 00:27:47,420 For whatever version of the kernel you're using. 449 00:27:47,960 --> 00:27:50,060 Type D T space M T. 450 00:27:50,940 --> 00:27:51,400 Bang. 451 00:27:51,860 --> 00:27:52,320 Underscore. 452 00:27:52,840 --> 00:27:53,700 Object name. 453 00:27:54,660 --> 00:27:56,600 And if you don't know what the object name is. 454 00:27:56,680 --> 00:27:57,800 You can wild card it. 455 00:27:57,900 --> 00:27:59,320 To try to narrow it down. 456 00:27:59,800 --> 00:28:02,960 I will tell you that not all the object numbers are documented. 457 00:28:03,560 --> 00:28:05,060 Like Microsoft may just say. 458 00:28:05,200 --> 00:28:05,840 Oh it's a. 459 00:28:06,240 --> 00:28:07,260 It's a P void. 460 00:28:07,260 --> 00:28:09,460 And so you don't know what. 461 00:28:09,540 --> 00:28:11,040 It actually leads to. 462 00:28:11,300 --> 00:28:13,680 And of course that takes a bit more time to figure out. 463 00:28:14,440 --> 00:28:15,980 So within the E process block. 464 00:28:17,140 --> 00:28:17,680 There's a. 465 00:28:19,500 --> 00:28:21,540 There's a list entry structure. 466 00:28:21,940 --> 00:28:23,380 It contains two pointers. 467 00:28:23,760 --> 00:28:25,140 The first one is called a flank. 468 00:28:25,740 --> 00:28:27,620 And the second one is called a blink. 469 00:28:28,060 --> 00:28:29,780 A flank is a forward link. 470 00:28:30,120 --> 00:28:31,840 And a blink is a backward link. 471 00:28:32,500 --> 00:28:34,620 So this list of E processes. 472 00:28:35,160 --> 00:28:37,180 If you would just keep following the flanks. 473 00:28:37,260 --> 00:28:38,820 It's completely circular. 474 00:28:39,480 --> 00:28:41,440 Also if you just keep following. 475 00:28:42,160 --> 00:28:43,700 Well you'd have to do like. 476 00:28:44,100 --> 00:28:45,200 D reference blink. 477 00:28:45,340 --> 00:28:46,340 And then add four. 478 00:28:46,820 --> 00:28:47,780 To get to the. 479 00:28:48,060 --> 00:28:49,240 Blink behind you. 480 00:28:49,420 --> 00:28:50,760 And keep following the chain. 481 00:28:50,840 --> 00:28:51,180 That way. 482 00:28:51,420 --> 00:28:53,340 You could go backwards through the list. 483 00:28:53,400 --> 00:28:53,760 Also. 484 00:28:55,160 --> 00:28:56,480 So if you want to hide a process. 485 00:28:57,060 --> 00:28:57,800 The kernel. 486 00:28:58,400 --> 00:28:59,480 Processor control block. 487 00:28:59,800 --> 00:29:01,500 Is located at a fixed address. 488 00:29:02,100 --> 00:29:03,460 Also if you don't trust that. 489 00:29:03,640 --> 00:29:05,240 Because I haven't verified that since 2000. 490 00:29:05,940 --> 00:29:06,420 Um. 491 00:29:06,420 --> 00:29:07,860 You can use the FS register. 492 00:29:08,320 --> 00:29:10,780 To always get the address of that kernel. 493 00:29:10,980 --> 00:29:11,460 Uh. 494 00:29:12,540 --> 00:29:14,180 Kernel processor control block. 495 00:29:15,120 --> 00:29:15,600 Also. 496 00:29:15,680 --> 00:29:16,160 Um. 497 00:29:16,320 --> 00:29:16,880 Within there. 498 00:29:16,980 --> 00:29:17,700 We talked about. 499 00:29:17,980 --> 00:29:20,000 That you can get the current thread running. 500 00:29:20,560 --> 00:29:22,260 And there's the assembly command. 501 00:29:22,960 --> 00:29:23,440 Well. 502 00:29:23,560 --> 00:29:23,820 Um. 503 00:29:23,920 --> 00:29:25,400 You would just move that into like. 504 00:29:25,480 --> 00:29:25,960 EAX. 505 00:29:26,020 --> 00:29:26,880 The FS colon. 506 00:29:27,580 --> 00:29:28,060 Um. 507 00:29:28,120 --> 00:29:28,600 Bracket. 508 00:29:28,800 --> 00:29:29,280 124. 509 00:29:30,080 --> 00:29:32,040 And that would get you to an E thread. 510 00:29:32,540 --> 00:29:34,560 The E thread takes you to the K thread. 511 00:29:34,980 --> 00:29:36,120 And the K thread. 512 00:29:36,120 --> 00:29:37,400 Takes you to the E process block. 513 00:29:42,380 --> 00:29:43,500 So to hide a process. 514 00:29:43,980 --> 00:29:44,960 All you need to do. 515 00:29:45,060 --> 00:29:46,500 Is change the E process block. 516 00:29:46,600 --> 00:29:47,300 In front of you. 517 00:29:47,660 --> 00:29:49,200 To point to the E process block. 518 00:29:49,260 --> 00:29:49,900 Behind you. 519 00:29:50,240 --> 00:29:51,480 And the E process block. 520 00:29:51,620 --> 00:29:52,200 Behind you. 521 00:29:52,480 --> 00:29:53,900 To point to the E process block. 522 00:29:53,960 --> 00:29:54,600 In front of you. 523 00:29:56,340 --> 00:29:57,100 And I think. 524 00:29:57,120 --> 00:29:58,300 I have a demonstration of that. 525 00:29:58,360 --> 00:29:58,440 Or. 526 00:29:59,020 --> 00:29:59,380 Graphic. 527 00:29:59,960 --> 00:30:00,680 So here. 528 00:30:01,320 --> 00:30:01,680 Sorry. 529 00:30:01,800 --> 00:30:02,240 I don't have a. 530 00:30:02,320 --> 00:30:02,820 A pointer. 531 00:30:03,500 --> 00:30:04,700 But we're trying to hide. 532 00:30:04,700 --> 00:30:05,840 The current process. 533 00:30:06,440 --> 00:30:06,880 So. 534 00:30:07,000 --> 00:30:07,580 If you just. 535 00:30:07,960 --> 00:30:08,540 It's the. 536 00:30:08,720 --> 00:30:09,760 E process block. 537 00:30:09,840 --> 00:30:10,540 That's in the center. 538 00:30:11,500 --> 00:30:12,800 So you would want to modify. 539 00:30:12,940 --> 00:30:13,440 The flink. 540 00:30:14,020 --> 00:30:14,900 Behind us. 541 00:30:14,960 --> 00:30:15,460 To point. 542 00:30:15,980 --> 00:30:16,900 To the flink. 543 00:30:16,960 --> 00:30:17,780 In front of us. 544 00:30:18,320 --> 00:30:19,720 And that's represented there. 545 00:30:21,040 --> 00:30:22,060 Once you do that. 546 00:30:22,100 --> 00:30:23,040 Half the game's done. 547 00:30:23,440 --> 00:30:25,000 Now you have to change the. 548 00:30:25,420 --> 00:30:26,100 The blink. 549 00:30:26,320 --> 00:30:27,140 In front of us. 550 00:30:27,380 --> 00:30:28,080 To point. 551 00:30:28,160 --> 00:30:29,020 To the flink. 552 00:30:29,100 --> 00:30:29,960 Behind us. 553 00:30:30,920 --> 00:30:31,580 Like that. 554 00:30:32,600 --> 00:30:34,060 So you just tell your neighbors. 555 00:30:34,240 --> 00:30:34,660 Hey. 556 00:30:35,320 --> 00:30:36,140 You know. 557 00:30:36,160 --> 00:30:36,760 Point around us. 558 00:30:38,520 --> 00:30:39,040 So. 559 00:30:39,100 --> 00:30:40,300 Why does this continue to run? 560 00:30:42,420 --> 00:30:42,940 Well. 561 00:30:43,060 --> 00:30:43,540 It turns out. 562 00:30:43,620 --> 00:30:44,140 That the. 563 00:30:45,040 --> 00:30:46,080 The scheduler. 564 00:30:46,100 --> 00:30:46,540 In windows. 565 00:30:46,640 --> 00:30:47,680 Is extremely advanced. 566 00:30:48,340 --> 00:30:48,860 And. 567 00:30:50,580 --> 00:30:51,840 It's thread based. 568 00:30:52,820 --> 00:30:53,340 But. 569 00:30:53,400 --> 00:30:53,760 However. 570 00:30:53,860 --> 00:30:55,060 The reporting mechanisms. 571 00:30:55,280 --> 00:30:56,360 Are process based. 572 00:30:56,940 --> 00:30:58,340 So you can edit the. 573 00:30:58,360 --> 00:30:58,740 This. 574 00:30:58,780 --> 00:30:59,520 E process block. 575 00:30:59,980 --> 00:31:00,500 And. 576 00:31:00,640 --> 00:31:01,500 All your threads. 577 00:31:01,540 --> 00:31:02,240 Still get scheduled. 578 00:31:02,460 --> 00:31:02,740 Because. 579 00:31:03,160 --> 00:31:03,940 They're off. 580 00:31:03,940 --> 00:31:04,660 In their little threads. 581 00:31:04,680 --> 00:31:05,300 And. 582 00:31:06,160 --> 00:31:07,040 So they'll continue. 583 00:31:07,500 --> 00:31:08,100 To run. 584 00:31:12,820 --> 00:31:13,760 I'll just cover this. 585 00:31:13,840 --> 00:31:14,580 Really quickly. 586 00:31:14,720 --> 00:31:14,940 Because. 587 00:31:15,460 --> 00:31:16,700 Linux isn't my strong point. 588 00:31:16,780 --> 00:31:16,860 And. 589 00:31:16,880 --> 00:31:17,520 I haven't looked at it. 590 00:31:17,580 --> 00:31:18,140 Since it came out. 591 00:31:18,200 --> 00:31:19,120 With the new threading model. 592 00:31:19,720 --> 00:31:20,120 In. 593 00:31:20,160 --> 00:31:21,280 Linux 2.6. 594 00:31:22,300 --> 00:31:22,700 But. 595 00:31:23,040 --> 00:31:23,440 Within. 596 00:31:23,520 --> 00:31:24,200 The Linux kernel. 597 00:31:24,600 --> 00:31:25,880 You could do a similar thing. 598 00:31:26,020 --> 00:31:26,280 However. 599 00:31:26,360 --> 00:31:26,620 There's. 600 00:31:26,640 --> 00:31:26,940 Sort of. 601 00:31:26,980 --> 00:31:27,300 A gotcha. 602 00:31:27,340 --> 00:31:27,740 At the end. 603 00:31:28,680 --> 00:31:29,560 The Linux kernel. 604 00:31:29,680 --> 00:31:30,080 Contains. 605 00:31:30,180 --> 00:31:30,560 An array. 606 00:31:30,700 --> 00:31:31,660 Of task structs. 607 00:31:32,180 --> 00:31:32,580 So. 608 00:31:32,640 --> 00:31:33,440 Each task struct. 609 00:31:33,500 --> 00:31:33,900 Represents. 610 00:31:33,900 --> 00:31:34,300 Process. 611 00:31:35,020 --> 00:31:35,680 A task. 612 00:31:35,760 --> 00:31:35,940 Struct. 613 00:31:36,140 --> 00:31:36,480 Contains. 614 00:31:36,840 --> 00:31:37,440 A link. 615 00:31:37,500 --> 00:31:37,800 List. 616 00:31:38,880 --> 00:31:39,220 With. 617 00:31:39,280 --> 00:31:39,860 The pointers. 618 00:31:40,040 --> 00:31:40,380 Previous. 619 00:31:40,440 --> 00:31:40,780 Task. 620 00:31:40,860 --> 00:31:41,000 And. 621 00:31:41,020 --> 00:31:41,280 Next. 622 00:31:41,300 --> 00:31:41,580 Task. 623 00:31:42,040 --> 00:31:42,380 That. 624 00:31:42,480 --> 00:31:42,500 You. 625 00:31:42,600 --> 00:31:42,660 Can. 626 00:31:42,740 --> 00:31:42,940 Also. 627 00:31:43,000 --> 00:31:43,280 Follow. 628 00:31:43,400 --> 00:31:43,620 Around. 629 00:31:43,680 --> 00:31:43,860 The. 630 00:31:43,880 --> 00:31:44,120 Circle. 631 00:31:45,520 --> 00:31:45,860 And. 632 00:31:46,020 --> 00:31:46,180 It. 633 00:31:46,280 --> 00:31:46,620 Contains. 634 00:31:47,020 --> 00:31:47,360 Two. 635 00:31:47,520 --> 00:31:47,720 Other. 636 00:31:47,760 --> 00:31:48,040 Vital. 637 00:31:48,100 --> 00:31:48,360 Pointers. 638 00:31:48,900 --> 00:31:49,240 Which. 639 00:31:49,300 --> 00:31:49,380 Are. 640 00:32:03,700 --> 00:32:04,040 Previous. 641 00:32:04,680 --> 00:32:04,820 And. 642 00:32:04,900 --> 00:32:04,940 The. 643 00:32:05,240 --> 00:32:05,520 Task. 644 00:32:06,240 --> 00:32:06,520 Like. 645 00:32:06,820 --> 00:32:07,100 Demonstrated. 646 00:32:07,160 --> 00:32:07,260 In. 647 00:32:07,280 --> 00:32:07,320 The. 648 00:32:07,360 --> 00:32:07,420 E. 649 00:32:07,440 --> 00:32:07,600 Process. 650 00:32:07,740 --> 00:32:08,000 Block. 651 00:32:08,820 --> 00:32:09,100 Exact. 652 00:32:09,200 --> 00:32:09,400 Same. 653 00:32:09,500 --> 00:32:09,780 Concept. 654 00:32:10,400 --> 00:32:10,680 You. 655 00:32:10,720 --> 00:32:10,900 Leave. 656 00:32:10,940 --> 00:32:11,120 Next. 657 00:32:11,140 --> 00:32:11,280 Run. 658 00:32:11,340 --> 00:32:11,420 And. 659 00:32:11,440 --> 00:32:11,640 Previous. 660 00:32:11,700 --> 00:32:11,880 Run. 661 00:32:11,920 --> 00:32:12,120 Alone. 662 00:32:14,300 --> 00:32:14,580 Does. 663 00:32:14,680 --> 00:32:14,840 Anybody. 664 00:32:14,900 --> 00:32:15,060 Know. 665 00:32:15,120 --> 00:32:15,260 What. 666 00:32:15,320 --> 00:32:15,580 Happens. 667 00:32:15,620 --> 00:32:15,760 When. 668 00:32:17,840 --> 00:32:18,120 You. 669 00:32:18,120 --> 00:32:18,420 Run. 670 00:32:19,940 --> 00:32:20,260 What. 671 00:32:22,020 --> 00:32:22,340 Speak. 672 00:32:22,400 --> 00:32:22,600 Up. 673 00:32:24,780 --> 00:32:25,100 Okay. 674 00:32:25,160 --> 00:32:25,320 The. 675 00:32:25,400 --> 00:32:25,440 Whole. 676 00:32:25,560 --> 00:32:25,800 Process. 677 00:32:25,940 --> 00:32:26,260 Freezes. 678 00:32:27,260 --> 00:32:27,580 So. 679 00:32:27,840 --> 00:32:28,160 Nothing. 680 00:32:28,660 --> 00:32:28,980 Your. 681 00:32:29,100 --> 00:32:29,260 Process. 682 00:32:29,640 --> 00:32:29,960 Does. 683 00:32:30,100 --> 00:32:30,240 Not. 684 00:32:30,260 --> 00:32:30,560 Continue. 685 00:32:30,580 --> 00:32:30,760 To. 686 00:32:30,780 --> 00:32:30,960 Run. 687 00:32:31,620 --> 00:32:31,940 And. 688 00:32:32,020 --> 00:32:32,180 The. 689 00:32:32,240 --> 00:32:32,380 Reason. 690 00:32:32,460 --> 00:32:32,720 Being. 691 00:32:32,920 --> 00:32:33,240 Is. 692 00:32:33,280 --> 00:32:33,600 Because. 693 00:32:34,220 --> 00:32:34,540 The. 694 00:32:34,600 --> 00:32:34,800 Way. 695 00:32:34,960 --> 00:32:35,280 That. 696 00:32:36,420 --> 00:32:36,740 Processes. 697 00:32:36,740 --> 00:32:36,980 Get. 698 00:32:36,980 --> 00:32:37,400 Scheduled. 699 00:32:37,400 --> 00:32:37,600 Time. 700 00:32:37,780 --> 00:32:37,900 On. 701 00:32:37,940 --> 00:32:37,980 A. 702 00:32:38,020 --> 00:32:38,180 Linux. 703 00:32:38,300 --> 00:32:38,460 Two. 704 00:32:38,500 --> 00:32:38,680 Point. 705 00:32:38,720 --> 00:32:38,860 Four. 706 00:32:38,960 --> 00:32:39,240 Kernel. 707 00:32:39,900 --> 00:32:40,180 In. 708 00:32:40,220 --> 00:32:40,380 Which. 709 00:32:40,540 --> 00:32:40,820 Case. 710 00:32:40,840 --> 00:32:41,100 The. 711 00:32:41,340 --> 00:32:41,620 Scheduler. 712 00:32:42,460 --> 00:32:42,740 Walks. 713 00:32:42,740 --> 00:32:42,900 Around. 714 00:32:43,080 --> 00:32:43,220 The. 715 00:32:43,320 --> 00:32:43,600 Previous. 716 00:32:43,640 --> 00:32:43,860 Run. 717 00:32:43,960 --> 00:32:44,060 And. 718 00:32:44,080 --> 00:32:44,320 Next. 719 00:32:44,340 --> 00:32:44,580 Run. 720 00:32:46,060 --> 00:32:46,340 List. 721 00:32:46,960 --> 00:32:47,240 So. 722 00:32:47,280 --> 00:32:47,380 It. 723 00:32:47,480 --> 00:32:47,760 Follows. 724 00:32:47,760 --> 00:32:47,900 The. 725 00:32:47,920 --> 00:32:48,200 Next. 726 00:32:48,300 --> 00:32:48,500 Or. 727 00:32:48,500 --> 00:32:48,960 I'm. 728 00:32:49,040 --> 00:32:49,260 Sorry. 729 00:32:49,720 --> 00:32:50,020 Follows. 730 00:32:50,040 --> 00:32:50,120 The. 731 00:32:50,200 --> 00:32:50,420 Previous. 732 00:32:50,940 --> 00:32:51,240 Task. 733 00:32:51,320 --> 00:32:51,480 Or. 734 00:32:51,500 --> 00:32:51,600 The. 735 00:32:51,620 --> 00:32:51,840 Next. 736 00:32:51,860 --> 00:32:52,140 Task. 737 00:32:52,220 --> 00:32:52,520 List. 738 00:32:53,600 --> 00:32:53,900 Walks. 739 00:32:53,900 --> 00:32:54,060 Around. 740 00:32:54,120 --> 00:32:54,300 This. 741 00:32:54,360 --> 00:32:54,520 Link. 742 00:32:54,620 --> 00:32:54,920 List. 743 00:32:55,560 --> 00:32:55,860 Going. 744 00:32:55,960 --> 00:32:56,060 To. 745 00:32:56,100 --> 00:32:56,380 Each. 746 00:32:56,520 --> 00:32:56,820 Task. 747 00:32:57,000 --> 00:32:57,300 Structure. 748 00:32:57,380 --> 00:32:57,600 Within. 749 00:32:57,700 --> 00:32:58,000 Memory. 750 00:32:58,860 --> 00:32:59,160 Based. 751 00:32:59,380 --> 00:32:59,680 Upon. 752 00:33:00,280 --> 00:33:00,580 It. 753 00:33:00,820 --> 00:33:01,120 Calculates. 754 00:33:01,120 --> 00:33:01,260 A. 755 00:33:01,280 --> 00:33:01,480 Goodness. 756 00:33:01,600 --> 00:33:01,900 Value. 757 00:33:19,220 --> 00:33:19,460 The. 758 00:33:19,780 --> 00:33:20,020 Ordering. 759 00:33:20,020 --> 00:33:20,180 There. 760 00:33:20,680 --> 00:33:20,920 Well. 761 00:33:21,060 --> 00:33:21,160 If. 762 00:33:21,280 --> 00:33:21,400 You're. 763 00:33:21,500 --> 00:33:21,620 Never. 764 00:33:21,700 --> 00:33:21,940 In. 765 00:33:22,040 --> 00:33:22,200 The. 766 00:33:22,780 --> 00:33:23,020 In. 767 00:33:23,080 --> 00:33:23,180 The. 768 00:33:23,220 --> 00:33:23,400 Next. 769 00:33:23,620 --> 00:33:23,860 Task. 770 00:33:24,300 --> 00:33:24,540 Listing. 771 00:33:24,960 --> 00:33:25,200 Then. 772 00:33:25,320 --> 00:33:25,400 You'll. 773 00:33:25,520 --> 00:33:25,660 Never. 774 00:33:25,700 --> 00:33:25,840 Get. 775 00:33:25,960 --> 00:33:26,060 Your. 776 00:33:26,120 --> 00:33:26,280 Goodness. 777 00:33:26,400 --> 00:33:26,600 Value. 778 00:33:27,060 --> 00:33:27,300 Calculated. 779 00:33:27,680 --> 00:33:27,920 So. 780 00:33:28,020 --> 00:33:28,140 You'll. 781 00:33:28,240 --> 00:33:28,380 Never. 782 00:33:28,380 --> 00:33:28,480 Get. 783 00:33:28,680 --> 00:33:28,920 Scheduled. 784 00:33:28,940 --> 00:33:29,100 Again. 785 00:33:30,120 --> 00:33:30,360 Because. 786 00:33:31,220 --> 00:33:31,440 This. 787 00:33:31,460 --> 00:33:31,620 The. 788 00:33:31,840 --> 00:33:32,060 Scheduler. 789 00:33:32,080 --> 00:33:32,280 Can't. 790 00:33:32,320 --> 00:33:32,500 See. 791 00:33:32,560 --> 00:33:32,720 You. 792 00:33:33,760 --> 00:33:33,980 This. 793 00:33:34,080 --> 00:33:34,200 Is. 794 00:33:34,280 --> 00:33:34,500 Probably. 795 00:33:34,620 --> 00:33:34,740 All. 796 00:33:34,820 --> 00:33:35,040 Different. 797 00:33:35,140 --> 00:33:35,320 In. 798 00:33:35,340 --> 00:33:35,420 The. 799 00:33:35,460 --> 00:33:35,560 Two. 800 00:33:35,620 --> 00:33:35,820 Six. 801 00:33:35,900 --> 00:33:36,060 With. 802 00:33:36,140 --> 00:33:36,320 The. 803 00:33:36,480 --> 00:33:36,700 Threading. 804 00:33:36,780 --> 00:33:36,980 Model. 805 00:33:40,140 --> 00:33:40,360 There. 806 00:33:40,500 --> 00:33:40,640 Was. 807 00:33:40,660 --> 00:33:40,860 A. 808 00:33:40,940 --> 00:33:41,020 Root. 809 00:33:41,060 --> 00:33:41,220 Kid. 810 00:33:41,260 --> 00:33:41,460 On. 811 00:33:42,120 --> 00:33:42,340 After. 812 00:33:42,460 --> 00:33:42,500 I. 813 00:33:42,580 --> 00:33:42,620 Hit. 814 00:33:42,680 --> 00:33:42,820 This. 815 00:33:42,820 --> 00:33:43,040 Problem. 816 00:33:43,160 --> 00:33:43,240 There. 817 00:33:43,540 --> 00:33:43,600 Root. 818 00:33:43,660 --> 00:33:43,800 Kid. 819 00:33:44,440 --> 00:33:44,680 That. 820 00:33:44,760 --> 00:33:44,820 I. 821 00:33:44,880 --> 00:33:45,060 Found. 822 00:33:45,160 --> 00:33:45,380 Online. 823 00:33:45,720 --> 00:33:45,880 That. 824 00:33:45,920 --> 00:33:46,040 Was. 825 00:33:46,060 --> 00:33:46,220 Open. 826 00:33:46,320 --> 00:33:46,520 Source. 827 00:33:47,240 --> 00:33:47,480 Is. 828 00:33:48,020 --> 00:33:48,260 Fairness. 829 00:33:48,260 --> 00:33:48,460 More. 830 00:33:48,540 --> 00:33:48,740 Yeah. 831 00:33:48,780 --> 00:33:49,000 Believe. 832 00:33:49,100 --> 00:33:49,240 Is. 833 00:33:49,300 --> 00:33:49,380 The. 834 00:33:49,400 --> 00:33:49,640 Name. 835 00:33:50,480 --> 00:33:50,720 And. 836 00:33:51,020 --> 00:33:51,260 This. 837 00:33:51,740 --> 00:33:51,980 Person. 838 00:33:52,040 --> 00:33:52,220 Had. 839 00:33:52,280 --> 00:33:52,360 Come. 840 00:33:52,520 --> 00:33:52,760 Across. 841 00:33:53,260 --> 00:33:53,500 The. 842 00:33:53,500 --> 00:33:53,620 Exact. 843 00:33:53,780 --> 00:33:53,960 Same. 844 00:33:54,060 --> 00:33:54,220 Problem. 845 00:33:54,360 --> 00:33:54,440 I. 846 00:33:54,480 --> 00:33:54,660 Was. 847 00:33:54,740 --> 00:33:54,940 Having. 848 00:33:55,500 --> 00:33:55,700 And. 849 00:33:55,820 --> 00:33:55,900 They. 850 00:33:55,960 --> 00:33:56,160 Figured. 851 00:33:56,240 --> 00:33:56,320 Out. 852 00:33:56,380 --> 00:33:56,460 The. 853 00:33:56,540 --> 00:33:56,620 Only. 854 00:33:56,720 --> 00:33:56,800 Way. 855 00:33:56,820 --> 00:33:56,860 To. 856 00:33:56,980 --> 00:33:57,060 Fix. 857 00:33:57,120 --> 00:33:57,240 It. 858 00:33:57,300 --> 00:33:57,460 Was. 859 00:33:57,480 --> 00:33:57,640 The. 860 00:33:58,320 --> 00:33:58,400 They. 861 00:33:58,520 --> 00:33:58,560 Were. 862 00:33:58,700 --> 00:33:58,840 Fix. 863 00:33:58,900 --> 00:33:59,060 It. 864 00:33:59,520 --> 00:33:59,720 Was. 865 00:33:59,840 --> 00:33:59,940 To. 866 00:34:00,000 --> 00:34:00,200 Patch. 867 00:34:00,600 --> 00:34:00,800 The. 868 00:34:01,340 --> 00:34:01,540 Scheduler. 869 00:34:02,700 --> 00:34:03,020 So. 870 00:34:03,140 --> 00:34:03,400 What. 871 00:34:04,960 --> 00:34:05,280 But. 872 00:34:05,420 --> 00:34:05,480 The. 873 00:34:06,160 --> 00:34:06,480 Solution. 874 00:34:06,560 --> 00:34:06,760 Did. 875 00:34:06,880 --> 00:34:07,200 Was. 876 00:34:07,680 --> 00:34:08,000 The. 877 00:34:08,360 --> 00:34:08,680 Process. 878 00:34:09,020 --> 00:34:09,340 Is. 879 00:34:09,400 --> 00:34:09,620 Always. 880 00:34:09,980 --> 00:34:10,300 The. 881 00:34:10,360 --> 00:34:10,480 First. 882 00:34:10,620 --> 00:34:10,940 Process. 883 00:34:11,040 --> 00:34:11,180 That. 884 00:34:11,220 --> 00:34:11,480 Has. 885 00:34:11,520 --> 00:34:11,700 No. 886 00:34:12,620 --> 00:34:12,940 No. 887 00:34:13,000 --> 00:34:13,200 Parent. 888 00:34:13,380 --> 00:34:13,700 Process. 889 00:34:14,380 --> 00:34:14,700 So. 890 00:34:14,800 --> 00:34:15,060 The. 891 00:34:15,100 --> 00:34:15,260 Parent. 892 00:34:15,540 --> 00:34:15,860 Processor. 893 00:34:16,280 --> 00:34:16,600 Or. 894 00:34:16,640 --> 00:34:16,940 Parent. 895 00:34:17,340 --> 00:34:17,660 Process. 896 00:34:18,300 --> 00:34:18,620 In. 897 00:34:18,660 --> 00:34:18,760 The. 898 00:34:31,660 --> 00:34:31,860 Calculated. 899 00:34:31,960 --> 00:34:32,120 Goodness. 900 00:34:32,260 --> 00:34:32,460 Value. 901 00:34:32,540 --> 00:34:32,720 For. 902 00:34:32,780 --> 00:34:32,980 Them. 903 00:34:35,760 --> 00:34:35,960 But. 904 00:34:36,060 --> 00:34:36,100 If. 905 00:34:36,200 --> 00:34:36,240 You. 906 00:34:36,260 --> 00:34:36,320 Go. 907 00:34:36,440 --> 00:34:36,540 Through. 908 00:34:36,620 --> 00:34:36,780 All. 909 00:34:36,880 --> 00:34:36,960 That. 910 00:34:37,000 --> 00:34:37,200 Effort. 911 00:34:37,240 --> 00:34:37,380 They. 912 00:34:37,400 --> 00:34:37,580 Probably. 913 00:34:37,660 --> 00:34:37,860 Better. 914 00:34:38,020 --> 00:34:38,160 Ways. 915 00:34:38,260 --> 00:34:38,460 To. 916 00:34:38,660 --> 00:34:38,860 Hide. 917 00:34:38,920 --> 00:34:39,060 Your. 918 00:34:39,080 --> 00:34:39,280 Process. 919 00:34:42,880 --> 00:34:43,080 So. 920 00:34:44,800 --> 00:34:45,000 You. 921 00:34:45,980 --> 00:34:46,180 It. 922 00:34:46,360 --> 00:34:46,420 Be. 923 00:34:46,620 --> 00:34:46,820 Noted. 924 00:34:46,840 --> 00:34:46,980 That. 925 00:34:47,040 --> 00:34:47,100 You. 926 00:34:47,140 --> 00:34:47,260 Can. 927 00:35:01,540 --> 00:35:01,760 Use. 928 00:35:02,620 --> 00:35:02,860 So. 929 00:35:03,160 --> 00:35:03,400 You. 930 00:35:03,460 --> 00:35:03,600 Have. 931 00:35:03,680 --> 00:35:03,880 To. 932 00:35:05,380 --> 00:35:05,620 Use. 933 00:35:05,700 --> 00:35:05,840 Some. 934 00:35:05,880 --> 00:35:06,000 Kind. 935 00:35:06,060 --> 00:35:06,180 Of. 936 00:35:06,700 --> 00:35:06,940 Synchronization. 937 00:35:07,760 --> 00:35:08,000 Objects. 938 00:35:08,300 --> 00:35:08,540 To. 939 00:35:08,600 --> 00:35:08,720 Try. 940 00:35:08,760 --> 00:35:08,860 To. 941 00:35:08,940 --> 00:35:08,980 Get. 942 00:35:09,080 --> 00:35:09,320 Access. 943 00:35:09,440 --> 00:35:09,600 To. 944 00:35:09,620 --> 00:35:09,780 These. 945 00:35:09,820 --> 00:35:10,060 Lists. 946 00:35:10,100 --> 00:35:10,240 If. 947 00:35:10,300 --> 00:35:10,380 You. 948 00:35:10,420 --> 00:35:10,620 Want. 949 00:35:10,700 --> 00:35:10,860 To. 950 00:35:11,480 --> 00:35:11,720 Completely. 951 00:35:11,980 --> 00:35:12,220 Modify. 952 00:35:12,580 --> 00:35:12,820 Or. 953 00:35:13,000 --> 00:35:13,240 Modify. 954 00:35:13,240 --> 00:35:13,420 A. 955 00:35:13,840 --> 00:35:14,060 Safe. 956 00:35:14,200 --> 00:35:14,460 Manner. 957 00:35:15,940 --> 00:35:16,260 In. 958 00:35:16,400 --> 00:35:16,660 Windows. 959 00:35:16,880 --> 00:35:17,040 If. 960 00:35:17,220 --> 00:35:17,340 Want. 961 00:35:17,400 --> 00:35:17,560 To. 962 00:35:17,600 --> 00:35:17,920 Modify. 963 00:35:17,980 --> 00:35:18,120 The. 964 00:35:18,200 --> 00:35:18,280 List. 965 00:35:18,360 --> 00:35:18,540 Of. 966 00:35:18,960 --> 00:35:19,280 Active. 967 00:35:19,660 --> 00:35:19,980 Processes. 968 00:35:20,020 --> 00:35:20,340 There's. 969 00:35:20,400 --> 00:35:20,480 A. 970 00:35:20,660 --> 00:35:21,320 Non-Exported. 971 00:35:21,320 --> 00:35:21,560 Symbol. 972 00:35:22,160 --> 00:35:22,480 Called. 973 00:35:22,740 --> 00:35:23,060 PSP. 974 00:35:23,080 --> 00:35:23,300 Active. 975 00:35:23,440 --> 00:35:23,700 Process. 976 00:35:23,820 --> 00:35:24,020 New. 977 00:35:24,080 --> 00:35:24,260 Text. 978 00:35:28,020 --> 00:35:28,340 The. 979 00:35:39,340 --> 00:35:39,660 Kernel. 980 00:35:39,780 --> 00:35:40,100 Every. 981 00:35:40,100 --> 00:35:40,340 Services. 982 00:35:40,400 --> 00:35:40,460 I. 983 00:35:40,660 --> 00:35:40,800 These. 984 00:35:41,180 --> 00:35:41,340 Symbols. 985 00:35:41,380 --> 00:35:41,440 Are. 986 00:35:41,480 --> 00:35:41,580 Not. 987 00:35:41,940 --> 00:35:42,100 Exported. 988 00:35:42,480 --> 00:35:42,640 So. 989 00:35:42,720 --> 00:35:42,760 We. 990 00:35:42,820 --> 00:35:42,860 Have. 991 00:35:42,940 --> 00:35:43,000 To. 992 00:35:43,100 --> 00:35:43,200 Find. 993 00:35:43,280 --> 00:35:43,440 Another. 994 00:35:43,600 --> 00:35:43,760 Way. 995 00:35:43,800 --> 00:35:43,880 To. 996 00:35:43,940 --> 00:35:44,040 Come. 997 00:35:44,120 --> 00:35:44,220 Up. 998 00:35:44,260 --> 00:35:44,360 With. 999 00:35:44,880 --> 00:35:45,040 Synchronization. 1000 00:35:46,040 --> 00:35:46,200 One. 1001 00:35:46,300 --> 00:35:46,420 Way. 1002 00:35:46,520 --> 00:35:46,560 You. 1003 00:35:46,620 --> 00:35:46,660 Could. 1004 00:35:46,820 --> 00:35:46,980 It. 1005 00:35:47,120 --> 00:35:47,280 Is. 1006 00:35:47,280 --> 00:35:47,400 You. 1007 00:35:47,440 --> 00:35:47,560 Could. 1008 00:36:05,360 --> 00:36:05,520 Hard. 1009 00:36:10,400 --> 00:36:10,640 For. 1010 00:36:10,680 --> 00:36:10,740 A. 1011 00:36:10,780 --> 00:36:10,980 Known. 1012 00:36:11,240 --> 00:36:11,480 Pattern. 1013 00:36:11,480 --> 00:36:11,600 In. 1014 00:36:11,660 --> 00:36:11,900 Memory. 1015 00:36:12,600 --> 00:36:12,840 You. 1016 00:36:12,960 --> 00:36:13,180 Know. 1017 00:36:13,280 --> 00:36:13,440 That. 1018 00:36:13,560 --> 00:36:13,700 There's. 1019 00:36:13,720 --> 00:36:13,760 Going. 1020 00:36:13,840 --> 00:36:13,860 To. 1021 00:36:13,900 --> 00:36:14,120 Certain. 1022 00:36:14,340 --> 00:36:14,580 Functions. 1023 00:36:14,620 --> 00:36:14,820 Within. 1024 00:36:14,900 --> 00:36:15,040 The. 1025 00:36:15,180 --> 00:36:15,420 Kernel. 1026 00:36:15,700 --> 00:36:15,940 That. 1027 00:36:16,000 --> 00:36:16,240 Have. 1028 00:36:16,240 --> 00:36:16,440 To. 1029 00:36:16,580 --> 00:36:16,820 Access. 1030 00:36:16,980 --> 00:36:17,200 These. 1031 00:36:17,240 --> 00:36:17,380 New. 1032 00:36:17,580 --> 00:36:17,820 Texts. 1033 00:36:18,280 --> 00:36:18,520 In. 1034 00:36:18,640 --> 00:36:18,760 Order. 1035 00:36:18,820 --> 00:36:18,960 To. 1036 00:36:19,640 --> 00:36:19,880 Operate. 1037 00:36:19,880 --> 00:36:20,340 Safely. 1038 00:36:20,760 --> 00:36:21,000 So. 1039 00:36:21,080 --> 00:36:21,200 You. 1040 00:36:21,220 --> 00:36:21,400 Could. 1041 00:36:21,400 --> 00:36:21,560 Do. 1042 00:36:21,580 --> 00:36:21,720 A. 1043 00:36:21,720 --> 00:36:21,900 Certain. 1044 00:36:21,940 --> 00:36:21,980 Way.