1 00:00:00,920 --> 00:00:14,040 The next presentation is about DJSS and SNMP attacks, so I have to say that. 2 00:00:14,360 --> 00:00:18,660 Now we can carry on with my presentation about security of the kernel level. 3 00:00:19,980 --> 00:00:28,940 This is to explain you that the kernel has something to do with security 4 00:00:28,940 --> 00:00:38,600 that when you want to do security, the kernel has its role to play in security policy. 5 00:00:40,760 --> 00:00:46,360 I don't see my screen, so I'll have to look at those screens. 6 00:00:47,280 --> 00:00:50,520 I have divided my presentation in three parts. 7 00:00:50,820 --> 00:00:55,540 The first one is about why doing security in the kernel. 8 00:00:56,420 --> 00:00:58,920 Some people might think that 9 00:00:58,940 --> 00:01:03,980 kernel is only done for the machine to work 10 00:01:03,980 --> 00:01:09,700 and security must be done elsewhere with other applications. 11 00:01:10,160 --> 00:01:18,320 But I'll try to explain and convince you that things can and must be done at the kernel level. 12 00:01:19,080 --> 00:01:24,000 Then there will be a part about how to achieve such security. 13 00:01:24,400 --> 00:01:28,920 And the third part will be about some implementations. 14 00:01:31,260 --> 00:01:40,100 So the first part will begin with some context. 15 00:01:40,400 --> 00:01:44,600 Then I will introduce some kind of new security model. 16 00:01:45,120 --> 00:01:49,780 In fact, it's another way to see security. 17 00:01:50,220 --> 00:01:52,680 And I'll conclude on this. 18 00:01:53,400 --> 00:01:56,280 So as you all know, 19 00:01:57,260 --> 00:01:58,920 there are things, 20 00:01:58,920 --> 00:02:01,320 I think, we'd like to be protected from. 21 00:02:01,480 --> 00:02:03,820 So all those kind of nasty stuffs. 22 00:02:05,820 --> 00:02:07,360 And for that, 23 00:02:07,500 --> 00:02:11,300 we must ensure three words you all know well, 24 00:02:11,440 --> 00:02:14,840 which are confidentiality, integrity, and availability. 25 00:02:15,460 --> 00:02:17,800 And what we do to ensure that 26 00:02:17,800 --> 00:02:21,400 is that we define a set of rules 27 00:02:21,400 --> 00:02:26,380 that describes the way we handle, protect, and distribute information. 28 00:02:26,760 --> 00:02:27,960 And this is what we call 29 00:02:27,960 --> 00:02:29,020 a security policy. 30 00:02:30,680 --> 00:02:33,160 And to enforce our security policy, 31 00:02:33,440 --> 00:02:35,540 we use security software. 32 00:02:36,120 --> 00:02:37,740 We use other things, 33 00:02:37,820 --> 00:02:40,660 but it is part of the things we use. 34 00:02:40,860 --> 00:02:44,300 And some to do integrity checks, 35 00:02:44,440 --> 00:02:48,080 some to ensure confidentiality, 36 00:02:48,140 --> 00:02:51,560 and some to do authentications. 37 00:02:51,880 --> 00:02:53,920 But the real question is that 38 00:02:53,920 --> 00:02:56,680 can we trust those softwares? 39 00:02:59,160 --> 00:03:02,000 To explain you these things, 40 00:03:02,620 --> 00:03:04,060 there is a little analogy. 41 00:03:04,840 --> 00:03:07,840 So let's imagine that we have an house 42 00:03:07,840 --> 00:03:10,740 with some cookies into this house. 43 00:03:10,900 --> 00:03:13,820 And we have mice that will try to eat the cookies. 44 00:03:15,360 --> 00:03:19,020 And all that we want is to protect the cookies from the mice. 45 00:03:19,460 --> 00:03:21,820 So I propose you two solutions. 46 00:03:22,140 --> 00:03:25,680 The first one is to try to prevent mice 47 00:03:25,680 --> 00:03:26,880 to get into the house, 48 00:03:26,880 --> 00:03:28,420 filling every hole, 49 00:03:28,700 --> 00:03:30,120 closing doors and windows. 50 00:03:30,740 --> 00:03:32,240 And the second solution 51 00:03:32,240 --> 00:03:34,440 is to put the cookies in a metal box. 52 00:03:34,880 --> 00:03:38,100 So what I will ask you 53 00:03:38,100 --> 00:03:39,640 is to think two minutes about 54 00:03:40,660 --> 00:03:42,720 which solution will be secure, 55 00:03:42,960 --> 00:03:44,180 which will be not. 56 00:03:44,860 --> 00:03:46,360 If you try to think about that, 57 00:03:46,560 --> 00:03:49,500 you will quickly find that 58 00:03:49,500 --> 00:03:52,100 you can't answer the question easily, 59 00:03:52,240 --> 00:03:55,940 and that securing the house 60 00:03:55,940 --> 00:03:57,380 is very hard, 61 00:03:57,580 --> 00:03:59,960 and you won't be sure 62 00:03:59,960 --> 00:04:03,000 that the house is well secured. 63 00:04:04,100 --> 00:04:05,960 But the solution with the metal box 64 00:04:05,960 --> 00:04:08,180 is quite easily done. 65 00:04:09,540 --> 00:04:11,520 In fact, with the solution one, 66 00:04:11,760 --> 00:04:14,500 you can't be sure you have filled all the walls, 67 00:04:14,820 --> 00:04:18,040 you can't be sure there weren't any mice in the house, 68 00:04:18,240 --> 00:04:20,000 you can't be sure about the... 69 00:04:21,000 --> 00:04:22,760 you can't trust this solution. 70 00:04:23,080 --> 00:04:24,940 And with the solution of the metal box, 71 00:04:25,940 --> 00:04:27,520 you have something you can audit, 72 00:04:27,640 --> 00:04:28,720 because it's very small, 73 00:04:28,820 --> 00:04:30,380 you can grasp it entirely, 74 00:04:30,740 --> 00:04:34,060 and this is a better solution. 75 00:04:34,420 --> 00:04:36,180 So if you have to choose, 76 00:04:36,280 --> 00:04:38,040 I guess you'll choose the solution 77 00:04:38,040 --> 00:04:39,960 of putting cookies in the metal box. 78 00:04:41,080 --> 00:04:42,880 For the model, that's the same thing. 79 00:04:43,520 --> 00:04:45,340 We have, for example, a machine 80 00:04:46,240 --> 00:04:49,980 with a big perimeter, 81 00:04:50,280 --> 00:04:52,160 which is, in fact, 82 00:04:52,180 --> 00:04:53,940 the physical security of the machine. 83 00:04:53,940 --> 00:04:56,820 What we have in black and yellow 84 00:04:56,820 --> 00:04:59,240 is the last defense we put, 85 00:04:59,360 --> 00:05:00,440 usually, on machines. 86 00:05:00,900 --> 00:05:02,720 And, for example, 87 00:05:02,720 --> 00:05:04,980 if someone can break in using, 88 00:05:05,060 --> 00:05:06,120 for example, sunlight, 89 00:05:06,840 --> 00:05:11,220 it can attack over a piece of software, 90 00:05:11,460 --> 00:05:15,720 and it has gone into our last security perimeter. 91 00:05:16,920 --> 00:05:19,280 Now, if we use this model, 92 00:05:19,520 --> 00:05:23,140 we have a smaller perimeter, 93 00:05:23,140 --> 00:05:24,700 to defend. 94 00:05:25,000 --> 00:05:25,580 We have... 95 00:05:27,790 --> 00:05:30,920 Of course, we try to prevent something 96 00:05:30,920 --> 00:05:32,060 to get into the machine, 97 00:05:32,300 --> 00:05:37,280 but once someone has succeeded 98 00:05:37,280 --> 00:05:39,200 into getting into the machine, 99 00:05:40,140 --> 00:05:43,140 we try to defend kernel 2. 100 00:05:43,300 --> 00:05:46,000 And our last defense will be 101 00:05:46,000 --> 00:05:48,540 the separation between user space 102 00:05:48,540 --> 00:05:49,320 and kernel space. 103 00:05:50,880 --> 00:05:52,760 So to use this model, 104 00:05:52,760 --> 00:05:54,540 we must patch a kernel, 105 00:05:54,740 --> 00:05:57,980 first to protect the kernel itself, 106 00:05:58,320 --> 00:06:00,760 so that we reach a state 107 00:06:01,540 --> 00:06:04,760 where the kernel space is trustworthy. 108 00:06:05,320 --> 00:06:07,580 And then, from the kernel space, 109 00:06:07,900 --> 00:06:11,440 we try to enforce security policy. 110 00:06:11,540 --> 00:06:12,800 We try to protect everything 111 00:06:12,800 --> 00:06:15,500 that is involved in the security policy, 112 00:06:15,700 --> 00:06:19,160 or every data that is related 113 00:06:19,160 --> 00:06:20,580 to the security policy. 114 00:06:20,580 --> 00:06:23,840 Now, how can we do that? 115 00:06:25,520 --> 00:06:31,260 In fact, the fact we decide 116 00:06:31,260 --> 00:06:36,680 that the kernel space is a good space to... 117 00:06:36,680 --> 00:06:38,620 A good place to do that 118 00:06:38,620 --> 00:06:41,380 is that in every computer, 119 00:06:41,620 --> 00:06:42,780 nowadays computers, 120 00:06:43,160 --> 00:06:45,000 we have a memory management unit 121 00:06:45,420 --> 00:06:48,780 that will do hardware separation 122 00:06:48,780 --> 00:06:50,560 between user space 123 00:06:50,580 --> 00:06:51,320 and kernel space. 124 00:06:51,620 --> 00:06:53,740 And we will rely on this fact 125 00:06:54,540 --> 00:06:58,860 to, in fact, being able to ensure 126 00:06:58,860 --> 00:07:00,980 that everything from user space 127 00:07:01,340 --> 00:07:02,580 can't go into kernel space. 128 00:07:03,340 --> 00:07:05,820 And we will see in the first part 129 00:07:05,820 --> 00:07:07,280 that we can enumerate everything 130 00:07:07,280 --> 00:07:09,800 going from user space to kernel space, 131 00:07:10,080 --> 00:07:13,940 and everything that can be done 132 00:07:13,940 --> 00:07:15,700 on the machine can be filtered 133 00:07:16,420 --> 00:07:18,740 because it is going through kernel space. 134 00:07:19,540 --> 00:07:22,000 Then, we will see in two parts 135 00:07:22,000 --> 00:07:23,560 on how to defend kernel space 136 00:07:23,560 --> 00:07:25,900 and what we could do to filter 137 00:07:25,900 --> 00:07:27,220 in kernel space. 138 00:07:28,440 --> 00:07:30,180 So, this is a machine. 139 00:07:30,360 --> 00:07:31,500 This is a computer. 140 00:07:31,960 --> 00:07:35,480 And we have humans that will try to target 141 00:07:35,480 --> 00:07:39,340 some things like storage, 142 00:07:41,420 --> 00:07:42,880 FPGAs of the kernel 143 00:07:42,880 --> 00:07:44,060 or another application 144 00:07:44,060 --> 00:07:46,240 that is running on the computer. 145 00:07:48,960 --> 00:07:52,240 To reach a target, 146 00:07:52,400 --> 00:07:53,720 you must go through some 147 00:07:54,400 --> 00:07:55,980 physical security layers, 148 00:07:56,280 --> 00:07:59,400 one which is the real physical access 149 00:07:59,400 --> 00:08:00,000 to the machine. 150 00:08:01,100 --> 00:08:03,480 If you can do that, 151 00:08:04,100 --> 00:08:07,000 I mean, with a screwdriver or anything, 152 00:08:07,700 --> 00:08:10,600 here's one, and you don't have to... 153 00:08:11,340 --> 00:08:14,260 I mean, the physical security 154 00:08:14,260 --> 00:08:15,080 is the first point, 155 00:08:15,080 --> 00:08:16,660 but it's not the point of this presentation. 156 00:08:17,660 --> 00:08:19,780 The second point is that you can go 157 00:08:19,780 --> 00:08:21,300 through an action layer, 158 00:08:21,400 --> 00:08:22,420 for example, the keyboard 159 00:08:22,980 --> 00:08:25,040 or the network interface card 160 00:08:25,840 --> 00:08:27,360 to go through the kernel 161 00:08:27,360 --> 00:08:31,260 and give commands to an application 162 00:08:31,260 --> 00:08:32,800 that is running in user space. 163 00:08:33,280 --> 00:08:36,440 So, you can reach an application like that. 164 00:08:37,620 --> 00:08:38,860 From this application, 165 00:08:39,160 --> 00:08:40,860 you can reach, for example, 166 00:08:41,020 --> 00:08:44,320 a storage media or PROM or FPGAs. 167 00:08:45,080 --> 00:08:46,280 But, as you see, 168 00:08:46,380 --> 00:08:46,820 we can... 169 00:08:46,820 --> 00:08:49,120 we still go through the kernel. 170 00:08:50,680 --> 00:08:52,560 Then, we can try to target 171 00:08:52,560 --> 00:08:53,260 another application. 172 00:08:54,860 --> 00:08:56,840 You see, there are two arrows. 173 00:08:57,160 --> 00:08:58,980 The arrow number 10 174 00:08:59,780 --> 00:09:02,440 can't exist on architecture 175 00:09:02,440 --> 00:09:04,900 with a real memory management unit 176 00:09:04,900 --> 00:09:07,220 because it's not permitted in protected world. 177 00:09:08,340 --> 00:09:10,720 You can try to target the kernel 178 00:09:10,720 --> 00:09:13,340 because the kernel is a target, too. 179 00:09:13,340 --> 00:09:15,140 And we have to protect it. 180 00:09:16,760 --> 00:09:18,260 So, we have seen that 181 00:09:18,260 --> 00:09:19,800 there are a lot of paths 182 00:09:19,800 --> 00:09:23,960 to reach a target. 183 00:09:24,280 --> 00:09:26,040 And, in fact, 184 00:09:26,900 --> 00:09:30,060 the fact we have a small perimeter 185 00:09:30,060 --> 00:09:30,680 to defend 186 00:09:32,500 --> 00:09:34,700 makes that we have 187 00:09:35,340 --> 00:09:38,840 not so many paths to protect. 188 00:09:39,880 --> 00:09:42,840 First, we will rely on an hypothesis 189 00:09:43,340 --> 00:09:46,280 is that we have an interface without bugs 190 00:09:46,280 --> 00:09:48,020 that does not exist, 191 00:09:48,180 --> 00:09:49,560 but it's an hypothesis 192 00:09:49,560 --> 00:09:52,460 and we must do that to carry on. 193 00:09:53,020 --> 00:09:54,760 And, for example, 194 00:09:55,480 --> 00:09:57,440 as an hypothesis, we say that 195 00:09:58,310 --> 00:10:00,380 each key you type on your keyboard 196 00:10:00,380 --> 00:10:01,540 will go through the kernel 197 00:10:01,540 --> 00:10:04,200 before giving an order to an application. 198 00:10:04,620 --> 00:10:07,400 And we will have as an hypothesis 199 00:10:07,400 --> 00:10:09,800 that typing on the kernel 200 00:10:09,800 --> 00:10:11,760 can't make you take the control 201 00:10:11,760 --> 00:10:12,600 of the kernel. 202 00:10:15,680 --> 00:10:17,780 Then, we have some defense 203 00:10:17,780 --> 00:10:18,760 to achieve. 204 00:10:20,160 --> 00:10:21,760 Attacks to the kernel 205 00:10:21,760 --> 00:10:23,120 can go through 206 00:10:24,020 --> 00:10:26,000 devmem or devkmem 207 00:10:26,450 --> 00:10:28,900 or insert loading modules 208 00:10:28,900 --> 00:10:29,820 into kernel space. 209 00:10:30,560 --> 00:10:33,720 There are other ways to do so. 210 00:10:33,740 --> 00:10:34,720 We will see later. 211 00:10:34,960 --> 00:10:37,880 And then, if you want to filter 212 00:10:39,820 --> 00:10:40,920 access to 213 00:10:41,760 --> 00:10:44,300 I don't know, to storage media, 214 00:10:45,040 --> 00:10:46,620 as you can see, 215 00:10:46,760 --> 00:10:48,140 everything goes through the kernel. 216 00:10:48,260 --> 00:10:51,060 So, the kernel is a good place to filter that. 217 00:10:52,720 --> 00:10:55,560 So, a little parenthesis 218 00:10:55,560 --> 00:10:57,460 about the bugless interface 219 00:10:57,460 --> 00:11:00,820 is something that's a little my opinion 220 00:11:02,240 --> 00:11:05,460 because the mechanism you use 221 00:11:05,460 --> 00:11:07,800 to do kernel programming 222 00:11:07,800 --> 00:11:11,600 make it harder 223 00:11:11,760 --> 00:11:12,900 to do programming, 224 00:11:13,080 --> 00:11:14,720 classical programming faults. 225 00:11:15,380 --> 00:11:17,420 But bugs are still possible, 226 00:11:17,640 --> 00:11:19,280 other classes of bugs. 227 00:11:19,460 --> 00:11:21,480 But, in fact, 228 00:11:22,560 --> 00:11:24,700 we did not have seen 229 00:11:24,700 --> 00:11:25,660 a lot of vulnerabilities 230 00:11:25,660 --> 00:11:27,340 on kernels. 231 00:11:29,280 --> 00:11:32,440 So, the hypothesis is not true, 232 00:11:32,640 --> 00:11:34,680 but valid for us. 233 00:11:36,600 --> 00:11:38,140 Then, how to protect 234 00:11:39,300 --> 00:11:40,640 the kernel space 235 00:11:40,640 --> 00:11:42,080 when there is someone, 236 00:11:42,760 --> 00:11:44,200 when there is an intruder 237 00:11:44,200 --> 00:11:45,740 in user space? 238 00:11:46,060 --> 00:11:47,400 We have to block every 239 00:11:47,400 --> 00:11:50,960 to protect every 240 00:11:50,960 --> 00:11:52,860 from user space to kernel space. 241 00:11:53,520 --> 00:11:55,280 There are few of them 242 00:11:55,280 --> 00:11:56,860 and they are all 243 00:11:59,180 --> 00:12:00,420 granted by the kernel. 244 00:12:00,560 --> 00:12:01,860 So, that's easy to block them. 245 00:12:04,740 --> 00:12:06,400 For example, this is 246 00:12:06,400 --> 00:12:07,960 some kind of 247 00:12:08,590 --> 00:12:09,380 some source code 248 00:12:09,380 --> 00:12:10,480 from the Linux kernel. 249 00:12:10,880 --> 00:12:13,040 You just have to return 250 00:12:14,680 --> 00:12:16,360 minus eperm to block 251 00:12:17,620 --> 00:12:19,060 slash dev slash mem 252 00:12:19,060 --> 00:12:20,380 slash dev slash kmem 253 00:12:20,380 --> 00:12:21,520 or slash dev slash port. 254 00:12:22,040 --> 00:12:23,380 So, it's very easy 255 00:12:23,380 --> 00:12:25,280 to hack into the code 256 00:12:25,280 --> 00:12:27,160 and block this kind of entry points. 257 00:12:27,820 --> 00:12:29,680 The same for the module insertion. 258 00:12:29,820 --> 00:12:31,220 You just have to return 259 00:12:31,220 --> 00:12:32,520 minus eperm 260 00:12:32,520 --> 00:12:35,100 and this entry point is blocked. 261 00:12:35,300 --> 00:12:36,960 So, that's very easy to do. 262 00:12:38,600 --> 00:12:40,040 Or to control. 263 00:12:41,540 --> 00:12:42,640 And then, 264 00:12:42,740 --> 00:12:45,740 if we want to filter things, 265 00:12:47,640 --> 00:12:48,960 we must protect. 266 00:12:49,700 --> 00:12:52,960 We have to know 267 00:12:52,960 --> 00:12:54,060 what we want to protect. 268 00:12:54,380 --> 00:12:56,780 We have a few classes of things 269 00:12:56,780 --> 00:12:57,620 we want to protect. 270 00:12:57,760 --> 00:12:59,500 It's what's on memory, 271 00:12:59,700 --> 00:13:00,740 what's on disks, 272 00:13:00,920 --> 00:13:03,840 and every programmable hardware 273 00:13:03,840 --> 00:13:06,760 like recent CPUs, 274 00:13:06,960 --> 00:13:08,740 PROMs, BIOS. 275 00:13:09,980 --> 00:13:12,480 All this kind of stuff 276 00:13:12,480 --> 00:13:13,240 can be... 277 00:13:13,960 --> 00:13:15,640 must have... 278 00:13:15,640 --> 00:13:17,800 must be granted by the kernel 279 00:13:17,800 --> 00:13:19,140 to be completed. 280 00:13:21,640 --> 00:13:23,540 So, how to protect that? 281 00:13:24,220 --> 00:13:25,740 We have to... 282 00:13:25,740 --> 00:13:27,960 As every queries are done 283 00:13:27,960 --> 00:13:28,920 through the kernel, 284 00:13:29,100 --> 00:13:31,260 and through system calls 285 00:13:31,260 --> 00:13:32,740 or device calls 286 00:13:32,740 --> 00:13:35,480 or sysctls, 287 00:13:37,200 --> 00:13:41,300 we have to modify their behavior 288 00:13:41,300 --> 00:13:44,200 in a consistent manner 289 00:13:44,840 --> 00:13:48,820 to enforce security policy. 290 00:13:50,420 --> 00:13:53,080 So, a good way to use 291 00:13:53,080 --> 00:13:56,000 is to use modular architecture 292 00:13:56,000 --> 00:13:57,340 to control kernel calls 293 00:13:57,960 --> 00:14:00,060 because there are a lot of 294 00:14:00,060 --> 00:14:02,180 access control policies 295 00:14:02,820 --> 00:14:05,800 and our aim is to try to enforce 296 00:14:05,800 --> 00:14:08,060 control policies that is... 297 00:14:08,920 --> 00:14:09,960 that is... 298 00:14:10,860 --> 00:14:12,020 that is... 299 00:14:12,800 --> 00:14:15,360 I mean, you have a security policy 300 00:14:15,360 --> 00:14:17,180 and the security policy 301 00:14:17,800 --> 00:14:20,500 will say you which access control 302 00:14:20,500 --> 00:14:22,340 policy you have to implement. 303 00:14:22,940 --> 00:14:24,820 As there are a lot, 304 00:14:24,920 --> 00:14:26,480 we try to be modular 305 00:14:26,480 --> 00:14:28,500 and to, for example, 306 00:14:28,500 --> 00:14:29,420 in a system call, 307 00:14:29,600 --> 00:14:32,000 we try to put and enforce a code. 308 00:14:32,840 --> 00:14:35,220 So, it's a component that will... 309 00:14:35,800 --> 00:14:36,860 go into the system call 310 00:14:36,860 --> 00:14:38,620 and the enforcer component 311 00:14:38,620 --> 00:14:40,260 will ask the decider component 312 00:14:42,000 --> 00:14:43,520 if access must... 313 00:14:43,520 --> 00:14:44,680 can be granted or not. 314 00:14:45,000 --> 00:14:47,140 And it's the decider component 315 00:14:47,140 --> 00:14:49,160 that implements the access control policy 316 00:14:49,160 --> 00:14:51,300 and you can change it 317 00:14:51,300 --> 00:14:52,400 as you want. 318 00:14:52,600 --> 00:14:53,880 So, it's a way to do so. 319 00:14:54,580 --> 00:14:55,680 And it's a way 320 00:14:56,640 --> 00:14:58,460 almost every software that 321 00:14:58,460 --> 00:15:00,020 do this kind of stuff works. 322 00:15:01,660 --> 00:15:03,160 So, how to add 323 00:15:03,160 --> 00:15:04,740 the enforcer code 324 00:15:04,740 --> 00:15:06,720 in a system call, for example, 325 00:15:06,720 --> 00:15:08,400 because you have to do so in... 326 00:15:08,400 --> 00:15:10,980 in device calls, too. 327 00:15:12,860 --> 00:15:14,780 You have two ways of doing so. 328 00:15:14,860 --> 00:15:15,980 For example, we have... 329 00:15:17,880 --> 00:15:20,380 we have the anatomy of system call. 330 00:15:20,520 --> 00:15:21,440 You have an application 331 00:15:21,440 --> 00:15:24,600 that asks for a specific system call. 332 00:15:25,680 --> 00:15:27,160 The instruction pointer 333 00:15:27,160 --> 00:15:28,880 will go through a dispatching code 334 00:15:28,880 --> 00:15:29,580 that will decide 335 00:15:29,580 --> 00:15:31,360 which system call 336 00:15:32,100 --> 00:15:33,340 has been called, 337 00:15:33,340 --> 00:15:35,900 then give on to the system call 338 00:15:35,900 --> 00:15:37,160 that will do its job, 339 00:15:37,340 --> 00:15:39,620 and then go back to the dispatching code 340 00:15:39,620 --> 00:15:41,120 that will give the on back 341 00:15:41,120 --> 00:15:42,880 to the application with the result. 342 00:15:43,540 --> 00:15:45,380 So, we have two ways 343 00:15:45,380 --> 00:15:45,880 to... 344 00:15:47,360 --> 00:15:48,660 to modify things. 345 00:15:49,060 --> 00:15:51,980 Either we patch the dispatching code 346 00:15:51,980 --> 00:15:53,160 and we go... 347 00:15:53,160 --> 00:15:55,400 we catch every calls 348 00:15:55,400 --> 00:15:57,080 to a system call in one patch, 349 00:15:57,300 --> 00:15:59,040 or we patch 350 00:15:59,040 --> 00:16:01,400 every system call, 351 00:16:01,480 --> 00:16:02,580 for example, open 352 00:16:03,340 --> 00:16:03,740 or kill, 353 00:16:03,960 --> 00:16:05,700 or things like that. 354 00:16:07,190 --> 00:16:08,720 So, an example of 355 00:16:09,340 --> 00:16:10,880 system call interception. 356 00:16:12,150 --> 00:16:13,060 It's about... 357 00:16:13,060 --> 00:16:13,380 It's... 358 00:16:13,380 --> 00:16:16,040 The code comes from Medusa DS9. 359 00:16:17,030 --> 00:16:18,880 So, they put some... 360 00:16:18,880 --> 00:16:20,420 a small piece of code 361 00:16:20,420 --> 00:16:23,000 in the dispatching code 362 00:16:23,000 --> 00:16:24,760 that call their own 363 00:16:26,360 --> 00:16:28,040 access control method 364 00:16:28,040 --> 00:16:31,060 that will try to decide 365 00:16:31,060 --> 00:16:31,660 which... 366 00:16:31,660 --> 00:16:33,300 if the system calls 367 00:16:33,300 --> 00:16:34,420 that have been asked for 368 00:16:34,420 --> 00:16:37,440 can be executed or not. 369 00:16:39,020 --> 00:16:40,980 So, there are some advantages. 370 00:16:41,280 --> 00:16:42,520 It's a very general system. 371 00:16:42,880 --> 00:16:44,400 And it's a low-cost patch. 372 00:16:44,540 --> 00:16:45,360 As you see, 373 00:16:45,420 --> 00:16:46,240 with only these 374 00:16:46,240 --> 00:16:48,020 ten lines of assembly, 375 00:16:48,900 --> 00:16:50,640 you have intercepted 376 00:16:50,640 --> 00:16:51,720 every system call 377 00:16:51,720 --> 00:16:52,740 in the kernel. 378 00:16:53,180 --> 00:16:54,580 The drawback is that 379 00:16:54,580 --> 00:16:56,620 you have some kind of 380 00:16:56,620 --> 00:16:58,300 duplication of every system call 381 00:16:58,300 --> 00:17:00,420 because each time you... 382 00:17:00,420 --> 00:17:01,100 you... 383 00:17:01,100 --> 00:17:02,400 an application asks 384 00:17:02,400 --> 00:17:03,500 for a syscall, 385 00:17:04,220 --> 00:17:05,500 the code of Medusa 386 00:17:05,500 --> 00:17:06,340 will be executed. 387 00:17:06,640 --> 00:17:07,740 And then, 388 00:17:08,420 --> 00:17:09,780 it's another drawback, 389 00:17:09,880 --> 00:17:10,180 is that 390 00:17:11,860 --> 00:17:14,200 the Medusa function 391 00:17:14,200 --> 00:17:15,740 has to know 392 00:17:15,740 --> 00:17:17,140 which system call it was, 393 00:17:17,360 --> 00:17:18,860 try to decode parameters, 394 00:17:19,360 --> 00:17:20,740 try to check 395 00:17:20,740 --> 00:17:21,660 if there are no... 396 00:17:22,500 --> 00:17:23,220 no... 397 00:17:24,220 --> 00:17:25,540 error in the parameters 398 00:17:25,540 --> 00:17:26,900 to interpret it correctly. 399 00:17:27,440 --> 00:17:29,360 And another problem is that 400 00:17:29,360 --> 00:17:30,220 it's architecture 401 00:17:30,420 --> 00:17:30,680 dependent, 402 00:17:31,100 --> 00:17:33,040 at least on Linux. 403 00:17:33,260 --> 00:17:34,160 I think in BSD, 404 00:17:34,280 --> 00:17:36,460 it's not so architecture dependent, 405 00:17:36,720 --> 00:17:37,720 but it's... 406 00:17:38,260 --> 00:17:39,400 it's a drawback on Linux. 407 00:17:41,720 --> 00:17:43,640 Another example is about 408 00:17:43,640 --> 00:17:45,600 a system call modification. 409 00:17:46,060 --> 00:17:47,140 For example, 410 00:17:47,160 --> 00:17:48,140 from LIDS, 411 00:17:49,200 --> 00:17:50,440 you have a function, 412 00:17:50,600 --> 00:17:52,800 and then you just patch it 413 00:17:53,420 --> 00:17:53,820 to... 414 00:17:54,700 --> 00:17:56,020 to do the check 415 00:17:56,020 --> 00:17:56,760 to call the... 416 00:17:57,160 --> 00:17:58,280 the decider component. 417 00:17:59,260 --> 00:18:00,400 What we can say 418 00:18:00,420 --> 00:18:00,820 is that 419 00:18:01,220 --> 00:18:02,440 the decider component 420 00:18:03,640 --> 00:18:05,640 can take arguments 421 00:18:06,320 --> 00:18:08,000 from parameters 422 00:18:08,000 --> 00:18:09,160 that have been checked 423 00:18:09,160 --> 00:18:10,260 and decode... 424 00:18:10,260 --> 00:18:11,160 decoded, 425 00:18:11,180 --> 00:18:11,720 so that 426 00:18:12,400 --> 00:18:13,960 you don't have to do twice 427 00:18:13,960 --> 00:18:14,640 these checks 428 00:18:14,640 --> 00:18:15,480 and decoding, 429 00:18:15,600 --> 00:18:17,420 and you can put 430 00:18:17,420 --> 00:18:17,900 the... 431 00:18:17,900 --> 00:18:19,260 the code 432 00:18:19,260 --> 00:18:20,720 everywhere you want, 433 00:18:22,160 --> 00:18:23,460 so that it's very... 434 00:18:23,460 --> 00:18:24,300 more powerful. 435 00:18:26,560 --> 00:18:27,280 So, 436 00:18:27,440 --> 00:18:29,460 you have great tuning power, 437 00:18:29,460 --> 00:18:31,020 because you can alter the code 438 00:18:31,020 --> 00:18:31,400 to do 439 00:18:31,400 --> 00:18:33,180 almost everything you want, 440 00:18:33,820 --> 00:18:35,140 to modify the... 441 00:18:35,140 --> 00:18:35,760 even the... 442 00:18:35,760 --> 00:18:36,980 you can even modify 443 00:18:36,980 --> 00:18:37,480 the behavior 444 00:18:37,480 --> 00:18:38,400 of the system call. 445 00:18:38,800 --> 00:18:39,780 For example, 446 00:18:41,220 --> 00:18:41,820 transform... 447 00:18:41,820 --> 00:18:42,820 transforming it 448 00:18:42,820 --> 00:18:43,940 to something that's 449 00:18:43,940 --> 00:18:45,620 not so compliant, 450 00:18:45,820 --> 00:18:46,980 but that's more secure. 451 00:18:48,200 --> 00:18:48,500 And... 452 00:18:50,180 --> 00:18:51,140 drawback is that 453 00:18:51,140 --> 00:18:51,740 you have 454 00:18:53,000 --> 00:18:53,600 about 455 00:18:53,600 --> 00:18:54,840 2,000 456 00:18:54,840 --> 00:18:55,880 system calls, 457 00:18:56,080 --> 00:18:57,520 and a lot of them 458 00:18:57,520 --> 00:18:58,560 have to be patched, 459 00:18:58,560 --> 00:18:59,440 and they are 460 00:18:59,460 --> 00:19:00,120 have to be patched 461 00:19:00,120 --> 00:19:01,540 in a consistent manner 462 00:19:01,540 --> 00:19:02,080 to... 463 00:19:02,080 --> 00:19:03,920 to reach 464 00:19:03,920 --> 00:19:06,880 a consistent security policy. 465 00:19:08,420 --> 00:19:09,100 So, 466 00:19:09,240 --> 00:19:10,940 something that will be 467 00:19:10,940 --> 00:19:12,280 soon in kernel 468 00:19:12,280 --> 00:19:14,860 is the Linux security modules. 469 00:19:15,220 --> 00:19:15,880 So, 470 00:19:15,960 --> 00:19:16,440 in fact, 471 00:19:17,320 --> 00:19:18,520 Linux security module 472 00:19:18,520 --> 00:19:19,180 is a patch 473 00:19:19,180 --> 00:19:20,040 to the Linux kernel, 474 00:19:20,180 --> 00:19:21,280 and it's only 475 00:19:21,280 --> 00:19:22,160 the... 476 00:19:22,160 --> 00:19:24,180 the enforcer component. 477 00:19:25,780 --> 00:19:26,880 For example, 478 00:19:26,920 --> 00:19:27,900 it's a yellow line. 479 00:19:28,100 --> 00:19:28,780 It's... 480 00:19:29,460 --> 00:19:30,420 it has been put 481 00:19:30,420 --> 00:19:31,040 in a... 482 00:19:31,040 --> 00:19:32,240 in a... 483 00:19:32,240 --> 00:19:33,020 in a specific 484 00:19:33,020 --> 00:19:34,760 part of the system call, 485 00:19:34,920 --> 00:19:36,620 and it's just a call 486 00:19:36,620 --> 00:19:37,160 to a... 487 00:19:37,160 --> 00:19:38,220 to a decider component. 488 00:19:38,580 --> 00:19:40,120 And the decider component 489 00:19:40,120 --> 00:19:41,720 can be everything. 490 00:19:41,980 --> 00:19:42,700 It can be leads. 491 00:19:42,760 --> 00:19:43,600 It can be security 492 00:19:43,600 --> 00:19:43,900 Linux. 493 00:19:44,780 --> 00:19:46,120 It can be everything 494 00:19:46,120 --> 00:19:46,600 that... 495 00:19:46,600 --> 00:19:48,340 that is conformant 496 00:19:48,340 --> 00:19:48,840 to... 497 00:19:49,460 --> 00:19:50,140 to the... 498 00:19:50,140 --> 00:19:50,940 the way... 499 00:19:52,400 --> 00:19:52,960 the... 500 00:19:52,960 --> 00:19:53,220 the... 501 00:19:53,220 --> 00:19:53,500 the... 502 00:19:53,500 --> 00:19:54,860 the way 503 00:19:54,860 --> 00:19:56,160 the communication 504 00:19:56,160 --> 00:19:57,000 is... 505 00:19:57,000 --> 00:19:57,720 has been decided 506 00:19:57,720 --> 00:19:58,160 to be 507 00:19:59,460 --> 00:20:00,440 in the enforcer component. 508 00:20:01,260 --> 00:20:02,140 The name 509 00:20:02,140 --> 00:20:03,640 Linux security modules 510 00:20:04,310 --> 00:20:05,060 by modules 511 00:20:05,060 --> 00:20:05,860 you have to understand 512 00:20:05,860 --> 00:20:06,340 modular 513 00:20:06,340 --> 00:20:07,360 because 514 00:20:08,170 --> 00:20:09,080 that means that... 515 00:20:09,080 --> 00:20:10,440 that only means 516 00:20:10,440 --> 00:20:11,560 that you can have 517 00:20:11,560 --> 00:20:12,260 a... 518 00:20:13,100 --> 00:20:14,360 a lot of 519 00:20:14,360 --> 00:20:15,220 decider components. 520 00:20:18,250 --> 00:20:18,560 Then, 521 00:20:18,820 --> 00:20:19,620 we will see some 522 00:20:20,720 --> 00:20:21,340 implementations 523 00:20:22,320 --> 00:20:23,400 that ex... 524 00:20:23,400 --> 00:20:24,160 that exist. 525 00:20:24,360 --> 00:20:24,540 So, 526 00:20:24,620 --> 00:20:26,300 there are a lot of projects 527 00:20:26,300 --> 00:20:27,540 that do security 528 00:20:27,540 --> 00:20:28,500 at the kernel level. 529 00:20:28,820 --> 00:20:29,440 So, 530 00:20:29,460 --> 00:20:30,540 OpenWall is, 531 00:20:30,660 --> 00:20:31,220 I think, 532 00:20:31,280 --> 00:20:32,060 one of the... 533 00:20:32,060 --> 00:20:32,940 the orders. 534 00:20:33,300 --> 00:20:34,560 Maybe there are all of them, 535 00:20:34,580 --> 00:20:34,840 but I... 536 00:20:34,840 --> 00:20:35,520 I don't know. 537 00:20:35,980 --> 00:20:36,980 GR Security, 538 00:20:37,420 --> 00:20:37,940 LIDS, 539 00:20:38,220 --> 00:20:39,020 Medusa DS9, 540 00:20:39,260 --> 00:20:39,840 RSBAC, 541 00:20:40,540 --> 00:20:41,140 LOMAC, 542 00:20:41,380 --> 00:20:42,380 Security Nance Linux, 543 00:20:42,640 --> 00:20:43,740 and there are lots too. 544 00:20:44,280 --> 00:20:44,900 There are... 545 00:20:45,320 --> 00:20:46,220 They all work 546 00:20:46,220 --> 00:20:47,420 on Linux kernels. 547 00:20:47,560 --> 00:20:48,700 There are others 548 00:20:48,700 --> 00:20:49,140 that work 549 00:20:49,140 --> 00:20:49,920 on BSD 550 00:20:49,920 --> 00:20:50,860 like Systrace. 551 00:20:52,600 --> 00:20:53,200 So, 552 00:20:53,300 --> 00:20:53,960 OpenWall 553 00:20:53,960 --> 00:20:54,520 is not 554 00:20:54,520 --> 00:20:55,000 really 555 00:20:55,000 --> 00:20:56,640 what I've presented. 556 00:20:56,800 --> 00:20:57,580 That is... 557 00:20:57,580 --> 00:20:58,640 It's not 558 00:20:58,640 --> 00:20:59,000 something 559 00:20:59,460 --> 00:20:59,960 to do 560 00:20:59,960 --> 00:21:00,660 access control 561 00:21:00,660 --> 00:21:01,160 in the... 562 00:21:01,160 --> 00:21:02,120 in the kernel. 563 00:21:02,300 --> 00:21:02,780 It's only 564 00:21:02,780 --> 00:21:04,400 a collection 565 00:21:04,400 --> 00:21:05,540 of security-related 566 00:21:06,360 --> 00:21:06,740 features. 567 00:21:07,500 --> 00:21:08,720 For example, 568 00:21:08,780 --> 00:21:09,140 there are 569 00:21:09,140 --> 00:21:09,580 some... 570 00:21:09,580 --> 00:21:11,040 the famous 571 00:21:11,040 --> 00:21:12,100 non-executable 572 00:21:12,100 --> 00:21:13,460 user stack array 573 00:21:13,460 --> 00:21:14,940 and other things 574 00:21:14,940 --> 00:21:15,660 related 575 00:21:15,660 --> 00:21:16,440 to security. 576 00:21:17,780 --> 00:21:19,080 GR Security, 577 00:21:19,300 --> 00:21:19,720 it's... 578 00:21:20,720 --> 00:21:21,920 has begun 579 00:21:21,920 --> 00:21:22,240 with 580 00:21:22,240 --> 00:21:23,940 the patch... 581 00:21:23,940 --> 00:21:25,100 passing 582 00:21:25,100 --> 00:21:25,600 the patch 583 00:21:25,600 --> 00:21:25,860 from 584 00:21:25,860 --> 00:21:26,420 OpenWall 585 00:21:26,420 --> 00:21:27,420 to 2.4 586 00:21:27,420 --> 00:21:27,800 kernels. 587 00:21:28,100 --> 00:21:29,180 And then, 588 00:21:29,180 --> 00:21:29,440 the... 589 00:21:29,460 --> 00:21:30,160 they added 590 00:21:30,160 --> 00:21:31,760 an ACL system, 591 00:21:32,040 --> 00:21:32,620 which was 592 00:21:32,620 --> 00:21:33,020 called 593 00:21:33,020 --> 00:21:33,780 Oblivion. 594 00:21:34,300 --> 00:21:34,700 Then, 595 00:21:34,780 --> 00:21:35,120 they switched 596 00:21:35,120 --> 00:21:36,080 to a process-based 597 00:21:36,080 --> 00:21:37,060 system that is 598 00:21:37,060 --> 00:21:37,600 very... 599 00:21:37,600 --> 00:21:38,780 that looks 600 00:21:38,780 --> 00:21:39,200 like 601 00:21:39,200 --> 00:21:40,580 an LIDF system, 602 00:21:40,740 --> 00:21:42,600 ACL system. 603 00:21:42,820 --> 00:21:43,120 They... 604 00:21:43,120 --> 00:21:44,020 They also 605 00:21:44,020 --> 00:21:44,560 implement 606 00:21:44,560 --> 00:21:45,760 PAX, 607 00:21:45,900 --> 00:21:46,320 which is 608 00:21:46,320 --> 00:21:48,140 another patch 609 00:21:48,140 --> 00:21:49,220 for Linux kernel 610 00:21:49,220 --> 00:21:49,640 to... 611 00:21:49,640 --> 00:21:50,840 to protect 612 00:21:50,840 --> 00:21:51,580 user space 613 00:21:51,580 --> 00:21:52,900 from buffer overflows 614 00:21:52,900 --> 00:21:53,820 and other 615 00:21:53,820 --> 00:21:54,940 kind of... 616 00:21:54,940 --> 00:21:56,420 of 617 00:21:56,420 --> 00:21:57,160 bugs 618 00:21:57,160 --> 00:21:57,840 that could 619 00:21:57,840 --> 00:21:59,380 occur in user space, 620 00:21:59,620 --> 00:21:59,940 like 621 00:21:59,940 --> 00:22:00,800 they do 622 00:22:00,800 --> 00:22:02,280 stack address 623 00:22:02,280 --> 00:22:03,020 randomization, 624 00:22:03,160 --> 00:22:03,400 et cetera. 625 00:22:05,280 --> 00:22:05,960 Then, 626 00:22:06,140 --> 00:22:07,020 there is LIDS. 627 00:22:07,160 --> 00:22:08,400 I don't go into details 628 00:22:08,400 --> 00:22:08,700 because 629 00:22:08,700 --> 00:22:09,480 there will be 630 00:22:09,480 --> 00:22:09,960 a presentation 631 00:22:09,960 --> 00:22:10,680 tomorrow. 632 00:22:12,040 --> 00:22:12,720 So, 633 00:22:12,820 --> 00:22:13,320 it does 634 00:22:13,320 --> 00:22:14,160 self-protection 635 00:22:14,160 --> 00:22:14,460 of the... 636 00:22:14,460 --> 00:22:15,640 of the kernel 637 00:22:15,640 --> 00:22:17,180 and LIDS itself, 638 00:22:17,840 --> 00:22:18,560 process protection, 639 00:22:18,840 --> 00:22:19,300 file protection, 640 00:22:19,660 --> 00:22:21,240 some special... 641 00:22:21,240 --> 00:22:22,540 some special features 642 00:22:22,540 --> 00:22:23,580 to do 643 00:22:23,580 --> 00:22:24,220 online administration, 644 00:22:24,560 --> 00:22:25,360 other special features 645 00:22:25,360 --> 00:22:25,800 to do 646 00:22:25,800 --> 00:22:25,900 to... 647 00:22:26,780 --> 00:22:27,820 to be able 648 00:22:27,820 --> 00:22:28,340 to rely 649 00:22:28,340 --> 00:22:29,760 only on 650 00:22:29,760 --> 00:22:30,540 kernel stuff. 651 00:22:30,920 --> 00:22:31,760 For example, 652 00:22:31,820 --> 00:22:32,280 a dedicated 653 00:22:33,060 --> 00:22:33,580 mailer 654 00:22:33,580 --> 00:22:34,140 in the kernel. 655 00:22:34,440 --> 00:22:35,120 I mean, 656 00:22:35,120 --> 00:22:35,860 if you... 657 00:22:36,580 --> 00:22:37,400 if you... 658 00:22:37,400 --> 00:22:37,700 someone 659 00:22:37,700 --> 00:22:38,500 breaks your 660 00:22:38,500 --> 00:22:38,960 send mail, 661 00:22:39,120 --> 00:22:40,180 you can't rely 662 00:22:40,180 --> 00:22:41,060 on it anymore 663 00:22:41,060 --> 00:22:42,180 to send alerts. 664 00:22:42,400 --> 00:22:42,980 So, there is 665 00:22:42,980 --> 00:22:44,540 a kind of 666 00:22:44,540 --> 00:22:44,880 mailer 667 00:22:44,880 --> 00:22:45,720 that works 668 00:22:45,720 --> 00:22:46,880 only in the kernel 669 00:22:46,880 --> 00:22:47,480 and that works 670 00:22:47,480 --> 00:22:47,920 for LIDS. 671 00:22:49,160 --> 00:22:49,680 So, 672 00:22:49,820 --> 00:22:50,300 this is 673 00:22:50,300 --> 00:22:50,900 the way 674 00:22:50,900 --> 00:22:51,360 it works. 675 00:22:51,360 --> 00:22:53,160 I go fast. 676 00:22:55,300 --> 00:22:56,440 Then there is 677 00:22:56,440 --> 00:22:57,340 Medusa DS9, 678 00:22:57,520 --> 00:22:58,260 which has 679 00:22:58,260 --> 00:22:59,560 an interesting concept 680 00:22:59,560 --> 00:23:00,080 that is 681 00:23:02,020 --> 00:23:03,040 there are 682 00:23:03,040 --> 00:23:04,640 a lot of layers 683 00:23:04,640 --> 00:23:05,220 of abstraction 684 00:23:05,220 --> 00:23:06,380 and the 685 00:23:06,380 --> 00:23:07,340 decider component 686 00:23:07,340 --> 00:23:08,580 is in fact 687 00:23:08,580 --> 00:23:09,720 a user space 688 00:23:09,720 --> 00:23:10,220 daemon 689 00:23:11,680 --> 00:23:12,700 which will 690 00:23:12,700 --> 00:23:13,260 decide 691 00:23:13,260 --> 00:23:15,600 in fact 692 00:23:15,600 --> 00:23:16,080 the 693 00:23:17,560 --> 00:23:18,480 enforcer component 694 00:23:18,480 --> 00:23:19,340 will ask 695 00:23:19,340 --> 00:23:20,080 through a device 696 00:23:20,080 --> 00:23:20,420 driver 697 00:23:21,360 --> 00:23:21,760 to 698 00:23:22,660 --> 00:23:23,480 user space 699 00:23:23,480 --> 00:23:23,840 daemon 700 00:23:24,180 --> 00:23:24,920 if something 701 00:23:24,920 --> 00:23:25,900 must be grounded 702 00:23:25,900 --> 00:23:26,320 or not. 703 00:23:26,680 --> 00:23:27,480 And the fact 704 00:23:27,480 --> 00:23:28,260 it's a user space 705 00:23:28,260 --> 00:23:28,600 daemon 706 00:23:28,600 --> 00:23:28,920 make 707 00:23:30,220 --> 00:23:30,860 implementations 708 00:23:30,860 --> 00:23:31,140 of 709 00:23:32,100 --> 00:23:33,060 access control 710 00:23:33,060 --> 00:23:33,500 policies 711 00:23:33,500 --> 00:23:35,220 very easy 712 00:23:35,220 --> 00:23:35,660 to do. 713 00:23:35,780 --> 00:23:36,520 It's just 714 00:23:36,520 --> 00:23:37,540 user space programming. 715 00:23:37,760 --> 00:23:38,260 You can do 716 00:23:38,260 --> 00:23:39,940 it in shell 717 00:23:39,940 --> 00:23:40,440 if you want. 718 00:23:42,060 --> 00:23:42,700 But, 719 00:23:42,820 --> 00:23:43,100 there is 720 00:23:43,100 --> 00:23:43,380 something 721 00:23:43,380 --> 00:23:44,060 in user space. 722 00:23:45,280 --> 00:23:46,500 And Medusa 723 00:23:46,500 --> 00:23:46,960 just... 724 00:23:46,960 --> 00:23:48,200 Medusa rely 725 00:23:48,200 --> 00:23:49,020 on the 726 00:23:49,020 --> 00:23:49,760 system core 727 00:23:49,760 --> 00:23:50,300 interception. 728 00:23:52,740 --> 00:23:53,460 RSBAC 729 00:23:53,460 --> 00:23:53,960 is 730 00:23:55,160 --> 00:23:55,880 something 731 00:23:55,880 --> 00:23:56,360 that's 732 00:23:56,360 --> 00:23:57,060 based on 733 00:23:57,060 --> 00:23:58,160 the GFAC 734 00:23:58,160 --> 00:23:59,160 which is 735 00:23:59,160 --> 00:23:59,820 a generalized 736 00:24:00,700 --> 00:24:01,060 framework 737 00:24:01,060 --> 00:24:02,080 for access control 738 00:24:02,700 --> 00:24:03,300 which is 739 00:24:03,300 --> 00:24:05,660 a kind of 740 00:24:05,660 --> 00:24:06,280 access control. 741 00:24:06,420 --> 00:24:07,060 It's the same 742 00:24:07,060 --> 00:24:07,260 that 743 00:24:07,260 --> 00:24:08,700 it's equivalent 744 00:24:08,700 --> 00:24:09,700 of LSM. 745 00:24:11,880 --> 00:24:13,320 And then there are 746 00:24:13,320 --> 00:24:13,740 a lot of 747 00:24:13,740 --> 00:24:14,580 access control 748 00:24:14,580 --> 00:24:14,980 policies 749 00:24:14,980 --> 00:24:15,600 that have 750 00:24:15,600 --> 00:24:16,360 been implemented 751 00:24:19,020 --> 00:24:19,460 that are 752 00:24:19,940 --> 00:24:20,820 given in 753 00:24:20,820 --> 00:24:21,320 the form 754 00:24:21,320 --> 00:24:21,680 of 755 00:24:22,520 --> 00:24:23,320 loadable 756 00:24:23,820 --> 00:24:24,560 kernel modules. 757 00:24:24,980 --> 00:24:26,280 And there are 758 00:24:26,280 --> 00:24:26,640 a lot of 759 00:24:26,640 --> 00:24:27,980 them 760 00:24:27,980 --> 00:24:28,380 like 761 00:24:29,020 --> 00:24:29,800 control 762 00:24:29,800 --> 00:24:30,260 policy 763 00:24:30,720 --> 00:24:31,740 world control 764 00:24:31,740 --> 00:24:32,640 functional 765 00:24:32,640 --> 00:24:33,180 control. 766 00:24:33,640 --> 00:24:34,040 One 767 00:24:34,800 --> 00:24:35,460 which I 768 00:24:35,460 --> 00:24:35,740 like 769 00:24:35,740 --> 00:24:36,340 a lot 770 00:24:36,340 --> 00:24:37,120 is that 771 00:24:37,120 --> 00:24:37,500 they 772 00:24:37,500 --> 00:24:39,480 have been 773 00:24:39,480 --> 00:24:40,100 able to 774 00:24:40,100 --> 00:24:40,680 implement 775 00:24:40,680 --> 00:24:41,760 malware 776 00:24:41,760 --> 00:24:42,280 scanner 777 00:24:42,280 --> 00:24:43,580 as 778 00:24:43,580 --> 00:24:43,840 a 779 00:24:45,460 --> 00:24:46,260 decided 780 00:24:46,260 --> 00:24:46,600 components 781 00:24:46,600 --> 00:24:47,340 that plug 782 00:24:47,340 --> 00:24:47,960 into the 783 00:24:49,260 --> 00:24:50,060 framework 784 00:24:50,060 --> 00:24:51,480 for access 785 00:24:51,480 --> 00:24:51,920 control. 786 00:24:52,300 --> 00:24:53,100 It's 787 00:24:53,100 --> 00:24:53,320 something 788 00:24:53,320 --> 00:24:53,800 that will 789 00:24:53,800 --> 00:24:54,520 scan every 790 00:24:54,520 --> 00:24:55,760 program 791 00:24:55,760 --> 00:24:56,660 you execute 792 00:24:56,660 --> 00:24:57,840 to check 793 00:24:57,840 --> 00:24:58,480 for virus 794 00:24:58,480 --> 00:24:58,960 or anything. 795 00:24:59,380 --> 00:25:00,240 So in 796 00:25:00,240 --> 00:25:00,820 fact the 797 00:25:02,320 --> 00:25:03,120 decided 798 00:25:03,120 --> 00:25:03,520 component 799 00:25:03,520 --> 00:25:04,080 can be 800 00:25:04,080 --> 00:25:04,420 very 801 00:25:04,420 --> 00:25:05,900 it can 802 00:25:05,900 --> 00:25:07,320 do a 803 00:25:07,320 --> 00:25:07,540 lot of 804 00:25:07,540 --> 00:25:07,820 things. 805 00:25:09,960 --> 00:25:10,760 Another 806 00:25:10,760 --> 00:25:12,180 interesting 807 00:25:12,180 --> 00:25:12,680 thing 808 00:25:12,680 --> 00:25:12,980 is 809 00:25:12,980 --> 00:25:13,440 is low 810 00:25:13,440 --> 00:25:13,640 mark. 811 00:25:15,080 --> 00:25:15,800 It's 812 00:25:15,800 --> 00:25:16,060 something 813 00:25:16,060 --> 00:25:16,860 based on 814 00:25:16,860 --> 00:25:17,900 low 815 00:25:17,900 --> 00:25:18,400 watermark 816 00:25:18,400 --> 00:25:18,700 integrity. 817 00:25:20,200 --> 00:25:20,920 It's 818 00:25:20,920 --> 00:25:21,600 something 819 00:25:21,600 --> 00:25:22,540 I find 820 00:25:22,540 --> 00:25:23,220 very cute. 821 00:25:23,860 --> 00:25:24,260 It's 822 00:25:25,260 --> 00:25:25,980 for 823 00:25:25,980 --> 00:25:26,440 you have 824 00:25:26,440 --> 00:25:27,340 an 825 00:25:27,340 --> 00:25:28,060 initialization 826 00:25:28,060 --> 00:25:29,260 and some 827 00:25:29,260 --> 00:25:29,820 specified 828 00:25:29,820 --> 00:25:30,360 directory 829 00:25:30,360 --> 00:25:31,280 are in 830 00:25:31,280 --> 00:25:31,880 high level 831 00:25:31,880 --> 00:25:32,900 and other 832 00:25:32,900 --> 00:25:33,580 directories 833 00:25:33,580 --> 00:25:34,320 and socket 834 00:25:34,320 --> 00:25:35,100 are low level. 835 00:25:35,320 --> 00:25:35,980 In fact you 836 00:25:35,980 --> 00:25:36,240 have two 837 00:25:36,240 --> 00:25:36,660 conceptual 838 00:25:36,660 --> 00:25:37,180 levels 839 00:25:42,980 --> 00:25:43,180 which 840 00:25:43,860 --> 00:25:44,460 processes 841 00:25:44,460 --> 00:25:44,920 will be 842 00:25:44,920 --> 00:25:45,360 high which 843 00:25:45,360 --> 00:25:45,820 will be 844 00:25:45,820 --> 00:25:46,820 low and 845 00:25:46,820 --> 00:25:47,560 which 846 00:25:47,560 --> 00:25:48,200 processes 847 00:25:48,860 --> 00:25:49,640 can do 848 00:25:49,640 --> 00:25:49,940 what. 849 00:25:50,740 --> 00:25:51,940 So processes 850 00:25:51,940 --> 00:25:52,560 are created 851 00:25:52,560 --> 00:25:52,960 from 852 00:25:54,040 --> 00:25:54,640 high 853 00:25:54,640 --> 00:25:55,800 directory 854 00:25:55,800 --> 00:25:56,260 will be 855 00:25:56,260 --> 00:25:56,500 high. 856 00:25:56,600 --> 00:25:57,000 Processes 857 00:25:57,000 --> 00:25:57,220 created 858 00:25:57,220 --> 00:25:57,540 from 859 00:25:57,540 --> 00:25:57,840 low 860 00:25:57,840 --> 00:25:59,020 directory 861 00:25:59,780 --> 00:26:00,540 will be 862 00:26:00,540 --> 00:26:00,780 low. 863 00:26:01,640 --> 00:26:02,240 High 864 00:26:02,240 --> 00:26:03,340 process 865 00:26:03,340 --> 00:26:03,860 can read 866 00:26:03,860 --> 00:26:04,400 file 867 00:26:04,400 --> 00:26:04,780 in 868 00:26:04,780 --> 00:26:04,980 high 869 00:26:13,140 --> 00:26:13,780 file 870 00:26:13,780 --> 00:26:14,560 it will 871 00:26:14,560 --> 00:26:14,880 become 872 00:26:14,880 --> 00:26:15,360 low. 873 00:26:16,940 --> 00:26:17,940 So that's 874 00:26:19,500 --> 00:26:20,140 that's 875 00:26:20,140 --> 00:26:20,660 that's 876 00:26:20,660 --> 00:26:20,980 that's 877 00:26:21,560 --> 00:26:21,960 cute I 878 00:26:21,960 --> 00:26:22,120 find. 879 00:26:22,280 --> 00:26:23,360 But there are 880 00:26:23,360 --> 00:26:24,080 some exceptions 881 00:26:24,080 --> 00:26:25,060 because something 882 00:26:25,060 --> 00:26:25,520 like that 883 00:26:25,520 --> 00:26:26,080 can't work. 884 00:26:26,460 --> 00:26:27,500 There must 885 00:26:27,500 --> 00:26:28,460 be exceptions 886 00:26:28,460 --> 00:26:29,120 for example 887 00:26:29,120 --> 00:26:30,680 processes must 888 00:26:30,680 --> 00:26:31,560 write to 889 00:26:31,560 --> 00:26:32,000 syslog 890 00:26:32,000 --> 00:26:33,000 your logs 891 00:26:33,000 --> 00:26:33,440 must be 892 00:26:33,440 --> 00:26:33,920 high so 893 00:26:33,920 --> 00:26:34,520 the syslog 894 00:26:34,520 --> 00:26:34,800 daemon 895 00:26:34,800 --> 00:26:35,140 must be 896 00:26:35,140 --> 00:26:35,960 high but 897 00:26:35,960 --> 00:26:36,300 it must 898 00:26:36,300 --> 00:26:36,780 read something 899 00:26:37,380 --> 00:26:38,160 which is 900 00:26:38,160 --> 00:26:38,740 low because 901 00:26:38,740 --> 00:26:39,240 the low 902 00:26:39,240 --> 00:26:39,620 socket 903 00:26:39,620 --> 00:26:40,380 because 904 00:26:40,380 --> 00:26:41,020 every 905 00:26:41,020 --> 00:26:41,940 process 906 00:26:41,940 --> 00:26:42,920 must write 907 00:26:42,920 --> 00:26:43,380 into the 908 00:26:43,380 --> 00:26:43,660 log 909 00:26:43,660 --> 00:26:44,000 socket 910 00:26:44,600 --> 00:26:45,360 and so 911 00:26:45,360 --> 00:26:45,640 that 912 00:26:45,640 --> 00:26:46,240 syslog 913 00:26:46,240 --> 00:26:46,620 have to 914 00:26:46,620 --> 00:26:46,880 read 915 00:26:46,880 --> 00:26:47,080 a 916 00:26:47,080 --> 00:26:47,480 socket 917 00:26:47,480 --> 00:26:47,820 that is 918 00:26:47,820 --> 00:26:48,040 low. 919 00:26:48,460 --> 00:26:49,580 There must 920 00:26:49,580 --> 00:26:49,880 be 921 00:26:49,880 --> 00:26:50,360 some 922 00:26:50,360 --> 00:26:50,820 exception 923 00:26:50,820 --> 00:26:51,440 to make 924 00:26:51,440 --> 00:26:51,740 the model 925 00:26:51,740 --> 00:26:52,020 work. 926 00:26:53,860 --> 00:26:54,420 Then 927 00:26:54,420 --> 00:26:55,740 Security Nance 928 00:26:55,960 --> 00:26:56,580 Linux is 929 00:26:57,120 --> 00:26:57,560 something 930 00:26:57,560 --> 00:26:58,120 that 931 00:26:58,120 --> 00:26:59,660 that is 932 00:26:59,660 --> 00:27:01,600 I find 933 00:27:01,600 --> 00:27:01,760 that 934 00:27:01,760 --> 00:27:02,480 Lomax is 935 00:27:02,480 --> 00:27:03,660 the little 936 00:27:03,660 --> 00:27:04,280 brother of 937 00:27:04,280 --> 00:27:04,960 Security Nance 938 00:27:04,960 --> 00:27:06,360 Linux and 939 00:27:06,360 --> 00:27:07,240 it's based 940 00:27:07,240 --> 00:27:07,880 on a 941 00:27:08,140 --> 00:27:09,180 very old 942 00:27:09,180 --> 00:27:11,540 not old 943 00:27:11,540 --> 00:27:11,820 but 944 00:27:11,820 --> 00:27:12,680 something 945 00:27:12,680 --> 00:27:13,300 that is 946 00:27:13,300 --> 00:27:13,980 10 years 947 00:27:13,980 --> 00:27:14,320 old. 948 00:27:15,200 --> 00:27:15,840 The Flask 949 00:27:15,840 --> 00:27:16,680 architecture is 950 00:27:16,680 --> 00:27:17,360 10 years old. 951 00:27:17,420 --> 00:27:17,660 They have 952 00:27:17,660 --> 00:27:18,260 worked a lot 953 00:27:18,260 --> 00:27:18,960 on it 954 00:27:18,960 --> 00:27:20,100 and 955 00:27:20,880 --> 00:27:21,780 there is 956 00:27:21,780 --> 00:27:22,580 also an 957 00:27:24,420 --> 00:27:24,920 where 958 00:27:24,920 --> 00:27:25,300 no 959 00:27:25,300 --> 00:27:26,120 Security Nance 960 00:27:26,120 --> 00:27:26,400 Linux 961 00:27:26,400 --> 00:27:27,660 can work 962 00:27:27,660 --> 00:27:28,080 on top 963 00:27:28,080 --> 00:27:28,440 of the 964 00:27:28,440 --> 00:27:28,840 Linux 965 00:27:28,840 --> 00:27:29,280 Security 966 00:27:29,280 --> 00:27:29,680 modules 967 00:27:29,680 --> 00:27:30,760 and 968 00:27:30,760 --> 00:27:32,080 not 969 00:27:32,080 --> 00:27:32,440 like 970 00:27:32,440 --> 00:27:32,980 the 971 00:27:32,980 --> 00:27:33,760 other 972 00:27:33,760 --> 00:27:34,220 project 973 00:27:34,220 --> 00:27:35,100 they 974 00:27:35,100 --> 00:27:35,400 have 975 00:27:35,400 --> 00:27:36,380 worked 976 00:27:36,380 --> 00:27:36,940 on two 977 00:27:36,940 --> 00:27:38,000 revocations 978 00:27:38,000 --> 00:27:38,400 that is 979 00:27:38,400 --> 00:27:38,560 if 980 00:27:38,560 --> 00:27:38,660 you 981 00:27:38,660 --> 00:27:39,060 change 982 00:27:39,060 --> 00:27:39,820 the 983 00:27:39,820 --> 00:27:40,040 write 984 00:27:40,040 --> 00:27:40,160 of 985 00:27:40,160 --> 00:27:40,240 the 986 00:27:40,240 --> 00:27:40,520 process 987 00:27:40,520 --> 00:27:41,100 that has 988 00:27:41,800 --> 00:27:42,480 already 989 00:27:42,480 --> 00:27:43,060 been 990 00:27:43,060 --> 00:27:43,520 launched 991 00:27:43,520 --> 00:27:44,400 the 992 00:27:44,400 --> 00:27:44,800 write will 993 00:27:44,800 --> 00:27:45,020 be 994 00:27:46,360 --> 00:27:47,040 propagated 995 00:27:47,040 --> 00:27:47,680 to already 996 00:27:47,680 --> 00:27:47,960 running 997 00:27:47,960 --> 00:27:48,380 process 998 00:27:48,380 --> 00:27:49,020 and 999 00:27:49,020 --> 00:27:49,620 they will 1000 00:27:49,620 --> 00:27:49,700 be 1001 00:27:49,700 --> 00:27:50,140 propagated 1002 00:27:50,140 --> 00:27:50,460 right. 1003 00:27:53,100 --> 00:27:53,780 At 1004 00:27:53,780 --> 00:27:54,120 last 1005 00:27:54,120 --> 00:27:54,420 the 1006 00:27:54,420 --> 00:27:54,740 Linux 1007 00:27:54,740 --> 00:27:54,980 Security 1008 00:27:54,980 --> 00:27:55,300 modules 1009 00:27:55,300 --> 00:27:56,500 they will 1010 00:27:56,500 --> 00:27:56,680 be 1011 00:27:56,680 --> 00:27:57,040 included 1012 00:27:57,040 --> 00:27:57,420 very 1013 00:27:57,420 --> 00:27:57,740 soon 1014 00:27:57,740 --> 00:27:58,100 and 1015 00:28:10,160 --> 00:28:10,260 you can 1016 00:28:10,260 --> 00:28:10,500 test control 1017 00:28:10,500 --> 00:28:10,960 policies 1018 00:28:10,960 --> 00:28:11,680 as you 1019 00:28:11,680 --> 00:28:11,960 want 1020 00:28:11,960 --> 00:28:12,660 and 1021 00:28:12,660 --> 00:28:12,860 you 1022 00:28:12,860 --> 00:28:13,380 don't 1023 00:28:13,380 --> 00:28:13,640 have 1024 00:28:13,640 --> 00:28:13,880 to 1025 00:28:13,880 --> 00:28:14,400 compile 1026 00:28:14,400 --> 00:28:14,640 them 1027 00:28:14,640 --> 00:28:15,180 as modules 1028 00:28:15,180 --> 00:28:16,000 as the 1029 00:28:16,000 --> 00:28:16,240 name 1030 00:28:16,240 --> 00:28:16,500 suggests. 1031 00:28:16,920 --> 00:28:17,440 You 1032 00:28:17,440 --> 00:28:17,700 can 1033 00:28:17,700 --> 00:28:18,640 compile 1034 00:28:18,640 --> 00:28:18,880 them 1035 00:28:18,880 --> 00:28:19,600 in 1036 00:28:19,600 --> 00:28:19,700 the 1037 00:28:19,700 --> 00:28:20,020 kernel. 1038 00:28:21,920 --> 00:28:22,520 So 1039 00:28:22,520 --> 00:28:22,920 that's 1040 00:28:22,920 --> 00:28:22,940 all. 1041 00:28:33,400 --> 00:28:34,000 So 1042 00:28:34,000 --> 00:28:34,260 if 1043 00:28:34,260 --> 00:28:34,400 you 1044 00:28:34,400 --> 00:28:34,500 have 1045 00:28:34,500 --> 00:28:34,660 any 1046 00:28:34,660 --> 00:28:35,080 questions 1047 00:28:35,600 --> 00:28:36,400 I think 1048 00:28:36,400 --> 00:28:37,020 we don't 1049 00:28:37,020 --> 00:28:37,320 have a 1050 00:28:37,320 --> 00:28:37,660 lot of 1051 00:28:37,660 --> 00:28:38,120 time but 1052 00:28:41,540 --> 00:28:42,160 no I 1053 00:28:42,160 --> 00:28:42,480 think I 1054 00:28:42,480 --> 00:28:42,800 was very 1055 00:28:42,800 --> 00:28:43,140 clear. 1056 00:28:46,340 --> 00:28:46,740 So 1057 00:28:46,740 --> 00:28:46,960 thank 1058 00:28:46,960 --> 00:28:47,100 you.