1 00:00:01,000 --> 00:00:04,460 Today I will talk about these several sections. 2 00:00:05,060 --> 00:00:11,360 The first one will talk about the background of the leads and what kinds of leads we build 3 00:00:11,360 --> 00:00:16,720 here and the architecture and then the implementation issues. 4 00:00:17,620 --> 00:00:24,360 And then I will talk about what kind of attack and what kind of defense leads can provide. 5 00:00:24,360 --> 00:00:31,940 Finally, I will talk about how to secure the Linux kernel with the leads and then a summary. 6 00:00:33,960 --> 00:00:39,240 And if any one of you have any questions during my talk, you can just raise your hand. 7 00:00:39,340 --> 00:00:42,320 I can answer the question in the middle. 8 00:00:43,460 --> 00:00:44,240 All right. 9 00:00:44,320 --> 00:00:45,140 Let's begin. 10 00:00:46,500 --> 00:00:53,760 Is that attacks and defenses that LIDS mitigates or against LIDS? 11 00:00:53,900 --> 00:00:54,340 Yes. 12 00:00:54,360 --> 00:00:54,860 All right. 13 00:00:55,740 --> 00:01:00,320 There are attacks against LIDS and attacks against the system. 14 00:01:00,460 --> 00:01:01,240 They are both. 15 00:01:01,940 --> 00:01:04,200 So will you be talking about... 16 00:01:04,200 --> 00:01:04,660 Yeah, yeah. 17 00:01:04,720 --> 00:01:08,660 I will talk about the attack to the LIDS and the attack to the kernel and the attack to 18 00:01:08,660 --> 00:01:13,580 the system that LIDS can provide, what kind of measures that can prevent this attack. 19 00:01:14,080 --> 00:01:14,560 Okay. 20 00:01:14,600 --> 00:01:18,240 So will you be talking about attacks against LIDS? 21 00:01:18,380 --> 00:01:18,840 Yes. 22 00:01:18,900 --> 00:01:21,360 If I have a system that has LIDS on it? 23 00:01:21,640 --> 00:01:22,120 Yes. 24 00:01:22,280 --> 00:01:22,600 Okay. 25 00:01:23,260 --> 00:01:23,740 Thank you. 26 00:01:24,720 --> 00:01:24,940 Thank you. 27 00:01:25,900 --> 00:01:26,700 All right. 28 00:01:26,780 --> 00:01:28,540 Here's the background. 29 00:01:29,060 --> 00:01:33,860 And I will talk about very quickly about this background kind of things. 30 00:01:34,080 --> 00:01:37,720 The very first one we talk about is the programs and... 31 00:01:38,230 --> 00:01:38,520 Okay. 32 00:01:38,600 --> 00:01:45,020 The problems and current solutions to this problem. 33 00:01:47,000 --> 00:01:50,560 We face these internet ages and... 34 00:01:50,560 --> 00:01:54,340 But we have seen a lot of host being hacked. 35 00:01:54,340 --> 00:01:55,480 And defaced. 36 00:01:55,620 --> 00:01:58,660 And all the information being leaked and stolen kind of things. 37 00:01:58,860 --> 00:02:02,400 And there are lots of wounds and viruses spreading about this world. 38 00:02:02,600 --> 00:02:05,240 Like the COVID and the Minda kind of things. 39 00:02:05,520 --> 00:02:08,180 And there are lots of vulnerabilities found every day. 40 00:02:09,280 --> 00:02:14,880 Even the very secure software like OpenSSH and Apache. 41 00:02:16,080 --> 00:02:18,200 Recently they found a very serious bug. 42 00:02:19,080 --> 00:02:24,160 So what kind of problem that we have made this program? 43 00:02:24,160 --> 00:02:26,960 Made this problem occur? 44 00:02:28,200 --> 00:02:38,700 Even we have used some of the secure software like OpenSSH and OpenSSL kind of things. 45 00:02:38,880 --> 00:02:43,200 But we cannot prevent all of these problems. 46 00:02:45,140 --> 00:02:50,920 The reason for this is that the application software right now are not trustworthy. 47 00:02:50,920 --> 00:02:55,920 Because more and more complicated implementation. 48 00:02:57,000 --> 00:03:00,540 Because you have to meet the customer's requirements. 49 00:03:00,980 --> 00:03:03,500 And you have to add more features to this software. 50 00:03:03,800 --> 00:03:07,660 And the software became more and more complicated. 51 00:03:08,140 --> 00:03:10,500 And you cannot avoid any... 52 00:03:11,320 --> 00:03:14,540 You cannot avoid the bug in the software. 53 00:03:14,700 --> 00:03:17,320 So the application software is not trustworthy. 54 00:03:17,520 --> 00:03:20,040 So you have to find a way to make this application. 55 00:03:20,040 --> 00:03:26,820 This untrustworthy application software became secure. 56 00:03:27,300 --> 00:03:28,840 And the kernel is not trustworthy. 57 00:03:29,120 --> 00:03:34,940 It means that I can just insert modules into the Linux kernel. 58 00:03:35,220 --> 00:03:38,520 And I can intercept all the system calls. 59 00:03:38,900 --> 00:03:41,720 And I can do whatever things I want to do. 60 00:03:41,840 --> 00:03:47,600 Even if the application software is secure. 61 00:03:47,600 --> 00:03:52,200 And the third one is access control is not perfect. 62 00:03:52,480 --> 00:03:58,280 It means that right now, being a root or super user, you can do anything you want. 63 00:03:58,520 --> 00:04:01,600 You become a god in the system. 64 00:04:01,780 --> 00:04:02,820 So you can... 65 00:04:03,520 --> 00:04:08,100 If you can file a remote exploit code or use the local exploit. 66 00:04:08,380 --> 00:04:09,680 And you can become a root. 67 00:04:09,740 --> 00:04:11,000 And you can do anything you want. 68 00:04:11,200 --> 00:04:14,000 So it's not perfect right now with the access control. 69 00:04:15,660 --> 00:04:16,180 Okay. 70 00:04:16,180 --> 00:04:22,340 The solution right here with our solution is we need the trusted kernel. 71 00:04:22,780 --> 00:04:25,740 This kernel can protect the kernel itself. 72 00:04:26,020 --> 00:04:31,420 It means that nobody can modify the kernel. 73 00:04:31,640 --> 00:04:34,000 Nobody can intercept the system call. 74 00:04:34,180 --> 00:04:36,580 Nobody can change it. 75 00:04:37,420 --> 00:04:42,020 And also this kernel would also provide this MAC. 76 00:04:42,900 --> 00:04:44,960 MAC is mandatory access control. 77 00:04:46,180 --> 00:04:48,520 And this MAC is not... 78 00:04:49,340 --> 00:04:54,020 It's different from what we have used in the Unix environment right now. 79 00:04:54,620 --> 00:04:57,840 And it is... 80 00:04:59,080 --> 00:05:01,500 It means that no one can change the MAC rules. 81 00:05:01,720 --> 00:05:08,000 But somebody can change the rules that right now the Unix environment uses. 82 00:05:08,280 --> 00:05:12,440 For example, you can change the file. 83 00:05:12,880 --> 00:05:15,500 You can use change more to change the file to... 84 00:05:15,500 --> 00:05:17,920 You can just say change... 85 00:05:18,460 --> 00:05:18,720 Somebody... 86 00:05:18,720 --> 00:05:21,100 Everybody can read it or everybody can write it. 87 00:05:21,100 --> 00:05:21,600 Right? 88 00:05:22,000 --> 00:05:24,340 But as a root, you can change anything. 89 00:05:24,740 --> 00:05:26,740 So this is not very secure. 90 00:05:26,900 --> 00:05:31,760 But with the MAC, with the mandatory access control, no one can change these rules even 91 00:05:31,760 --> 00:05:33,920 if as a root or super user. 92 00:05:34,440 --> 00:05:39,760 And with this MAC, you can implement the least privileged rules. 93 00:05:40,020 --> 00:05:41,500 It means that if... 94 00:05:41,500 --> 00:05:45,400 For example, for the ETC password. 95 00:05:45,400 --> 00:05:49,980 This file contains all the passwords in this file. 96 00:05:50,540 --> 00:05:53,940 Right now, everybody can read it. 97 00:05:54,420 --> 00:05:58,100 Because you need to read the password for the user to log in. 98 00:05:58,640 --> 00:06:03,340 But after logging in, this file is not... 99 00:06:04,820 --> 00:06:07,160 It's not usable to the users. 100 00:06:07,460 --> 00:06:13,380 So you can just make the login program to read this password file. 101 00:06:13,380 --> 00:06:17,620 And nobody can read it right now. 102 00:06:17,700 --> 00:06:23,400 So it means that nobody can read this ETC password except the login program. 103 00:06:23,900 --> 00:06:29,760 Right now, the least privileged can implement with this mandatory access control. 104 00:06:30,820 --> 00:06:31,800 All right. 105 00:06:32,200 --> 00:06:34,240 The history of the least... 106 00:06:34,240 --> 00:06:36,460 Just from the... 107 00:06:36,460 --> 00:06:39,120 It's about two years... 108 00:06:39,120 --> 00:06:40,580 About three years projects. 109 00:06:40,680 --> 00:06:42,400 And we have... 110 00:06:42,400 --> 00:06:45,980 A lot of developers to help this project. 111 00:06:46,380 --> 00:06:47,200 I expect... 112 00:06:47,200 --> 00:06:50,040 Especially the core developer, Phillip Bondy. 113 00:06:50,140 --> 00:06:51,240 He'll be here, I guess. 114 00:06:51,380 --> 00:06:53,120 And he had a talk yesterday. 115 00:06:53,540 --> 00:06:56,600 And also, we have an FAQ maintainer, Steve Bremer. 116 00:06:56,740 --> 00:06:58,020 And I guess he'll be... 117 00:06:58,020 --> 00:06:59,840 He'll also be dev content. 118 00:07:00,300 --> 00:07:03,260 And there's another FAQ maintainer, Sandy Cray. 119 00:07:03,440 --> 00:07:07,740 All of these people have the least projects to be growing. 120 00:07:08,420 --> 00:07:11,280 And we have add capability rules. 121 00:07:11,280 --> 00:07:14,040 And likewise, Mac in the 2000... 122 00:07:14,880 --> 00:07:15,500 And... 123 00:07:17,040 --> 00:07:17,660 Before... 124 00:07:18,340 --> 00:07:24,960 In match of this year, we have also add LSM-based variants. 125 00:07:25,180 --> 00:07:26,700 LSM is a Linux security module. 126 00:07:26,780 --> 00:07:31,120 And will be added to the kernel 2.5 right now. 127 00:07:31,180 --> 00:07:33,560 I guess maybe in the next one or two months. 128 00:07:34,180 --> 00:07:35,180 All the... 129 00:07:35,180 --> 00:07:40,920 All these LSM or Linux security modules will be added in the kernel. 130 00:07:41,040 --> 00:07:41,260 All these LSM or Linux security modules will be added in the kernel. 131 00:07:42,820 --> 00:07:43,620 All these LSM or Linux security modules will be added in the kernel. 132 00:07:43,620 --> 00:07:44,780 And we just talk about the background. 133 00:07:45,660 --> 00:07:49,260 And next, we talk about architecture that LIDL is based on. 134 00:07:50,160 --> 00:07:52,260 The architecture here... 135 00:07:52,260 --> 00:07:54,960 There's a map here. 136 00:07:55,860 --> 00:07:56,800 All right. 137 00:07:58,120 --> 00:08:00,840 LIDL contains several components. 138 00:08:02,280 --> 00:08:05,640 The core one is this access control models. 139 00:08:06,020 --> 00:08:09,080 And it contain the access control database. 140 00:08:09,380 --> 00:08:10,720 And it contain the... 141 00:08:10,720 --> 00:08:10,800 And it contain the... 142 00:08:11,980 --> 00:08:13,160 And it contain the... 143 00:08:13,160 --> 00:08:13,800 An administration interface. 144 00:08:14,140 --> 00:08:18,120 And it contain a whole checking centers. 145 00:08:18,500 --> 00:08:20,520 And when a user program... 146 00:08:21,420 --> 00:08:23,180 Then a user program... 147 00:08:23,720 --> 00:08:24,660 There's no... 148 00:08:25,360 --> 00:08:30,580 When a user program begin to exactly in the system, 149 00:08:30,760 --> 00:08:31,600 he will fork. 150 00:08:31,740 --> 00:08:33,960 And he will use the fork and execv. 151 00:08:34,120 --> 00:08:36,320 This exactly v to... 152 00:08:37,480 --> 00:08:38,840 To executing. 153 00:08:38,840 --> 00:08:49,520 Right now, the access control database will attach the access control list to the process 154 00:08:49,840 --> 00:09:00,880 and when he tries to access something, the leads will check with the access database 155 00:09:00,880 --> 00:09:07,460 and then to determine if he can let this access continue or not. 156 00:09:08,940 --> 00:09:13,720 And we have divided the system into two categories. 157 00:09:14,160 --> 00:09:17,440 The one is subject and the other is object. 158 00:09:18,140 --> 00:09:22,400 And we place a checking between this subject and object. 159 00:09:22,680 --> 00:09:26,160 The subject is a process and the object is all kinds of resources 160 00:09:26,160 --> 00:09:30,780 such as file, device, and all kinds of things. 161 00:09:30,880 --> 00:09:33,280 Things that the process would like to access. 162 00:09:33,620 --> 00:09:40,120 And we have a lock to lock everything that maybe is related to the security. 163 00:09:40,920 --> 00:09:48,240 We have also an administration interface that can manipulate the access control database. 164 00:09:49,740 --> 00:09:54,040 The features with the leads is that leads is a kernel patch. 165 00:09:54,300 --> 00:09:55,740 It's a Linux kernel patch. 166 00:09:55,960 --> 00:09:59,240 Maybe in the future, it will be the Linux security kernel modules. 167 00:09:59,760 --> 00:10:00,780 And he's... 168 00:10:00,880 --> 00:10:02,640 He implemented a trusty kernel 169 00:10:02,640 --> 00:10:05,580 and he had the LiteWire Mac in the kernel 170 00:10:05,580 --> 00:10:08,420 and he had the admin tools. 171 00:10:08,680 --> 00:10:09,440 He include... 172 00:10:10,020 --> 00:10:14,960 These admin tools use the IP chain's likely use 173 00:10:14,960 --> 00:10:18,200 that is maybe easier to use for the users. 174 00:10:21,540 --> 00:10:23,500 And here we show an example. 175 00:10:23,740 --> 00:10:25,120 Wow, it's not very clear. 176 00:10:26,780 --> 00:10:30,320 Say if you have logged into a system, you get... 177 00:10:31,000 --> 00:10:34,480 You use the local exploit code or remote exploit code to get a root. 178 00:10:34,760 --> 00:10:40,520 And right now, you want to try to get the shadow or get the password file. 179 00:10:40,840 --> 00:10:46,520 Right now, it does do a cat etc shadow at the very first line. 180 00:10:47,740 --> 00:10:50,760 And then, before that, as a root, you can do anything. 181 00:10:50,960 --> 00:10:52,860 So you can see the shadow file. 182 00:10:53,000 --> 00:10:53,860 You can see all the contents. 183 00:10:54,080 --> 00:10:56,740 But right now, you can just... 184 00:10:56,740 --> 00:10:59,480 The system will return as operation not permitted. 185 00:10:59,880 --> 00:11:00,660 You cannot... 186 00:11:00,660 --> 00:11:01,800 You cannot see the shadow file. 187 00:11:02,060 --> 00:11:05,000 You cannot cat the shadow file right now with the lits. 188 00:11:05,220 --> 00:11:09,600 And from the log, the lits will tell that somebody 189 00:11:11,240 --> 00:11:14,180 and with the UID, what kind of UID, GID, 190 00:11:14,340 --> 00:11:19,200 and what kinds of program try to access this shadow file. 191 00:11:21,540 --> 00:11:26,540 And just another example is if you try to insert something, 192 00:11:26,680 --> 00:11:30,640 insert a module into the kernel, maybe use the root case, 193 00:11:30,640 --> 00:11:34,660 some kind of root case, and right now the lits will tell you 194 00:11:34,660 --> 00:11:38,380 that operation is not permitted, even if you use a root. 195 00:11:40,600 --> 00:11:42,480 And just talk about architecture. 196 00:11:42,880 --> 00:11:44,620 And next, we talk about the implementation. 197 00:11:45,420 --> 00:11:47,400 Do you have any questions about this section? 198 00:11:48,560 --> 00:11:49,140 No? 199 00:11:49,300 --> 00:11:49,760 Okay. 200 00:11:49,860 --> 00:11:50,540 Let's continue. 201 00:11:53,580 --> 00:11:54,460 All right. 202 00:11:54,560 --> 00:11:57,880 So lits actually include several components. 203 00:11:58,440 --> 00:12:00,040 And include... 204 00:12:00,640 --> 00:12:01,660 Enable to... 205 00:12:01,660 --> 00:12:05,800 In order to implement these components, 206 00:12:07,200 --> 00:12:10,220 we have several very important structures. 207 00:12:11,060 --> 00:12:13,520 Here, the very first one is secure. 208 00:12:13,900 --> 00:12:21,420 I know this one is a global access control list. 209 00:12:21,600 --> 00:12:25,720 It means that everybody and any resource need to use this... 210 00:12:26,080 --> 00:12:28,640 Need to check this ACL first. 211 00:12:28,960 --> 00:12:30,140 And we... 212 00:12:30,640 --> 00:12:35,460 And there's a lits sys ACL also in the kernel. 213 00:12:35,800 --> 00:12:41,200 And this structure apply to individual process. 214 00:12:41,480 --> 00:12:46,120 It means that every process in the kernel got this lits sys ACL. 215 00:12:46,960 --> 00:12:54,640 It include all the rules, all the privileges that this process can got. 216 00:12:56,600 --> 00:13:00,340 And all these structures got the... 217 00:13:00,640 --> 00:13:03,280 Two significant... 218 00:13:06,200 --> 00:13:08,100 Significant structure here is... 219 00:13:08,100 --> 00:13:08,760 I don't know. 220 00:13:08,880 --> 00:13:10,700 This is I know number and the DV number. 221 00:13:10,980 --> 00:13:18,480 This I know number and DV number identify a single file name or directory name or the device name kind of things. 222 00:13:18,740 --> 00:13:20,140 And we have also capabilities. 223 00:13:20,780 --> 00:13:22,420 And we have also the... 224 00:13:22,420 --> 00:13:25,800 All the ACL that this process contain. 225 00:13:27,780 --> 00:13:30,520 And this is a task structure in the Linux kernel. 226 00:13:30,640 --> 00:13:42,440 This task structure is when the process is in a kernel, this process has a task structure and only task structure to identify this process. 227 00:13:43,260 --> 00:13:50,960 And we have, for the lits, we add one, we have add a pointer in this task structure with the lits sys ACL. 228 00:13:51,220 --> 00:13:58,760 This means that when the process running under the lits LFS control, 229 00:13:58,760 --> 00:14:03,160 he would got this lits sys ACL structures. 230 00:14:03,520 --> 00:14:13,700 And he would have this ACL, this structure would told him that what kinds of access or control lits that this process got. 231 00:14:14,230 --> 00:14:17,420 And what kinds of things he can do or he cannot do. 232 00:14:19,600 --> 00:14:28,740 And here we just go into the program and see when you do a fork in Linux, 233 00:14:28,740 --> 00:14:35,040 in the program, and what lits do is he would inherit all the access control lits, 234 00:14:35,060 --> 00:14:38,240 all the access ACL from his parents. 235 00:14:39,140 --> 00:14:43,300 And you can see when you do a fork, we have the copy lits sys ACL, 236 00:14:43,560 --> 00:14:47,780 this function to copy everything from the parents. 237 00:14:48,540 --> 00:14:58,660 And after you do a fork, maybe you can, you would do an exe cve to actually execute this program. 238 00:14:58,740 --> 00:15:10,560 And from when you do the exe cve, we have lits set ACLs to set all the ACL that he gets from this program. 239 00:15:11,820 --> 00:15:16,500 So when a program is in a system, he would got two ACL. 240 00:15:17,420 --> 00:15:23,880 One is inherit from his parents, another one is get from his cell. 241 00:15:24,000 --> 00:15:28,440 For example, if a program in ABC program, 242 00:15:28,740 --> 00:15:35,080 this program got, had the privilege to read password file. 243 00:15:37,400 --> 00:15:44,480 But you use another program to execute this program. 244 00:15:45,340 --> 00:15:46,980 The other program is his parents. 245 00:15:47,180 --> 00:15:52,220 He got, when this ABC running, he got the privileges, 246 00:15:52,420 --> 00:15:58,000 he got the ACL from his parents, and also he would got the ACLs from his cell, 247 00:15:58,020 --> 00:15:58,720 from his parents. 248 00:15:58,740 --> 00:16:00,420 The ACLs that he got. 249 00:16:03,840 --> 00:16:10,800 And after we have all the checking and all the process attaching kind of things, 250 00:16:11,040 --> 00:16:16,660 right now, we will see a system call that we have the checkpoint. 251 00:16:17,440 --> 00:16:22,560 For example, there is so in the trans-mode, when you use the HMOD, 252 00:16:22,660 --> 00:16:28,460 this system call we have, we have intercept, 253 00:16:28,740 --> 00:16:32,880 we have adding this checking in this system call in the kernel. 254 00:16:33,660 --> 00:16:37,520 You can see that this is if the red line one, 255 00:16:37,580 --> 00:16:40,760 we add if lits check base. 256 00:16:41,300 --> 00:16:43,720 When this function do is he would check all, 257 00:16:43,760 --> 00:16:47,540 everything that this program got, and he would check, 258 00:16:47,620 --> 00:16:52,520 he would make sure that if this process had the privilege to do the trans-mode 259 00:16:52,520 --> 00:16:53,960 to the destination file. 260 00:16:55,840 --> 00:16:58,720 And if he's, he do not get this privilege, 261 00:16:58,740 --> 00:17:03,180 he would, we have the log here, lits security alert, 262 00:17:03,460 --> 00:17:08,940 and he would log everything that attempt to do this trans-mode. 263 00:17:12,080 --> 00:17:15,720 And here we say, we say this function lits check base, 264 00:17:16,500 --> 00:17:19,220 here we have this lits check base function. 265 00:17:20,280 --> 00:17:25,280 And this function is do is checking all the ACL database to see if this, 266 00:17:25,880 --> 00:17:27,780 if this first you check, 267 00:17:27,780 --> 00:17:29,660 if the destination file, 268 00:17:33,020 --> 00:17:38,200 you can change the, if anybody can change the destination file. 269 00:17:38,480 --> 00:17:44,680 If not, he would check if the program try to do the CHMOD, 270 00:17:44,760 --> 00:17:50,420 the trans-mode, had the privilege to do the trans-mode to the, 271 00:17:50,500 --> 00:17:52,340 to this destination file. 272 00:17:53,120 --> 00:17:56,480 If he's not, he would just deny it and just return. 273 00:18:00,420 --> 00:18:03,640 All right, anybody have question about this section? 274 00:18:05,080 --> 00:18:06,360 No? All right. 275 00:18:07,200 --> 00:18:10,140 Just now we just talk about implementation issues. 276 00:18:11,580 --> 00:18:15,860 Actually, all this implementation kind of things, 277 00:18:16,020 --> 00:18:18,960 we have the how to, but it's kind of obsolete. 278 00:18:19,440 --> 00:18:21,520 So, I guess maybe in the future, 279 00:18:21,620 --> 00:18:24,860 I will write another how to to talk about this implementation issues. 280 00:18:25,220 --> 00:18:26,180 And next one, 281 00:18:26,180 --> 00:18:28,920 we talk about the attack and defense with the lits. 282 00:18:30,060 --> 00:18:32,820 The very first one is we will attack, 283 00:18:33,420 --> 00:18:36,080 we will attack the lits and the main password. 284 00:18:36,560 --> 00:18:38,120 In the lits, we have, 285 00:18:39,720 --> 00:18:42,340 we have super user, right? 286 00:18:42,440 --> 00:18:47,620 The super user cannot do the things that he can do before. 287 00:18:48,540 --> 00:18:53,860 So, but in order to admin all kinds of this access, 288 00:18:53,860 --> 00:18:57,980 this control, you have to got the super, super users 289 00:18:57,980 --> 00:19:00,160 that he can do the privilege, 290 00:19:00,400 --> 00:19:02,700 he can do everything that the root can do before. 291 00:19:04,520 --> 00:19:07,200 In order to become this super, super user, 292 00:19:07,360 --> 00:19:09,100 you have to got a password. 293 00:19:09,380 --> 00:19:13,340 This password is installed in the kernel. 294 00:19:14,620 --> 00:19:18,160 So, somebody will say that if I can get the password, 295 00:19:18,300 --> 00:19:19,740 I can do anything, right? 296 00:19:20,940 --> 00:19:22,540 But this password, 297 00:19:22,820 --> 00:19:24,860 we have several defenses. 298 00:19:25,320 --> 00:19:28,140 The first one is this password is 160, 299 00:19:29,040 --> 00:19:31,860 160 bits and defines how to guest. 300 00:19:32,780 --> 00:19:34,140 And another one, 301 00:19:34,200 --> 00:19:36,260 the second one is the most important one 302 00:19:36,260 --> 00:19:38,520 that we have the restricted login TTY. 303 00:19:39,600 --> 00:19:42,340 It means that even if you got, 304 00:19:42,540 --> 00:19:44,000 you know the password, 305 00:19:44,320 --> 00:19:47,540 if you just log in from the remote host, 306 00:19:47,740 --> 00:19:48,460 maybe you, 307 00:19:48,460 --> 00:19:50,180 you get a remote expert call, 308 00:19:50,300 --> 00:19:52,280 you get a root from the remote side. 309 00:19:52,840 --> 00:19:53,820 But right now, 310 00:19:54,280 --> 00:19:55,600 even if you know the password, 311 00:19:55,740 --> 00:19:58,220 you cannot just become this super, super user 312 00:19:58,220 --> 00:20:00,280 because we check the TTY. 313 00:20:00,780 --> 00:20:03,300 We check if you just log in from local 314 00:20:03,300 --> 00:20:05,760 or log in from remote side 315 00:20:06,340 --> 00:20:08,160 or log in from a serious port. 316 00:20:08,380 --> 00:20:12,640 We can define these restrictions 317 00:20:12,640 --> 00:20:15,920 when you compile the kernel. 318 00:20:16,440 --> 00:20:18,440 And there's another way 319 00:20:18,460 --> 00:20:21,860 to modify the kernel's structure, 320 00:20:22,080 --> 00:20:22,940 the kernel's data. 321 00:20:24,360 --> 00:20:25,040 It's, 322 00:20:25,100 --> 00:20:26,360 it's use the, 323 00:20:26,400 --> 00:20:28,120 the road's I.O., 324 00:20:28,120 --> 00:20:29,880 the road devices just write, 325 00:20:29,940 --> 00:20:32,440 maybe modify the hard disk 326 00:20:34,140 --> 00:20:36,300 through the I.O.'s operations. 327 00:20:37,260 --> 00:20:38,120 But right now, 328 00:20:38,180 --> 00:20:41,660 all the I.O. operation is controlled by this cap, 329 00:20:41,840 --> 00:20:43,680 this road's I.O. capability. 330 00:20:44,220 --> 00:20:46,960 This capability has been disabled by default. 331 00:20:46,960 --> 00:20:48,800 So if you want to use, 332 00:20:49,040 --> 00:20:51,800 if you want to change the kernel 333 00:20:51,800 --> 00:20:55,740 by this DVK memory or DVK code, 334 00:20:56,040 --> 00:20:59,680 you cannot just write to these devices 335 00:20:59,680 --> 00:21:01,560 because this cap, 336 00:21:01,680 --> 00:21:03,180 this road I.O. has been disabled. 337 00:21:06,380 --> 00:21:08,040 The second one we show that 338 00:21:08,040 --> 00:21:09,860 there's a lot of trojan, 339 00:21:10,040 --> 00:21:10,860 a lot of leakage 340 00:21:10,860 --> 00:21:12,440 and sensitive information leaking 341 00:21:12,440 --> 00:21:16,640 in this current years. 342 00:21:18,280 --> 00:21:19,840 The tag is included, 343 00:21:20,080 --> 00:21:20,980 the trojans, 344 00:21:21,000 --> 00:21:22,080 the first trojan, 345 00:21:22,140 --> 00:21:24,120 if I can log in the system, 346 00:21:24,280 --> 00:21:26,120 I can modify this bin log in 347 00:21:26,560 --> 00:21:29,440 and I put the trojans in this program 348 00:21:29,440 --> 00:21:30,280 and next time, 349 00:21:30,400 --> 00:21:31,420 when I log in, 350 00:21:31,540 --> 00:21:33,080 I will not use the password, 351 00:21:33,700 --> 00:21:34,140 right? 352 00:21:35,000 --> 00:21:36,300 And the log clean, 353 00:21:36,420 --> 00:21:36,960 maybe I just, 354 00:21:37,000 --> 00:21:37,980 we clean all the log 355 00:21:37,980 --> 00:21:39,080 because they will lock something 356 00:21:39,080 --> 00:21:39,480 in the, 357 00:21:39,580 --> 00:21:41,120 in this log directory. 358 00:21:41,860 --> 00:21:43,280 And we have the password, 359 00:21:43,380 --> 00:21:44,780 you can just store the password, 360 00:21:44,920 --> 00:21:45,100 etc, 361 00:21:45,100 --> 00:21:46,280 you can just do phpcshadow file 362 00:21:46,280 --> 00:21:49,180 and you can use the other password 363 00:21:49,180 --> 00:21:50,840 cracking tools to crack it. 364 00:21:51,460 --> 00:21:52,660 And for the modules, 365 00:21:52,820 --> 00:21:53,060 you can 366 00:21:53,060 --> 00:21:54,300 insert or 367 00:21:54,300 --> 00:21:55,720 or remove the modules 368 00:21:55,720 --> 00:21:56,360 from the kernel 369 00:21:56,360 --> 00:21:57,480 and you can just say 370 00:21:58,400 --> 00:21:59,300 insert some 371 00:22:00,040 --> 00:22:01,580 UK respirator in the kernel 372 00:22:01,580 --> 00:22:02,940 and you can modify 373 00:22:02,940 --> 00:22:03,720 the system call. 374 00:22:05,280 --> 00:22:06,800 And if lots of efficiency 375 00:22:06,800 --> 00:22:08,740 that can help you 376 00:22:08,740 --> 00:22:09,440 to hide 377 00:22:09,440 --> 00:22:10,060 your process 378 00:22:10,060 --> 00:22:11,020 to hide your file, 379 00:22:11,180 --> 00:22:12,240 but the defense 380 00:22:12,240 --> 00:22:13,040 by the said 381 00:22:13,040 --> 00:22:16,480 One of our ideas is that we can use file system protection first. 382 00:22:17,880 --> 00:22:25,980 This file system protection is implemented as the leads and is in the VFS layer, it's 383 00:22:25,980 --> 00:22:27,120 a virtual file system layer. 384 00:22:27,540 --> 00:22:33,560 And you have the read-only, you can set a file to only read-only that nobody can just 385 00:22:33,560 --> 00:22:34,100 write to it. 386 00:22:34,260 --> 00:22:39,840 For example, for this bin login, you can just set a rules that made the login to read-only. 387 00:22:39,840 --> 00:22:46,320 And in this case, nobody can write to it, nobody can change it. 388 00:22:46,680 --> 00:22:51,060 And for the log, you can just set it to append. 389 00:22:52,180 --> 00:22:57,220 So every log can append to this log file, but you cannot write to it. 390 00:22:58,120 --> 00:23:01,360 And there's another mode, it's deny access. 391 00:23:01,660 --> 00:23:03,420 You can just set the file to deny access. 392 00:23:03,720 --> 00:23:09,020 It means that nobody can see this file when he do the LIS. 393 00:23:09,840 --> 00:23:11,120 Just modify this file. 394 00:23:11,580 --> 00:23:16,640 The example for this deny access is that you can set the ETC shadow as a hidden file, so 395 00:23:16,640 --> 00:23:17,700 nobody can see it. 396 00:23:18,520 --> 00:23:25,660 And the modules operation, you can prevent, insert more, or remove modules from the kernel 397 00:23:27,320 --> 00:23:30,880 before, if you are root. 398 00:23:30,980 --> 00:23:39,680 But right now, because all the modules operation is controlled by this cap, sysmodules. 399 00:23:39,840 --> 00:23:44,000 This module has been disabled by default, by the LIS. 400 00:23:44,080 --> 00:23:48,100 So you cannot do anything to the modules right now. 401 00:23:49,200 --> 00:23:57,660 We saw a log here, and when you do the insert mode, and the LIS, we saw there's a log here. 402 00:23:57,880 --> 00:24:03,500 It means that we saw that which person and valid this cap system modules. 403 00:24:06,740 --> 00:24:09,440 So you can increase the kernel security. 404 00:24:09,840 --> 00:24:10,180 Like this way. 405 00:24:10,360 --> 00:24:26,140 And the next one is LD, this load, LD preload, this one, this LD preload can insert the malicious 406 00:24:26,140 --> 00:24:32,020 code in a process when this program runs. 407 00:24:33,100 --> 00:24:38,320 So in this case, if this program get privilege from the leads. 408 00:24:38,320 --> 00:24:47,220 And I can just compile a preload library, and I can just insert this library. 409 00:24:47,700 --> 00:24:55,580 I can use preload, LD preload, and run with this privilege program. 410 00:24:56,280 --> 00:25:05,400 And because this privilege program, maybe he can read the password file, right now, 411 00:25:05,440 --> 00:25:08,300 I can write this library with the LD preload. 412 00:25:08,320 --> 00:25:11,680 And I can do anything as this privilege program. 413 00:25:12,640 --> 00:25:17,780 This bug is discovered by the TESOL team in the early this year. 414 00:25:18,180 --> 00:25:23,600 And we have a solution is that we check the LD in the environment p. 415 00:25:23,820 --> 00:25:28,660 Because all the LD preloads is in the environment pointer. 416 00:25:28,960 --> 00:25:30,320 You can just check one by one. 417 00:25:30,440 --> 00:25:34,040 And we just check this LD and underscore. 418 00:25:34,400 --> 00:25:37,200 And we check if there's any LD kind of things. 419 00:25:37,200 --> 00:25:42,540 When the program is executed, we just clear all the ACL. 420 00:25:44,860 --> 00:25:54,960 So it means that you can still use LD preload, but you cannot get the ACL, the leads ACL. 421 00:25:55,240 --> 00:25:59,720 So in this case, we've made the system more usable and more secure. 422 00:26:01,240 --> 00:26:06,040 Another one is that we have also a very light white circle detection. 423 00:26:06,040 --> 00:26:07,160 See in the corner. 424 00:26:09,040 --> 00:26:14,660 You know, a lot of local exploit code, we use the shell code to get a shell. 425 00:26:15,460 --> 00:26:28,240 And this shell code, we provide as parameters to the program, or as an environment to this 426 00:26:28,240 --> 00:26:28,660 program. 427 00:26:29,900 --> 00:26:36,760 And what we defense is we check the shell code, it's very easy, we just check some of 428 00:26:36,760 --> 00:26:44,420 the keys of the shell code in the environment p, or the arguments in the environment, or 429 00:26:44,420 --> 00:26:45,960 the argument c. 430 00:26:46,720 --> 00:26:50,020 In this way, we can prevent shell code in parameters and environments. 431 00:26:51,700 --> 00:27:01,320 Some of the examples is that I just run this xlock exploit code. 432 00:27:01,560 --> 00:27:04,260 You can find this one on the internet. 433 00:27:06,140 --> 00:27:06,740 And it's very easy. 434 00:27:06,740 --> 00:27:12,760 And when leads is on, when I run this exploit code, the local exploit code, and leads can 435 00:27:12,760 --> 00:27:13,260 find it. 436 00:27:13,360 --> 00:27:19,120 And he will say the shell code detected when exactly this file and program terminated. 437 00:27:19,420 --> 00:27:24,980 It means that when the program is running with the shell code in the parameters, or 438 00:27:24,980 --> 00:27:31,180 in the environment, leads can just terminate this program and the local exploit code. 439 00:27:31,360 --> 00:27:31,680 We can... 440 00:27:31,680 --> 00:27:33,380 In this way, we can prevent... 441 00:27:33,380 --> 00:27:35,000 We can prevent some of the... 442 00:27:35,000 --> 00:27:35,960 We can prevent some of the... 443 00:27:35,960 --> 00:27:36,600 We can prevent some of the... 444 00:27:37,780 --> 00:27:41,940 Exploit code, but it's not all of them, because if the shell code... 445 00:27:41,940 --> 00:27:48,580 Because we just check a piece of the shell code, just like if you... 446 00:27:52,460 --> 00:27:55,980 Just like the system call kind of things. 447 00:27:59,880 --> 00:28:04,180 The next attack is dynamic runtime kernel modification. 448 00:28:04,680 --> 00:28:05,580 This attack... 449 00:28:05,580 --> 00:28:11,340 This attack you can find in Freq magazines, 58 is a very recent one. 450 00:28:11,960 --> 00:28:12,640 And you can... 451 00:28:13,180 --> 00:28:19,860 They provide a message to modify the kernel code through this kcodes, or this dvk memory. 452 00:28:20,200 --> 00:28:25,800 And he can modify the kernels one time, state of the data. 453 00:28:27,980 --> 00:28:34,620 In order to do this, he had to write to this program. 454 00:28:34,620 --> 00:28:34,760 Right. 455 00:28:34,760 --> 00:28:40,800 He had to write to this proxy kcode, this file, and all this dvk memory, he had to... 456 00:28:40,800 --> 00:28:42,160 Had the ability to write. 457 00:28:43,680 --> 00:28:45,560 So right now, the leads... 458 00:28:45,560 --> 00:28:48,500 What leads can do is, he can defend it just by this... 459 00:28:48,500 --> 00:28:51,500 We have talked about it, just by this cat-sys-row-io. 460 00:28:52,160 --> 00:28:56,540 This row-io is the capability that he had disabled by before. 461 00:28:56,860 --> 00:29:00,140 He'd control everything to access... 462 00:29:00,140 --> 00:29:03,620 Access to this row-io file. 463 00:29:03,820 --> 00:29:04,520 Include the... 464 00:29:04,520 --> 00:29:10,120 The hard disk, include all the drivers, all the row-io devices. 465 00:29:11,020 --> 00:29:11,740 And we have the... 466 00:29:11,740 --> 00:29:17,780 So the log here, as example here, is that when you're trying to do this, write to this 467 00:29:19,140 --> 00:29:27,880 kdvk memory, the leads will terminate the system call, and return an arrow, and log 468 00:29:27,880 --> 00:29:29,660 this operation. 469 00:29:29,960 --> 00:29:30,900 Say you have... 470 00:29:30,900 --> 00:29:34,060 You have violated this cat-sys-row-io. 471 00:29:34,260 --> 00:29:34,500 So... 472 00:29:34,520 --> 00:29:36,320 You can prevent this kind of attack. 473 00:29:38,880 --> 00:29:43,620 All right, we just talked about the tech and the defenses with the leads. 474 00:29:45,660 --> 00:29:48,160 And next, we talk about this... 475 00:29:48,160 --> 00:29:52,100 How to build a secure Linux with leads is... 476 00:29:52,800 --> 00:29:56,400 All this information you can find on the... 477 00:29:57,100 --> 00:29:58,340 On our website. 478 00:29:58,440 --> 00:30:01,980 It's www.lids.org. 479 00:30:02,500 --> 00:30:04,060 But right now, it's... 480 00:30:04,060 --> 00:30:04,500 And... 481 00:30:04,520 --> 00:30:04,980 You can... 482 00:30:04,980 --> 00:30:08,840 You can get all the FAQ and all the how-to on the websites. 483 00:30:11,220 --> 00:30:19,200 First of all, you need to get a vanilla kernel from the www.kernel.org, or in its mirror. 484 00:30:19,440 --> 00:30:28,020 A lot of people just send email to me, say, why I cannot use Red Hat's kernel to patch, 485 00:30:28,240 --> 00:30:30,500 because we do not support Red Hat's kernel. 486 00:30:31,120 --> 00:30:31,640 Because... 487 00:30:33,080 --> 00:30:33,600 We... 488 00:30:33,600 --> 00:30:34,500 We... 489 00:30:34,520 --> 00:30:34,780 We... 490 00:30:34,780 --> 00:30:35,420 We don't support the... 491 00:30:35,420 --> 00:30:35,760 We don't support the vanilla kernel. 492 00:30:36,380 --> 00:30:38,600 It's easier for us to maintain it. 493 00:30:40,400 --> 00:30:42,800 So, you have to download a kernel from the... 494 00:30:42,800 --> 00:30:45,420 From this website and you need to kernel... 495 00:30:45,420 --> 00:30:48,480 After you do that, you can download the kernel patch out... 496 00:30:48,480 --> 00:30:51,200 It's kernel patch from our website and all the tools. 497 00:30:51,500 --> 00:30:57,300 And if you want to use Linux security modules, you can just go to this lsm.innunix.org. 498 00:30:57,780 --> 00:30:59,420 And after that, you can just... 499 00:30:59,420 --> 00:30:59,940 After you... 500 00:30:59,940 --> 00:31:00,980 You tar... 501 00:31:00,980 --> 00:31:03,140 You untar this kernels... 502 00:31:03,140 --> 00:31:03,900 Kernel... 503 00:31:03,900 --> 00:31:12,240 kernel source, you can do the patch, use the patch program to patch with our patch, with 504 00:31:12,240 --> 00:31:16,100 these leads, and yes, the last one. 505 00:31:17,180 --> 00:31:22,320 After we patch the leads with the vanilla kernel, you can do, we configure the kernel, 506 00:31:22,520 --> 00:31:27,600 you have to make, use make, menu, config, s, configure, config to reconfigure the kernel. 507 00:31:27,600 --> 00:31:33,360 There are several options in the kernel, in the leads, and you can define, you can decide 508 00:31:33,360 --> 00:31:34,720 if you want to use it. 509 00:31:36,080 --> 00:31:40,380 And after that, you can rebuild the kernel, and just install the kernel, and compile, 510 00:31:40,660 --> 00:31:45,280 and install all the lead tools, including these leads, the main tools, and the leads 511 00:31:45,280 --> 00:31:52,060 com tools, and we have the default ACL setting, by default, but maybe you need to do, add 512 00:31:52,060 --> 00:31:53,640 the new ACL by yourself. 513 00:31:55,280 --> 00:31:57,360 There are several directories, important directories. 514 00:31:57,600 --> 00:32:03,100 For leads, the very first one is etc, leads, this directory includes all the leads.com, 515 00:32:03,180 --> 00:32:04,820 leads.mail, and leads.pw file. 516 00:32:05,020 --> 00:32:11,580 This file will be read when the kernel blew up, and you read everything in the kernel. 517 00:32:13,080 --> 00:32:18,900 And this directory is protected by leads, but default. 518 00:32:19,760 --> 00:32:27,040 You say you cannot go into this directory, you cannot change this directory, anything 519 00:32:27,040 --> 00:32:27,520 you cannot. 520 00:32:27,600 --> 00:32:31,820 You cannot do this, you cannot do anything to this directory if you are not a super, 521 00:32:31,940 --> 00:32:32,620 super user. 522 00:32:34,020 --> 00:32:43,320 And there's a tool, leads.conf, this tool is used to manipulate the access control 523 00:32:43,320 --> 00:32:43,640 list. 524 00:32:44,360 --> 00:32:52,260 You can just say, leads.conf, I need a program, this is a subject, the program, I want this 525 00:32:53,000 --> 00:32:56,720 program can read a file, or write a file. 526 00:32:57,600 --> 00:33:03,440 It's a dash O, it's an object, and you can just say there's several options here, and 527 00:33:03,440 --> 00:33:11,720 you can also use the leads.conf to configure the capability, and with this, it has a level 528 00:33:11,720 --> 00:33:12,240 kind of things. 529 00:33:13,060 --> 00:33:19,680 The leads admin is used to do some administration tasks. 530 00:33:19,980 --> 00:33:26,520 For example, if you want to enable or disable leads on the machine, you can just log in 531 00:33:26,520 --> 00:33:27,500 and do this. 532 00:33:28,080 --> 00:33:36,400 This leads.s and dash leads, you need to provide a password, and then the leads can 533 00:33:36,400 --> 00:33:36,840 be disabled. 534 00:33:38,740 --> 00:33:43,000 And you need to, this dash I is to seal the kernel. 535 00:33:44,340 --> 00:33:51,880 This seal the kernel means that after I stop everything, I need a program, I need a SSD 536 00:33:51,880 --> 00:33:52,860 kind of things. 537 00:33:53,080 --> 00:33:56,620 After I do everything, I stop, I finish, stop. 538 00:33:57,600 --> 00:34:04,000 The machine, and I do this dash I, and I can seal the kernel, and right now the kernel 539 00:34:04,000 --> 00:34:05,920 is unbreakable. 540 00:34:06,140 --> 00:34:12,080 You cannot insert a module, you cannot do anything to the kernel, except right now. 541 00:34:13,120 --> 00:34:23,280 There's a very good FAQ in our website, anything contain the pro, maybe if you have any questions, 542 00:34:23,380 --> 00:34:25,600 you can just check this FAQ first. 543 00:34:26,960 --> 00:34:27,580 Thank you. 544 00:34:27,600 --> 00:34:33,640 Right now we have, after you install the leads, you have, right now we can see some 545 00:34:33,640 --> 00:34:34,060 testing. 546 00:34:34,540 --> 00:34:35,240 All right. 547 00:34:36,080 --> 00:34:41,320 After we build the system, you seal the kernel, you do the more prop leads, if you have used 548 00:34:41,320 --> 00:34:50,000 leads as modules, and you do the leads dash I, this means that you have sealed the kernel. 549 00:34:50,560 --> 00:34:56,700 And from the log, you can see Linux intrusion detection system started, and how many objects, 550 00:34:56,700 --> 00:35:01,580 and how many source ACL, and how many objects are in this access control list database. 551 00:35:02,300 --> 00:35:07,680 And you can do the CAT ETC shadow, you can see that the operation is not permitted. 552 00:35:07,840 --> 00:35:09,500 You cannot see the shadow password right now. 553 00:35:09,880 --> 00:35:16,800 And if you want to touch ABC in the BIM directory, you can see that operation is not permitted. 554 00:35:18,120 --> 00:35:23,660 And if you want to remove the modules of the leads, you can see that operation is not permitted. 555 00:35:23,820 --> 00:35:24,440 You can do anything. 556 00:35:24,620 --> 00:35:25,420 You cannot do... 557 00:35:25,420 --> 00:35:27,120 You cannot do... 558 00:35:28,140 --> 00:35:33,640 You can do nothing to these kernels right now. 559 00:35:34,440 --> 00:35:40,860 The log, we saw that somebody, the PID and the UID, what kinds of users, and what kind 560 00:35:40,860 --> 00:35:45,980 of process he used to violate this program, to violate this CAP system modules. 561 00:35:48,380 --> 00:35:51,120 And finally, we have a summary. 562 00:35:52,200 --> 00:35:52,760 Okay. 563 00:35:52,840 --> 00:35:55,340 The leads project actually is a free software. 564 00:35:55,420 --> 00:35:56,520 We have... 565 00:35:56,520 --> 00:35:57,220 This is... 566 00:35:57,220 --> 00:36:03,680 This leads is under the GPL, and we developed this one for free, and we do not have any 567 00:36:04,460 --> 00:36:05,340 support right now. 568 00:36:05,780 --> 00:36:11,240 All these things is by interest, and I can... 569 00:36:11,880 --> 00:36:17,640 I have to thank many people, because without them, there's no any... 570 00:36:18,780 --> 00:36:21,020 Leads cannot go too far right now. 571 00:36:22,180 --> 00:36:25,400 And the leads actually is implemented as security modules. 572 00:36:25,400 --> 00:36:30,480 And the modules in the kernel, because we talk about in architecture, we show the attack 573 00:36:30,480 --> 00:36:30,900 and defense. 574 00:36:31,280 --> 00:36:36,980 It means that leads can enhance the Linux kernel security in some efforts. 575 00:36:38,220 --> 00:36:45,880 Finally, I want to acknowledge you, and you taking time to listen to this speech, and 576 00:36:46,920 --> 00:36:54,780 I want to thank the leads users and developers, especially the Philip and the Steve, and all 577 00:36:54,780 --> 00:36:55,060 the... 578 00:36:55,400 --> 00:36:56,100 All these users here. 579 00:36:56,700 --> 00:37:00,460 And I also want to thank the wonderful world of the free software. 580 00:37:00,700 --> 00:37:03,200 With the free software, you can do a lot of things. 581 00:37:03,480 --> 00:37:08,580 You can get anything you want from the internet. 582 00:37:08,800 --> 00:37:12,600 If you do not like it, you can just modify it, so you have all the rights. 583 00:37:12,800 --> 00:37:19,600 But with the commercial one, you have to pay, and you cannot do something you want to do. 584 00:37:19,880 --> 00:37:20,800 So I just... 585 00:37:20,800 --> 00:37:22,760 This is the wonderful world of free software. 586 00:37:23,160 --> 00:37:24,520 With the free software... 587 00:37:24,520 --> 00:37:31,340 With the free support, we can develop very interesting tools to enhance our kernel. 588 00:37:31,780 --> 00:37:37,760 And I want to thank my employer, Intruder Network, which sponsored this trip for me, 589 00:37:37,840 --> 00:37:44,400 and finally, I want to thank StepCon to provide the opportunity for me to present this leads 590 00:37:44,400 --> 00:37:44,740 here. 591 00:37:46,120 --> 00:37:46,820 All right. 592 00:37:47,860 --> 00:37:48,660 Any questions? 593 00:37:50,180 --> 00:37:50,720 Thanks. 594 00:37:51,040 --> 00:37:51,580 Thank you. 595 00:37:52,340 --> 00:37:52,880 Thank you. 596 00:37:53,520 --> 00:37:54,060 Thank you. 597 00:37:54,220 --> 00:37:54,500 Thank you. 598 00:37:54,520 --> 00:37:54,660 Thank you. 599 00:37:54,940 --> 00:37:55,040 Thank you. 600 00:37:58,300 --> 00:37:59,440 Any question? 601 00:38:02,100 --> 00:38:02,860 Oh. 602 00:38:03,260 --> 00:38:07,940 How do you deem the Linux distributions expressing any notice in programming 603 00:38:08,180 --> 00:38:10,440 when lists in their distribution? 604 00:38:11,760 --> 00:38:14,760 There's one distribution already include leads. 605 00:38:14,820 --> 00:38:18,880 There's engage this distribution. 606 00:38:19,180 --> 00:38:22,940 You can find it on www.linux. мат 3.3ieds.com. 607 00:38:26,100 --> 00:38:32,320 there's a website and there's a distribution made by this company. 608 00:38:34,920 --> 00:38:39,920 Integration into the Linux Kernel? Is there any, is it being proposed? 609 00:38:41,640 --> 00:38:49,620 Oh yeah, in the Linux Kernel, the Linux Security modules will go into the Linux Kernel 610 00:38:51,420 --> 00:39:00,200 maybe in one or two months, but as modules, maybe we go into the kernel in the future, 611 00:39:00,320 --> 00:39:10,120 but I don't know if the, I guess I will supply this kernel that leads to the Linux, 612 00:39:10,180 --> 00:39:11,640 but I don't know if he would accept it. 613 00:39:12,980 --> 00:39:13,980 Has he commented? 614 00:39:16,020 --> 00:39:17,420 No, I don't think so right now. 615 00:39:21,460 --> 00:39:24,040 Can you comment on the performance state? 616 00:39:24,900 --> 00:39:25,660 What? 617 00:39:27,580 --> 00:39:29,740 Any decrease in performance? 618 00:39:30,380 --> 00:39:32,840 Any decrease on the performance, right? 619 00:39:33,240 --> 00:39:40,260 Yeah, apparently whenever you call syscall, you are checking some conditions. 620 00:39:40,540 --> 00:39:41,000 Yes. 621 00:39:41,220 --> 00:39:43,100 And that's open now. 622 00:39:43,420 --> 00:39:43,980 Yeah. 623 00:39:44,700 --> 00:39:49,460 For performance, frankly I never, 624 00:39:49,620 --> 00:39:52,200 I never checked the performance on this list before, 625 00:39:52,380 --> 00:39:57,400 but somebody on the mail list told me that he had used the server with the lead support 626 00:39:57,400 --> 00:40:02,380 and he never saw any performance down in any case. 627 00:40:02,700 --> 00:40:07,240 So I guess, even if, because the, I do not check every system call. 628 00:40:08,020 --> 00:40:11,760 For example, when you open a file, I just check. 629 00:40:11,900 --> 00:40:16,940 When you open a file, if you read or write a file, I do not check it. 630 00:40:17,000 --> 00:40:19,100 I just check at the very first checkpoint. 631 00:40:20,300 --> 00:40:20,900 Syscall? 632 00:40:22,680 --> 00:40:23,280 Syscall? 633 00:40:24,360 --> 00:40:25,340 Yeah, yeah, yeah. 634 00:40:25,340 --> 00:40:25,780 Open. 635 00:40:26,000 --> 00:40:27,780 Yes, I just check the sys opened. 636 00:40:28,000 --> 00:40:30,460 I do not check sys read or sys write. 637 00:40:30,740 --> 00:40:33,340 So I guess this will improve the performance. 638 00:40:36,560 --> 00:40:37,560 Another question. 639 00:40:38,720 --> 00:40:45,360 Can you verify the integrity of the kernel after it's been attacked? 640 00:40:46,460 --> 00:40:48,220 So, can you detect? 641 00:40:48,940 --> 00:40:52,160 Let's say somebody attacked your kernel. 642 00:40:52,220 --> 00:40:52,640 Yes. 643 00:40:52,860 --> 00:40:54,280 By some unknown method. 644 00:40:54,560 --> 00:40:55,240 Uh-huh. 645 00:40:55,240 --> 00:40:55,500 Right? 646 00:40:55,620 --> 00:40:55,980 Yes. 647 00:40:56,060 --> 00:40:58,240 Can you verify the integrity of the kernel? 648 00:40:59,800 --> 00:41:00,720 All right. 649 00:41:00,780 --> 00:41:07,340 If the lead found somebody trying to attack the kernel, he would, 650 00:41:08,020 --> 00:41:10,100 okay, attack the kernel has several methods. 651 00:41:10,880 --> 00:41:13,240 The first one is you use modules. 652 00:41:13,600 --> 00:41:16,080 And the second one, you use the row IOs. 653 00:41:18,220 --> 00:41:24,220 And so, right now, all these things have been checked by the leads. 654 00:41:24,480 --> 00:41:27,980 So, in this case, if leads found somebody trying to do things like that, 655 00:41:28,040 --> 00:41:32,980 to insert modules kind of things, he would provide information in a log, 656 00:41:33,120 --> 00:41:42,180 just told that who used what kind of tools to insert or to do what kind of things. 657 00:41:42,540 --> 00:41:45,060 So, in this case, after leads found this one, 658 00:41:45,160 --> 00:41:46,140 he would terminate. 659 00:41:48,220 --> 00:41:50,260 All the operations that this program do. 660 00:41:50,420 --> 00:41:53,600 So, he will not affect the kernel, his cell. 661 00:41:54,000 --> 00:41:57,620 In this case, he can protect the Linux kernel. 662 00:41:58,220 --> 00:42:03,820 So, in this case, I guess the integrity could be guaranteed. 663 00:42:04,660 --> 00:42:05,500 I see. 664 00:42:05,640 --> 00:42:07,800 So, you just block the known vectors. 665 00:42:08,040 --> 00:42:08,600 Yes. 666 00:42:09,200 --> 00:42:12,740 Rather than try to verify integrity afterwards. 667 00:42:13,400 --> 00:42:14,060 Yeah, yeah, yeah. 668 00:42:14,140 --> 00:42:17,280 I just turn, everything is just terminated, all this process. 669 00:42:18,220 --> 00:42:18,440 Okay. 670 00:42:19,100 --> 00:42:19,500 Sure. 671 00:42:21,780 --> 00:42:22,580 And, no? 672 00:42:23,440 --> 00:42:23,840 Okay. 673 00:42:24,080 --> 00:42:25,120 Let's finish this. 674 00:42:25,200 --> 00:42:26,900 Thanks for taking your time here. 675 00:42:27,340 --> 00:42:27,740 Thanks.