1 00:00:03,160 --> 00:00:12,940 I stand for the next to last talk on the last day, putting up with the fire marshal and the Jesus freaks in there and all that. 2 00:00:15,100 --> 00:00:18,100 I'm Inertia, and I'm here to talk about Intermart COS. 3 00:00:18,140 --> 00:00:23,900 It's a distribution of Linux that the Nomad Mobile Research Center developed. 4 00:00:25,460 --> 00:00:27,840 Nomad started this project a long time ago. 5 00:00:29,040 --> 00:00:40,340 It never really got off the ground, but we've been working pretty hard on it after the events that Nomads talked about yesterday at our panel. 6 00:00:43,180 --> 00:00:47,840 Overall goals for the project, we want a stable, secure, trusted system. 7 00:00:50,200 --> 00:00:57,460 Users, initially we were going to make this kind of like as hard to install as we possibly could. 8 00:00:58,880 --> 00:01:06,500 We'd basically provide you with a floppy, and you'd get a shell, and then tell you to untar this file or some shit like that. 9 00:01:07,740 --> 00:01:18,220 We changed that when we realized that we wanted to make it more accessible to people that weren't really that knowledgeable about security. 10 00:01:19,320 --> 00:01:22,940 So that it comes up locked down. 11 00:01:23,140 --> 00:01:26,300 And you don't... 12 00:01:26,300 --> 00:01:27,060 So that the... 13 00:01:29,300 --> 00:01:38,420 The administrator just has to unlock things in order to get access to the internet and everything so that it's more secure. 14 00:01:38,560 --> 00:01:46,320 The intended uses, things like, you know, human rights activists and stuff like that. 15 00:01:46,380 --> 00:01:55,840 Although if you heard Philip Zimmerman's talk at Black Hat, I probably shouldn't say that because now I can't use that in court to get out of shit. 16 00:01:56,120 --> 00:01:56,600 So... 17 00:01:58,680 --> 00:02:02,140 Anyway, like I said, Nomad came up with this idea. 18 00:02:02,280 --> 00:02:08,920 His first idea was to use a Slackware install and kind of hack through things and hodgepodge it together. 19 00:02:09,140 --> 00:02:11,160 It never really got off the ground. 20 00:02:13,700 --> 00:02:17,120 What I think what the problem was is that it was a little... 21 00:02:17,120 --> 00:02:17,980 It was like too... 22 00:02:17,980 --> 00:02:21,680 There was too much overhead required to get it out the door. 23 00:02:23,340 --> 00:02:26,320 So when I came on, I said, well, hey, what... 24 00:02:26,320 --> 00:02:35,780 You know, why don't we start with something else, you know, and we talked about several different distributions, you know, Red Hat and Debian and stuff like that. 25 00:02:35,860 --> 00:02:37,600 We ended up going with Debian. 26 00:02:38,600 --> 00:02:54,480 And the reason why we decided to do that was because I've had several problems with Red Hats, Red Hat before, and the quality of Debian just seemed to be far and above the best of any distribution that I could find. 27 00:02:55,120 --> 00:02:55,580 So... 28 00:02:55,580 --> 00:02:56,300 So... 29 00:02:56,300 --> 00:02:58,020 Their documentation was up to date. 30 00:02:58,300 --> 00:03:01,880 They had everything about how to make a derivative CD. 31 00:03:03,740 --> 00:03:06,040 It was just a really high quality distribution. 32 00:03:06,620 --> 00:03:08,880 And so we decided to go with that. 33 00:03:11,000 --> 00:03:18,000 Now, the other thing is, you know, why not just start from scratch and do a completely new distribution? 34 00:03:18,420 --> 00:03:19,880 We thought about that as well. 35 00:03:19,960 --> 00:03:26,080 But in the end, you know, the only real rationale for that would be... 36 00:03:26,300 --> 00:03:27,880 Just, you know, bragging rights. 37 00:03:28,680 --> 00:03:31,380 You know, we would have to make our own installer. 38 00:03:31,680 --> 00:03:36,780 We'd have to make our own, you know, CD creation, you know, system and everything. 39 00:03:37,020 --> 00:03:49,220 And so it just really didn't seem to be that big of a problem to take one that already exists. 40 00:03:49,340 --> 00:03:51,100 I mean, that's one of the hacker tenets. 41 00:03:51,140 --> 00:03:52,120 Use what's out there, right? 42 00:03:52,220 --> 00:03:53,280 So that's what we did. 43 00:03:53,760 --> 00:03:54,420 All right. 44 00:03:56,940 --> 00:03:57,540 All right. 45 00:03:57,580 --> 00:03:58,880 So we got a Debian-based OS. 46 00:03:59,280 --> 00:04:03,340 We got a tweaked kernel that's still running kernel 2.2. 47 00:04:03,500 --> 00:04:05,060 That's how old this project is. 48 00:04:06,740 --> 00:04:10,500 Nomad is, you know, I didn't do everything on the project. 49 00:04:10,580 --> 00:04:11,640 Took all of us to do it. 50 00:04:12,840 --> 00:04:15,480 Nomad was the guy that did most of the kernel work. 51 00:04:18,460 --> 00:04:20,060 So I'll talk about that here. 52 00:04:20,580 --> 00:04:23,760 We got 2.2.25 right now. 53 00:04:23,840 --> 00:04:25,200 I think we got an update to that. 54 00:04:26,300 --> 00:04:32,800 The open wall patch, the haplenix pass, trusted path and forest, and we got random IP IDs. 55 00:04:37,200 --> 00:04:44,320 We didn't go with the GR security patch because Nomad thought that it would be a little more. 56 00:04:45,020 --> 00:04:49,820 They had some cool stuff in there, but Nomad thought that it was more difficult to set up. 57 00:04:50,000 --> 00:04:56,120 So we ought to stay with what we got here and later on move on to that if we could. 58 00:04:57,840 --> 00:05:05,280 Now, I should note that this isn't, the idea for this coming out now with a 1.0 release, 59 00:05:06,120 --> 00:05:07,880 there's certainly going to be a lot of problems. 60 00:05:08,000 --> 00:05:10,980 And I'm sure, I mean, you guys, you're going to find a lot, I'm sure. 61 00:05:12,640 --> 00:05:18,440 But the idea is kind of like why we're releasing Encrypt and Incovert, you know, 62 00:05:18,440 --> 00:05:25,300 to get you guys to think and to try and come up with new ideas that maybe, you know, 63 00:05:25,300 --> 00:05:26,280 avenues we haven't even thought about. 64 00:05:26,300 --> 00:05:29,260 Or thought of, of how to lock the box down, how to do things. 65 00:05:30,940 --> 00:05:41,440 So when I talk about things like why we, for instance, we, let me see here. 66 00:05:43,680 --> 00:05:52,180 But why we, one of the goals of the project is we're trying to enforce, 67 00:05:52,360 --> 00:05:56,020 to help not just the security of the administrator, but the security of the users. 68 00:05:56,300 --> 00:05:57,900 And the privacy of the users as well. 69 00:05:58,260 --> 00:05:59,960 That's why we have Encrypt on there. 70 00:06:00,620 --> 00:06:03,880 We're planning on having cryptographic file systems. 71 00:06:03,980 --> 00:06:04,740 We don't have it yet. 72 00:06:05,240 --> 00:06:08,920 We want to get this out to you guys so that you can use it, see what's wrong, 73 00:06:09,020 --> 00:06:14,260 see what you think can be improved, get it back to us, and, you know, away we go. 74 00:06:15,540 --> 00:06:17,560 We have some customized applications. 75 00:06:17,740 --> 00:06:20,740 Pine, I think, is it still 4.56? 76 00:06:22,100 --> 00:06:25,540 It might have been updated, but we tweaked that so that the, 77 00:06:26,300 --> 00:06:30,720 the headers come back all screwy so you, you don't know what's sending it. 78 00:06:30,900 --> 00:06:34,940 And Sendmail 8.12.9, we went with that. 79 00:06:34,940 --> 00:06:38,320 That, if you're familiar with Debian, they have three mini-distributions within itself. 80 00:06:38,600 --> 00:06:40,440 It's stable, testing, and unstable. 81 00:06:41,440 --> 00:06:45,700 Currently, or at the time of this writing, Sendmail 8.12.9 was an unstable. 82 00:06:46,440 --> 00:06:51,520 So you may ask, why did we use unstable in our shipped, shipped version? 83 00:06:52,720 --> 00:06:56,140 Well, we found a couple problems with, security problems. 84 00:06:56,300 --> 00:07:01,100 We found a couple problems with it, and Nomad felt safer going with Sendmail 8.12.9 85 00:07:01,100 --> 00:07:03,100 as opposed to what's currently in Debian's. 86 00:07:03,740 --> 00:07:03,840 Yeah. 87 00:07:09,340 --> 00:07:10,220 That, right. 88 00:07:10,400 --> 00:07:13,400 The question was, why did we use Sendmail as opposed to something else? 89 00:07:14,440 --> 00:07:17,780 Debian, by default, installs EXIM, I think. 90 00:07:17,920 --> 00:07:22,060 And so why do we, why do we even bother selling Sendmail by default? 91 00:07:22,240 --> 00:07:26,220 Well, the reason for that is because it came down from the mountain on a, 92 00:07:26,300 --> 00:07:28,660 on a tablet from, from Nomad. 93 00:07:28,740 --> 00:07:30,140 He said, we're going to install Sendmail. 94 00:07:30,820 --> 00:07:32,940 So, if you don't like Sendmail, blame him. 95 00:07:34,880 --> 00:07:39,300 And we also, he, that, that's what he's most familiar with, and I haven't really, 96 00:07:39,760 --> 00:07:44,460 I'm not really a mailer guy, so I said, you know, what the fuck, we'll do that. 97 00:07:46,040 --> 00:07:54,160 The other thing we do is we auto-run Bastille by default during the second stage install, 98 00:07:54,960 --> 00:07:56,280 assuming that you choose Debian. 99 00:07:56,300 --> 00:07:57,780 So, if you choose to install Bastille, it auto-runs. 100 00:07:58,720 --> 00:08:03,040 I think, I think we're the only distribution that does that on install by default. 101 00:08:06,580 --> 00:08:10,120 The other things that we got going on is it installs and boots up in a locked-down state. 102 00:08:10,300 --> 00:08:13,540 We've, we've done the tests where we install the operating system. 103 00:08:14,080 --> 00:08:15,540 We have another system hooked up. 104 00:08:15,560 --> 00:08:19,140 We run Nmap against it repeatedly to make sure that everything's locked down and it, 105 00:08:19,180 --> 00:08:23,120 it comes back, everything's clean, locked down by default. 106 00:08:23,340 --> 00:08:25,020 You open it, the administrator opens it up. 107 00:08:25,060 --> 00:08:26,280 If they, if they, 108 00:08:26,280 --> 00:08:29,200 if they feel like they want to have a particular application running. 109 00:08:31,020 --> 00:08:34,380 We have Snort on there that's also installed. 110 00:08:35,100 --> 00:08:38,500 If you go through the, the task selection and select that. 111 00:08:40,260 --> 00:08:46,200 As I mentioned before, we have Encrypt and Encovert, which Nomad talked about yesterday. 112 00:08:47,920 --> 00:08:52,260 I was going to do this, and I'm really sorry I can't do it, but I, I was timing it, 113 00:08:52,340 --> 00:08:55,900 and I, I would go way over if I tried to do this. 114 00:08:56,280 --> 00:08:59,100 And explain every step to you guys, and I'm, I'm really sorry. 115 00:09:00,880 --> 00:09:04,320 There's just no time to, to do a, a live demonstration of it. 116 00:09:09,320 --> 00:09:12,720 Now, you may be wondering, like, how do we, how do we maintain that? 117 00:09:12,820 --> 00:09:17,620 Well, we have a, a, a, a package repository set up just like Debian. 118 00:09:18,360 --> 00:09:21,280 The system is nmrcos.nmrc.org. 119 00:09:22,260 --> 00:09:25,140 That is also set up in your app setup whenever you, 120 00:09:25,720 --> 00:09:26,260 whenever you, whenever you, whenever you, whenever you, whenever you, whenever you, 121 00:09:26,280 --> 00:09:28,400 whenever you install the, the, the system. 122 00:09:29,200 --> 00:09:32,380 It should automatically go out there and look for, for package updates. 123 00:09:32,820 --> 00:09:34,220 We don't have anything out there yet. 124 00:09:34,280 --> 00:09:39,080 When we get back, we're going to throw in Encrypt and Encovert and, and a few other goodies. 125 00:09:40,580 --> 00:09:43,740 The thing about apt, it lets us graft on to Debian. 126 00:09:43,820 --> 00:09:46,840 We don't have to customize every single application. 127 00:09:47,420 --> 00:09:51,340 By providing our own app server, you can run Debian's version of X Windows, 128 00:09:51,440 --> 00:09:54,500 even though we don't provide it, and even though we don't, may not, you know, support it. 129 00:09:55,100 --> 00:09:56,180 You know, essentially... 130 00:09:56,280 --> 00:10:05,320 you have X windows and all the associated garbage that goes along with it developing for a number 131 00:10:05,320 --> 00:10:12,420 COS if you want to develop for em or COS creating a non kernel package is really simple and it's 132 00:10:12,420 --> 00:10:17,340 actually already taken again by by basing it off of Debian you can already you can just go to the 133 00:10:17,340 --> 00:10:22,780 Debian website and check out the Debian developers reference which tells you exactly how to make a 134 00:10:22,780 --> 00:10:30,220 package if I had time to do the demonstration and I'm really sorry I would have shown you briefly 135 00:10:30,220 --> 00:10:39,240 how to do that creating the kernel package is very similar it's also very easy what you do is you use 136 00:10:39,240 --> 00:10:46,240 a Debian supplied tool kernel package that will tell you how to build it and install it and creates 137 00:10:46,240 --> 00:10:51,800 a dev for you there's really not not a whole lot you got to do it's it's they made it really easy 138 00:10:51,800 --> 00:10:52,200 you 139 00:10:52,780 --> 00:11:02,040 when you distribute your package you can either send it to us or FTP it to the to your own website 140 00:11:02,920 --> 00:11:07,280 there's there's documents out there that tell you how to how to set up your own app repository if 141 00:11:07,280 --> 00:11:16,400 you want so you can have yours ours then Debian's and kind of graft on to ours that way creating 142 00:11:16,400 --> 00:11:22,660 your own distro we have actually the Debian included tools to create a CD require that 143 00:11:22,780 --> 00:11:29,480 you have an entire mirror of the Debian archive or at least a section of it which makes it kind of 144 00:11:30,160 --> 00:11:36,960 makes it extremely actually disc intensive it's you know it's like it I don't know 80 gig for the 145 00:11:36,960 --> 00:11:43,680 whole thing I think right now we created some tools that allow you to to create a CD using a 146 00:11:43,680 --> 00:11:49,780 very minimal amount of disk space I think currently we're using like maybe a hundred fifty meg total 147 00:11:49,780 --> 00:11:54,900 for the creation to see and everything that's on there as an NMRC dash CD 148 00:11:54,900 --> 00:12:01,240 package so when you install that you can you can basically learn how to create 149 00:12:01,240 --> 00:12:09,920 your own NMRC OS based CDs and kind of do what we did to Debian let's see now 150 00:12:09,920 --> 00:12:13,400 there's a lot of future plans for this thing like I said we're going to 151 00:12:13,400 --> 00:12:20,040 implement a lot of a lot of things regarding privacy for the user not just 152 00:12:20,040 --> 00:12:21,900 privacy and security for the admin 153 00:12:24,880 --> 00:12:32,440 there's been a recent talk in the Red Hat community about opening up the the 154 00:12:32,440 --> 00:12:37,100 development process for Red Hat Linux and I've been playing around with that 155 00:12:37,100 --> 00:12:42,220 and I've got a semi working copy of an rpm Red Hat based 156 00:12:42,220 --> 00:12:43,380 version of my NMRC buena so I've also been talking to a lot of people for 157 00:12:43,380 --> 00:12:48,500 of this and so we were talking about having you know both or out there so 158 00:12:48,500 --> 00:12:52,640 that people that want to use an RPM or Red Hat based distro can do that as well 159 00:12:56,820 --> 00:13:00,700 and now I'm going to open this up to questions and follow-up because I'm sure 160 00:13:00,700 --> 00:13:01,880 you guys have a quite a few 161 00:13:05,960 --> 00:13:06,360 anything 162 00:13:07,580 --> 00:13:07,980 yeah 163 00:13:16,260 --> 00:13:19,260 I'm sorry I can't hear you let me run back there 164 00:13:26,820 --> 00:13:31,180 oh yeah can I get a bit more specific about Trusted Path and other kernel mods 165 00:13:31,180 --> 00:13:36,300 as I said Nomad was the primary developer on kernel mods and stuff like 166 00:13:36,300 --> 00:13:43,360 that so I'm gonna let him answer that that's alright hey the basically I'm 167 00:13:43,360 --> 00:13:46,860 on the Trusted Path when essentially what it does is in the kernel it enforces 168 00:13:46,860 --> 00:13:53,760 that when you run an executable it has to be owned by root it has to not be 169 00:13:53,760 --> 00:13:58,020 world or group writable it has to be in a directory owned by roots that it's not 170 00:13:58,020 --> 00:14:02,560 world or group writable and this applies even to root that way if someone gets on 171 00:14:02,560 --> 00:14:06,920 your box and puts some code in there and for some reason you've altered your 172 00:14:06,920 --> 00:14:10,480 path to actually execute from your current directory first for example 173 00:14:10,480 --> 00:14:13,100 which would be stupid but if you did that 174 00:14:13,360 --> 00:14:17,840 the thing has to be owned by root the whole idea is that if someone pops an 175 00:14:17,840 --> 00:14:24,000 account on the system then they're gonna have to they're gonna have to get roots 176 00:14:24,000 --> 00:14:27,480 to get their executable to run that doesn't kill everything I know someone's 177 00:14:27,480 --> 00:14:33,480 gonna say does it handle the like say a pearl dash E and then put your gobbledygook 178 00:14:33,480 --> 00:14:38,060 in there no it doesn't take care of that but it does at least kind of you 179 00:14:38,060 --> 00:14:43,340 know raise the bar a little bit as far as the other mods go the main thing is the the open ook mod 180 00:14:43,360 --> 00:14:48,700 wall patch, as well as, I don't know how many people are familiar with the HAP Linux patch. 181 00:14:48,980 --> 00:14:53,020 Those are the two main things. The HAP Linux patch mainly does some stuff for cherooting 182 00:14:53,020 --> 00:15:01,720 and a little bit better logging during p-tracing and stuff like that. A little more control 183 00:15:01,720 --> 00:15:13,120 over what's going on there. The HAP Linux patch, where is it from? From some guy named 184 00:15:13,120 --> 00:15:19,400 Hank. I can't remember the URL off the top of my head. Google is your friend. If you 185 00:15:19,400 --> 00:15:29,820 look for HAP Linux, you'll find the patch. It's like aimsgroup.com slash something or 186 00:15:29,820 --> 00:15:31,800 other. I can't remember the URL off the top of my head. 187 00:15:36,320 --> 00:15:39,180 Yeah, we looked at the TrustedW project. 188 00:15:42,660 --> 00:15:43,100 There's a lot of stuff going on there. 189 00:15:43,120 --> 00:15:47,300 There's a lot of secure versions of Debian out there. Trusted and some other things like 190 00:15:47,300 --> 00:15:54,600 that. Let me go up here. We looked at that. You may wonder, why didn't we just join the 191 00:15:54,600 --> 00:15:58,800 Debian project and contribute that way? Why did we have to create our own distribution? 192 00:16:00,520 --> 00:16:07,220 Well, the reason for that is a couple reasons. A, a lot of us are extremely paranoid and 193 00:16:07,220 --> 00:16:12,520 we don't want to join any other project. Debian, I think, requires... 194 00:16:12,520 --> 00:16:17,460 If I remember correctly, it requires that you actually physically meet someone in order 195 00:16:17,460 --> 00:16:25,280 to get your key signed and everything. There's a lot of us that just really frightens us. 196 00:16:27,340 --> 00:16:33,020 The other thing is, the reason why is because there's been some differences. One of the 197 00:16:33,020 --> 00:16:38,240 things I talked about yesterday, I forgot to mention today, is that something as simple 198 00:16:38,240 --> 00:16:41,700 as clearing the screen whenever you log out... 199 00:16:42,520 --> 00:16:49,100 ...was a difference between what we wanted and what the Debian wanted. The latest Debian Mailing 200 00:16:49,100 --> 00:16:55,480 List Archive that I saw, was that they decided that, by default, Bash should not clear the 201 00:16:55,480 --> 00:16:56,760 screen upon logout. 202 00:16:57,180 --> 00:17:04,160 Now, I agree, that security through obscurity never works. However, if we're targeting this 203 00:17:04,160 --> 00:17:10,780 for people that may not know a lot about security, it just helps. It doesn't hurt. If they don't 204 00:17:10,780 --> 00:17:12,460 know what they're doing...南 205 00:17:12,460 --> 00:17:16,500 they leave and they leave all the crap that they've been doing they could leave something there 206 00:17:16,500 --> 00:17:23,240 that could later on be used to break into the system so something as simple as that allows you 207 00:17:23,240 --> 00:17:28,420 know made us kind of think you know why don't we just go our own way we'll graft on the debian 208 00:17:31,280 --> 00:17:35,260 and we'll that way we'll have complete control over what we want to override 209 00:17:35,260 --> 00:17:37,660 and how we want to produce this 210 00:17:43,120 --> 00:17:50,700 what do we use for a firewall that's currently IP chains to to kernel IP chains so that's what 211 00:17:50,700 --> 00:17:55,380 we're using there and in the in the install there's an actual thing where it's where it 212 00:17:55,380 --> 00:17:59,880 sets it up and all that for you yeah 213 00:18:11,000 --> 00:18:19,240 it's a gs2 gs variant okay well cool thanks man I appreciate we'll take a look at that what's 214 00:18:22,120 --> 00:18:33,720 okay well let me let me talk to you after this and we'll we'll get we'll get okay okay cool thanks 215 00:18:35,820 --> 00:18:37,620 he was saying that 216 00:18:37,660 --> 00:18:44,780 there's a gen 2 kernel that has most of the features that we have in there and it's a lot faster 217 00:18:48,220 --> 00:18:58,200 the o1 batch scheduler whole bunch of other shit so so take a look at gen 2 all right yeah cool 218 00:18:58,200 --> 00:19:06,960 we'll do that really I am NOT aware of that 219 00:19:08,540 --> 00:19:21,020 I'm sorry I didn't know if we have we have some CDs to give out so and I've I think we tested every single one of them to make sure they boot so I'll make sure to get you one okay 220 00:19:29,020 --> 00:19:30,720 do we provide source packages 221 00:19:33,360 --> 00:19:37,560 Deb source packages do we provide Deb source packages 222 00:19:37,660 --> 00:19:45,040 they are not on the CD we're uploading them to nmrcos.nmrc.org so 223 00:19:45,040 --> 00:19:49,300 you can app get them just like all the other stuff so that that should be done 224 00:19:49,300 --> 00:19:53,220 we tried we had some problems accessing it from here so we're gonna do it when 225 00:19:53,220 --> 00:19:55,980 we get back yes 226 00:20:00,480 --> 00:20:05,880 steg in the file system like a rubber hose 227 00:20:07,660 --> 00:20:08,000 you 228 00:20:08,000 --> 00:20:08,980 you