1 00:00:09,220 --> 00:00:15,420 I can actually start my talk now, and again, if I go over here and you can't hear me, just wave your hands at me and let me know. 2 00:00:16,000 --> 00:00:20,420 My name is Jeff Thompson, otherwise known as Mithrander for some of the people here who are my friends and know me. 3 00:00:21,000 --> 00:00:27,380 I'm a director at a company called Argus Systems Group, and I have a title, which is called Software Evangelist and Visionary, 4 00:00:27,380 --> 00:00:33,020 which essentially means that I get to stand in front of people like you, jump up and down, wave my arms, and pretend like I know what I'm talking about. 5 00:00:33,620 --> 00:00:35,760 Every once in a while I do, most of the time probably not. 6 00:00:36,540 --> 00:00:45,580 I'm going to be giving a presentation on how to hack B1 trusted operating systems, and hopefully this will be fun for me and also fun for all of you. 7 00:00:45,980 --> 00:00:50,620 I'm going to be using the Pitbull.compact trusted operating system product suite, and that's a big sentence, 8 00:00:51,160 --> 00:00:55,860 which is essentially our company's trusted operating system product as a reference for giving this talk. 9 00:00:56,140 --> 00:00:57,360 However, all the things that I will be talking about are going to be in this talk. 10 00:00:57,360 --> 00:01:01,800 All the things that I will be talking about should be pretty easily translatable to other trusted operating systems. 11 00:01:02,020 --> 00:01:09,980 I'm trying to leave it fairly general so all you guys can break into trusted Solaris or Virtual Vault or some of the other fun little OSs out there. 12 00:01:11,700 --> 00:01:18,280 Just to tell you a little bit about the company, as I mentioned, it's Argus Systems Group, and we build B1, commercial grade B1 trusted operating systems. 13 00:01:18,420 --> 00:01:21,280 All the work that we do is at the OS level and the kernel level. 14 00:01:21,380 --> 00:01:23,200 We really don't do much at the application level. 15 00:01:23,380 --> 00:01:27,280 We leave that to other people who want to do things like encryption and necessations. 16 00:01:27,360 --> 00:01:27,980 Fun stuff like that. 17 00:01:29,160 --> 00:01:30,360 I'm going to ask three quick questions. 18 00:01:30,500 --> 00:01:33,040 We have to have a little interactive part so I get a little something out of this. 19 00:01:33,200 --> 00:01:38,080 First of all, I'm wondering if you could raise your hands if you've ever heard of trusted operating systems before. 20 00:01:39,040 --> 00:01:40,220 All right, that's pretty sweet. 21 00:01:40,420 --> 00:01:40,900 I like that. 22 00:01:41,460 --> 00:01:43,220 The next one is kind of the kicker. 23 00:01:43,280 --> 00:01:45,400 How many people have actually used a trusted operating system? 24 00:01:45,640 --> 00:01:52,960 Been on a box, tried to hack one, say, this week, or just kind of system administrator or whatever? 25 00:01:55,140 --> 00:01:56,380 All right, so not quite as many. 26 00:01:56,380 --> 00:01:59,440 You guys need to change that, and I'll tell you how at the end of the speech. 27 00:02:00,380 --> 00:02:04,520 The next thing is I'm wondering how many people are here who are actually trying to break the box that I brought in. 28 00:02:04,660 --> 00:02:09,760 It's a little, actually, an IBM ThinkPad running Pitbull Solaris on there. 29 00:02:11,340 --> 00:02:11,800 One guy? 30 00:02:13,700 --> 00:02:15,240 All right, well, you'll learn something. 31 00:02:18,680 --> 00:02:19,980 Basically, I should just mention that real quick. 32 00:02:20,040 --> 00:02:23,240 What we did is we brought in a Pitbull box for the Capture a Flag competition, 33 00:02:23,880 --> 00:02:26,120 and we opened up a web server, put a cheap... 34 00:02:26,120 --> 00:02:28,900 a little messaging board system out, hoping someone could hack that, 35 00:02:29,040 --> 00:02:33,240 threw up IRC, SSHD, Telnet, FingerD, IMAP, POP, SendMail, 36 00:02:34,120 --> 00:02:35,880 and I think that's it. 37 00:02:35,960 --> 00:02:38,580 And today, I just gave away Etsy Shadow with all the passwords in it, too, 38 00:02:38,640 --> 00:02:39,860 so people should be able to crack those. 39 00:02:40,240 --> 00:02:44,920 And the point is really just to kind of demonstrate that you can give what would appear to be the house away 40 00:02:44,920 --> 00:02:46,120 on a trusted operating system. 41 00:02:46,960 --> 00:02:50,860 And if you configure it correctly, there's nothing that people can do to break into it 42 00:02:50,860 --> 00:02:52,260 because of the mechanisms that it provides. 43 00:02:53,480 --> 00:02:55,580 So, my speech is going to be composed of two parts. 44 00:02:56,120 --> 00:02:58,280 The first part I had actually hoped to do during a newbie session, 45 00:02:58,500 --> 00:02:59,980 but for whatever reason, I didn't get that. 46 00:03:00,360 --> 00:03:04,040 So, I'm going to have to kind of roll it into here just to give some background on trusted operating systems. 47 00:03:04,180 --> 00:03:07,920 I'll try and wing through it fairly quickly and not go into too much detail, 48 00:03:08,020 --> 00:03:10,920 but just enough so you guys can understand what I'm talking about in the second part, 49 00:03:11,040 --> 00:03:13,740 which is, of course, methodologies for hacking trusted OS. 50 00:03:13,920 --> 00:03:17,380 I'm not going to be giving away any minus one or zero day wares here, 51 00:03:17,480 --> 00:03:19,840 so you can't go out and, like, hack all the Swiss banks and stuff. 52 00:03:20,920 --> 00:03:21,780 Immediately, at least. 53 00:03:22,380 --> 00:03:25,200 And don't tell them that I taught you how to do this if you go do it. 54 00:03:26,340 --> 00:03:29,620 So, the other thing is, of course, an assumption I make because it's the Uber Hatcher, 55 00:03:29,720 --> 00:03:30,780 everybody's really smart speech. 56 00:03:31,200 --> 00:03:36,840 I'm not going to go into, actually, how to hack boxes per se with the old OSs, 57 00:03:37,280 --> 00:03:41,100 but a lot of the tools that you have, a lot of the methodologies that you use in old systems 58 00:03:42,040 --> 00:03:45,940 apply directly to hacking trusted operating systems, buffer overflows, things like that. 59 00:03:46,540 --> 00:03:49,860 However, the mindset that you have to approach your attack with is very different, 60 00:03:49,980 --> 00:03:52,180 and that's going to really be the crux of this speech, 61 00:03:52,220 --> 00:03:53,760 is to try and get all of you into that mindset. 62 00:03:55,440 --> 00:03:55,760 So. 63 00:03:56,120 --> 00:03:59,440 To understand trusted operating systems, there's really four concepts which are worth understanding. 64 00:03:59,720 --> 00:04:02,960 The first is least privilege, or something else known as capabilities, 65 00:04:03,320 --> 00:04:06,440 the POSIX capabilities model, which many of you may be familiar with. 66 00:04:06,760 --> 00:04:09,940 An idea of authorizations, mandatory access control, 67 00:04:10,540 --> 00:04:13,880 and the idea of putting security into the network layer, 68 00:04:14,040 --> 00:04:18,740 and by that I mean into the actual data on the network stack that passes through the system, 69 00:04:18,820 --> 00:04:22,400 as opposed to just at the IP layer, which would be filtering. 70 00:04:23,880 --> 00:04:26,100 For privileges, there's two concepts that you need to understand. 71 00:04:26,120 --> 00:04:30,780 The first is least privilege, and this has actually been written about quite a bit in a lot of security books, 72 00:04:30,940 --> 00:04:34,440 when there's the little three-page chapter on B1 trusted operating systems, 73 00:04:34,620 --> 00:04:36,360 and they mention it as a sort of exotic thing. 74 00:04:37,160 --> 00:04:41,380 Least privilege is the idea that rather than having, like on standard Unix systems, 75 00:04:41,420 --> 00:04:45,560 where you have UID0 or Root, which has complete access to the system, 76 00:04:45,640 --> 00:04:48,540 it can override all security on the system, it has access to all system calls. 77 00:04:48,840 --> 00:04:51,940 Rather than doing that, you take all the concepts of what Root can do, 78 00:04:52,120 --> 00:04:53,960 and you break it up into privileges. 79 00:04:54,280 --> 00:04:56,100 So, for example, Root needs some security. 80 00:04:56,120 --> 00:04:56,680 It can mount a file system. 81 00:04:56,880 --> 00:04:59,000 Well, mounting is a concept that's also a system call. 82 00:04:59,140 --> 00:05:01,040 So what you do is you create a privilege, which says, 83 00:05:01,160 --> 00:05:04,580 now that this program or this process can actually mount a file system. 84 00:05:05,540 --> 00:05:07,900 And to give you kind of a real-world example of that, 85 00:05:07,980 --> 00:05:11,040 you can take a web server, and if you want to bind to port 80, 86 00:05:11,180 --> 00:05:13,820 you need to run it as Root, and then it'll switch to another user. 87 00:05:14,060 --> 00:05:17,860 The reason why you need to run it as Root is not because it needs to have access to files in the system, 88 00:05:17,980 --> 00:05:21,140 simply because it needs to bind to port 80, because it's a privileged port. 89 00:05:21,880 --> 00:05:24,640 So on a trusted operating system, instead of setting it as Root, 90 00:05:24,660 --> 00:05:26,100 or giving it total access to the system, 91 00:05:26,120 --> 00:05:29,460 you simply give it one privilege, and it can bind to the privileged port, 92 00:05:29,620 --> 00:05:30,420 and that's all it needs. 93 00:05:30,820 --> 00:05:35,920 The next thing to get into is, this is a little bit of a coding topic, 94 00:05:36,320 --> 00:05:37,700 is the idea of privileged bracketing. 95 00:05:37,820 --> 00:05:39,700 But it also affects you when you're trying to break boxes. 96 00:05:40,300 --> 00:05:44,380 And it's this, is that privileged bracketing is the idea that a process or program 97 00:05:44,380 --> 00:05:49,080 only needs to turn on its privileges or its abilities when it needs to use them. 98 00:05:49,340 --> 00:05:51,560 And when it's done using them, it can throw them away. 99 00:05:52,000 --> 00:05:54,460 So on standard Unix, you want to throw them away, 100 00:05:54,500 --> 00:05:55,760 you become something else besides Root. 101 00:05:56,120 --> 00:05:58,320 On a trusted operating system, you simply drop the privilege, 102 00:05:58,840 --> 00:06:01,460 and now if somebody goes and breaks that program, it's not there anymore, 103 00:06:01,560 --> 00:06:02,880 and there's no way for them to get it back. 104 00:06:03,260 --> 00:06:07,520 And so now you can limit the exposure in your code, 105 00:06:08,080 --> 00:06:11,500 and also where you're really going to need to focus your reviews of your code, 106 00:06:11,600 --> 00:06:13,760 at least your security-relevant reviews of your code, 107 00:06:13,820 --> 00:06:15,140 where privileges are going to be active. 108 00:06:15,280 --> 00:06:17,820 And it allows you to start building much more secure software, 109 00:06:18,040 --> 00:06:20,340 and spend time where it matters in review. 110 00:06:21,800 --> 00:06:22,480 So, privileges. 111 00:06:22,680 --> 00:06:24,040 Traditionally, Unix has one privilege, Root. 112 00:06:24,120 --> 00:06:24,920 You're Root, you have everything. 113 00:06:25,100 --> 00:06:25,600 You're not Root. 114 00:06:25,600 --> 00:06:26,300 You try to get Root. 115 00:06:29,080 --> 00:06:32,720 And with that, what we do is we take that idea of Root, like I said, 116 00:06:32,740 --> 00:06:33,540 and break it up into privileges. 117 00:06:33,720 --> 00:06:36,060 So now we have things like a file system mounting privilege, 118 00:06:36,740 --> 00:06:37,700 DAC read privilege. 119 00:06:37,820 --> 00:06:39,860 DAC is just another word for permission bits, 120 00:06:39,960 --> 00:06:41,500 or access control list. 121 00:06:41,580 --> 00:06:42,880 It's just kind of an encompassing term. 122 00:06:43,180 --> 00:06:44,740 And then you also create new privileges, 123 00:06:44,840 --> 00:06:46,520 which are specific to trusted operating systems. 124 00:06:47,120 --> 00:06:50,240 Privileges which allow you to override mandatory access control rules. 125 00:06:50,500 --> 00:06:52,140 Or a great privilege here, 126 00:06:52,260 --> 00:06:54,560 and this is kind of a hint if you can get this on a system, 127 00:06:55,600 --> 00:06:55,960 PVPROC. 128 00:06:56,020 --> 00:06:59,900 It's a privilege that gives the process an ability to set privileges on other processes. 129 00:07:00,260 --> 00:07:03,120 So if you have that, you just start giving yourself lots of nice privileges, 130 00:07:03,520 --> 00:07:04,800 and then you can own the system. 131 00:07:06,580 --> 00:07:07,460 All right, processes. 132 00:07:07,640 --> 00:07:11,100 There's three types of privilege sets that you can have in a process. 133 00:07:11,380 --> 00:07:13,460 And the first one is one really important to understand. 134 00:07:13,580 --> 00:07:14,600 It's the limiting privilege set. 135 00:07:14,840 --> 00:07:18,640 The idea behind the limiting privilege set is that you can specify for a process, 136 00:07:18,800 --> 00:07:22,900 and all of its children, that they can never exceed this amount of privilege. 137 00:07:23,400 --> 00:07:25,160 So a great thing to do with this is, 138 00:07:25,160 --> 00:07:28,080 if you have users logging on to your system who you don't trust, 139 00:07:28,180 --> 00:07:29,000 don't ever want to trust, 140 00:07:29,240 --> 00:07:31,620 you can give them a limiting privilege set which says no privileges. 141 00:07:32,140 --> 00:07:33,620 Now, no matter what that user does, 142 00:07:33,860 --> 00:07:36,340 they can run programs that would normally give them privilege. 143 00:07:36,540 --> 00:07:38,400 They can do those kinds of things. 144 00:07:38,700 --> 00:07:39,600 And when they run them, 145 00:07:39,760 --> 00:07:41,660 the kernel will see that they have this limiting privilege set, 146 00:07:41,700 --> 00:07:42,880 and will refuse to give them privileges. 147 00:07:43,140 --> 00:07:44,600 The program may continue to run, 148 00:07:44,780 --> 00:07:48,040 but it will run without any kind of special ability on the system or special access. 149 00:07:48,920 --> 00:07:51,220 The maximum privilege set is essentially a set of privileges 150 00:07:51,220 --> 00:07:53,420 that a process can use over its lifetime. 151 00:07:53,820 --> 00:07:55,140 And the effective privilege set, 152 00:07:55,140 --> 00:07:59,200 is the set of privileges that the process is using at any given moment. 153 00:07:59,360 --> 00:08:02,160 So it can raise and lower these privileges in its effective set. 154 00:08:02,320 --> 00:08:03,620 When it doesn't want them anymore, 155 00:08:03,780 --> 00:08:05,420 it throws them out of its maximum set. 156 00:08:05,580 --> 00:08:08,080 And when it doesn't want its children to have any privileges anymore, 157 00:08:08,220 --> 00:08:09,980 it throws it out of its limiting privilege set. 158 00:08:12,640 --> 00:08:16,120 Now, privileges work in a different way on files, 159 00:08:16,200 --> 00:08:18,940 and particularly they really work on executables in almost all cases. 160 00:08:19,940 --> 00:08:22,260 What you do is you can put three types of privileges on files. 161 00:08:22,480 --> 00:08:25,020 And the sets are innate, proxy, and author, 162 00:08:25,140 --> 00:08:25,240 and the set of privileges are categorized. 163 00:08:25,640 --> 00:08:27,900 Innate set of privileges are put onto an executable, 164 00:08:28,020 --> 00:08:29,740 and what that means is when that program is run, 165 00:08:29,980 --> 00:08:34,320 the privileges in the innate set will be placed into the maximum set of the new program. 166 00:08:35,100 --> 00:08:38,280 As long as they don't exceed the limiting privilege set. 167 00:08:38,420 --> 00:08:39,920 So it's always placed against that. 168 00:08:40,500 --> 00:08:46,860 Proxy privileges are simply the set of privileges that if the process that execs the program runs it, 169 00:08:47,000 --> 00:08:51,900 only privileges that existed in the process before will be passed on through the proxy privileges. 170 00:08:52,120 --> 00:08:54,560 So it's just saying these are what allow this program to pick up. 171 00:08:55,140 --> 00:08:56,100 In addition to the innate set. 172 00:08:56,620 --> 00:08:59,200 And authorized privileges are a set of privileges, 173 00:08:59,340 --> 00:09:03,260 which a program only gets if the user has an authorization. 174 00:09:03,600 --> 00:09:05,480 And I'll explain what authorizations mean in just a minute. 175 00:09:06,620 --> 00:09:08,360 So there's lots of privilege stuff. 176 00:09:08,980 --> 00:09:11,200 How privileges move, just very quickly, 177 00:09:11,380 --> 00:09:14,380 is if you fork a process, privileges carry across the fork. 178 00:09:14,540 --> 00:09:19,100 So demons that have privileges and fork will still have privileges on their children. 179 00:09:19,620 --> 00:09:24,460 However, if you exec, then all of the rules for privilege transference come into place. 180 00:09:25,140 --> 00:09:27,140 The privileges, the proxy privileges, and the authorized privilege sets. 181 00:09:28,960 --> 00:09:30,920 And to give another example of that, 182 00:09:30,980 --> 00:09:35,900 and this has a large effect on buffer overflow strategies on these boxes, 183 00:09:37,320 --> 00:09:40,760 is because you would lose your privileges when you exec, 184 00:09:40,940 --> 00:09:43,180 if somebody buffer overflows a program that has privilege, 185 00:09:43,480 --> 00:09:45,160 and right now, what does everybody do? 186 00:09:45,260 --> 00:09:45,840 They use shell code. 187 00:09:46,000 --> 00:09:47,660 That's most of the assembly code that's available. 188 00:09:47,960 --> 00:09:52,480 Well, when you exec a shell, the shell most likely will not have any innate privileges on it, 189 00:09:52,520 --> 00:09:54,420 unless the administrator's an idiot. 190 00:09:55,140 --> 00:09:58,940 And they won't have any proxy privileges, most likely, for the same reason. 191 00:10:00,100 --> 00:10:02,000 So what happens is when you do that buffer overflow, 192 00:10:02,500 --> 00:10:04,640 the person gets on the system through that process, 193 00:10:04,740 --> 00:10:06,660 but they're not going to have any special access to the system. 194 00:10:08,860 --> 00:10:11,000 Now to kind of go through authorizations. 195 00:10:12,300 --> 00:10:16,080 Privileges, as I said, are an attribute that's applied to a process, 196 00:10:16,140 --> 00:10:18,480 and it specifies what special rights a process has. 197 00:10:19,340 --> 00:10:21,300 Authorizations are more of a user-level concept, 198 00:10:21,440 --> 00:10:25,120 and an authorization simply says that if a user runs this process, 199 00:10:25,140 --> 00:10:28,360 this program, they're allowed to, and it's used in a couple ways. 200 00:10:28,600 --> 00:10:29,540 And I'll explain that. 201 00:10:30,540 --> 00:10:33,420 One thing that can happen is that a program that's run 202 00:10:33,420 --> 00:10:36,900 can look up the user who's running it, because it can look at its own UID. 203 00:10:37,140 --> 00:10:41,460 And it will say, does the user who's trying to run me have this authorization? 204 00:10:41,760 --> 00:10:45,760 For example, is this user considered a security administrator or a system operator? 205 00:10:46,200 --> 00:10:48,780 And if they're one of those, then I want to let them use me. 206 00:10:48,900 --> 00:10:51,280 And if they're not, then I'll exit and say there's an error, 207 00:10:51,420 --> 00:10:54,120 or I'll only perform a limited set of functionality, 208 00:10:55,140 --> 00:10:56,980 or I'll drop my privileges, or I'll never use them. 209 00:10:57,360 --> 00:11:00,100 And so it allows programs to decide how it should operate, 210 00:11:00,220 --> 00:11:02,040 based on who runs them as well. 211 00:11:04,280 --> 00:11:08,420 Now there's actually two sets of authorizations which can be placed onto files, 212 00:11:08,600 --> 00:11:11,220 and this violates the rule that I said that this all takes place in user space, 213 00:11:11,380 --> 00:11:15,160 because these are two, I guess, counter-examples of that. 214 00:11:15,880 --> 00:11:17,580 The first is access authorizations. 215 00:11:17,700 --> 00:11:21,900 You can say on a file that only a security administrator can run this program. 216 00:11:22,160 --> 00:11:23,960 Only a UID, 217 00:11:23,960 --> 00:11:26,780 who has this authorization is allowed to run this program. 218 00:11:27,080 --> 00:11:29,080 And so what happens is when that program is run, 219 00:11:29,160 --> 00:11:33,320 the kernel will look and see if the user who's trying to run it has the correct authorization. 220 00:11:33,760 --> 00:11:35,360 If he doesn't, he can't run it. 221 00:11:35,720 --> 00:11:38,240 And this brings up something else I should mention about processes. 222 00:11:39,320 --> 00:11:43,200 Like the limiting privilege set, there's also a limiting authorization set. 223 00:11:43,560 --> 00:11:46,900 And what this means is you can put onto a process, 224 00:11:48,160 --> 00:11:51,360 you can say to that process, or really to the kernel about the process, 225 00:11:51,560 --> 00:11:53,740 that it can only have a certain set of authorizations. 226 00:11:54,100 --> 00:11:56,480 This is one of the things that we did on the box that we put out there. 227 00:11:57,200 --> 00:12:00,660 Anything that's coming in through INETD has a limiting authorization set of login, 228 00:12:00,800 --> 00:12:02,780 which means you can log into the system. 229 00:12:02,940 --> 00:12:04,900 So you can come in through Telnet, you can come in through FTP, 230 00:12:05,000 --> 00:12:06,000 and you can do those sorts of things. 231 00:12:06,800 --> 00:12:09,680 However, once you're on there, you can't obtain any other authorizations. 232 00:12:09,740 --> 00:12:14,180 So if you change to a new UID, who would normally have the security administrator authorization, 233 00:12:14,380 --> 00:12:16,280 which would mean you could do lots of bad things on the box, 234 00:12:16,440 --> 00:12:19,520 you won't have those authorizations even though you're that user. 235 00:12:20,300 --> 00:12:22,700 And then the last thing is the privilege authorization set. 236 00:12:22,700 --> 00:12:25,500 And this goes back to what I was saying about the authorization privilege set. 237 00:12:25,560 --> 00:12:26,340 Just flip the two words. 238 00:12:27,240 --> 00:12:31,300 And what this is, is a list of authorizations placed on an executable that says, 239 00:12:31,420 --> 00:12:35,160 if this executable is run, then it obtains these extra privileges, 240 00:12:35,280 --> 00:12:36,420 and so it gets some special abilities. 241 00:12:40,420 --> 00:12:42,400 With authorizations, you create a concept of them. 242 00:12:42,400 --> 00:12:44,680 These are really important ones to know when you're going after a box. 243 00:12:45,340 --> 00:12:49,000 Kind of historically, they're called ISSO, SA, and SO, and there can be other roles. 244 00:12:49,520 --> 00:12:52,260 Roles are simply a concept that you apply to your users, 245 00:12:52,700 --> 00:12:56,600 in a way that these users should have special abilities on the system. 246 00:12:56,780 --> 00:12:58,380 An ISSO is a security officer. 247 00:12:58,520 --> 00:13:00,660 They should be allowed to change security on the system. 248 00:13:01,020 --> 00:13:03,660 Obviously, this is a very, very trusted account. 249 00:13:04,420 --> 00:13:06,520 SA, system administrator, can add users. 250 00:13:06,660 --> 00:13:08,520 SO can reboot the system. 251 00:13:08,700 --> 00:13:12,660 But we don't need to give them the root abilities that you would have on standard Unix. 252 00:13:12,780 --> 00:13:17,740 We just give them the specific authorizations that they require to do the tasks that they need to do. 253 00:13:18,040 --> 00:13:20,920 And how that works is that you put authorization checks 254 00:13:20,920 --> 00:13:22,740 on the administrative programs. 255 00:13:23,220 --> 00:13:26,500 And these programs will then check to see if the right person is running them. 256 00:13:29,420 --> 00:13:30,840 MAC, mandatory access control. 257 00:13:31,420 --> 00:13:34,720 This is a very boring definition taken from TCSEC glossary. 258 00:13:34,960 --> 00:13:37,100 TCSEC is better known as the Rainbow Series. 259 00:13:37,220 --> 00:13:39,780 If any of you have managed to get through all of the books, 260 00:13:39,820 --> 00:13:41,220 not just the orange book, congratulations. 261 00:13:45,020 --> 00:13:46,000 Actually, I just have a question. 262 00:13:46,060 --> 00:13:47,900 How many people have a set of Rainbow books at home? 263 00:13:48,680 --> 00:13:50,200 Has everybody managed to order them? 264 00:13:50,280 --> 00:13:50,580 No? 265 00:13:50,920 --> 00:13:51,000 Alright. 266 00:13:51,020 --> 00:13:52,420 Well, now you want to read about common criteria, 267 00:13:52,640 --> 00:13:54,240 which is equally a boring read. 268 00:13:55,320 --> 00:13:56,380 But it's good to know about. 269 00:13:56,740 --> 00:13:58,460 So, mandatory access control is, 270 00:14:00,020 --> 00:14:02,220 I guess from a historical and a government perspective, 271 00:14:02,480 --> 00:14:04,540 is the idea of looking at information 272 00:14:04,540 --> 00:14:06,620 and saying that this object on a system, 273 00:14:06,720 --> 00:14:07,840 this process or this file, 274 00:14:08,020 --> 00:14:10,020 is protected at a certain level. 275 00:14:10,180 --> 00:14:13,540 And we all know this is things like this is a top secret piece of information. 276 00:14:14,000 --> 00:14:17,360 And then you look at processes or other objects that try to access that information. 277 00:14:17,760 --> 00:14:20,220 And you say, I don't care who that person is. 278 00:14:20,220 --> 00:14:22,120 It doesn't matter what their UID is. 279 00:14:22,200 --> 00:14:26,360 All I care about is that that process has been cleared to access this information. 280 00:14:26,820 --> 00:14:30,820 And what that means is that if somebody is in a MAC level, 281 00:14:31,460 --> 00:14:35,920 that they can change UIDs and their access through MAC will not change. 282 00:14:36,100 --> 00:14:39,620 And that's very significant and makes everybody else's job very difficult. 283 00:14:40,860 --> 00:14:43,040 What happens with MAC is if you create a file, 284 00:14:43,180 --> 00:14:46,860 whatever SL or MAC label is on your process, 285 00:14:47,060 --> 00:14:49,020 that's how the file will be protected always. 286 00:14:49,020 --> 00:14:51,700 There's no way for an owner of a file to change this. 287 00:14:51,780 --> 00:14:54,720 This is very, very different from discretionary access control. 288 00:14:55,080 --> 00:14:57,060 Under DAC, if you own the file, 289 00:14:57,180 --> 00:14:58,560 you can change its access controls. 290 00:14:59,140 --> 00:15:01,600 And the reason why this is useful with MAC 291 00:15:01,600 --> 00:15:04,060 is that you can also tie this into the network. 292 00:15:04,280 --> 00:15:07,480 And you can say, I have an administrator who is connecting to my system. 293 00:15:07,540 --> 00:15:08,460 He has a username and password. 294 00:15:08,640 --> 00:15:10,240 He's really smart. He comes through SSH. 295 00:15:10,320 --> 00:15:11,840 But because we're using SSH, 296 00:15:11,920 --> 00:15:15,400 we may let other people SSH in from the internet 297 00:15:15,400 --> 00:15:17,100 because we have regular users on our system. 298 00:15:17,240 --> 00:15:18,320 But we also have, 299 00:15:19,240 --> 00:15:22,980 this ISSO or security administrator who comes in from internally. 300 00:15:23,240 --> 00:15:25,420 What you can do is actually apply MAC labels, 301 00:15:25,540 --> 00:15:27,120 as I said, to the network layer and say, 302 00:15:27,240 --> 00:15:30,080 this administrator coming in internally has one type of access. 303 00:15:30,200 --> 00:15:32,540 Well, full access because we trust people who come in from inside. 304 00:15:32,780 --> 00:15:35,400 Unless they're corporate insiders and we have a whole different set of problems. 305 00:15:36,200 --> 00:15:38,560 But somebody who just grabs this guy's password 306 00:15:38,560 --> 00:15:39,940 and comes in from the public internet, 307 00:15:40,140 --> 00:15:41,260 we don't want him to have the same access. 308 00:15:41,760 --> 00:15:43,600 Under standard Unix, he does. 309 00:15:43,840 --> 00:15:46,880 If you're root from the inside, from the outside, from a VPN, 310 00:15:47,120 --> 00:15:48,220 you're root. It doesn't matter. 311 00:15:49,080 --> 00:15:50,520 Using MAC, you can change that. 312 00:15:50,620 --> 00:15:52,680 And I'll explain what those mechanisms are. 313 00:15:52,800 --> 00:15:55,880 And again, those will directly affect an attack onto a system. 314 00:15:56,380 --> 00:15:58,560 And kind of a corollary to this, something else that occurs, 315 00:15:58,700 --> 00:16:02,800 is that the owner of a file cannot give access to his file to somebody else. 316 00:16:02,900 --> 00:16:05,140 He can through DAC, but if he copies it through MAC, 317 00:16:05,260 --> 00:16:07,520 the file will be at least as well protected as it was 318 00:16:07,520 --> 00:16:09,140 when it was the original file. 319 00:16:09,440 --> 00:16:12,440 So only people who are cleared for a file can ever see a file. 320 00:16:14,400 --> 00:16:16,460 To briefly go through what an SL is, 321 00:16:16,520 --> 00:16:18,020 SL stands for sensitivity label. 322 00:16:18,020 --> 00:16:22,060 This is the security object that's used to decide access 323 00:16:22,680 --> 00:16:25,100 under mandatory access control in a model that is called 324 00:16:25,100 --> 00:16:26,220 the Bell-Lapadula model. 325 00:16:27,640 --> 00:16:28,480 There's two components. 326 00:16:28,620 --> 00:16:30,800 There's a classification, which is things like you know of, 327 00:16:30,800 --> 00:16:32,920 probably as unclassified, classified, secret, top secret. 328 00:16:33,320 --> 00:16:34,960 And then there's compartments or categories. 329 00:16:35,660 --> 00:16:37,800 And they're the same thing, but depending on where you work 330 00:16:37,800 --> 00:16:39,520 or where you live, they might be called one or the other. 331 00:16:39,720 --> 00:16:41,740 These are kind of like groupings, where you might say, 332 00:16:41,800 --> 00:16:43,760 I have a financial compartment that's being protected, 333 00:16:43,920 --> 00:16:46,640 or a cryptography department if you're working for the NSA. 334 00:16:46,640 --> 00:16:50,180 Or very exciting names like Project A, Project B, and Project C. 335 00:16:50,620 --> 00:16:53,400 And SLs are written out with the classification first, 336 00:16:53,500 --> 00:16:55,200 followed by a set of compartments. 337 00:16:57,960 --> 00:17:01,540 Now, how the different pieces relate to each other. 338 00:17:01,620 --> 00:17:04,600 The classifications are, as I said, in a hierarchical relationship, 339 00:17:05,080 --> 00:17:07,460 so that they can be equal to, greater than, or less than each other. 340 00:17:07,640 --> 00:17:10,120 So top secret is greater than secret is greater than confidential 341 00:17:10,120 --> 00:17:11,340 is greater than unclassified. 342 00:17:12,340 --> 00:17:13,180 Compartments work differently. 343 00:17:13,280 --> 00:17:14,460 They're actually placed into sets. 344 00:17:14,640 --> 00:17:16,340 So you have basic set relationships. 345 00:17:16,640 --> 00:17:20,400 They can be subsets, supersets, disjoint, or equal to each other. 346 00:17:21,840 --> 00:17:23,300 And that's just basic set theory. 347 00:17:23,620 --> 00:17:25,140 Now, a word you're going to hear a lot 348 00:17:25,140 --> 00:17:27,280 if you start to play around with mandatory access control 349 00:17:27,280 --> 00:17:30,000 is the concept of dominance, of label dominance. 350 00:17:30,320 --> 00:17:32,900 And in order for a label to dominate another label, 351 00:17:33,040 --> 00:17:36,020 there's two criteria that have to be met. 352 00:17:36,240 --> 00:17:39,900 The first is that the label that's trying to dominate the other label, 353 00:17:39,940 --> 00:17:41,140 label one dominating label two, 354 00:17:41,260 --> 00:17:43,280 its classification has to be equal to or greater, 355 00:17:43,440 --> 00:17:44,360 which makes sense. 356 00:17:44,540 --> 00:17:46,620 In order for somebody to access a piece of information, 357 00:17:47,080 --> 00:17:49,060 that's secret, they need to be secret or top secret. 358 00:17:49,320 --> 00:17:52,120 You probably wouldn't let an unclassified guy come in and read that. 359 00:17:52,700 --> 00:17:55,540 The next piece is that the compartment set has to be equal to 360 00:17:55,540 --> 00:17:57,640 or a superset of the other compartment set. 361 00:18:00,800 --> 00:18:02,400 On trusted operating systems, 362 00:18:02,600 --> 00:18:05,840 essentially, typically, every object on a system has an SL 363 00:18:05,840 --> 00:18:06,860 and is protected by MAC. 364 00:18:07,020 --> 00:18:09,260 That's not always necessarily true, but typically it is. 365 00:18:09,920 --> 00:18:13,820 But most importantly, processes and files will always have SLs. 366 00:18:13,840 --> 00:18:15,840 We're not going to have a very good MAC system. 367 00:18:16,720 --> 00:18:19,060 And again, as I mentioned, whenever processes create files, 368 00:18:19,280 --> 00:18:21,080 the labels will be placed in the files. 369 00:18:21,220 --> 00:18:22,740 And when processes create new processes, 370 00:18:23,060 --> 00:18:25,480 the labels will transfer to the new processes. 371 00:18:26,480 --> 00:18:28,500 So what happens is when a system boots up, 372 00:18:28,560 --> 00:18:31,020 it's going to have to create the init process, process one. 373 00:18:31,500 --> 00:18:34,220 And it's going to put a default SL onto that process. 374 00:18:34,520 --> 00:18:36,880 And so now when init spawns off all of its children, 375 00:18:37,140 --> 00:18:40,020 all of those processes will have the same MAC label. 376 00:18:40,180 --> 00:18:42,460 Well, that's not very useful because now everybody's at the same level 377 00:18:42,460 --> 00:18:44,260 and it's not really providing too much protection. 378 00:18:44,260 --> 00:18:49,180 So what we do is we put privileges on processes or programs they're going to run, 379 00:18:49,260 --> 00:18:51,400 like login or SSHD. 380 00:18:52,080 --> 00:18:57,460 And what we do is we give those programs the ability to change their own SLs. 381 00:18:57,460 --> 00:18:59,800 So now when somebody logs onto the system like I do, 382 00:18:59,920 --> 00:19:01,260 it goes and says, hey, that's Jeff. 383 00:19:01,380 --> 00:19:04,200 I'll give him top secret all access to the system. 384 00:19:04,240 --> 00:19:05,200 He can do whatever he wants to me. 385 00:19:06,020 --> 00:19:08,020 But when someone else comes in, they can get a different level. 386 00:19:08,120 --> 00:19:11,560 And that allows you to put people at different levels in a system 387 00:19:11,560 --> 00:19:12,880 and isolate them from each other. 388 00:19:12,880 --> 00:19:14,520 And I'll explain how that isolation works. 389 00:19:16,140 --> 00:19:18,920 This is how mandatory access control works in the Bella-Pagela model. 390 00:19:19,600 --> 00:19:23,240 In order for a process to read a file, 391 00:19:23,780 --> 00:19:28,200 the process has to have an SL that dominates the SL of the file to read. 392 00:19:28,440 --> 00:19:33,860 In order to write to a file, a process has to be equal to the SL of the file. 393 00:19:33,920 --> 00:19:35,440 Not dominate, equal to it. 394 00:19:35,960 --> 00:19:38,020 And now I'll give you an example of how this applies. 395 00:19:38,440 --> 00:19:41,500 If you have a system and you place every file in the system at implementation low, 396 00:19:41,500 --> 00:19:43,620 which is the lowest SL you can have on a system, 397 00:19:43,780 --> 00:19:47,960 that means every SL dominates it and thus has read access to it. 398 00:19:48,420 --> 00:19:50,220 But then you go and you put on login and you say, 399 00:19:50,300 --> 00:19:52,440 every user that logs into the system, place them at confidential. 400 00:19:52,900 --> 00:19:55,220 Well now every user that comes on a system has read access. 401 00:19:55,700 --> 00:19:58,200 But they don't have write access to any files on the system. 402 00:19:58,340 --> 00:20:01,880 No matter what user ID they become, no matter what they do on the system, 403 00:20:02,060 --> 00:20:03,840 they only have read access to the system. 404 00:20:07,480 --> 00:20:09,940 Processes have two other SLs applied to them. 405 00:20:09,940 --> 00:20:11,820 There's the concept of minimum and maximum clearance. 406 00:20:12,160 --> 00:20:18,380 And what this means is simply that the process's effective SL can go between these two ranges. 407 00:20:19,000 --> 00:20:22,360 And in fact the only way for a process to change its effective SL 408 00:20:22,360 --> 00:20:27,860 is if it has privileges or it has access to an administrative program that will allow it to change that. 409 00:20:28,000 --> 00:20:30,340 Typically you don't give people the ability to do this 410 00:20:30,340 --> 00:20:32,960 because you want to lock them in at a specific SL 411 00:20:32,960 --> 00:20:36,000 so that they can't get out and change other pieces of the system. 412 00:20:36,680 --> 00:20:38,860 And secondarily, directories and devices 413 00:20:38,860 --> 00:20:42,000 have a second SL, which is called a maximum SL. 414 00:20:42,200 --> 00:20:43,800 So they'll actually have a minimum and a maximum. 415 00:20:44,460 --> 00:20:45,900 Files are single level containers. 416 00:20:46,220 --> 00:20:48,640 So they have one SL. That's the SL that they're protected at. 417 00:20:49,100 --> 00:20:50,800 Directories can have lots of files in them. 418 00:20:50,860 --> 00:20:52,040 These files can be at different levels. 419 00:20:52,420 --> 00:20:53,920 Implementation low, top secret all. 420 00:20:54,040 --> 00:20:55,480 So you might put a range on a directory 421 00:20:55,480 --> 00:20:59,100 to allow people to put more types of information in there. 422 00:20:59,220 --> 00:21:00,500 And devices are the same way. 423 00:21:00,600 --> 00:21:02,800 Some devices you may want to allow many people to connect to. 424 00:21:02,960 --> 00:21:05,180 Other devices you only want one person to connect to. 425 00:21:05,260 --> 00:21:06,140 Like DevKMEM. 426 00:21:08,860 --> 00:21:11,880 Now just to show here, this is kind of a log in example. 427 00:21:12,080 --> 00:21:13,680 What will happen on most trusted operating systems 428 00:21:13,680 --> 00:21:16,620 is that you'll have database which will store security information. 429 00:21:17,000 --> 00:21:18,300 Like a clearance file. 430 00:21:18,460 --> 00:21:20,020 Which will store minimum, maximum clearance. 431 00:21:20,160 --> 00:21:23,320 And then a default clearance or SL that someone would log in at. 432 00:21:23,680 --> 00:21:26,240 And under PitBull, it's stored in SE Security Clear 433 00:21:26,240 --> 00:21:28,360 and other trusted operating systems that's elsewhere. 434 00:21:30,280 --> 00:21:32,840 Also, log in and some other programs may give the ability 435 00:21:32,840 --> 00:21:35,780 to a user to decide a session level 436 00:21:35,780 --> 00:21:37,380 that they would like to connect to the system at. 437 00:21:37,380 --> 00:21:40,820 So here we say, set my effective SL to other SL AB. 438 00:21:41,040 --> 00:21:42,100 And it can request that. 439 00:21:42,260 --> 00:21:44,740 If you want somebody to always and only log in at one SL, 440 00:21:45,000 --> 00:21:47,280 you make their minimum, their maximum, and their default the same. 441 00:21:47,340 --> 00:21:48,400 And they're locked into this compartment. 442 00:21:49,600 --> 00:21:50,040 Alright. 443 00:21:50,480 --> 00:21:52,720 This is the last bit on the trusted operating system part 444 00:21:52,720 --> 00:21:53,720 when we get to the interesting bits. 445 00:21:54,540 --> 00:21:56,940 This is very important because it's significantly different 446 00:21:56,940 --> 00:21:59,680 than any of the other mechanisms on standard Unix. 447 00:21:59,760 --> 00:22:02,660 And it's the idea of putting access control information 448 00:22:02,660 --> 00:22:04,360 in the network layer. 449 00:22:04,520 --> 00:22:06,920 Not just at the IP layer, but all the way down through 450 00:22:06,920 --> 00:22:08,400 under Solaris it would be streams, 451 00:22:08,480 --> 00:22:10,600 but wherever your data flow model is on the OS. 452 00:22:11,440 --> 00:22:14,260 And you can place rules on the system which say 453 00:22:14,260 --> 00:22:16,240 if data comes in from a specific interface, 454 00:22:16,600 --> 00:22:19,960 from a specific host, over a port, using a protocol, 455 00:22:20,200 --> 00:22:21,580 basic firewalling rules, 456 00:22:21,900 --> 00:22:24,360 then you apply security labels to that. 457 00:22:24,720 --> 00:22:27,560 And then what you can do is restrict processes 458 00:22:27,560 --> 00:22:29,500 running on the system based on their SLs, 459 00:22:29,520 --> 00:22:32,820 who they can talk to because of the security information. 460 00:22:33,400 --> 00:22:36,400 And you can also restrict how information go out 461 00:22:36,400 --> 00:22:37,460 and how information come in. 462 00:22:37,640 --> 00:22:41,100 And this is different too than under Unix. 463 00:22:41,420 --> 00:22:43,120 Because what happens is once you get, 464 00:22:43,200 --> 00:22:45,100 when you're in a system and you do filtering, 465 00:22:45,180 --> 00:22:48,280 you can say, either people can get in or can come out. 466 00:22:48,740 --> 00:22:51,280 But you can't say, I want to allow this process out, 467 00:22:51,340 --> 00:22:52,760 but I don't want to allow that process out. 468 00:22:53,280 --> 00:22:55,060 So you can do some pretty interesting things with that. 469 00:22:56,860 --> 00:22:59,040 This is a very basic example of a network rule. 470 00:22:59,180 --> 00:23:00,920 I've cut out a lot of some of the extra stuff 471 00:23:00,920 --> 00:23:02,020 that doesn't matter for this talk. 472 00:23:02,220 --> 00:23:04,500 You can see from the top part that it's essentially 473 00:23:04,500 --> 00:23:05,800 a standard firewalling rule. 474 00:23:06,400 --> 00:23:07,300 You can specify ports, not mask. 475 00:23:07,420 --> 00:23:09,260 Here we're looking at a 192.0.0 network. 476 00:23:09,440 --> 00:23:10,900 And we're looking at TCP protocol. 477 00:23:11,260 --> 00:23:13,700 The next part that's different though from a firewalling rule 478 00:23:13,700 --> 00:23:17,400 is the idea of specifying a minimum and a maximum SL range 479 00:23:17,400 --> 00:23:19,360 on this interface or on this rule. 480 00:23:19,620 --> 00:23:22,640 This is the types of data that you'll allow to flow out 481 00:23:22,640 --> 00:23:24,220 of this rule. 482 00:23:24,440 --> 00:23:27,180 So here basically we're saying anybody can send information out 483 00:23:27,180 --> 00:23:29,060 that applies to this rule. 484 00:23:29,420 --> 00:23:32,240 However, a very important piece is this default SL. 485 00:23:32,480 --> 00:23:33,600 And here it's confidential A. 486 00:23:33,860 --> 00:23:36,180 And what this does is it's saying that every piece of data 487 00:23:36,400 --> 00:23:38,540 that comes into the system will be marked at this level. 488 00:23:38,720 --> 00:23:41,260 So now processes have to dominate this label 489 00:23:41,260 --> 00:23:42,480 in order to be able to read the information 490 00:23:42,480 --> 00:23:43,760 to be able to access it. 491 00:23:45,200 --> 00:23:48,280 And here's a big blocky diagram kind of summing all this up 492 00:23:48,280 --> 00:23:49,860 to show you why this actually means something. 493 00:23:50,400 --> 00:23:52,000 On this we have two processes running. 494 00:23:52,080 --> 00:23:53,560 We have a web server and an SQL server. 495 00:23:53,900 --> 00:23:56,180 The web server is running at confidential HTTP. 496 00:23:56,840 --> 00:23:58,320 HTTP is a compartment. 497 00:23:58,760 --> 00:24:01,320 And we also have an SQL server running at con SQL. 498 00:24:01,900 --> 00:24:04,140 One of the things right here is you'll notice that the SLs 499 00:24:04,140 --> 00:24:05,340 are disjoint from each other. 500 00:24:06,400 --> 00:24:08,280 And what this means is that the web server can't access 501 00:24:08,280 --> 00:24:09,200 the SQL server. 502 00:24:09,440 --> 00:24:12,020 It can't access it over the network internally. 503 00:24:12,320 --> 00:24:14,880 And it can't access its files because here I'm assuming 504 00:24:14,880 --> 00:24:16,540 that the files are protected at that level. 505 00:24:16,900 --> 00:24:19,600 Another thing that we can do is place the web server's files, 506 00:24:19,900 --> 00:24:23,640 its content, its binaries, CGI programs, at confidential. 507 00:24:23,980 --> 00:24:26,060 And what that does is it gives the web server 508 00:24:26,060 --> 00:24:29,100 read-only access to its files but not write access. 509 00:24:29,420 --> 00:24:32,260 So now if somebody comes in and breaks through CGI bin programs 510 00:24:32,260 --> 00:24:34,580 that are written poorly, which happens on occasion, 511 00:24:36,040 --> 00:24:38,360 then they're only going to have read access to these files. 512 00:24:38,480 --> 00:24:40,340 And they can become root, they can become ISSO, 513 00:24:40,420 --> 00:24:41,960 they can become any user they want to, 514 00:24:42,040 --> 00:24:43,500 but they're locked into this MAC compartment 515 00:24:43,500 --> 00:24:45,220 that only has read access to the files. 516 00:24:45,400 --> 00:24:47,780 So very quickly you have a read-only web server. 517 00:24:47,960 --> 00:24:51,080 And that's just a very simple application of what you can do here. 518 00:24:51,400 --> 00:24:54,440 And then basically what the networking rules do is it allows you 519 00:24:54,440 --> 00:24:58,340 to set up these data flows, for example here on port A 520 00:24:58,340 --> 00:25:00,780 to the web server that allow some people to connect in 521 00:25:01,260 --> 00:25:02,740 and keep other people from connecting. 522 00:25:02,740 --> 00:25:05,460 So for example on the main interface we have port 80 con HTTP, 523 00:25:05,920 --> 00:25:08,180 which allows, it's a general rule which allows anybody 524 00:25:08,180 --> 00:25:09,780 to connect through that port at that level. 525 00:25:10,240 --> 00:25:12,420 But the interface default is confidential default, 526 00:25:12,840 --> 00:25:15,160 which means that anybody coming in through this interface 527 00:25:15,160 --> 00:25:18,120 will get marked at that if they go anywhere else besides the web server, 528 00:25:18,300 --> 00:25:20,260 which then means they can't talk to the SQL server. 529 00:25:20,560 --> 00:25:22,940 But it's not so much the filtering aspects that are important 530 00:25:22,940 --> 00:25:25,620 because you can accomplish those things with firewalls. 531 00:25:25,740 --> 00:25:28,140 It's the fact that you can now isolate your processes 532 00:25:28,140 --> 00:25:29,660 and your subsystems from each other, 533 00:25:29,740 --> 00:25:32,160 which we did a whole lot of on our system 534 00:25:32,160 --> 00:25:33,060 that we're letting people hack. 535 00:25:34,480 --> 00:25:36,460 And you can trap people in these. 536 00:25:38,820 --> 00:25:40,040 Alright, the fun stuff. 537 00:25:41,480 --> 00:25:43,280 Hacking B1 trusted operating systems. 538 00:25:44,100 --> 00:25:45,820 The first thing, and I mentioned this before, 539 00:25:45,900 --> 00:25:47,660 that you have to do is you have to change your mindset. 540 00:25:47,960 --> 00:25:50,100 Because what you're attacking is not the same. 541 00:25:50,320 --> 00:25:52,480 And the types of attacks that you would use, 542 00:25:52,560 --> 00:25:54,640 while might yield some kind of access, 543 00:25:54,860 --> 00:25:56,540 will probably not yield the type of access 544 00:25:56,540 --> 00:25:57,600 that you're usually going for. 545 00:25:58,440 --> 00:25:59,380 Keep it in your head. 546 00:25:59,540 --> 00:26:01,620 Root in UID0 has no special meaning 547 00:26:01,620 --> 00:26:02,360 on these systems. 548 00:26:02,500 --> 00:26:04,620 UID0 is no different than UID1024. 549 00:26:07,000 --> 00:26:09,420 Access to files, anything that you're trying to get to, 550 00:26:09,460 --> 00:26:11,700 is controlled by both DAC and MAC. 551 00:26:11,940 --> 00:26:13,240 So when I start talking about, 552 00:26:13,340 --> 00:26:15,240 you need to have this type of SL or this 553 00:26:15,240 --> 00:26:16,080 to pass a MAC check, 554 00:26:16,140 --> 00:26:17,040 and I don't talk about DAC, 555 00:26:17,140 --> 00:26:19,420 it's because I'm assuming that everybody already understands 556 00:26:19,420 --> 00:26:20,340 how permission bits work. 557 00:26:20,540 --> 00:26:22,520 You have to pass both checks, though. 558 00:26:23,440 --> 00:26:26,860 So now, if you get past MAC, 559 00:26:27,480 --> 00:26:30,880 which can only be done by obtaining privileges, 560 00:26:32,000 --> 00:26:34,900 then you're still back to the standard DAC problem. 561 00:26:35,140 --> 00:26:36,260 You have to become user, 562 00:26:36,360 --> 00:26:37,800 or you have to obtain privileges 563 00:26:37,800 --> 00:26:39,860 in order to circumvent DAC. 564 00:26:44,980 --> 00:26:48,040 The corollary to root access on a standard system, 565 00:26:48,140 --> 00:26:50,700 what root access is under a trusted operating system, 566 00:26:51,380 --> 00:26:54,520 is essentially having access to all administrative commands. 567 00:26:54,780 --> 00:26:55,860 That they'll let you run them 568 00:26:55,860 --> 00:26:57,320 and do whatever you want to do on the system. 569 00:26:57,420 --> 00:26:58,460 They'll let you give you all the privileges, 570 00:26:58,720 --> 00:26:59,900 they'll let you change files. 571 00:26:59,900 --> 00:27:01,460 If you can do all of those things, 572 00:27:01,500 --> 00:27:04,380 then you really have complete access to the system. 573 00:27:04,500 --> 00:27:06,360 So now you're not so much going after a UID 574 00:27:06,360 --> 00:27:09,200 as you are going after authorizations or privileges 575 00:27:09,200 --> 00:27:12,120 and also getting yourself to a correct SL. 576 00:27:12,580 --> 00:27:14,600 So now we have new problems when we attack a system. 577 00:27:14,820 --> 00:27:16,820 You have to figure out what are the files 578 00:27:16,820 --> 00:27:18,380 or what is the information that you're going after? 579 00:27:18,600 --> 00:27:19,540 How is it protected? 580 00:27:19,880 --> 00:27:21,900 How can I get to the level that it's protected at 581 00:27:21,900 --> 00:27:22,980 so that I can access it? 582 00:27:23,080 --> 00:27:24,640 If I just need to read it, it's one problem. 583 00:27:24,740 --> 00:27:25,540 If I need to write to it, 584 00:27:25,620 --> 00:27:27,000 it's an entirely different problem. 585 00:27:27,480 --> 00:27:28,900 And then how can I get the authorization 586 00:27:28,900 --> 00:27:31,260 that I need in order to run the programs 587 00:27:31,260 --> 00:27:32,540 that I need to run to do this? 588 00:27:32,840 --> 00:27:34,680 And of course, if you can figure out some great way 589 00:27:34,680 --> 00:27:37,400 to hack a process that happens to have all privileges on it, 590 00:27:37,460 --> 00:27:38,840 then you're pretty much done as well. 591 00:27:40,820 --> 00:27:43,380 Set UID programs aren't quite the juicy target they used to be 592 00:27:43,380 --> 00:27:45,660 because set UID under trusted operating systems 593 00:27:45,660 --> 00:27:46,700 performs one function. 594 00:27:46,820 --> 00:27:47,820 It changes your user ID. 595 00:27:48,160 --> 00:27:50,060 Well, you can become another user ID 596 00:27:50,060 --> 00:27:52,660 that might give you more authorizations on a system 597 00:27:52,660 --> 00:27:54,140 because the user ID might have them. 598 00:27:54,260 --> 00:27:55,700 But if the system is set up correctly, 599 00:27:55,920 --> 00:27:58,880 you're probably stuck in a living hell 600 00:27:58,900 --> 00:28:00,480 limiting authorization set where you can't get them, 601 00:28:00,560 --> 00:28:01,880 like we did on the machine 602 00:28:01,880 --> 00:28:03,240 we're letting people try and break into. 603 00:28:04,900 --> 00:28:06,080 And the thing to remember is 604 00:28:06,080 --> 00:28:07,500 is when you're going after a set UID, 605 00:28:07,720 --> 00:28:09,180 you're not going to be changing your SL. 606 00:28:09,440 --> 00:28:11,420 You're still going to be locked into this level 607 00:28:11,420 --> 00:28:13,220 and isolated from the rest of the system. 608 00:28:13,440 --> 00:28:15,880 Even though you might all of a sudden start passing DAC checks, 609 00:28:16,120 --> 00:28:17,880 you're not going to be passing the MAC checks. 610 00:28:19,260 --> 00:28:20,380 So now what you need to do, 611 00:28:20,420 --> 00:28:22,120 instead of looking for set UID programs, 612 00:28:22,360 --> 00:28:23,880 is look for executables and daemons 613 00:28:23,880 --> 00:28:25,800 that are running with privilege with special access. 614 00:28:26,260 --> 00:28:27,300 If you can find those, 615 00:28:27,380 --> 00:28:28,780 those are the programs that you need to break. 616 00:28:28,900 --> 00:28:30,260 So that you can obtain the privileges 617 00:28:30,260 --> 00:28:31,840 or the authorizations that you need 618 00:28:31,840 --> 00:28:33,380 in order to get into the system. 619 00:28:35,960 --> 00:28:38,100 There's kind of two ways to go after privilege programs 620 00:28:38,100 --> 00:28:40,000 and obviously there's more than this. 621 00:28:40,140 --> 00:28:41,480 But I just want to talk about two 622 00:28:41,480 --> 00:28:44,460 because they're a little bit different 623 00:28:44,460 --> 00:28:46,000 because of trusted operating system natures. 624 00:28:46,440 --> 00:28:47,940 As I mentioned, buffer overflows 625 00:28:47,940 --> 00:28:50,180 that create a shell 626 00:28:51,240 --> 00:28:53,640 will not yield privileges because you're doing an exec. 627 00:28:54,020 --> 00:28:55,340 And you'll lose those privileges. 628 00:28:55,480 --> 00:28:56,760 So now what needs to happen is 629 00:28:56,760 --> 00:28:58,840 people need to go out and start writing new shell codes. 630 00:28:58,900 --> 00:29:01,200 The shell code needs to do a little bit more creative work. 631 00:29:01,420 --> 00:29:03,840 It's going to have to go out and find authorization tables, 632 00:29:03,980 --> 00:29:04,680 modify those, 633 00:29:05,140 --> 00:29:07,200 modify clearance databases so that you can log in 634 00:29:07,200 --> 00:29:08,660 at a level that you want to log in at, 635 00:29:08,760 --> 00:29:10,260 and modify network labeling rules 636 00:29:10,260 --> 00:29:11,580 so that if you come in over the network 637 00:29:11,580 --> 00:29:13,940 you can gain access in the way that you'd like to. 638 00:29:17,000 --> 00:29:19,840 One of the first things to check on a B1 operating system, 639 00:29:20,080 --> 00:29:22,260 and don't bother checking on Pitbull 640 00:29:22,260 --> 00:29:23,880 because this is not a problem, 641 00:29:24,000 --> 00:29:25,340 but it's still worth mentioning 642 00:29:25,340 --> 00:29:26,500 because you should look for it, 643 00:29:26,940 --> 00:29:28,800 is the idea of trusted library paths. 644 00:29:30,240 --> 00:29:31,260 On some systems, 645 00:29:31,360 --> 00:29:32,940 you may have run into a little issue 646 00:29:32,940 --> 00:29:34,200 if you run a set UID program 647 00:29:34,820 --> 00:29:36,440 and you can specify a 648 00:29:36,440 --> 00:29:38,000 or a program running as root 649 00:29:38,000 --> 00:29:40,580 and you can specify a library path 650 00:29:41,240 --> 00:29:42,300 to look for libraries. 651 00:29:42,480 --> 00:29:44,800 You can get it to use a different library than it was intended to. 652 00:29:44,940 --> 00:29:45,680 In other words, you can say, 653 00:29:45,800 --> 00:29:48,460 hey, use this great library I wrote in slash temp instead of slash lib. 654 00:29:48,800 --> 00:29:49,940 Well, if you can do that, obviously, 655 00:29:50,040 --> 00:29:51,240 you can get a program running as root 656 00:29:51,240 --> 00:29:52,200 to do whatever you want it to 657 00:29:52,200 --> 00:29:54,060 if you can get it to run commands 658 00:29:54,060 --> 00:29:55,780 or anything you've written in the library. 659 00:29:56,000 --> 00:29:57,840 The same thing is true of privilege programs. 660 00:29:57,840 --> 00:29:58,920 It's the same kind of attack, 661 00:29:59,160 --> 00:30:00,680 it's just now you're going for privilege programs. 662 00:30:01,580 --> 00:30:03,240 It's really quick and easy to check 663 00:30:03,940 --> 00:30:05,220 setting the environment variable paths 664 00:30:05,220 --> 00:30:06,140 and see if that works 665 00:30:06,140 --> 00:30:07,700 because if you do that, 666 00:30:07,820 --> 00:30:09,940 you have access to the system very easily 667 00:30:10,320 --> 00:30:11,740 and without a whole lot of creativity. 668 00:30:12,660 --> 00:30:13,680 If you can't do that, 669 00:30:13,760 --> 00:30:14,440 then you need to find locations 670 00:30:14,440 --> 00:30:15,620 where libraries are located 671 00:30:15,620 --> 00:30:16,600 and try and get some in there 672 00:30:16,600 --> 00:30:17,480 and get people to use them, 673 00:30:17,600 --> 00:30:18,860 which is an obvious attack. 674 00:30:21,840 --> 00:30:23,380 The thing to remember now as well 675 00:30:23,380 --> 00:30:26,080 is because before we used to play set UID 0 676 00:30:26,080 --> 00:30:27,700 on programs that we needed to do special things, 677 00:30:27,840 --> 00:30:29,200 now we have limited privilege sets, 678 00:30:29,400 --> 00:30:32,360 which means that if you're going after the mount command, 679 00:30:32,780 --> 00:30:34,680 it's only going to yield the mount privilege. 680 00:30:34,900 --> 00:30:36,880 It's not going to yield special file system access. 681 00:30:37,320 --> 00:30:39,340 So lots of programs that we may have normally 682 00:30:39,340 --> 00:30:40,080 went after before 683 00:30:40,600 --> 00:30:42,320 are not going to be yielding 684 00:30:42,320 --> 00:30:43,700 the type of access that we want. 685 00:30:44,400 --> 00:30:45,840 So now you have to be a little choosier 686 00:30:46,620 --> 00:30:47,980 over the programs that you're going for. 687 00:30:48,140 --> 00:30:49,460 Though, of course, if you can get a privilege 688 00:30:49,460 --> 00:30:50,680 that lets you insert curl modules, 689 00:30:50,840 --> 00:30:52,440 that's great and you can get everything else from there. 690 00:30:55,660 --> 00:30:57,200 And the last item on the last slide, 691 00:30:57,240 --> 00:30:57,740 which I should mention, 692 00:30:57,840 --> 00:30:59,740 too, is probably one of the most important things 693 00:30:59,740 --> 00:31:02,780 to go after are processes that give you the ability 694 00:31:02,780 --> 00:31:04,180 to override security checks, 695 00:31:04,360 --> 00:31:06,000 mandatory access control and DAC checks, 696 00:31:06,180 --> 00:31:07,600 and also, very importantly, 697 00:31:07,680 --> 00:31:09,060 processes which have the ability 698 00:31:09,060 --> 00:31:10,540 to set privileges on processes. 699 00:31:10,860 --> 00:31:12,780 This is clearly one of the most important privileges 700 00:31:12,780 --> 00:31:13,300 that exists. 701 00:31:13,700 --> 00:31:14,680 And if you can get that, 702 00:31:14,780 --> 00:31:16,180 then you can give yourself whatever you need 703 00:31:16,180 --> 00:31:17,560 to do the work that you want to. 704 00:31:19,560 --> 00:31:21,380 Getting files into system directories 705 00:31:21,380 --> 00:31:22,660 is a little trickier. 706 00:31:22,760 --> 00:31:24,320 It's not just becoming the user ID. 707 00:31:24,500 --> 00:31:25,620 Now you have to be the right SL 708 00:31:25,620 --> 00:31:26,860 to place information in there. 709 00:31:26,860 --> 00:31:28,880 And you can look at directories 710 00:31:28,880 --> 00:31:30,040 on a PitBull system, for example, 711 00:31:30,040 --> 00:31:31,380 with a program called SecLS. 712 00:31:31,860 --> 00:31:34,440 Minus S gives you the SL on the directories. 713 00:31:35,480 --> 00:31:38,160 Some directories are going to be created multilevel, 714 00:31:38,180 --> 00:31:40,000 which means they allow a range of data 715 00:31:40,000 --> 00:31:41,220 to be placed into them. 716 00:31:41,940 --> 00:31:44,160 So if you're an attacker and you exist in a range 717 00:31:44,160 --> 00:31:45,840 that allows you to put information in there, 718 00:31:45,960 --> 00:31:47,480 like, say, for example, slash lib, 719 00:31:47,620 --> 00:31:49,580 it's not made a single level directory. 720 00:31:50,280 --> 00:31:51,320 Then if you're an attacker, 721 00:31:51,440 --> 00:31:52,960 you can put information in there 722 00:31:52,960 --> 00:31:54,220 if you can pass the DAC check, 723 00:31:54,340 --> 00:31:55,560 which means all you have to do is guess 724 00:31:55,560 --> 00:31:57,960 maybe the root password or an ISSO password 725 00:31:57,960 --> 00:31:59,260 or somebody who would have right access 726 00:31:59,260 --> 00:32:00,100 into that directory. 727 00:32:00,300 --> 00:32:01,040 Now, all of a sudden, 728 00:32:01,080 --> 00:32:02,280 you went and circumvented Mac checks. 729 00:32:02,860 --> 00:32:04,440 And now you can make your libraries 730 00:32:04,440 --> 00:32:06,340 or things in Etsy 731 00:32:06,340 --> 00:32:07,540 or wherever it is that you're going after 732 00:32:07,540 --> 00:32:09,620 available to other people to use 733 00:32:09,620 --> 00:32:11,080 and break their boxes with. 734 00:32:11,520 --> 00:32:13,380 Single level directories are a little trickier 735 00:32:13,380 --> 00:32:15,440 because they force you to be specifically 736 00:32:15,440 --> 00:32:17,180 at that level to do this type of work. 737 00:32:18,880 --> 00:32:20,500 So one of the first things that you should do 738 00:32:20,500 --> 00:32:22,460 is search a machine for multilevel 739 00:32:22,460 --> 00:32:23,880 system type directories. 740 00:32:23,940 --> 00:32:24,960 Then it becomes really 741 00:32:25,560 --> 00:32:27,700 the old problem of becoming that user ID. 742 00:32:28,580 --> 00:32:29,440 The next thing is, 743 00:32:29,500 --> 00:32:30,540 if you have a multilevel directory 744 00:32:30,540 --> 00:32:32,380 that has a range on it that you fall into, 745 00:32:32,620 --> 00:32:33,840 and you can become the user 746 00:32:33,840 --> 00:32:34,780 who owns that directory, 747 00:32:34,960 --> 00:32:36,500 you can also remove the directory 748 00:32:36,500 --> 00:32:38,840 and thus getting rid of the files 749 00:32:38,840 --> 00:32:39,720 that are underneath it. 750 00:32:40,140 --> 00:32:41,460 And this is significant 751 00:32:41,460 --> 00:32:42,840 because there can actually be files 752 00:32:42,840 --> 00:32:43,800 in a directory that you wouldn't 753 00:32:43,800 --> 00:32:44,400 have access to, 754 00:32:44,500 --> 00:32:45,960 but you may want to replace. 755 00:32:46,300 --> 00:32:48,120 Like, for example, in Etsy, 756 00:32:48,140 --> 00:32:49,300 there's a little file called shadow. 757 00:32:49,680 --> 00:32:50,860 And that's usually protected 758 00:32:50,860 --> 00:32:51,680 at the highest level 759 00:32:51,680 --> 00:32:52,920 the system can protect it at. 760 00:32:53,240 --> 00:32:55,180 While if you can become implementation low 761 00:32:55,180 --> 00:32:57,300 and slash Etsy is a multilevel directory 762 00:32:57,300 --> 00:32:58,900 from up below to TSL, 763 00:32:58,940 --> 00:32:59,920 you can blow away Etsy, 764 00:32:59,920 --> 00:33:00,520 replace it, 765 00:33:00,580 --> 00:33:01,480 put a new Etsy in there 766 00:33:01,480 --> 00:33:02,440 with a shadow that you like. 767 00:33:02,780 --> 00:33:03,860 And again, you know, 768 00:33:03,880 --> 00:33:05,400 now you have more access to the system 769 00:33:05,400 --> 00:33:06,800 or the security clearance files 770 00:33:06,800 --> 00:33:07,540 or things like that. 771 00:33:07,900 --> 00:33:08,780 And you can replace, 772 00:33:08,860 --> 00:33:09,900 you know, the attack applies 773 00:33:09,900 --> 00:33:11,140 obviously to all directories. 774 00:33:11,200 --> 00:33:12,460 And again, this allows you 775 00:33:12,460 --> 00:33:14,400 to circumvent the mandatory access control 776 00:33:14,400 --> 00:33:15,760 checks placed on a system. 777 00:33:18,120 --> 00:33:19,220 Obviously, it's very important 778 00:33:19,220 --> 00:33:20,380 to get a new SL 779 00:33:20,380 --> 00:33:21,400 because chances are 780 00:33:21,400 --> 00:33:22,960 the SL that you log into a system 781 00:33:22,960 --> 00:33:23,980 is not one that you want, 782 00:33:24,100 --> 00:33:25,160 but one that the administrator 783 00:33:25,180 --> 00:33:26,060 wants you to have. 784 00:33:26,240 --> 00:33:28,820 So start looking for ways to change it. 785 00:33:30,200 --> 00:33:31,580 There's a few different ways to do this. 786 00:33:31,700 --> 00:33:32,220 You can set it, 787 00:33:32,240 --> 00:33:33,620 sometimes in systems you can set it 788 00:33:33,620 --> 00:33:34,140 for your session 789 00:33:34,140 --> 00:33:35,040 as I mentioned before. 790 00:33:35,280 --> 00:33:36,620 Or you can ask you to a new user 791 00:33:36,620 --> 00:33:37,980 which might change your effective SL. 792 00:33:38,220 --> 00:33:39,340 And you can also leverage 793 00:33:39,340 --> 00:33:40,140 networking connections 794 00:33:40,140 --> 00:33:41,120 to get to new levels. 795 00:33:42,840 --> 00:33:44,760 Setting your session SL can be done 796 00:33:44,760 --> 00:33:46,540 through a couple different ways typically. 797 00:33:46,880 --> 00:33:48,240 For example, we have a program 798 00:33:48,240 --> 00:33:49,260 we call Trusted SSH 799 00:33:49,260 --> 00:33:50,080 which is essentially 800 00:33:50,080 --> 00:33:53,300 a trusted operating system aware SSH 801 00:33:53,960 --> 00:33:55,060 that lets you specify 802 00:33:55,180 --> 00:33:55,860 your effective SL. 803 00:33:56,100 --> 00:33:57,180 One thing though again 804 00:33:57,180 --> 00:33:58,180 is that your effective SL 805 00:33:58,180 --> 00:33:59,120 has to be within 806 00:33:59,120 --> 00:34:00,380 your minimum maximum clearance 807 00:34:00,380 --> 00:34:01,680 as specified in 808 00:34:01,680 --> 00:34:02,820 some sort of clearance database 809 00:34:03,920 --> 00:34:05,240 unless they've implemented it 810 00:34:05,240 --> 00:34:06,360 in a very, very broken way. 811 00:34:07,880 --> 00:34:09,100 Another example of something 812 00:34:09,100 --> 00:34:10,500 that can be used to get 813 00:34:10,500 --> 00:34:11,580 different access on a system, 814 00:34:11,680 --> 00:34:12,980 if you're able to get user passwords, 815 00:34:13,840 --> 00:34:15,560 and this is true on a PitBull system, 816 00:34:15,720 --> 00:34:16,780 if you do an su dash 817 00:34:16,780 --> 00:34:17,520 and you're saying 818 00:34:17,520 --> 00:34:18,840 I want to change this new user, 819 00:34:19,020 --> 00:34:20,660 your effective SL will be changed. 820 00:34:20,980 --> 00:34:22,580 So if all of your system files 821 00:34:22,580 --> 00:34:24,060 are protected to implementation low, 822 00:34:24,060 --> 00:34:25,340 you get the root password, 823 00:34:25,500 --> 00:34:26,580 you do su dash root 824 00:34:26,580 --> 00:34:28,100 and his default clearance is in below, 825 00:34:28,380 --> 00:34:29,580 all of a sudden you have access 826 00:34:29,580 --> 00:34:30,380 to all the system files 827 00:34:30,380 --> 00:34:32,100 and the game's over. 828 00:34:34,240 --> 00:34:35,340 So again though, 829 00:34:35,360 --> 00:34:36,300 when you do an su dash, 830 00:34:36,540 --> 00:34:37,900 most likely your effective SL 831 00:34:37,900 --> 00:34:39,420 will have to be in the range 832 00:34:39,420 --> 00:34:40,060 of your clearance, 833 00:34:40,140 --> 00:34:41,180 otherwise it won't let you do that. 834 00:34:41,280 --> 00:34:42,160 And that's true under PitBull 835 00:34:42,160 --> 00:34:43,580 and hopefully true under other systems. 836 00:34:44,520 --> 00:34:45,320 Now authorizations. 837 00:34:45,540 --> 00:34:47,920 Because authorizations are tied to user ID, 838 00:34:48,140 --> 00:34:49,160 becoming a new user 839 00:34:49,160 --> 00:34:50,720 can still have a great effect on a system. 840 00:34:50,960 --> 00:34:52,300 If the administrative commands 841 00:34:52,300 --> 00:34:53,640 are not protected at a level 842 00:34:53,640 --> 00:34:55,000 that prohibits you from getting to them, 843 00:34:55,140 --> 00:34:56,580 which hopefully when someone's 844 00:34:56,580 --> 00:34:57,260 configuring a system 845 00:34:57,260 --> 00:34:58,260 that's exactly what they do. 846 00:34:58,480 --> 00:34:59,140 For example, 847 00:34:59,140 --> 00:35:00,160 in the box that we have out there 848 00:35:00,160 --> 00:35:01,600 we put everything at TSL, 849 00:35:01,740 --> 00:35:02,340 top secret all, 850 00:35:02,440 --> 00:35:03,360 which essentially means 851 00:35:03,360 --> 00:35:04,480 nobody has access to them 852 00:35:04,480 --> 00:35:05,580 except for one user 853 00:35:05,580 --> 00:35:06,920 who comes in over SSH 854 00:35:06,920 --> 00:35:08,260 who uses an RSA key, 855 00:35:08,440 --> 00:35:09,740 a 1024 bit RSA key. 856 00:35:09,980 --> 00:35:11,880 Well unless somebody guesses that key, 857 00:35:12,060 --> 00:35:13,160 there's really no way for them 858 00:35:13,160 --> 00:35:14,460 to get into the system at that level. 859 00:35:14,800 --> 00:35:15,400 And again, 860 00:35:15,460 --> 00:35:16,140 I should mention again, 861 00:35:16,300 --> 00:35:18,080 beware the limiting authorization set 862 00:35:18,080 --> 00:35:20,380 because now suing to other users 863 00:35:20,380 --> 00:35:21,060 doesn't help you. 864 00:35:23,680 --> 00:35:24,400 RC scripts. 865 00:35:25,880 --> 00:35:27,020 Obviously on any system 866 00:35:27,020 --> 00:35:28,380 if you can modify the RC scripts, 867 00:35:28,480 --> 00:35:29,500 even a standard Unix system, 868 00:35:29,580 --> 00:35:30,640 you probably have a lot of power. 869 00:35:30,800 --> 00:35:31,900 And on standard Unix 870 00:35:31,900 --> 00:35:33,060 you've already rooted the box. 871 00:35:33,440 --> 00:35:35,100 On our trusted operating systems though, 872 00:35:35,120 --> 00:35:35,920 it's a little bit different. 873 00:35:36,380 --> 00:35:38,420 If you get access to an RC script though, 874 00:35:38,460 --> 00:35:39,820 you have pretty much access 875 00:35:39,820 --> 00:35:41,280 to the whole system after a reboot. 876 00:35:41,560 --> 00:35:42,600 And the reason is that 877 00:35:42,600 --> 00:35:43,680 RC scripts are typically 878 00:35:43,680 --> 00:35:45,900 either launched with lots of privileges, 879 00:35:46,100 --> 00:35:47,160 which means pretty much 880 00:35:47,160 --> 00:35:48,300 open access to the system, 881 00:35:48,440 --> 00:35:50,380 or they have lots of authorizations 882 00:35:50,380 --> 00:35:51,440 in order to run the programs 883 00:35:51,440 --> 00:35:52,080 that they need to 884 00:35:52,080 --> 00:35:53,260 to start up the system. 885 00:35:53,640 --> 00:35:55,120 So this is another very juicy target 886 00:35:55,120 --> 00:35:56,580 to go after on these boxes. 887 00:35:58,960 --> 00:35:59,620 Network labeling. 888 00:36:00,320 --> 00:36:01,240 As I showed you before, 889 00:36:01,300 --> 00:36:02,680 you can specify what a label is 890 00:36:02,680 --> 00:36:03,280 for different ports, 891 00:36:03,340 --> 00:36:04,080 for different services. 892 00:36:04,460 --> 00:36:06,120 And so now if you can find a service 893 00:36:06,120 --> 00:36:07,040 which is running on a box 894 00:36:07,040 --> 00:36:08,420 at a level that you'd like to be at, 895 00:36:08,520 --> 00:36:09,480 like implementation low, 896 00:36:09,680 --> 00:36:10,960 and you can exploit that, 897 00:36:11,000 --> 00:36:12,980 buffer overflow that program, 898 00:36:13,160 --> 00:36:14,260 you can give yourself a shell 899 00:36:14,260 --> 00:36:15,380 at that SL. 900 00:36:15,840 --> 00:36:17,160 Now the only thing you have to do 901 00:36:17,160 --> 00:36:18,420 is become the user that you want 902 00:36:18,420 --> 00:36:19,840 with the right authorizations, 903 00:36:20,240 --> 00:36:21,540 and you can have full access 904 00:36:21,540 --> 00:36:22,240 to the system. 905 00:36:23,740 --> 00:36:25,260 So don't ever run any services 906 00:36:25,260 --> 00:36:26,240 at implementation low 907 00:36:26,240 --> 00:36:27,480 if that's what your system files are at. 908 00:36:27,760 --> 00:36:28,400 That's a lesson. 909 00:36:30,140 --> 00:36:30,620 Kernel bugs. 910 00:36:31,080 --> 00:36:32,060 Kernel bugs are always good 911 00:36:32,060 --> 00:36:32,900 for any operating system. 912 00:36:33,200 --> 00:36:34,500 All the security is in the kernel 913 00:36:34,500 --> 00:36:35,580 inside, in there. 914 00:36:35,760 --> 00:36:37,120 And if you can break the kernel, 915 00:36:37,220 --> 00:36:37,920 you own the system. 916 00:36:37,980 --> 00:36:39,120 You can circumvent all the security. 917 00:36:39,340 --> 00:36:40,260 Or at least you should be able 918 00:36:40,260 --> 00:36:41,260 to figure out a way to do that. 919 00:36:43,860 --> 00:36:44,820 So kind of where to look 920 00:36:44,820 --> 00:36:45,760 on trusted operating systems. 921 00:36:46,060 --> 00:36:46,680 Of course first, 922 00:36:46,780 --> 00:36:47,980 there's all the regular old kernel bugs 923 00:36:47,980 --> 00:36:49,120 that happen every once in a while. 924 00:36:49,300 --> 00:36:50,420 And if you can find one of those 925 00:36:50,420 --> 00:36:50,980 to get in, 926 00:36:51,080 --> 00:36:51,920 then you can give yourself 927 00:36:51,920 --> 00:36:52,680 the access you need. 928 00:36:52,940 --> 00:36:53,620 But there's other things 929 00:36:53,640 --> 00:36:54,560 that you can go after too 930 00:36:54,560 --> 00:36:55,380 which are kernel related. 931 00:36:55,780 --> 00:36:56,840 Look at Dove KMM. 932 00:36:56,980 --> 00:36:57,720 That gives you access 933 00:36:57,720 --> 00:36:58,540 to all of kernel memory. 934 00:36:58,720 --> 00:36:59,400 If it's had an SL 935 00:36:59,400 --> 00:37:00,160 that you can get to, 936 00:37:00,260 --> 00:37:02,040 and you can become a user 937 00:37:02,040 --> 00:37:03,040 who has access to it, 938 00:37:03,160 --> 00:37:04,680 then you can modify kernel memory. 939 00:37:05,200 --> 00:37:06,220 And you should pretty much 940 00:37:06,220 --> 00:37:06,840 be able to take over 941 00:37:06,840 --> 00:37:07,480 the box from that. 942 00:37:07,980 --> 00:37:08,900 And you can give yourself 943 00:37:08,900 --> 00:37:09,800 all the privileges you need, 944 00:37:09,880 --> 00:37:11,320 pick the UID that you'd like to have, 945 00:37:11,460 --> 00:37:12,840 and give yourself an SL 946 00:37:12,840 --> 00:37:13,740 that would allow you 947 00:37:13,740 --> 00:37:14,540 to do what you need to do. 948 00:37:15,140 --> 00:37:16,560 Also, access to raw devices 949 00:37:16,560 --> 00:37:17,400 is very useful. 950 00:37:17,560 --> 00:37:18,240 If you can get access 951 00:37:18,240 --> 00:37:18,900 to a raw device, 952 00:37:19,140 --> 00:37:20,360 you can modify the security 953 00:37:20,360 --> 00:37:21,360 structures in the files 954 00:37:21,360 --> 00:37:22,420 and change everything 955 00:37:22,420 --> 00:37:23,360 to a level that is 956 00:37:23,640 --> 00:37:24,900 more amenable to the level 957 00:37:24,900 --> 00:37:25,380 that you're at. 958 00:37:25,500 --> 00:37:26,160 And then again, 959 00:37:26,240 --> 00:37:27,320 get the access that you'd like. 960 00:37:28,280 --> 00:37:29,260 Also, it's interesting 961 00:37:29,260 --> 00:37:30,260 to look at devices. 962 00:37:30,340 --> 00:37:31,900 Look through IO control interfaces 963 00:37:31,900 --> 00:37:32,940 and different ways 964 00:37:32,940 --> 00:37:33,820 to communicate with devices. 965 00:37:34,180 --> 00:37:35,300 They typically tend to be 966 00:37:35,300 --> 00:37:36,280 a little less scrutinized 967 00:37:36,280 --> 00:37:37,080 on B1 systems. 968 00:37:38,020 --> 00:37:39,760 Just because a lot of times 969 00:37:39,760 --> 00:37:42,740 the MAC rules aren't being looked at 970 00:37:42,740 --> 00:37:43,780 in the IO control. 971 00:37:44,040 --> 00:37:44,840 Simply, the only time 972 00:37:44,840 --> 00:37:45,720 a MAC check takes place 973 00:37:46,320 --> 00:37:47,420 is when you try to open 974 00:37:47,420 --> 00:37:48,300 and access the device. 975 00:37:48,460 --> 00:37:48,960 But after that, 976 00:37:49,040 --> 00:37:49,600 you can communicate 977 00:37:49,600 --> 00:37:50,500 with the device readily, 978 00:37:50,660 --> 00:37:51,520 which is reasonable. 979 00:37:51,680 --> 00:37:52,800 But if somebody screwed up 980 00:37:52,800 --> 00:37:53,280 their device, 981 00:37:53,640 --> 00:37:54,380 then you can have access 982 00:37:54,380 --> 00:37:55,000 to the system. 983 00:37:55,780 --> 00:37:57,180 Also, it's worthwhile checking 984 00:37:57,180 --> 00:37:58,360 to see if IPC mechanisms 985 00:37:58,360 --> 00:37:59,140 on a system 986 00:37:59,140 --> 00:38:00,100 are actually using MAC. 987 00:38:00,380 --> 00:38:01,040 If they're not, 988 00:38:01,140 --> 00:38:01,700 you have a way 989 00:38:01,700 --> 00:38:02,800 to communicate with processes 990 00:38:02,800 --> 00:38:04,160 that are at a different level 991 00:38:04,160 --> 00:38:04,460 than you. 992 00:38:04,560 --> 00:38:06,320 And you can potentially use that 993 00:38:06,320 --> 00:38:07,100 as an attack path. 994 00:38:12,520 --> 00:38:13,440 It's important to remember 995 00:38:13,440 --> 00:38:14,520 that anything that you can find 996 00:38:14,520 --> 00:38:15,440 once you circumvent MAC 997 00:38:15,440 --> 00:38:16,980 is only then protected by DAC. 998 00:38:17,180 --> 00:38:17,900 Or if there's something 999 00:38:17,900 --> 00:38:19,020 that isn't actually checking 1000 00:38:19,020 --> 00:38:20,040 mandatory access control, 1001 00:38:20,320 --> 00:38:21,440 then you're probably back 1002 00:38:21,440 --> 00:38:23,340 to a DAC or no access check attack. 1003 00:38:23,760 --> 00:38:25,040 And now all you need possibly 1004 00:38:25,040 --> 00:38:26,260 is to know a password 1005 00:38:26,260 --> 00:38:27,040 to become a UID. 1006 00:38:27,160 --> 00:38:28,220 You're back to the old problem. 1007 00:38:28,500 --> 00:38:29,780 So again, as I say this a lot, 1008 00:38:29,880 --> 00:38:31,100 really what you're trying to do 1009 00:38:31,100 --> 00:38:32,140 is you're trying to reduce 1010 00:38:32,140 --> 00:38:33,120 your problem set 1011 00:38:33,120 --> 00:38:34,700 to get rid of the layers 1012 00:38:34,700 --> 00:38:35,820 that the trusted operating system 1013 00:38:35,820 --> 00:38:37,200 puts on by meeting 1014 00:38:37,200 --> 00:38:38,600 the access checks that it makes 1015 00:38:38,600 --> 00:38:39,700 and bringing it back 1016 00:38:39,700 --> 00:38:40,920 to a common attack problem. 1017 00:38:41,300 --> 00:38:42,020 It's difficult, 1018 00:38:42,160 --> 00:38:42,880 but it can be done 1019 00:38:42,880 --> 00:38:44,500 if the system is misconfigured. 1020 00:38:47,780 --> 00:38:49,000 These are real basic things 1021 00:38:49,000 --> 00:38:50,400 which you should just always check 1022 00:38:50,400 --> 00:38:51,160 because somebody might 1023 00:38:51,160 --> 00:38:51,860 screw up the box. 1024 00:38:52,120 --> 00:38:52,840 Try and log in 1025 00:38:52,840 --> 00:38:53,520 as a highly authorized 1026 00:38:53,640 --> 00:38:53,920 user. 1027 00:38:54,100 --> 00:38:54,880 Can you guess the password 1028 00:38:54,880 --> 00:38:56,080 for the security administrator? 1029 00:38:56,480 --> 00:38:57,900 Do they let you connect 1030 00:38:57,900 --> 00:38:59,300 as him from an external connection 1031 00:38:59,300 --> 00:39:00,920 and add an SL 1032 00:39:00,920 --> 00:39:01,600 that lets you run 1033 00:39:01,600 --> 00:39:02,500 administrative programs 1034 00:39:02,500 --> 00:39:03,640 or access system files? 1035 00:39:03,980 --> 00:39:04,740 It's worth trying. 1036 00:39:04,880 --> 00:39:05,980 It's probably not the case, 1037 00:39:06,000 --> 00:39:06,880 but it's definitely worth 1038 00:39:06,880 --> 00:39:07,420 looking at. 1039 00:39:07,620 --> 00:39:08,540 And also look for 1040 00:39:08,540 --> 00:39:09,280 the security databases. 1041 00:39:09,760 --> 00:39:10,760 They're pretty much the key 1042 00:39:10,760 --> 00:39:11,960 to the security on the system. 1043 00:39:12,120 --> 00:39:13,420 And if you can modify them, 1044 00:39:13,480 --> 00:39:14,220 you're going to own the box 1045 00:39:14,940 --> 00:39:15,700 fairly quickly. 1046 00:39:18,020 --> 00:39:18,840 Just to mention 1047 00:39:18,840 --> 00:39:19,840 some of the commercial trusted 1048 00:39:19,840 --> 00:39:20,460 operating systems 1049 00:39:20,460 --> 00:39:21,240 that are available. 1050 00:39:22,000 --> 00:39:22,840 There's of course 1051 00:39:22,840 --> 00:39:23,580 the company I work for 1052 00:39:23,640 --> 00:39:24,740 our systems group 1053 00:39:24,740 --> 00:39:25,340 we make PitBall. 1054 00:39:25,620 --> 00:39:26,660 That's on Solaris 7, 1055 00:39:26,740 --> 00:39:27,540 Spark, and x86. 1056 00:39:27,780 --> 00:39:28,780 We're porting to Solaris 8, 1057 00:39:28,940 --> 00:39:29,680 Solaris 6. 1058 00:39:29,820 --> 00:39:30,640 We have an early release 1059 00:39:30,640 --> 00:39:31,300 on AIX. 1060 00:39:31,400 --> 00:39:32,400 And we're porting to Linux 1061 00:39:32,400 --> 00:39:34,340 on 32-bit and 64-bit kernels. 1062 00:39:34,720 --> 00:39:36,400 And as I understand 1063 00:39:36,400 --> 00:39:37,180 that's going to be available 1064 00:39:37,180 --> 00:39:37,880 because I'm sure 1065 00:39:37,880 --> 00:39:38,640 some people here 1066 00:39:38,640 --> 00:39:39,300 are interested in that 1067 00:39:40,040 --> 00:39:41,700 by the end of the fourth quarter. 1068 00:39:41,800 --> 00:39:42,260 And we should have 1069 00:39:42,260 --> 00:39:43,040 a beta program available 1070 00:39:43,040 --> 00:39:43,800 for that as well. 1071 00:39:44,500 --> 00:39:45,480 HP makes a product 1072 00:39:45,480 --> 00:39:46,280 called Virtual Vault 1073 00:39:46,280 --> 00:39:47,360 which runs on HP hardware 1074 00:39:47,360 --> 00:39:48,380 and is part of a suite 1075 00:39:48,380 --> 00:39:49,080 called Presidium. 1076 00:39:49,480 --> 00:39:50,160 There's also 1077 00:39:50,160 --> 00:39:51,240 an effort underway 1078 00:39:51,240 --> 00:39:52,740 to create a trusted 1079 00:39:52,740 --> 00:39:53,420 operating system 1080 00:39:53,640 --> 00:39:54,080 an open source 1081 00:39:54,080 --> 00:39:54,960 trusted operating system 1082 00:39:55,460 --> 00:39:56,620 on top of FreeBSD. 1083 00:39:56,760 --> 00:39:57,380 And you can find out 1084 00:39:57,380 --> 00:39:58,120 information on that 1085 00:39:58,120 --> 00:40:01,020 at www.trustedbsd.com. 1086 00:40:02,880 --> 00:40:04,360 So the best way to learn 1087 00:40:04,360 --> 00:40:05,320 how to break these boxes 1088 00:40:05,320 --> 00:40:05,920 is of course 1089 00:40:05,920 --> 00:40:06,540 to have your own 1090 00:40:06,540 --> 00:40:07,380 and start securing it 1091 00:40:07,380 --> 00:40:08,080 and breaking it. 1092 00:40:08,440 --> 00:40:09,500 So you should get one 1093 00:40:09,500 --> 00:40:10,520 and start doing it. 1094 00:40:10,580 --> 00:40:11,640 And it's very easy to do 1095 00:40:11,640 --> 00:40:12,380 actually because we're 1096 00:40:12,380 --> 00:40:13,320 giving ours away for free 1097 00:40:13,320 --> 00:40:14,520 for individual 1098 00:40:14,520 --> 00:40:15,320 non-commercial use. 1099 00:40:16,040 --> 00:40:16,800 So if you go to 1100 00:40:17,520 --> 00:40:18,320 argusrevolution.com 1101 00:40:18,320 --> 00:40:20,880 we have ISO images 1102 00:40:21,720 --> 00:40:22,120 available. 1103 00:40:22,280 --> 00:40:22,920 You can order the media 1104 00:40:22,920 --> 00:40:23,620 all those kinds of things. 1105 00:40:23,640 --> 00:40:24,720 And you can have 1106 00:40:24,720 --> 00:40:25,420 unlimited licenses. 1107 00:40:25,780 --> 00:40:26,860 We make all that available. 1108 00:40:29,820 --> 00:40:31,280 I'll be making this speech 1109 00:40:31,280 --> 00:40:32,540 and the presentation 1110 00:40:32,540 --> 00:40:33,660 I gave for Black Hat 1111 00:40:33,660 --> 00:40:34,260 which as I said 1112 00:40:34,260 --> 00:40:35,260 was more detailed 1113 00:40:35,260 --> 00:40:36,980 as far as trusted 1114 00:40:36,980 --> 00:40:38,020 operating systems go 1115 00:40:38,020 --> 00:40:39,140 available on the 1116 00:40:39,140 --> 00:40:39,960 Argus Revolution website. 1117 00:40:40,320 --> 00:40:41,140 There's going to be 1118 00:40:41,140 --> 00:40:42,420 I believe a real audio stream 1119 00:40:42,420 --> 00:40:44,620 available on Black Hat's site 1120 00:40:44,620 --> 00:40:45,200 for the presentation 1121 00:40:45,200 --> 00:40:45,800 that I gave. 1122 00:40:45,980 --> 00:40:46,940 I don't know what the case 1123 00:40:46,940 --> 00:40:47,520 is for DEF CON 1124 00:40:47,520 --> 00:40:47,940 what they're doing 1125 00:40:47,940 --> 00:40:48,560 with that exactly. 1126 00:40:48,820 --> 00:40:49,800 And white papers 1127 00:40:49,800 --> 00:40:50,120 documentation 1128 00:40:50,120 --> 00:40:51,380 and there's a discussion 1129 00:40:53,640 --> 00:40:53,820 about that as well 1130 00:40:53,820 --> 00:40:54,200 if you have questions. 1131 00:40:54,480 --> 00:40:55,080 And of course 1132 00:40:55,080 --> 00:40:56,040 please feel free 1133 00:40:56,040 --> 00:40:56,760 to email me 1134 00:40:56,760 --> 00:40:58,140 if you have any questions. 1135 00:40:58,340 --> 00:40:58,800 And yes, 1136 00:40:58,860 --> 00:40:59,580 I will definitely 1137 00:40:59,580 --> 00:41:00,080 answer questions. 1138 00:41:01,040 --> 00:41:01,480 Yes? 1139 00:41:02,300 --> 00:41:02,740 . 1140 00:41:06,820 --> 00:41:07,260 . 1141 00:41:07,260 --> 00:41:07,300 . 1142 00:41:07,300 --> 00:41:07,480 . 1143 00:41:08,280 --> 00:41:08,720 . 1144 00:41:08,720 --> 00:41:08,780 . 1145 00:41:08,780 --> 00:41:08,840 . 1146 00:41:08,840 --> 00:41:08,860 . 1147 00:41:08,860 --> 00:41:08,940 . 1148 00:41:09,380 --> 00:41:09,820 . 1149 00:41:09,820 --> 00:41:09,940 . 1150 00:41:09,940 --> 00:41:12,740 Om In truth 1151 00:41:12,740 --> 00:41:13,500 most I know 1152 00:41:13,500 --> 00:41:14,520 from hearsay 1153 00:41:14,520 --> 00:41:15,900 I tried to contact them 1154 00:41:15,900 --> 00:41:16,700 but I didn't get a lot 1155 00:41:16,700 --> 00:41:17,460 of information back. 1156 00:41:17,680 --> 00:41:18,980 I know what they have done 1157 00:41:18,980 --> 00:41:19,400 is they released 1158 00:41:19,940 --> 00:41:21,280 what is based off of 1159 00:41:21,280 --> 00:41:23,080 the trusted IRx code base. 1160 00:41:23,320 --> 00:41:25,420 They did a CMW there 1161 00:41:25,420 --> 00:41:26,340 and basically 1162 00:41:26,340 --> 00:41:27,180 they released that code 1163 00:41:27,180 --> 00:41:28,100 as an example 1164 00:41:28,100 --> 00:41:28,840 and from what I understand 1165 00:41:28,840 --> 00:41:30,040 is that there is an effort 1166 00:41:30,040 --> 00:41:30,780 underway at SGI 1167 00:41:30,780 --> 00:41:31,980 at least with people 1168 00:41:31,980 --> 00:41:32,500 who work there 1169 00:41:32,500 --> 00:41:33,380 who are trying to create 1170 00:41:33,380 --> 00:41:34,820 a trusted Linux 1171 00:41:34,820 --> 00:41:35,440 which is essentially 1172 00:41:35,440 --> 00:41:36,200 based on 1173 00:41:36,200 --> 00:41:38,360 the trusted IRx code base. 1174 00:41:38,760 --> 00:41:39,800 . . . . . . . . . . . . . . . . 1175 00:41:41,140 --> 00:41:41,820 No comment. 1176 00:41:44,980 --> 00:41:46,940 Yeah, no comment. 1177 00:41:47,700 --> 00:41:49,200 You can come up and talk to me about it. 1178 00:41:49,240 --> 00:41:49,480 That's fine. 1179 00:41:49,920 --> 00:41:51,040 Just not through the microphone. 1180 00:41:52,640 --> 00:41:53,080 Yes? 1181 00:41:55,100 --> 00:41:55,540 Yes? 1182 00:42:00,360 --> 00:42:05,060 All right, the question was, 1183 00:42:05,120 --> 00:42:06,820 what about role-based access control, 1184 00:42:06,980 --> 00:42:07,840 something called RBAC? 1185 00:42:07,840 --> 00:42:11,460 RBAC is essentially a discretionary access control mechanism, 1186 00:42:12,120 --> 00:42:16,900 which is, I mentioned roles, like ISO, SOSA. 1187 00:42:17,040 --> 00:42:19,480 The idea there is you're creating roles, 1188 00:42:19,620 --> 00:42:23,380 and you can create an access control set around that. 1189 00:42:23,760 --> 00:42:26,540 It's not a pure mandatory system, 1190 00:42:26,720 --> 00:42:28,980 but it is still very useful. 1191 00:42:29,240 --> 00:42:32,220 That's actually out on Solaris 8, as I understand it. 1192 00:42:32,260 --> 00:42:33,680 RBAC is being made available as well. 1193 00:42:34,660 --> 00:42:37,040 Yeah, there is a Linux version as well. 1194 00:42:37,040 --> 00:42:39,120 Well, I've actually not used it on Linux yet. 1195 00:42:42,800 --> 00:42:43,240 Yeah. 1196 00:42:46,820 --> 00:42:48,120 Oh, there are. Okay. 1197 00:42:48,860 --> 00:42:51,920 Do you know what website that's on? 1198 00:42:59,220 --> 00:43:00,100 It's ARG... 1199 00:43:02,460 --> 00:43:03,140 RSBAC, okay. 1200 00:43:03,500 --> 00:43:04,300 DE, okay. 1201 00:43:05,640 --> 00:43:06,080 Okay. 1202 00:43:06,820 --> 00:43:12,060 So, you can do more than that for over three years, I believe. 1203 00:43:12,200 --> 00:43:12,560 Right. 1204 00:43:12,940 --> 00:43:13,060 Yeah. 1205 00:43:14,900 --> 00:43:15,800 It was a... 1206 00:43:17,840 --> 00:43:21,380 You started to get full control. 1207 00:43:21,840 --> 00:43:22,320 Mm-hmm. 1208 00:43:23,200 --> 00:43:23,720 All right. 1209 00:43:24,160 --> 00:43:25,000 Any other questions? 1210 00:43:25,420 --> 00:43:26,120 I didn't look... 1211 00:43:26,120 --> 00:43:26,980 Sorry, I haven't looked over here yet. 1212 00:43:26,980 --> 00:43:27,160 Yes? 1213 00:43:28,740 --> 00:43:29,940 Maybe I should walk out a little bit. 1214 00:43:30,000 --> 00:43:31,720 There's a question regarding the file system 1215 00:43:31,720 --> 00:43:33,940 and the things that are below that you can exploit. 1216 00:43:34,720 --> 00:43:35,980 You can't see... 1217 00:43:37,040 --> 00:43:38,860 If you go to the directory, you can't... 1218 00:43:38,860 --> 00:43:42,000 You don't know anything below the link, but you can't see. 1219 00:43:42,380 --> 00:43:42,780 Yes. 1220 00:43:45,960 --> 00:43:49,320 He was making a comment on seeing files in a directory, 1221 00:43:49,380 --> 00:43:50,640 and there's two things I'll say about that. 1222 00:43:51,420 --> 00:43:53,540 One is that if you are looking... 1223 00:43:53,540 --> 00:43:56,680 If you have access to a directory, to the directory file, 1224 00:43:56,960 --> 00:43:58,880 then you can see what's in a file. 1225 00:43:59,000 --> 00:44:00,520 But when then you go into the directory 1226 00:44:00,520 --> 00:44:01,960 and you actually try and look at the... 1227 00:44:01,960 --> 00:44:03,780 examine the structures of the files, 1228 00:44:03,860 --> 00:44:04,880 you may not have access to them. 1229 00:44:04,980 --> 00:44:06,740 The second thing is there's another concept. 1230 00:44:07,040 --> 00:44:07,720 It's called... 1231 00:44:08,140 --> 00:44:09,640 Oh, now it's going to escape my mind. 1232 00:44:10,560 --> 00:44:11,360 Partition directories. 1233 00:44:11,440 --> 00:44:15,700 And the idea is that you can create this directory structure. 1234 00:44:15,920 --> 00:44:18,000 It's kind of a virtual directory structure under directories 1235 00:44:18,000 --> 00:44:21,980 where depending on the level of the file that you're putting in there, 1236 00:44:22,040 --> 00:44:23,760 it will go into one of these subdirectories, 1237 00:44:23,760 --> 00:44:26,500 which is marked at a specific single level. 1238 00:44:26,700 --> 00:44:30,840 And so what level you're at kind of puts you into one of these subdirectories, 1239 00:44:30,840 --> 00:44:32,300 and you can't get access to the other ones. 1240 00:44:32,440 --> 00:44:35,580 So you can completely separate files that are at different levels from users. 1241 00:44:37,040 --> 00:44:37,360 Yes? 1242 00:44:37,780 --> 00:44:40,160 How complicated is the API in Mac? 1243 00:44:40,380 --> 00:44:43,980 And do we expect that third-party developers will have a problem with it? 1244 00:44:46,020 --> 00:44:48,440 Oh, do you want to exploit the third-party developers? 1245 00:44:48,840 --> 00:44:50,060 Oh, always. 1246 00:44:52,560 --> 00:44:56,400 No, the API isn't very complicated, fortunately, 1247 00:44:56,700 --> 00:44:58,280 at least speaking for myself. 1248 00:45:01,680 --> 00:45:02,560 But it... 1249 00:45:02,560 --> 00:45:04,180 And it's not really... 1250 00:45:04,180 --> 00:45:05,360 Well, I guess even with Mac stuff. 1251 00:45:05,700 --> 00:45:06,260 The... 1252 00:45:06,260 --> 00:45:09,180 I guess kind of the advantage to it is that when you're working with the API, 1253 00:45:09,520 --> 00:45:13,240 you're most likely working with it in very specific pieces of your code, 1254 00:45:13,360 --> 00:45:18,020 whereas the problem with standard Unix is that you're working with those things, 1255 00:45:18,160 --> 00:45:21,620 but you've pretty much said that you're working with it in the entire program 1256 00:45:21,620 --> 00:45:23,440 because you've said it's UID0. 1257 00:45:23,560 --> 00:45:25,080 Here's my, you know, here's all I can do. 1258 00:45:25,160 --> 00:45:27,020 And I can do, you know, change mods and things and files. 1259 00:45:28,200 --> 00:45:31,340 But when you're working with the Trusted Operating System APIs, 1260 00:45:32,080 --> 00:45:35,720 you're going to have to be very aware of what, you know, 1261 00:45:35,740 --> 00:45:36,240 what you're using. 1262 00:45:36,260 --> 00:45:36,960 You're not going to be using where you're using them 1263 00:45:36,960 --> 00:45:39,600 because they're going to apply specifically to the pieces of code 1264 00:45:39,600 --> 00:45:40,500 that you're trying to work with. 1265 00:45:40,680 --> 00:45:41,960 That made a little bit of sense. 1266 00:45:42,140 --> 00:45:43,840 I should also mention that on the site, 1267 00:45:43,940 --> 00:45:47,060 we make our SDK available as well for the product for free, 1268 00:45:47,120 --> 00:45:48,840 so people want to play around with that. 1269 00:45:48,920 --> 00:45:51,240 For example, I've made a multi-level aware LDAP server, 1270 00:45:51,460 --> 00:45:54,540 which does security using mandatory access control as well, 1271 00:45:54,660 --> 00:45:56,780 so you can limit access to the LDAP server 1272 00:45:56,780 --> 00:45:59,740 based on where users are coming from in a mandatory fashion. 1273 00:46:00,080 --> 00:46:01,800 That was just a little side project for fun. 1274 00:46:02,640 --> 00:46:03,040 Yes? 1275 00:46:03,280 --> 00:46:06,040 Does that mean applications have to be trusted, 1276 00:46:06,260 --> 00:46:06,480 or where? 1277 00:46:06,560 --> 00:46:07,780 No, absolutely not. 1278 00:46:10,240 --> 00:46:12,860 What you can do if you have what we call 1279 00:46:12,860 --> 00:46:14,160 a commercial off-the-shelf program, 1280 00:46:14,300 --> 00:46:15,780 which is a government way of saying 1281 00:46:15,780 --> 00:46:17,740 just regular programs that everybody uses, 1282 00:46:17,760 --> 00:46:18,320 like me and you, 1283 00:46:19,700 --> 00:46:21,680 you do not need to modify those programs. 1284 00:46:21,920 --> 00:46:25,020 However, if they would run on a system as a regular user, 1285 00:46:25,180 --> 00:46:26,960 they're not performing security-relevant functions, 1286 00:46:27,200 --> 00:46:28,840 so you just run them as normal. 1287 00:46:29,300 --> 00:46:31,620 However, if they would have run as root normally, 1288 00:46:31,800 --> 00:46:34,360 which means they probably were performing security-relevant functions, 1289 00:46:34,600 --> 00:46:36,080 then what you need to do is, 1290 00:46:36,260 --> 00:46:38,540 look at that program and figure out what privileges it needs. 1291 00:46:39,480 --> 00:46:41,080 Now, okay, how do you do that without code? 1292 00:46:41,280 --> 00:46:41,740 Well, you can. 1293 00:46:41,980 --> 00:46:43,020 For example, with Pitbull, 1294 00:46:43,080 --> 00:46:44,880 we have a program that we created called TracePV, 1295 00:46:44,960 --> 00:46:46,740 which essentially analyzes the binary, 1296 00:46:47,180 --> 00:46:48,540 the libraries that it's linking against, 1297 00:46:48,660 --> 00:46:49,320 and looks at all these things 1298 00:46:49,320 --> 00:46:50,980 and figures out what privileges it needs, 1299 00:46:51,100 --> 00:46:52,960 and will set up the program so it will run properly 1300 00:46:52,960 --> 00:46:54,120 in a least-privileged fashion. 1301 00:46:55,140 --> 00:46:57,740 Trusted Solaris has a program similar to that, 1302 00:46:57,760 --> 00:46:58,600 but it's much more limited. 1303 00:46:58,820 --> 00:47:00,980 I don't think Virtual Vault has anything like that at all. 1304 00:47:01,240 --> 00:47:01,680 I'm sorry? 1305 00:47:02,520 --> 00:47:03,140 Yes, please. 1306 00:47:11,740 --> 00:47:12,740 Ladies and gentlemen, 1307 00:47:14,420 --> 00:47:15,520 a couple things. 1308 00:47:17,240 --> 00:47:19,660 Racial slurs against people who are here 1309 00:47:19,660 --> 00:47:21,320 will not be tolerated. 1310 00:47:22,580 --> 00:47:24,100 Threats against the staff, 1311 00:47:24,360 --> 00:47:26,020 a la I will kick your ass, 1312 00:47:26,160 --> 00:47:27,660 or I will kill you, 1313 00:47:27,800 --> 00:47:29,400 will not be tolerated. 1314 00:47:30,540 --> 00:47:32,540 Threats against other convention-goers, 1315 00:47:32,600 --> 00:47:34,840 a la I will kick your ass or kill you, 1316 00:47:34,940 --> 00:47:36,240 will not be tolerated. 1317 00:47:37,660 --> 00:47:39,040 There's a group of people out there 1318 00:47:39,040 --> 00:47:41,060 who seem to think that IRC is real life. 1319 00:47:42,440 --> 00:47:43,700 IRC is not real life. 1320 00:47:44,400 --> 00:47:45,980 In real life, that is assault. 1321 00:47:46,960 --> 00:47:48,040 And you will go to jail. 1322 00:47:49,200 --> 00:47:50,500 I'm hoping some of their friends 1323 00:47:50,500 --> 00:47:51,480 are in this room right now. 1324 00:47:52,420 --> 00:47:53,920 I'm hoping these people will get to them 1325 00:47:53,920 --> 00:47:55,760 and tell them to go away and not to come back, 1326 00:47:55,920 --> 00:47:57,780 so I do not have to put you in jail. 1327 00:47:58,800 --> 00:47:59,880 Because if I catch you, 1328 00:48:00,440 --> 00:48:01,820 I will make sure you go to jail. 1329 00:48:02,900 --> 00:48:04,540 I'm sorry to have to bring this up this way, 1330 00:48:05,040 --> 00:48:06,240 but this will not be tolerated. 1331 00:48:06,260 --> 00:48:07,940 And this is the third or fourth incident 1332 00:48:07,940 --> 00:48:09,660 that I have heard in the last two days 1333 00:48:10,140 --> 00:48:11,120 with this group of people. 1334 00:48:11,740 --> 00:48:13,340 We are supposed to be enlightened, 1335 00:48:13,500 --> 00:48:14,940 mature adults. 1336 00:48:16,100 --> 00:48:17,800 Good fun and pranks is fine. 1337 00:48:19,120 --> 00:48:21,120 Threatening to hurt someone is not fine. 1338 00:48:22,860 --> 00:48:24,100 Thank you very much for your time. 1339 00:48:36,380 --> 00:48:37,920 Are there any other questions I can answer? 1340 00:48:40,260 --> 00:48:40,620 Yes. 1341 00:48:41,140 --> 00:48:42,500 What's the price of the product? 1342 00:48:44,380 --> 00:48:44,900 No comment. 1343 00:48:48,380 --> 00:48:51,200 Actually, the pricing model and all that stuff has changed, 1344 00:48:51,340 --> 00:48:53,220 and I am an engineer, not a salesperson, 1345 00:48:53,920 --> 00:48:55,660 so I hate to answer those questions. 1346 00:48:56,800 --> 00:48:57,620 I should say, 1347 00:48:57,800 --> 00:49:00,160 and maybe I can get a round of applause for this 1348 00:49:00,160 --> 00:49:00,820 and make me feel good, 1349 00:49:00,940 --> 00:49:02,220 the program I mentioned before, 1350 00:49:02,300 --> 00:49:03,200 the Argus Revolution Program, 1351 00:49:03,260 --> 00:49:04,360 was actually put together by me. 1352 00:49:04,440 --> 00:49:05,060 I pushed it through. 1353 00:49:05,060 --> 00:49:07,820 I wanted to make the product available to people for free, 1354 00:49:07,860 --> 00:49:09,080 like me and you, 1355 00:49:09,160 --> 00:49:11,180 because it's worth us using it. 1356 00:49:11,500 --> 00:49:12,440 So, that's it. 1357 00:49:12,520 --> 00:49:13,060 All right. 1358 00:49:14,460 --> 00:49:14,860 Thanks.