1 00:00:02,440 --> 00:00:28,260 You, sir, uh, you, Nick. Okay, well, I know the stragglers, all of them, sir. What's that? Okay, you let me know if you can't hear me, okay? You let me know if you can't hear me. I'm losing my voice. I've been talking, I've been hanging out at parties at DEFCON until, uh, well, anybody know when the last party let out? Was it around 5 a.m. or 6 a.m.? 2 00:00:28,860 --> 00:00:34,420 Anyway, um, so I'm kind of losing my voice, but we'll, uh, we'll, uh, we'll get by. 3 00:00:35,680 --> 00:00:38,560 Um, anyway, so I'm going to talk today about Bastille Linux. 4 00:00:39,300 --> 00:00:42,000 Um, has anybody here been in the room before? 5 00:00:42,160 --> 00:00:46,160 Has anybody been, seen, uh, seen me talk about Bastille at a previous DEFCON? 6 00:00:47,520 --> 00:00:49,200 Okay, well, that's kind of cool. 7 00:00:49,540 --> 00:00:54,680 Okay, there's not a huge amount of repeats, but there's some, so, you know, in terms of introducing it, so. 8 00:00:55,180 --> 00:00:57,040 You guys should still be happy. It should be fun. 9 00:01:00,060 --> 00:01:00,460 What's that? 10 00:01:01,400 --> 00:01:03,980 Okay, so I'm supposed to remind you all that we're being recorded. 11 00:01:04,660 --> 00:01:05,760 I'm not sure why. 12 00:01:06,280 --> 00:01:09,800 Maybe, I think they've had a few people streaking through the, uh, through the talks. 13 00:01:10,240 --> 00:01:10,600 Um. 14 00:01:12,700 --> 00:01:13,680 Yeah, I wish. 15 00:01:14,880 --> 00:01:16,300 Okay, so, anyway. 16 00:01:17,960 --> 00:01:18,320 Um. 17 00:01:20,240 --> 00:01:22,440 Bastille Linux, who's, who's used it in here? 18 00:01:22,560 --> 00:01:23,960 Or, or downloaded it at least? 19 00:01:23,980 --> 00:01:25,720 Because lots of people download it, I'm sure, and never use it. 20 00:01:26,000 --> 00:01:26,360 Okay. 21 00:01:26,800 --> 00:01:28,240 So, for the rest of you. 22 00:01:28,260 --> 00:01:29,560 Here's what Bastille Linux is. 23 00:01:29,980 --> 00:01:33,080 It's a security hardening script for Linux and Unix. 24 00:01:33,120 --> 00:01:35,880 I'll talk about what a hardening script does, why you want one, why it's useful. 25 00:01:36,340 --> 00:01:46,920 But, uh, now we're working on Red Hat 7.3 and Mandrake 8.2 and Turbo Linux 7.0 and SUSE 7.2 and Debian 2 and, uh, and HPUX 11. 26 00:01:47,620 --> 00:01:49,380 Um, 11.0, 11.i, whatever. 27 00:01:49,960 --> 00:01:53,040 And, uh, and that's a lot more than last year. 28 00:01:53,100 --> 00:01:55,320 Because last year I just came up and said Red Hat and Mandrake. 29 00:01:55,380 --> 00:01:57,560 But it turns out a bunch of people have all been helping out. 30 00:01:58,260 --> 00:02:00,680 Um, sometimes they port it and they don't tell me about it. 31 00:02:00,740 --> 00:02:01,460 I find out about it later. 32 00:02:01,520 --> 00:02:03,560 Sometimes they port it and, uh, send me an email. 33 00:02:03,620 --> 00:02:05,580 I'm just like, hey, I, I ported Bastille. 34 00:02:05,600 --> 00:02:06,060 Hope you don't mind. 35 00:02:06,180 --> 00:02:07,600 It's like, no, that's really great. 36 00:02:07,760 --> 00:02:08,380 Thanks, guys. 37 00:02:10,940 --> 00:02:13,240 Um, we're going for more operating systems next. 38 00:02:13,700 --> 00:02:17,380 The easiest way to vote on your choice of next operating system. 39 00:02:17,760 --> 00:02:21,840 Okay, this is really a geek conference if I'm sitting here telling you guys you should vote on operating systems. 40 00:02:21,980 --> 00:02:22,840 But, but okay. 41 00:02:23,480 --> 00:02:27,880 Um, um, our, the next few we're, we're expecting to do are, uh, 42 00:02:27,880 --> 00:02:29,140 we know we're going to do Solaris. 43 00:02:29,360 --> 00:02:31,260 Solaris is definitely going to be a fun one. 44 00:02:31,420 --> 00:02:35,340 Um, because I think that operating system is actually getting worse with each release. 45 00:02:35,940 --> 00:02:44,720 Uh, I don't know how many of you have seen Solaris 9, but, uh, it's, it's, and it's nice, it's functional, but it's really functional, so, um. 46 00:02:45,420 --> 00:02:46,340 It sure is. 47 00:02:46,640 --> 00:02:48,120 It sure is, yeah. 48 00:02:48,620 --> 00:02:51,440 Okay, um, we're talking about OpenBSD some. 49 00:02:51,640 --> 00:02:53,640 Um, any OpenBSD developers in here? 50 00:02:54,160 --> 00:02:55,960 Okay, I can tell because no one's throwing anything. 51 00:02:56,080 --> 00:02:56,860 Yeah, in the back. 52 00:02:57,080 --> 00:02:57,720 Okay, well. 53 00:02:57,880 --> 00:02:59,500 He can't throw that far, I hope, so. 54 00:03:00,100 --> 00:03:05,920 Anyway, um, yeah, I didn't really think about hardening OpenBSD until, uh, until really recently because it's, 55 00:03:05,920 --> 00:03:14,140 the thing is OpenBSD is the, the operating system that probably, you know, is darn near the best in terms of off-the-shelf operating systems that everyone can, everyone can use. 56 00:03:14,380 --> 00:03:16,020 They start out with really good defaults. 57 00:03:16,020 --> 00:03:27,020 They, they very rarely, you know, their, their big slogan is something like, uh, um, uh, six years, well, it was something like six years without a, without a, without a root hole in the default install. 58 00:03:27,400 --> 00:03:31,720 And, uh, now it's like, I think it's six years with only one root hole in the default install. 59 00:03:32,800 --> 00:03:34,960 But no, that's really, really good. 60 00:03:35,160 --> 00:03:39,040 I'd like to be, listen, people ask me, you know, vendors are getting better with settings. 61 00:03:39,200 --> 00:03:40,640 Are you ever not going to have to write Bastille? 62 00:03:40,880 --> 00:03:42,500 Not if they keep going the way they are. 63 00:03:42,600 --> 00:03:46,280 I mean, most of them, you know, six years with only one remote root in the default install. 64 00:03:46,380 --> 00:03:50,200 That's, that's, that's really good because I think, uh, I think Red Hat has, you know, 65 00:03:50,200 --> 00:03:53,680 one every year, one every, you know, uh, maybe one every six months. 66 00:03:54,060 --> 00:03:57,000 Um, with Red Hat 6.2, there were like, what, three, you know, six years without a root 67 00:03:57,020 --> 00:03:57,640 hole. 68 00:03:57,640 --> 00:04:01,020 Um, I think there were, there were either two, two remote root holes or three remote 69 00:04:01,020 --> 00:04:01,640 root holes. 70 00:04:02,740 --> 00:04:03,380 We'll do. 71 00:04:08,060 --> 00:04:11,060 Um, just, uh, one of you in this room has wanted, they're going to, they're going to 72 00:04:11,060 --> 00:04:12,920 take you out in handcuffs and you just want to let me know. 73 00:04:13,060 --> 00:04:13,640 It's all good. 74 00:04:14,760 --> 00:04:15,800 Um, no, it's not. 75 00:04:15,880 --> 00:04:16,320 I promise. 76 00:04:16,940 --> 00:04:17,260 Okay. 77 00:04:18,080 --> 00:04:20,160 Anyway, um, so that's really good for OpenBSD. 78 00:04:20,260 --> 00:04:23,040 We might, we might do a little bit of hardening, but there's not a whole lot we can do. 79 00:04:23,120 --> 00:04:26,800 But there is apparently an SSH worm that's, is it the SSH worm in Apache? 80 00:04:27,020 --> 00:04:30,440 And it's running around rooting, rooting up in BSD boxes right now. 81 00:04:31,240 --> 00:04:31,600 Okay. 82 00:04:31,940 --> 00:04:34,300 Um, we've talked about FreeBSD. 83 00:04:34,480 --> 00:04:39,640 Um, somebody finally gave me a, my first set of FreeBSD CDs or my first set that are actually, 84 00:04:39,660 --> 00:04:40,700 that are actually current. 85 00:04:40,880 --> 00:04:43,140 So, uh, we might have to do FreeBSD. 86 00:04:43,460 --> 00:04:44,500 Um, we'll see. 87 00:04:47,120 --> 00:04:51,220 Um, a lot of people tell me, you know, I tried out Best Deal, but it was just so ugly. 88 00:04:51,340 --> 00:04:54,320 It was just so, you know, it was just so hard to run when it first came out. 89 00:04:54,360 --> 00:04:55,220 We got a GUI. 90 00:04:55,880 --> 00:04:56,240 Um. 91 00:05:03,360 --> 00:05:04,580 So, um, yeah, yeah. 92 00:05:04,680 --> 00:05:07,380 The GUI's even really, they're even, we're even like making the GUI really cool. 93 00:05:07,580 --> 00:05:10,000 One of these days I'm going to get around to doing like a web front end. 94 00:05:10,100 --> 00:05:12,760 So you don't even have to be able to like install packages to get the GUI to work. 95 00:05:12,820 --> 00:05:13,220 You just boom. 96 00:05:13,480 --> 00:05:15,500 A little, a little web server will pop up on your box. 97 00:05:15,600 --> 00:05:16,960 The Best Deal will run a web client. 98 00:05:17,260 --> 00:05:21,500 Anyone who wants to talk to me about web application security can know why it took me this long 99 00:05:21,500 --> 00:05:22,040 to get there. 100 00:05:22,780 --> 00:05:24,220 Um, but, you know, we're going to do that. 101 00:05:24,340 --> 00:05:25,380 But yeah, we got a little GUI. 102 00:05:25,380 --> 00:05:26,980 It tells you like, shows you a, a little bit of what's going on. 103 00:05:26,980 --> 00:05:27,000 So, um, we're going to get around to doing like a web front end. 104 00:05:27,000 --> 00:05:30,640 The Best Deal is basically, it shows you a question, says, hey, do you want to do this? 105 00:05:31,280 --> 00:05:31,600 Okay. 106 00:05:31,720 --> 00:05:34,680 It tells you, here's why you might want to, here's why you don't want to. 107 00:05:35,420 --> 00:05:38,500 And, uh, lets you answer and you get to go through all these different modules and it 108 00:05:38,500 --> 00:05:39,420 tells you what you've changed. 109 00:05:39,620 --> 00:05:41,440 And I'll, I'll talk about how it works. 110 00:05:42,440 --> 00:05:49,500 So, um, um, in general, I guess one of the things I want to say is, when we created 111 00:05:49,500 --> 00:05:51,940 Best Deal, the, the first question was, we're trying to make a hardening script. 112 00:05:52,060 --> 00:05:53,800 We're trying to make the best hardening script for Red Hat. 113 00:05:54,040 --> 00:05:55,700 So there's all this stuff we want to do. 114 00:05:55,920 --> 00:05:56,760 The problem is. 115 00:05:56,760 --> 00:06:00,340 If you do everything you think of, especially back when Best Deal was originally first written, 116 00:06:00,500 --> 00:06:01,880 you break stuff for everybody. 117 00:06:02,360 --> 00:06:02,440 Okay. 118 00:06:02,580 --> 00:06:05,360 One example was, you know, turning off telnet on a machine. 119 00:06:05,580 --> 00:06:06,460 I mean, it seems obvious. 120 00:06:06,540 --> 00:06:09,220 Let's turn off telnet and put open, and put SSH on instead. 121 00:06:09,640 --> 00:06:12,780 But how many, but how many users, when they try to telnet to a box, are going to be really 122 00:06:12,780 --> 00:06:13,300 confused. 123 00:06:13,660 --> 00:06:14,840 The telnet doesn't work anymore. 124 00:06:14,940 --> 00:06:18,060 Say, Best Deal broke my system and they're going to, you know, and they're going to 125 00:06:18,060 --> 00:06:18,860 uninstall Best Deal. 126 00:06:18,980 --> 00:06:20,440 You know, they're going to undo it and stuff. 127 00:06:20,780 --> 00:06:25,500 Um, so, what we figured out was, we should ask people questions about what it is that 128 00:06:25,500 --> 00:06:25,940 we should do. 129 00:06:26,760 --> 00:06:28,120 I'd like to, I'd like to remove telnet. 130 00:06:28,180 --> 00:06:28,620 Is that okay? 131 00:06:29,160 --> 00:06:30,400 And that was a really good idea. 132 00:06:30,620 --> 00:06:34,440 But all of a sudden we realized that there were lots of people who, who maybe wouldn't 133 00:06:34,440 --> 00:06:35,880 make the decision the way we'd want them to. 134 00:06:35,980 --> 00:06:37,240 You know, they'd say, telnet's good. 135 00:06:37,300 --> 00:06:38,000 I've used telnet. 136 00:06:38,040 --> 00:06:38,560 Telnet's great. 137 00:06:38,600 --> 00:06:39,320 I love telnet. 138 00:06:39,900 --> 00:06:41,920 So we got to say, listen, telnet's bad. 139 00:06:42,120 --> 00:06:42,860 Why is telnet bad? 140 00:06:43,020 --> 00:06:48,760 Well, first, um, if you're on the same LAN as me and some other, or some other, or some 141 00:06:48,760 --> 00:06:53,100 other conditions, um, then when you, uh, when you telnet to or from a machine, then, um, 142 00:06:53,500 --> 00:06:54,840 uh, I'll steal your password. 143 00:06:55,280 --> 00:06:56,740 Um, and then it was like, oh, by the way. 144 00:06:56,740 --> 00:07:00,200 Uh, so people are like, you know, of course people are going to say like, uh, I got Kerberos. 145 00:07:00,500 --> 00:07:01,480 It's like, well, that's fine. 146 00:07:01,540 --> 00:07:02,420 You got Kerberos telnet. 147 00:07:02,700 --> 00:07:03,860 Still take over your session. 148 00:07:04,680 --> 00:07:07,800 Um, so you guys know about session takeover with telnet. 149 00:07:09,020 --> 00:07:09,380 Okay. 150 00:07:09,460 --> 00:07:09,780 Yeah. 151 00:07:09,840 --> 00:07:10,560 Some people do. 152 00:07:10,620 --> 00:07:11,120 Some people don't. 153 00:07:12,140 --> 00:07:12,820 Fun tools. 154 00:07:12,980 --> 00:07:18,180 Really great ways to convince people at your site to get rid of telnet is, uh, um, Entercap. 155 00:07:18,840 --> 00:07:19,200 Okay. 156 00:07:19,280 --> 00:07:20,080 Or Dsniff. 157 00:07:20,400 --> 00:07:21,000 Or Hunt. 158 00:07:21,520 --> 00:07:21,880 Okay. 159 00:07:21,920 --> 00:07:25,340 In the case of Hunt, Hunt was like one of the first tools to let you like take over someone's 160 00:07:25,340 --> 00:07:25,920 telnet session. 161 00:07:26,740 --> 00:07:29,400 Um, some of these tools are even kind of cute because you can throw stuff to the server. 162 00:07:29,480 --> 00:07:32,460 You can sit there and do stuff on the server and you type separate messages just to the 163 00:07:32,460 --> 00:07:32,720 display. 164 00:07:32,840 --> 00:07:35,120 Like, hey, this is your system and don't worry about this. 165 00:07:35,260 --> 00:07:38,280 Uh, I just have to, I just have to change your password and read your email real quick. 166 00:07:38,360 --> 00:07:38,960 Don't worry about it now. 167 00:07:39,940 --> 00:07:42,720 So, so anyway, yeah, yeah. 168 00:07:42,800 --> 00:07:43,040 It's all. 169 00:07:43,160 --> 00:07:47,520 So, so we try to tell people why we want them to do things in the hope that maybe they'll 170 00:07:47,520 --> 00:07:48,120 bend to our will. 171 00:07:48,380 --> 00:07:51,380 Um, or at least, you know, they'll, they'll make an educated decision about why they're 172 00:07:51,380 --> 00:07:51,800 not doing it. 173 00:07:51,880 --> 00:07:56,280 So, um, the downside is that this means that your first best deal run, if you have a lot 174 00:07:56,280 --> 00:07:57,540 to learn, might take you about an hour. 175 00:07:57,940 --> 00:07:58,260 Okay. 176 00:07:58,460 --> 00:08:01,440 On the other hand, once you've been through it, or if you're already an expert, it might 177 00:08:01,440 --> 00:08:02,640 take you five or 10 minutes. 178 00:08:03,540 --> 00:08:07,800 Um, anyway, I'll, let me go through some of the stuff that best deal does in general 179 00:08:07,800 --> 00:08:09,480 and I'll, I'll talk about in specifics, I guess. 180 00:08:10,280 --> 00:08:14,640 Um, the first is best deal puts a firewall in the box and it could be a firewall for 181 00:08:14,640 --> 00:08:15,520 just the single system. 182 00:08:15,660 --> 00:08:18,780 It could be the firewall for, uh, it could be the firewall. 183 00:08:18,900 --> 00:08:19,500 Whose phone is that? 184 00:08:20,060 --> 00:08:21,140 Um, I hope it's not mine. 185 00:08:21,380 --> 00:08:21,700 Okay. 186 00:08:21,780 --> 00:08:23,720 It could be a firewall for, for the entire system. 187 00:08:23,920 --> 00:08:26,260 Um, or it could be a firewall for like, you know, one or two people. 188 00:08:26,260 --> 00:08:26,740 One or two networks. 189 00:08:27,240 --> 00:08:30,100 Um, we do a set UID audit. 190 00:08:30,300 --> 00:08:34,440 Um, this is a very boring thing unless you're currently playing capture the flag over there. 191 00:08:34,540 --> 00:08:37,640 In which case I've been told by the, uh, by the capture the flag, the people who set 192 00:08:37,640 --> 00:08:40,660 it up, that they've marked like all the binary set UID or something. 193 00:08:40,920 --> 00:08:45,580 Um, set UID, ah, we'll talk about it, but it, it's not good to have that many binary 194 00:08:45,580 --> 00:08:46,120 set UID. 195 00:08:47,320 --> 00:08:47,680 Okay. 196 00:08:48,020 --> 00:08:49,260 What else does best deal do? 197 00:08:49,860 --> 00:08:50,580 Very informally. 198 00:08:50,620 --> 00:08:52,460 It turns off stuff you're not using. 199 00:08:52,860 --> 00:08:53,220 Okay. 200 00:08:53,640 --> 00:08:54,260 Unnecessary stuff. 201 00:08:54,320 --> 00:08:56,240 It's anything you're not using or we can convince you not to use. 202 00:08:56,600 --> 00:08:56,960 Okay. 203 00:08:57,400 --> 00:09:00,900 Um, for all the stuff that's still there, we try to tighten the configurations up. 204 00:09:00,980 --> 00:09:03,800 And a lot of what we're adding is more stuff to tighten the configurations. 205 00:09:04,180 --> 00:09:08,220 If anybody in this room was in my attacking and securing FTP talk, you'll notice that 206 00:09:08,220 --> 00:09:11,140 best deal's about to start doing a bunch of the stuff that I started telling you all 207 00:09:11,140 --> 00:09:11,420 to do. 208 00:09:11,780 --> 00:09:15,880 So if anybody wants a refund now, uh, I, I, dude, I'm sorry. 209 00:09:17,740 --> 00:09:18,100 Okay. 210 00:09:18,240 --> 00:09:21,320 The last thing, as I said, was we're going to educate users and sysadmins. 211 00:09:21,800 --> 00:09:25,620 And, uh, and not all admins have guns pointed at their booth, at their, at their boots. 212 00:09:25,700 --> 00:09:26,240 But, uh, you know. 213 00:09:26,260 --> 00:09:27,660 And a good number of users do. 214 00:09:28,180 --> 00:09:29,720 Everyone will shoot themselves in the foot. 215 00:09:29,840 --> 00:09:33,880 Everyone will, will hang themselves to give themselves, give them enough rope, um, without 216 00:09:33,880 --> 00:09:34,360 education. 217 00:09:34,800 --> 00:09:38,080 The nice thing is many of us are educated, but for everybody else, we'll try to teach 218 00:09:38,080 --> 00:09:38,940 you something while we're there. 219 00:09:41,960 --> 00:09:43,100 Um, y'all having fun? 220 00:09:43,280 --> 00:09:45,040 Or am I telling you stuff you already know? 221 00:09:46,260 --> 00:09:47,020 Yawn, yawn, yawn. 222 00:09:47,160 --> 00:09:47,520 Okay. 223 00:09:47,760 --> 00:09:49,200 So I'll try to go a little faster. 224 00:09:49,460 --> 00:09:49,820 Okay. 225 00:09:49,880 --> 00:09:51,920 So first, why do you, why do you need a hardening script? 226 00:09:52,060 --> 00:09:55,580 If you're at DEF CON, you probably don't need to, you probably don't need me to answer 227 00:09:55,580 --> 00:09:58,560 this question, especially because if you're, if you're not doing anything to harden your 228 00:09:58,560 --> 00:10:02,220 box and you're running Red Hat 6.2, you've probably been rooted six times today. 229 00:10:02,480 --> 00:10:04,780 Um, or it's morning, so three. 230 00:10:05,400 --> 00:10:11,280 Um, um, the, the, the basic question is that in general, the defaults on an operating system 231 00:10:11,280 --> 00:10:12,960 are usually not set well for security. 232 00:10:13,160 --> 00:10:14,260 Red Hat's getting better at that. 233 00:10:14,320 --> 00:10:15,320 Solaris is getting worse. 234 00:10:15,700 --> 00:10:16,100 Okay. 235 00:10:16,220 --> 00:10:16,620 Why? 236 00:10:16,940 --> 00:10:21,320 Um, as far as we can tell, the reason vendors do this is, is partly because the users who 237 00:10:21,320 --> 00:10:23,380 are using these operating systems really want it to be easy to use. 238 00:10:23,420 --> 00:10:25,040 They want to install and say, okay. 239 00:10:25,040 --> 00:10:26,620 I installed the web servers running and all that. 240 00:10:26,680 --> 00:10:29,020 I just push stuff onto the web server and I'm ready to go. 241 00:10:29,100 --> 00:10:29,540 It's all good. 242 00:10:30,240 --> 00:10:30,360 Okay. 243 00:10:30,620 --> 00:10:32,360 Well, that's, that's, that's kind of nice. 244 00:10:32,600 --> 00:10:36,020 Um, the other issue is that the programmers who actually create these operating systems, 245 00:10:36,140 --> 00:10:40,200 I worked for a vendor for a year, so the program, I, I, I understand these people who 246 00:10:40,200 --> 00:10:42,440 create these operating systems, they really like convenience. 247 00:10:42,640 --> 00:10:46,860 I have found a number of, a number of, of programmers who work for, who work for, uh, 248 00:10:46,940 --> 00:10:49,700 for, for vendors who don't set root passwords. 249 00:10:50,120 --> 00:10:52,720 It's just a, you know, it's just like, yeah, whatever. 250 00:10:52,900 --> 00:10:54,420 It's, you know, they might root the box. 251 00:10:54,500 --> 00:10:55,020 I'll just rebuild it. 252 00:10:55,040 --> 00:10:56,220 I rebuild it every day anyway. 253 00:10:56,380 --> 00:10:56,880 What do I care? 254 00:10:58,680 --> 00:11:03,120 Um, often, often neither of this set, um, will, will understand security. 255 00:11:03,340 --> 00:11:04,860 By the way, I'm not busting on users. 256 00:11:05,080 --> 00:11:08,440 There are lots of users who understand security, but there are enough that don't that the 257 00:11:08,440 --> 00:11:11,540 vendors think, you know, I've got to make sure that I, that I leave the box really, 258 00:11:11,620 --> 00:11:13,400 really functional, really, really loose and open. 259 00:11:15,740 --> 00:11:16,100 Okay. 260 00:11:16,280 --> 00:11:21,120 Um, again, why do you gotta, why do you, why, why do you need any security anyway? 261 00:11:21,340 --> 00:11:24,420 Um, well, first it's, you're targeted by clueful hackers. 262 00:11:24,420 --> 00:11:26,860 You're targeted by clueful hackers probably, especially if you're here. 263 00:11:27,440 --> 00:11:27,460 Okay. 264 00:11:27,600 --> 00:11:30,760 Often you're targeted by them because you're one, you're one hop away from the place they're 265 00:11:30,760 --> 00:11:31,440 really trying to get to. 266 00:11:31,840 --> 00:11:33,200 Sometimes you're attacked by them. 267 00:11:33,260 --> 00:11:36,680 Um, you know, sometimes you're attacked by them because they just really would like a, 268 00:11:36,720 --> 00:11:38,000 a place to store some files. 269 00:11:40,300 --> 00:11:41,360 Um, why else? 270 00:11:41,660 --> 00:11:43,840 We're targeted by script kiddies because we've got an IP address. 271 00:11:44,220 --> 00:11:45,380 You've got an IP address. 272 00:11:45,700 --> 00:11:49,100 Some, some script kiddie just finally got a working exploit after downloading four. 273 00:11:49,400 --> 00:11:50,840 Finally gets a working exploit. 274 00:11:51,560 --> 00:11:54,400 He gets a scanner that scans systems looking for vulnerabilities. 275 00:11:54,400 --> 00:11:55,680 Looking for vulnerable systems. 276 00:11:56,420 --> 00:12:00,300 He scans, uh, there's an auto router that I, there's an auto router out there that, 277 00:12:00,320 --> 00:12:01,900 that generally scans class B's. 278 00:12:02,040 --> 00:12:02,740 It's called auto woo. 279 00:12:02,980 --> 00:12:08,500 Looks for, uh, looks at 65,536 addresses, whether or not they exist, but you know, it'll 280 00:12:08,500 --> 00:12:09,680 go and check every single one. 281 00:12:09,800 --> 00:12:12,060 What you do is you run this, you give it a class B network. 282 00:12:12,300 --> 00:12:15,200 It goes out, it scans every single machine in the class B. 283 00:12:15,420 --> 00:12:15,780 Okay. 284 00:12:15,840 --> 00:12:18,620 If it exists and it's vulnerable, it automatically roots it for you. 285 00:12:19,300 --> 00:12:21,960 Goes and roots the next one, roots the next one, roots the next one, and then hands you 286 00:12:21,960 --> 00:12:22,640 back a nice list. 287 00:12:22,640 --> 00:12:24,660 It says you scan 65,000 hosts. 288 00:12:24,840 --> 00:12:25,760 You owned 150. 289 00:12:25,980 --> 00:12:26,480 Here they are. 290 00:12:26,600 --> 00:12:27,360 Have a nice day. 291 00:12:27,780 --> 00:12:28,160 Okay. 292 00:12:28,540 --> 00:12:33,440 Um, so, uh, you're, you're going to get hit by script kiddies just because they scanned 293 00:12:33,440 --> 00:12:34,140 your part of the network. 294 00:12:34,380 --> 00:12:34,760 Okay. 295 00:12:34,800 --> 00:12:36,820 If you're on the at home network, you see this every day. 296 00:12:38,000 --> 00:12:38,380 Okay. 297 00:12:38,520 --> 00:12:50,400 You're targeted by worms, which are slightly smarter than script kiddies, but they're, 298 00:12:50,400 --> 00:12:51,560 but they're, but they're fully automated. 299 00:12:51,560 --> 00:12:55,540 And the nice part is automation, the level of automation in most forms means they really 300 00:12:55,540 --> 00:12:56,220 aren't that bright. 301 00:12:56,420 --> 00:13:01,080 Um, they're, they're, they're, they're generally, you know, they're generally looking for very 302 00:13:01,080 --> 00:13:01,700 specific things. 303 00:13:01,780 --> 00:13:05,660 We can defeat the worms with hardening because worms don't have any ability to adapt. 304 00:13:05,900 --> 00:13:09,260 I mean, it's like script kiddies, but yeah, worms don't have any ability to adapt. 305 00:13:09,440 --> 00:13:12,220 If they, if they find themselves in a system, they thought they were supposed to be root 306 00:13:12,220 --> 00:13:15,420 and they end up as user, you know, as user, not root. 307 00:13:15,680 --> 00:13:17,960 Um, they often, you know, can't do anything. 308 00:13:18,020 --> 00:13:20,080 They're not, they're not set to say, Ooh, I don't have root. 309 00:13:20,160 --> 00:13:20,820 What do I do now? 310 00:13:20,820 --> 00:13:25,420 Um, they just, they just get pretty stymied or, uh, they're also easy to defeat because 311 00:13:25,420 --> 00:13:26,860 you can do things like change headers. 312 00:13:27,100 --> 00:13:30,300 So they're like, you know, they're like, I'm looking for a woo box, you know, for a 313 00:13:30,300 --> 00:13:32,900 woo FTPD built on this and then built with this version. 314 00:13:33,320 --> 00:13:34,180 It's a different version. 315 00:13:34,500 --> 00:13:35,440 Must not be vulnerable. 316 00:13:35,540 --> 00:13:36,200 Doesn't even try. 317 00:13:36,260 --> 00:13:38,360 Just, just says, must not be vulnerable and moves on. 318 00:13:39,100 --> 00:13:44,080 Um, a lot of that's just for speed, but you're getting targeted by worms. 319 00:13:45,100 --> 00:13:47,680 Um, by the way, I guess I shouldn't have to answer this. 320 00:13:47,680 --> 00:13:48,940 I shouldn't have to answer. 321 00:13:48,940 --> 00:13:50,800 You shouldn't talk about this slide at a DefCon conference. 322 00:13:50,820 --> 00:13:52,800 Why are script kiddies rooting your box? 323 00:13:53,320 --> 00:13:55,200 Well, they want it for everything you can think of. 324 00:13:55,320 --> 00:13:57,300 They wanted to run IRC bots off of. 325 00:13:57,460 --> 00:13:58,940 They wanted to run an IRC server on. 326 00:13:59,020 --> 00:14:02,640 They wanted to, uh, to put up files and, you know, they wanted to use it to exchange 327 00:14:02,640 --> 00:14:07,800 DivX movies or MP3s or, or, you know, I don't know, maybe some girl's number. 328 00:14:08,040 --> 00:14:12,520 Um, you know, uh, there's, there's like, okay, one number that's passed around among 329 00:14:12,520 --> 00:14:12,860 them all. 330 00:14:12,960 --> 00:14:13,560 It's fake. 331 00:14:13,700 --> 00:14:14,880 She changed it months ago. 332 00:14:14,920 --> 00:14:15,640 Stop it guys. 333 00:14:16,660 --> 00:14:20,420 Um, um, they wanted to use other machines. 334 00:14:20,420 --> 00:14:24,060 They, they want to, they want to use it along with 150 other hosts they got from that auto 335 00:14:24,060 --> 00:14:29,180 router to, uh, to fire off, to, uh, to, to, uh, DDoS some site, who knows which one. 336 00:14:29,500 --> 00:14:32,480 Um, they want to brag about how many machines they've owned today. 337 00:14:33,260 --> 00:14:35,620 Um, and, uh, you can come up with any other use. 338 00:14:35,720 --> 00:14:37,580 Anything you want a box for, they want a box for. 339 00:14:37,780 --> 00:14:41,160 Anything that you, uh, anything you can think somebody might want a box for, one of them 340 00:14:41,160 --> 00:14:42,400 probably wants a box for that. 341 00:14:42,860 --> 00:14:45,360 And I, the thing about being a script kid is it's really, really easy. 342 00:14:45,500 --> 00:14:46,440 Any of us can be one. 343 00:14:46,540 --> 00:14:50,400 We have to drop a lot of clue and then just go and start downloading, you know, scripts 344 00:14:50,400 --> 00:14:52,640 from, uh, scripts from, uh, from the internet. 345 00:14:53,840 --> 00:14:54,200 Okay. 346 00:14:55,600 --> 00:14:56,860 Uh, Bastille, how's it work? 347 00:14:57,200 --> 00:14:59,560 Bastille is a, like I said before, we're turning stuff off. 348 00:14:59,640 --> 00:15:01,860 So first is try to minimize points of entry. 349 00:15:02,000 --> 00:15:02,340 Okay. 350 00:15:02,580 --> 00:15:04,800 Remove attack vectors from attackers. 351 00:15:05,160 --> 00:15:05,460 Okay. 352 00:15:05,500 --> 00:15:07,780 One possibility is turn off network daemons. 353 00:15:07,900 --> 00:15:08,200 Okay. 354 00:15:08,220 --> 00:15:09,320 We all, we've all seen this. 355 00:15:09,360 --> 00:15:11,880 Just about every single article on hardening says, you know, we're going to turn off all 356 00:15:11,880 --> 00:15:12,520 the network daemons. 357 00:15:12,820 --> 00:15:16,780 Another part is, um, we'll take the, we'll take programs so if, if, if somebody steals 358 00:15:16,780 --> 00:15:20,160 an account on the box, maybe because someone was using Telnet at this conference and their 359 00:15:20,160 --> 00:15:20,380 account was stolen. 360 00:15:20,400 --> 00:15:25,620 Um, you know, we want to actually turn off the, uh, we want to, we want to take the programs 361 00:15:25,620 --> 00:15:27,880 that they could, that somebody could access with a stolen account. 362 00:15:28,320 --> 00:15:31,700 Um, and if, uh, if any of them have privilege in us, you know, if they had a vulnerability, 363 00:15:31,840 --> 00:15:32,880 could give that privilege away. 364 00:15:33,200 --> 00:15:34,800 And maybe we'll, maybe we'll shut them down. 365 00:15:34,900 --> 00:15:35,940 Maybe we'll take away their privilege. 366 00:15:36,040 --> 00:15:37,680 Maybe we'll configure them so they're harder to hit. 367 00:15:38,440 --> 00:15:42,140 Um, um, and that's the, that's the other side of things. 368 00:15:42,640 --> 00:15:46,200 Um, a lot of times, a lot of times what we're trying to protect against isn't, isn't just 369 00:15:46,200 --> 00:15:48,140 someone who remotely, remotely hits your box. 370 00:15:48,360 --> 00:15:50,380 It's the person who gets to your box through someone. 371 00:15:50,400 --> 00:15:50,840 It's something else. 372 00:15:50,900 --> 00:15:54,380 Maybe they got in through the web server and that gave them user web, but maybe they stole, 373 00:15:54,460 --> 00:15:55,780 maybe they stole a password. 374 00:15:55,860 --> 00:15:57,560 Maybe they stole a password during a Telnet session. 375 00:15:57,960 --> 00:16:02,080 I did a, I did a talk at Black Hat on, on securing, on attacking and securing FTP. 376 00:16:02,600 --> 00:16:06,720 And, uh, somebody raised their hand at the, at the end of the class because I talked about 377 00:16:06,720 --> 00:16:11,020 how FTP sucks because you lose your username and password if you're logging in like that. 378 00:16:11,180 --> 00:16:14,600 And he said, actually, during your, during your talk, I stole, uh, I got, I got three 379 00:16:14,600 --> 00:16:17,000 accounts and passwords from people FTPing on the wireless network. 380 00:16:18,680 --> 00:16:23,880 So, anyway, so, so stolen accounts happens, especially with clear, clear protocols. 381 00:16:24,180 --> 00:16:28,940 So, there are set UID programs on your box, um, and they, what they, the, the general 382 00:16:28,940 --> 00:16:33,060 purpose of those things is to let people who aren't Root do things that only Root can do. 383 00:16:33,180 --> 00:16:35,420 That might be doing things like mounting the floppy drive. 384 00:16:35,640 --> 00:16:39,640 Um, it might be doing things like changing the password file to edit your own password. 385 00:16:39,800 --> 00:16:44,480 Um, but in general, these set UID programs give an ordinary user Root privilege for something 386 00:16:44,480 --> 00:16:45,600 very, very, very specific. 387 00:16:45,600 --> 00:16:50,000 And, uh, it's, uh, it's bad if there's a hole in one of them, a security vulnerability 388 00:16:50,000 --> 00:16:53,380 in one of them because often a non-Root user gets Root just straight out of that. 389 00:16:54,000 --> 00:16:54,940 Are there any questions? 390 00:16:55,080 --> 00:16:56,200 Am I going too fast? 391 00:16:56,480 --> 00:16:57,180 Not too fast. 392 00:16:57,260 --> 00:16:57,800 Am I going too slow? 393 00:16:58,600 --> 00:16:58,960 No? 394 00:16:59,100 --> 00:16:59,440 Okay. 395 00:17:00,220 --> 00:17:00,580 Okay. 396 00:17:00,700 --> 00:17:01,060 Cool. 397 00:17:03,640 --> 00:17:05,060 Um, does Bastille work? 398 00:17:05,160 --> 00:17:06,540 Or, more importantly, does hardening work? 399 00:17:06,760 --> 00:17:07,120 Okay. 400 00:17:07,140 --> 00:17:10,940 Hardening hasn't taken, hardening hasn't gotten extremely popular just yet, at least not 401 00:17:10,940 --> 00:17:13,220 in, I don't think in, in a lot of the mainstream areas. 402 00:17:13,740 --> 00:17:14,100 Um. 403 00:17:14,100 --> 00:17:16,780 Well, Bastille is a simple hardening script. 404 00:17:16,860 --> 00:17:20,540 It was something that was written because I went and did an audit of, of Red Hat 6.0 405 00:17:20,540 --> 00:17:21,600 and wanted to kind of share it. 406 00:17:21,820 --> 00:17:26,920 Um, and it was written before either most or all of the vulnerabilities in Red Hat 6.0 407 00:17:26,920 --> 00:17:27,400 were discovered. 408 00:17:27,720 --> 00:17:31,080 And it could either stop or contain just about all of them, which was, which was pretty 409 00:17:31,080 --> 00:17:31,300 cool. 410 00:17:31,460 --> 00:17:34,400 I mean, I'm not trying to, I'm not trying to toot Bastille's horn or anything like 411 00:17:34,400 --> 00:17:34,640 that. 412 00:17:34,700 --> 00:17:37,520 I'm trying to point out this is, you know, whether you're doing it by hand or you're 413 00:17:37,520 --> 00:17:39,820 using a program to do it, this stuff is extremely effective. 414 00:17:40,740 --> 00:17:41,100 Um. 415 00:17:42,780 --> 00:17:44,060 Vulnerabilities in Red Hat 6.0. 416 00:17:44,580 --> 00:17:45,660 Bind had a remote root. 417 00:17:46,020 --> 00:17:46,360 Okay. 418 00:17:46,660 --> 00:17:49,020 With that case, we either turn bind off for you. 419 00:17:49,260 --> 00:17:49,600 Okay. 420 00:17:49,680 --> 00:17:54,400 Or, um, we could run it as a non-root user stuck in a cheroot prison, which is a little 421 00:17:54,400 --> 00:17:54,800 directory. 422 00:17:54,860 --> 00:17:55,660 It doesn't have much in it. 423 00:17:56,000 --> 00:17:56,340 Okay. 424 00:17:56,380 --> 00:17:59,200 And you can't really escalate privilege from a cheroot prison if you get stuck in there 425 00:17:59,200 --> 00:18:01,020 as a non-root user because there's nothing around. 426 00:18:01,180 --> 00:18:03,720 There are no vulnerable programs around generally to exploit. 427 00:18:04,180 --> 00:18:08,060 So, we could contain bind, which was kind of cool because there were some pretty, there 428 00:18:08,060 --> 00:18:09,560 were some pretty fun worms running around. 429 00:18:09,840 --> 00:18:10,180 Um. 430 00:18:10,180 --> 00:18:14,220 That, uh, you know, if any of you have Red Hat 6.0 or you're on CTF and they just gave 431 00:18:14,220 --> 00:18:19,400 you Red Hat 6.2, um, then, uh, you're probably getting hit by bind attacks and, uh, we could, 432 00:18:19,440 --> 00:18:20,660 we could at least contain them. 433 00:18:21,220 --> 00:18:21,540 Um. 434 00:18:22,260 --> 00:18:22,900 Woo FTPD. 435 00:18:23,500 --> 00:18:23,820 Um. 436 00:18:24,180 --> 00:18:24,440 Um. 437 00:18:24,740 --> 00:18:27,000 Darn it, I have a whole talk on vulnerabilities in Woo FTPD. 438 00:18:27,440 --> 00:18:27,760 Um. 439 00:18:28,020 --> 00:18:28,340 Uh. 440 00:18:28,400 --> 00:18:30,160 We were able to, we could, we could turn it off. 441 00:18:30,200 --> 00:18:34,620 We could shut down particular modes and basically do a, do a little bit of hardening to make 442 00:18:34,620 --> 00:18:37,600 it harder just to, just to leave it, you know, leave it so it doesn't get hit. 443 00:18:38,480 --> 00:18:38,800 Um. 444 00:18:39,380 --> 00:18:40,920 User Helper was another fun one. 445 00:18:41,020 --> 00:18:42,340 It was a, a local root exploit. 446 00:18:42,880 --> 00:18:43,220 Um. 447 00:18:43,440 --> 00:18:44,700 It was a set UID program. 448 00:18:44,820 --> 00:18:46,860 If you were on the box already, you could get root out of that. 449 00:18:47,040 --> 00:18:48,020 You could shut that off. 450 00:18:48,120 --> 00:18:49,660 LPD and Sendmail had a weird interaction. 451 00:18:50,280 --> 00:18:54,700 And again, those could either shut off or we, we made it so the, the big issue is generally 452 00:18:54,700 --> 00:18:56,100 you came in through Sendmail. 453 00:18:56,240 --> 00:18:59,920 And, uh, it turns out most of the boxes running Sendmail don't actually have to run Sendmail 454 00:18:59,920 --> 00:19:01,820 on the network because they're not receiving mail. 455 00:19:01,860 --> 00:19:02,960 They're just sending it back out. 456 00:19:03,580 --> 00:19:05,560 So, uh, you can turn that stuff off. 457 00:19:05,720 --> 00:19:07,000 Dump and Restore was a great one. 458 00:19:07,720 --> 00:19:08,060 Okay. 459 00:19:08,800 --> 00:19:10,320 I, I talked about what set UID programs do. 460 00:19:10,440 --> 00:19:12,480 Dump and Restore were programs that could be run by anybody. 461 00:19:12,980 --> 00:19:13,300 Okay. 462 00:19:13,380 --> 00:19:14,320 They were set UID roots. 463 00:19:14,420 --> 00:19:15,720 They gave you root access on it. 464 00:19:15,840 --> 00:19:19,160 They, they gave you, they gave you root abilities on the box so you could run backups. 465 00:19:19,560 --> 00:19:20,420 And it's really nice. 466 00:19:20,480 --> 00:19:21,560 You want to let people run backups. 467 00:19:22,020 --> 00:19:25,300 But you don't generally want to let ordinary users run your backups for you. 468 00:19:25,400 --> 00:19:27,300 You don't want to let the web server run your backups for you. 469 00:19:27,360 --> 00:19:28,900 Just leave that to sysadmins. 470 00:19:29,320 --> 00:19:32,760 So we could turn those off and generally recommend it very strongly that we did. 471 00:19:32,940 --> 00:19:37,880 And so if you ran it, if you ran Bastille in Red Hat 6.0, 6.1, 6.2 when each of these 472 00:19:37,880 --> 00:19:41,700 became, when each of these had vulnerabilities, you got past them entirely. 473 00:19:42,560 --> 00:19:43,620 GPM was another one. 474 00:19:43,660 --> 00:19:45,960 If you were on the console, you could get root out of that. 475 00:19:46,120 --> 00:19:49,600 And again, we turned it off and told people to turn it off because most people don't even 476 00:19:49,600 --> 00:19:50,080 know it's running. 477 00:19:50,500 --> 00:19:52,940 And, uh, and, uh, they're not using it either. 478 00:19:54,220 --> 00:19:55,040 Y'all having fun? 479 00:19:55,900 --> 00:19:56,700 A little bit? 480 00:19:57,380 --> 00:19:57,740 Okay. 481 00:20:00,420 --> 00:20:02,200 Uh, no streakers have come by yet. 482 00:20:02,380 --> 00:20:02,980 I'm sorry. 483 00:20:03,940 --> 00:20:05,720 Um, we missed the one in NMH. 484 00:20:05,720 --> 00:20:06,780 We missed the one in NAN. 485 00:20:06,780 --> 00:20:07,980 And those were hard. 486 00:20:08,140 --> 00:20:10,260 So, uh, we just missed them. 487 00:20:12,700 --> 00:20:13,060 Okay. 488 00:20:13,460 --> 00:20:16,520 So one of the things I wonder is who the heck is using Bastille. 489 00:20:16,620 --> 00:20:20,020 I have no idea how many people are using it because people just download it. 490 00:20:20,040 --> 00:20:20,800 They download it from us. 491 00:20:20,820 --> 00:20:21,760 They put it up on websites. 492 00:20:21,900 --> 00:20:23,220 And other people download it from them. 493 00:20:23,420 --> 00:20:24,360 So we have no idea. 494 00:20:24,460 --> 00:20:26,360 For a while, Mandrake self-taught their distribution. 495 00:20:26,880 --> 00:20:28,760 Been talking with Red Hat about integrating it. 496 00:20:28,860 --> 00:20:30,260 And they're actually getting better in general. 497 00:20:30,660 --> 00:20:32,440 Um, SGI was selling those appliances. 498 00:20:33,440 --> 00:20:34,560 Anybody here from Guardant? 499 00:20:35,520 --> 00:20:38,720 I've heard some appliance with Guardant actually uses Bastille. 500 00:20:39,040 --> 00:20:42,420 We know that probably somewhere around 100,000 people use it. 501 00:20:42,440 --> 00:20:46,060 We don't know how many because we just don't have any way to track it. 502 00:20:46,120 --> 00:20:47,200 But there are a lot of people using it. 503 00:20:47,240 --> 00:20:48,360 It turns out to be pretty useful. 504 00:20:48,820 --> 00:20:56,340 Um, I want to show you what kind of capabilities we had and where we're going with it. 505 00:20:56,680 --> 00:21:03,820 Um, the first is in our recent 2.0 release, we started making Bastille smarter. 506 00:21:03,820 --> 00:21:06,640 So it wouldn't ask you questions about stuff that wasn't on your system. 507 00:21:06,900 --> 00:21:08,820 It's still going to do that a little bit, but not very much. 508 00:21:09,020 --> 00:21:12,860 So if you haven't installed a package, it shouldn't ask you, you know, can I harden this package? 509 00:21:13,000 --> 00:21:15,020 If it doesn't find sendmail, it won't ask you sendmail questions. 510 00:21:15,460 --> 00:21:18,740 If it doesn't find programs to set UID route, it won't ask you if it can turn them off. 511 00:21:19,080 --> 00:21:23,940 Um, we got the whole GUI thing going on, which was, as I said, really nice. 512 00:21:24,120 --> 00:21:28,500 It's really good for, um, really good for making things easy. 513 00:21:28,760 --> 00:21:31,620 Um, and we made our configuration file. 514 00:21:31,720 --> 00:21:33,060 We made it so you could reuse the thing. 515 00:21:33,060 --> 00:21:35,900 So what you do is you can take Bastille and you can run it once. 516 00:21:36,280 --> 00:21:37,380 You can answer all the questions. 517 00:21:37,480 --> 00:21:42,240 You can take that config file and then go and carry it over to 100 identical lab systems. 518 00:21:42,680 --> 00:21:43,800 We work on other things. 519 00:21:44,020 --> 00:21:49,380 We're trying to make it so that you can take a configuration file, like, you know, from Red Hat and try to use it on HPUX or something. 520 00:21:49,520 --> 00:21:51,240 But that's really hard, actually. 521 00:21:54,260 --> 00:22:01,320 Um, um, what I want to do is show you what we're doing, um, and what we're going to be doing. 522 00:22:01,400 --> 00:22:02,960 Uh, if you're hearing this talk, 523 00:22:03,340 --> 00:22:07,760 I'm going to tell you about the 2.0 release, about what we're releasing in the next two days. 524 00:22:08,060 --> 00:22:11,040 Um, there are beta releases up, but go for the stable one. 525 00:22:12,040 --> 00:22:17,340 Um, but, you know, I'm going to tell you what we're doing in the next few days and then what we're doing for the next few months. 526 00:22:17,580 --> 00:22:22,680 And the next few months is where I start taking a lot of new content, a lot of new hardening steps and trying to integrate them. 527 00:22:23,520 --> 00:22:27,360 Um, we're also trying to get on Solaris, um, because they really need the help. 528 00:22:30,460 --> 00:22:30,780 Okay. 529 00:22:30,960 --> 00:22:32,940 I told you we can set up a firewall. 530 00:22:32,960 --> 00:22:33,480 There's a firewall in the box. 531 00:22:33,620 --> 00:22:35,520 It can be default and high, which is nice and strong. 532 00:22:35,820 --> 00:22:39,020 Um, it can be for a single machine or it can be for a masquerading network. 533 00:22:39,740 --> 00:22:44,660 Um, they're adding a DMZ to that right now, so it's, it's actually, uh, it's actually pretty useful. 534 00:22:44,800 --> 00:22:52,460 Mandrake, MandrakeSoft actually shipped a firewall that used Bastille, Bastille's firewall as the, as the firewall, as the main firewall program. 535 00:22:52,900 --> 00:22:56,940 Anyway, this is kind of nice because if you have a machine that you've hardened or you haven't hardened as much, 536 00:22:57,040 --> 00:23:01,580 the firewall adds an additional layer of protection, catches a lot of the stuff that you might have missed. 537 00:23:02,120 --> 00:23:02,480 Um. 538 00:23:04,360 --> 00:23:04,680 Okay. 539 00:23:04,860 --> 00:23:09,780 Well, one of the things I'm, one of the things I always get asked is, well, wait a second, you're going to tell me about all the stuff you turned off. 540 00:23:09,840 --> 00:23:10,740 You put up a firewall. 541 00:23:10,880 --> 00:23:11,820 You don't need to turn them off. 542 00:23:12,260 --> 00:23:18,000 Well, the issue is the firewall might fail or the programs we're turning off might accidentally come back on. 543 00:23:18,120 --> 00:23:23,580 So it's kind of the best, it's, it's a really good idea to do both because it's called defense in depth. 544 00:23:23,780 --> 00:23:31,600 And the idea is basically if you've got, you know, if you've got anything that you're trying to protect, it'd be really nice if you could protect in, like, say, two, three, four ways. 545 00:23:31,600 --> 00:23:37,040 Because if any of those layers fails, okay, if any of those layers fails, then you have another one protecting you. 546 00:23:37,480 --> 00:23:37,800 Okay. 547 00:23:38,520 --> 00:23:47,500 Firewall vendors, you know, from yesteryear wouldn't love me saying this, but, you know, this is, this is kind of, this is, this is a basic thing that's really, that really makes it a lot harder for someone to nail your system. 548 00:23:47,780 --> 00:23:48,100 Okay. 549 00:23:48,140 --> 00:23:55,440 So the next time that someone says, oh, there's been a bug in the, there's been a bug in the Linux firewall encode and you can send anything through, you won't have to necessarily, you know, you're hardening still. 550 00:23:55,660 --> 00:23:56,360 You're doing both. 551 00:23:56,480 --> 00:23:58,040 So you won't have to be like, oh, my God, I'm screwed. 552 00:23:58,600 --> 00:23:58,920 Okay. 553 00:23:59,380 --> 00:23:59,700 Um. 554 00:24:02,660 --> 00:24:05,560 We do things, we do a, we do a file permissions audit. 555 00:24:05,700 --> 00:24:09,260 This is, I think, I like to talk about the most boring areas of computer security. 556 00:24:09,320 --> 00:24:10,820 This is, you know, hardening a system. 557 00:24:10,880 --> 00:24:11,960 This is number three. 558 00:24:12,120 --> 00:24:13,380 It's three on the top ten. 559 00:24:13,660 --> 00:24:16,640 Is, is definitely edited, screwed on with file permissions. 560 00:24:17,440 --> 00:24:24,480 I was really going to try and do a talk this year on, on, on how bad file permissions can let someone root your box really easily. 561 00:24:25,060 --> 00:24:28,100 I know it sounds boring, but I'll give you the real live example. 562 00:24:28,100 --> 00:24:32,860 I, uh, I found a system where I got in as user nobody because they, somebody had set up an R host. 563 00:24:33,020 --> 00:24:34,260 They got me in as user nobody. 564 00:24:34,620 --> 00:24:43,580 And it turned out the file permissions on the, on the, um, the file permissions on the crontab directory where all the, where all the cron, where all the crontab files are were really weak. 565 00:24:43,680 --> 00:24:48,960 So any, so, so user nobody, um, along with a few other users I was able to get later on, could write to them. 566 00:24:49,080 --> 00:24:52,640 So if you can write to the, if you can write to the crontab directory, what do you do? 567 00:24:53,060 --> 00:24:55,080 Well, you change root's crontab file. 568 00:24:55,760 --> 00:24:56,920 One minute from now. 569 00:24:57,420 --> 00:24:59,500 Okay, root's cron, cron's going to run. 570 00:24:59,560 --> 00:25:05,220 It's going to say, ah, root asked me to bind a, uh, to bind a shell, a root shell to port 666. 571 00:25:05,500 --> 00:25:06,500 Yeah, okay, I'll do that. 572 00:25:06,620 --> 00:25:07,340 And it runs. 573 00:25:07,500 --> 00:25:17,060 And, you know, all of a sudden now you tell them that it's the system and you went from nobody to root just because somebody had a, just because the vendor of this operating system originally set really weak permissions on a few directories. 574 00:25:17,780 --> 00:25:23,300 Um, um, so we do a file permissions audit and try to stop them from doing really dumb things like that. 575 00:25:24,540 --> 00:25:26,580 Um, I told you about set UID. 576 00:25:26,640 --> 00:25:26,900 Um. 577 00:25:26,920 --> 00:25:31,240 There are, uh, one of the examples I often use is user root, but I'm going to name another one. 578 00:25:31,320 --> 00:25:35,600 I remember I was working at a, I was working at an all Solaris shop, um, a while ago. 579 00:25:35,840 --> 00:25:38,860 And, uh, and I wanted, we knew we had a bunch of stolen accounts. 580 00:25:39,060 --> 00:25:39,640 We were a university. 581 00:25:39,900 --> 00:25:40,780 Happens all the time. 582 00:25:40,860 --> 00:25:41,640 People are using telnet. 583 00:25:41,740 --> 00:25:42,640 We can't take telnet away. 584 00:25:43,000 --> 00:25:44,600 So their accounts are going to get stolen. 585 00:25:44,840 --> 00:25:46,880 But we started tracking some of the stolen accounts. 586 00:25:47,160 --> 00:25:51,680 And, uh, and so I had a pager that paged me whenever this guy came on with a given account name. 587 00:25:52,080 --> 00:25:52,440 Okay. 588 00:25:52,500 --> 00:25:55,660 And so, you know, I got a page one day and I ran over to my terminal. 589 00:25:55,660 --> 00:25:57,320 I'm sitting there watching his session. 590 00:25:57,480 --> 00:25:59,780 And the guy is, you know, he's, he's sitting here compiling. 591 00:25:59,800 --> 00:26:02,440 He's, he's brought, he's, he's FTP'd an exploit up. 592 00:26:02,500 --> 00:26:04,360 And that exploit is against pmconfig. 593 00:26:05,020 --> 00:26:05,380 Okay. 594 00:26:05,520 --> 00:26:06,580 Or pwconfig. 595 00:26:06,980 --> 00:26:07,340 pmconfig. 596 00:26:07,340 --> 00:26:08,720 It's an exploit against pmconfig. 597 00:26:08,900 --> 00:26:11,280 Which on Solaris lets you set the power management features. 598 00:26:11,420 --> 00:26:16,920 Lets you do things like suspend the machine or lets you tell it to, to spin down the hard disks or whatever. 599 00:26:17,380 --> 00:26:20,140 It's, this is, okay, so this program will set UID root. 600 00:26:20,300 --> 00:26:24,020 So if, if it was broken in some way and you could run it, you'd get root. 601 00:26:24,020 --> 00:26:27,300 This program was set so everyone on the, everyone on the system could run it. 602 00:26:27,460 --> 00:26:27,780 Okay. 603 00:26:27,820 --> 00:26:28,920 So he was bringing an exploit. 604 00:26:29,660 --> 00:26:31,220 He was going to, he was going to run the exploit. 605 00:26:31,300 --> 00:26:32,720 The exploit was going to run pmconfig. 606 00:26:32,780 --> 00:26:33,520 He was going to be root. 607 00:26:33,620 --> 00:26:35,380 I was like, that shouldn't be set UID. 608 00:26:35,480 --> 00:26:37,580 There shouldn't be anybody running on that besides the system. 609 00:26:38,260 --> 00:26:39,260 Tappity, tappity, tappity. 610 00:26:39,640 --> 00:26:42,820 By the time he finishes compiling his exploit, I've already turned off set UID. 611 00:26:42,860 --> 00:26:43,920 He runs his exploit. 612 00:26:44,140 --> 00:26:44,900 It doesn't work. 613 00:26:45,380 --> 00:26:48,920 He's like, okay, it must be broken and wanders off to the next system. 614 00:26:49,380 --> 00:26:49,700 Okay. 615 00:26:49,780 --> 00:26:53,340 The alternate version of that scenario is we haven't done a set UID audit. 616 00:26:53,360 --> 00:26:53,920 Even one. 617 00:26:54,020 --> 00:26:55,700 Like right there as the guy's there. 618 00:26:56,100 --> 00:26:57,960 We haven't done any kind of set UID audit. 619 00:26:58,440 --> 00:27:00,340 I'm at lunch, you know, no pager maybe. 620 00:27:00,780 --> 00:27:02,200 And, and what happens? 621 00:27:02,340 --> 00:27:05,540 Well, he runs his exploit and he causes a very bad day. 622 00:27:05,660 --> 00:27:11,260 Because the last time we had a root compromise on that system, we took, I think it was 46 man hours. 623 00:27:12,020 --> 00:27:14,520 Just to get the, just to get everything going again. 624 00:27:15,540 --> 00:27:16,560 That's not a rebuild. 625 00:27:16,800 --> 00:27:18,320 That's just, that's just straight. 626 00:27:18,560 --> 00:27:21,140 That's, that's just straight from, from, from where we were. 627 00:27:21,300 --> 00:27:24,000 Make sure that we weren't totally vulnerable on 8000. 628 00:27:24,020 --> 00:27:24,560 Different ways. 629 00:27:25,080 --> 00:27:25,440 Okay. 630 00:27:25,700 --> 00:27:28,020 PM config never should have been set UID root. 631 00:27:28,100 --> 00:27:33,060 There's no reason that you need your ordinary users to be going and changing the power management features on, on a server. 632 00:27:33,420 --> 00:27:35,020 I, I can't think of a single one. 633 00:27:35,500 --> 00:27:35,860 Okay. 634 00:27:36,040 --> 00:27:38,720 If you've got a user who needs to use that, give them the root password. 635 00:27:38,860 --> 00:27:41,280 If you don't want to give them the root password, use sudo or something like that. 636 00:27:41,340 --> 00:27:41,540 You know. 637 00:27:41,740 --> 00:27:44,380 Give them permit, give them and only them permissions to use it. 638 00:27:44,440 --> 00:27:44,940 Put them in a group. 639 00:27:46,800 --> 00:27:50,500 Um, so the set UID audit actually saves a lot of people's bacons this way. 640 00:27:50,720 --> 00:27:52,980 Even though, you know, being a permissions area. 641 00:27:52,980 --> 00:27:56,580 It's, like I said, really, really, you know, really, really boring. 642 00:27:56,960 --> 00:27:59,340 Um, I've given you a few slides real quick. 643 00:27:59,940 --> 00:28:03,520 Each of the set UID programs that we turned off in the first version of this deal are here. 644 00:28:03,740 --> 00:28:06,140 Um, there's a star next to them if they've been vulnerable. 645 00:28:06,660 --> 00:28:07,020 Okay. 646 00:28:07,080 --> 00:28:10,060 So you can just kind of, you can just kind of see it's, it's two on this slide. 647 00:28:10,280 --> 00:28:13,360 Well, it's, it's mount, mount, new mount, dump and restore. 648 00:28:13,720 --> 00:28:15,120 We're all vulnerable out of those. 649 00:28:15,600 --> 00:28:16,140 Trace route. 650 00:28:16,880 --> 00:28:17,400 Trace route. 651 00:28:17,420 --> 00:28:17,540 Yeah. 652 00:28:17,600 --> 00:28:18,360 Trace route of the vulnerability. 653 00:28:18,400 --> 00:28:18,820 You're right. 654 00:28:18,900 --> 00:28:20,040 I should update that slide. 655 00:28:20,140 --> 00:28:21,040 Trace route of the vulnerability. 656 00:28:22,980 --> 00:28:29,000 The, uh, that, that LPR, the, the, I think the entire LP suite, but at least one of the programs in the LP suite had it, had a vulnerability. 657 00:28:29,340 --> 00:28:33,420 The R, the R tools had a vulnerability that was, uh, was through some library they linked to. 658 00:28:33,800 --> 00:28:34,160 Okay. 659 00:28:37,600 --> 00:28:37,960 Okay. 660 00:28:39,700 --> 00:28:44,240 Um, other stuff this deal does, we're gonna, we're gonna do, we do, we do a bunch of stuff we call account security. 661 00:28:44,300 --> 00:28:46,140 Anything to protect the user's account from being stolen. 662 00:28:46,360 --> 00:28:47,880 Do things like turn things off. 663 00:28:47,960 --> 00:28:49,640 We, we do things like turn things off. 664 00:28:49,820 --> 00:28:50,980 We don't let them use crons. 665 00:28:51,040 --> 00:28:52,800 They can't go and run cron jobs necessarily. 666 00:28:52,800 --> 00:28:52,960 Okay. 667 00:28:52,980 --> 00:29:07,760 Um, we go and try to, we go and set up pass, so that if, so that if the user goes on vacation for six months, they're, you know, uh, well, six months at the end of that, they're, they're, uh, you know, maybe their, their password expires and, and somebody else can't steal, can't use their account while they're away. 668 00:29:08,340 --> 00:29:12,280 Problem with accounts is when they get stolen or people run away, they don't notice and they never tell us. 669 00:29:13,460 --> 00:29:18,880 So, um, other stuff, we make sure that our, that RSH really doesn't work. 670 00:29:19,000 --> 00:29:21,600 Because RSH, our login, they, they really stink. 671 00:29:21,960 --> 00:29:26,560 Um, uh, just general stuff. 672 00:29:26,920 --> 00:29:27,780 Uh, boot security. 673 00:29:28,280 --> 00:29:29,740 I have a paper on my website. 674 00:29:30,000 --> 00:29:34,080 Um, I have a paper on my website that tells you all the different ways you can root a Red Hat box. 675 00:29:34,400 --> 00:29:38,220 Um, all the different ways you can root a Red Hat box if you have access to the keyboard. 676 00:29:39,100 --> 00:29:40,520 Um, it's, they're sizable. 677 00:29:40,620 --> 00:29:42,200 So, Bastille can protect some of them. 678 00:29:42,280 --> 00:29:46,960 We can protect the, uh, you know, all of the, all of the five minute, five minute routes and one minute routes. 679 00:29:47,180 --> 00:29:49,800 Like where you, uh, reboot a system, you type Linux single. 680 00:29:49,800 --> 00:29:52,160 And it boots in a single user mode and says, here's your shell. 681 00:29:52,660 --> 00:29:54,800 And if you block that, okay, we block that. 682 00:29:54,920 --> 00:29:59,940 But if you can type at that prompt at all, you type, uh, Linux init equals bin bash. 683 00:30:00,320 --> 00:30:03,820 Instead of running the normal init program, it runs a shell as root, hands it right to you. 684 00:30:04,340 --> 00:30:06,400 Neither of those give you instant root on the Red Hat system. 685 00:30:06,660 --> 00:30:07,600 It's been there for years. 686 00:30:07,840 --> 00:30:08,660 They're not changing it. 687 00:30:09,540 --> 00:30:11,700 Um, so Bastille will fix that for you. 688 00:30:11,760 --> 00:30:16,360 This is really, really great when you're hanging out at a conference and you put your laptop down for three minutes. 689 00:30:17,160 --> 00:30:17,480 Okay. 690 00:30:20,580 --> 00:30:21,640 Um, what else? 691 00:30:21,780 --> 00:30:25,060 When you lock down INETD or XINETD, turn off things like Telnet and FTP. 692 00:30:25,600 --> 00:30:26,800 Telnet and FTP are bad. 693 00:30:27,280 --> 00:30:28,020 They're really bad. 694 00:30:28,180 --> 00:30:29,060 Please don't use them. 695 00:30:29,160 --> 00:30:30,220 Please try to get away from them. 696 00:30:30,640 --> 00:30:31,340 SSH is good. 697 00:30:31,540 --> 00:30:32,460 Use SSH. 698 00:30:32,740 --> 00:30:33,100 Okay. 699 00:30:33,460 --> 00:30:36,720 Anything that Telnet and FTP do, um, SSH mostly does. 700 00:30:37,040 --> 00:30:40,520 Except for anonymous, except for anonymous, you know, anonymous file transfer. 701 00:30:40,600 --> 00:30:42,420 And you can do that with a web, with a, with a web server. 702 00:30:42,680 --> 00:30:44,540 So, don't use Telnet and don't use FTP. 703 00:30:44,720 --> 00:30:45,820 Please, please, please. 704 00:30:46,580 --> 00:30:46,940 Okay. 705 00:30:47,660 --> 00:30:48,020 Um. 706 00:30:49,900 --> 00:30:53,460 One of the things you'll notice as we go through here is we're turning all kinds of things off left and right. 707 00:30:53,660 --> 00:30:53,940 Okay. 708 00:30:54,160 --> 00:31:00,400 If you look at, if you, if you look into my papers on hardening, one of the things they all do is they say, okay, we're going to turn off this functionality, we're going to turn off this functionality. 709 00:31:00,720 --> 00:31:08,540 The idea is the less you have going, if you've got a system with one or two purposes and you can make it only serve those two purposes, well, it's really great. 710 00:31:08,580 --> 00:31:16,480 Because if there's functionality that ends up having a, that ends up having a security vulnerability in it, you, uh, you don't get hit because you didn't have that functionality turned on. 711 00:31:16,680 --> 00:31:18,900 Or you had some kind of restricted access on that. 712 00:31:19,280 --> 00:31:20,600 And that goes a long way. 713 00:31:20,960 --> 00:31:22,860 So, this is just applied minimalism. 714 00:31:23,120 --> 00:31:23,720 Go small. 715 00:31:24,080 --> 00:31:24,700 Less stuff. 716 00:31:25,920 --> 00:31:26,280 Okay. 717 00:31:26,480 --> 00:31:26,640 Um. 718 00:31:26,780 --> 00:31:29,760 We do some stuff with PAM on, on Linux systems. 719 00:31:29,860 --> 00:31:32,420 We're doing, we're going to be doing, doing stuff with PAM on Solera systems. 720 00:31:33,080 --> 00:31:33,300 Uh. 721 00:31:34,080 --> 00:31:37,800 The file size limit you see there is something that we're, that we're, that we're currently debating. 722 00:31:38,000 --> 00:31:46,300 Like, because people are starting to, you know, transfer up DVDs to their, to their, uh, hard drive and they get really upset when we say, oh, God, you can't be making a file that big. 723 00:31:46,360 --> 00:31:48,100 You must be trying to starve the hard disk. 724 00:31:48,180 --> 00:31:48,860 And it's like, no, no. 725 00:31:48,900 --> 00:31:51,200 My hard disk is 140 mags. 726 00:31:51,360 --> 00:31:52,140 Not going to happen. 727 00:31:53,820 --> 00:31:53,940 Um. 728 00:31:54,700 --> 00:31:55,340 Lots, yeah? 729 00:31:55,620 --> 00:31:57,980 Is the purpose of the file size limit to keep people from compiling exploits? 730 00:31:57,980 --> 00:32:01,200 Is it, I'm sorry? 731 00:32:01,860 --> 00:32:02,700 Is the, is the . 732 00:32:05,760 --> 00:32:09,040 Is the purpose of the file size limit to keep, keep people from compiling exploits? 733 00:32:09,120 --> 00:32:12,360 No, actually the purpose of the file size limit is, is for DOS attacks. 734 00:32:12,600 --> 00:32:16,540 There are a few, there are a few things that, if you go and take an old version of unix, there are a few things you can do. 735 00:32:16,620 --> 00:32:17,580 You write a simple program. 736 00:32:18,500 --> 00:32:19,740 which, you know, there's a 737 00:32:19,740 --> 00:32:21,820 whenever, almost all the time when a program 738 00:32:21,820 --> 00:32:23,940 wants to run another one, there's something called forking 739 00:32:23,940 --> 00:32:25,880 and exacting. Forking means it splits 740 00:32:25,880 --> 00:32:27,340 itself into two identical pieces 741 00:32:27,340 --> 00:32:29,940 and then one of the pieces runs some other 742 00:32:29,940 --> 00:32:32,040 program. The other one continues going on. 743 00:32:32,300 --> 00:32:33,660 Well, you can do this fork 744 00:32:33,660 --> 00:32:35,860 where you split into two pieces. You can have 745 00:32:35,860 --> 00:32:37,920 each of those fork and split into two more. 746 00:32:38,040 --> 00:32:39,600 Now we're at four. And fork 747 00:32:39,600 --> 00:32:41,640 again. Okay, now we're at 748 00:32:42,020 --> 00:32:43,080 eight or we're at sixteen? 749 00:32:43,700 --> 00:32:45,840 We're at eight. Okay, then it goes, you know, then they all 750 00:32:45,840 --> 00:32:47,620 split and it's sixteen and then they all split again 751 00:32:47,620 --> 00:32:49,660 and it's thirty-two. Well, if this continues 752 00:32:49,660 --> 00:32:51,180 on, if all this forking continues on, 753 00:32:51,620 --> 00:32:52,640 you end up with 754 00:32:53,500 --> 00:32:55,520 tons and tons of processes and the system 755 00:32:55,520 --> 00:32:56,760 goes to start another program and it says, 756 00:32:56,900 --> 00:32:59,380 ooh, I can't start another program. I have this table 757 00:32:59,380 --> 00:33:01,180 of all the processes on the system and it's full. 758 00:33:01,960 --> 00:33:03,460 So, you know, the next 759 00:33:03,460 --> 00:33:05,400 web connection that comes in won't work 760 00:33:05,400 --> 00:33:07,440 because your web server 761 00:33:07,440 --> 00:33:09,360 goes to start another web server and it can't do it. 762 00:33:09,620 --> 00:33:11,520 Or the next user logs and won't be able to get 763 00:33:11,520 --> 00:33:13,680 a shell because, well, that's another process 764 00:33:13,680 --> 00:33:15,340 and you've already exhausted the limit. 765 00:33:15,840 --> 00:33:17,400 The file size issue is the same 766 00:33:17,400 --> 00:33:19,020 thing. If we say 767 00:33:19,020 --> 00:33:21,460 people aren't allowed to write files bigger than ten 768 00:33:21,460 --> 00:33:23,580 megabytes or bigger than a hundred megabytes 769 00:33:23,580 --> 00:33:24,840 or, say, a gig, 770 00:33:25,020 --> 00:33:27,380 then we can stop people from, you know, we can stop one of the 771 00:33:27,380 --> 00:33:29,360 other attacks, which is to drain the entire system of 772 00:33:29,360 --> 00:33:31,140 all its hard disk space, leaving, 773 00:33:31,320 --> 00:33:32,300 well, everything broken. 774 00:33:33,460 --> 00:33:34,320 Any other questions? 775 00:33:35,860 --> 00:33:36,980 Y'all having fun or 776 00:33:36,980 --> 00:33:38,960 you want to go faster? Slower? 777 00:33:39,940 --> 00:33:40,880 Yeah, question. 778 00:33:41,780 --> 00:33:42,220 Question. 779 00:33:47,700 --> 00:33:49,560 Oh, the stuff that's 780 00:33:50,580 --> 00:33:52,140 basically versions of operating systems. 781 00:33:52,520 --> 00:33:54,220 We work on a whole bunch of operating systems. 782 00:33:54,420 --> 00:33:56,620 So we're covering Red Hat 6.0 through 7.3 783 00:33:56,620 --> 00:33:58,560 and some of the stuff that's specific to one 784 00:33:58,560 --> 00:34:00,580 of those won't get asked on the ones 785 00:34:00,580 --> 00:34:01,480 it's not specific to. 786 00:34:01,940 --> 00:34:02,300 Okay? 787 00:34:03,740 --> 00:34:06,140 Like I said, one of the issues is we're trying to make it so that 788 00:34:06,140 --> 00:34:08,400 if you don't tell them that enabled, we won't ask you about turning it off 789 00:34:08,400 --> 00:34:09,860 unless you're trying to run us in 790 00:34:10,380 --> 00:34:11,660 policy creation mode. 791 00:34:11,940 --> 00:34:12,300 Okay. 792 00:34:13,660 --> 00:34:15,260 Yeah, so logging, 793 00:34:15,840 --> 00:34:17,220 we put lots of extra logging. 794 00:34:17,420 --> 00:34:18,540 Yeah, yeah, in the back. 795 00:34:19,180 --> 00:34:21,200 Could you list what operations 796 00:34:21,960 --> 00:34:22,340 you're... 797 00:34:25,300 --> 00:34:27,140 List all the ones we're boarding to now? 798 00:34:27,300 --> 00:34:28,480 Or we're on right now? 799 00:34:30,140 --> 00:34:31,740 Red Hat 6.0, Red Hat 6.1, 800 00:34:31,740 --> 00:34:33,820 Red Hat 6.2, Red Hat 7.0, 801 00:34:33,860 --> 00:34:35,780 is there a 7.0? 7.0, 7.1, 7.2. 802 00:34:36,660 --> 00:34:37,960 Mandrake 6.0, 6.1, 803 00:34:38,020 --> 00:34:39,060 6.2, 6.3, 804 00:34:39,200 --> 00:34:41,100 6.3, I think there was a 6.3. 805 00:34:41,440 --> 00:34:43,160 7.0, 7.1, 7.2, 806 00:34:43,160 --> 00:34:44,700 8.0, 8.1, 8.2, 807 00:34:44,760 --> 00:34:45,820 I think there might be an 8.0. 808 00:34:45,840 --> 00:34:47,380 8.3, and if it is, we're on it. 809 00:34:48,740 --> 00:34:49,660 Debian Current, 810 00:34:49,860 --> 00:34:51,500 SUSE, whichever 811 00:34:51,500 --> 00:34:53,140 the slide, 7.2, 812 00:34:53,480 --> 00:34:54,320 Turbo, 813 00:34:55,260 --> 00:34:57,240 7.3, HPUX, 814 00:34:57,360 --> 00:34:58,920 11.0, 11.11. 815 00:34:59,440 --> 00:35:00,400 That's what we're on. 816 00:35:01,960 --> 00:35:03,360 Okay. Yeah? 817 00:35:03,820 --> 00:35:05,500 Are the configuration files 818 00:35:05,500 --> 00:35:07,160 that I mentioned earlier universal 819 00:35:07,160 --> 00:35:08,740 for Red Hat 6.0? 820 00:35:09,480 --> 00:35:11,740 The configuration files that I mentioned earlier 821 00:35:11,740 --> 00:35:13,280 are universal to Red Hat, 822 00:35:13,440 --> 00:35:15,440 to the universal among all the 823 00:35:15,440 --> 00:35:16,300 different Red Hats, et cetera. 824 00:35:16,540 --> 00:35:19,540 The issue is that what we've got right now 825 00:35:19,540 --> 00:35:22,180 is if you answer all the questions, 826 00:35:22,600 --> 00:35:24,300 if we can get you to answer all the questions 827 00:35:24,300 --> 00:35:25,140 for, say, Red Hat, 828 00:35:25,220 --> 00:35:27,700 then you'd be covered across all of the Red Hats 829 00:35:27,700 --> 00:35:28,040 you're running. 830 00:35:28,620 --> 00:35:31,300 If you answer the questions for Red Hat 7.1 831 00:35:31,300 --> 00:35:33,240 and you run them on a Red Hat and you try to use 832 00:35:33,240 --> 00:35:34,940 that configuration on a Red Hat 7.2 system 833 00:35:35,340 --> 00:35:36,920 and they're similar enough, it'll work. 834 00:35:37,140 --> 00:35:38,640 And it'll tell you if it's not going to work 835 00:35:38,640 --> 00:35:39,880 because we're checking for that. 836 00:35:40,000 --> 00:35:40,160 Yeah? 837 00:35:41,200 --> 00:35:43,700 What happens if you have Red Hat 7.0 838 00:35:43,700 --> 00:35:44,840 and then we have a . 839 00:35:44,840 --> 00:35:47,560 And then we want to upgrade to Red Hat 7.3? 840 00:35:49,380 --> 00:35:50,140 Upgrade path. 841 00:35:51,840 --> 00:35:52,640 Oh, darn it. 842 00:35:54,400 --> 00:35:56,700 You know, there's this dirty little secret 843 00:35:56,700 --> 00:35:58,500 in the Linux world, and that's that most 844 00:35:58,500 --> 00:36:00,720 of the RPM-based operating systems 845 00:36:00,720 --> 00:36:01,860 don't exactly upgrade easily. 846 00:36:02,500 --> 00:36:05,100 I mean, you can do it, but stuff starts breaking. 847 00:36:07,020 --> 00:36:08,540 This is not what the vendors say, 848 00:36:08,580 --> 00:36:10,600 but what I tend to say is if you want to upgrade a, 849 00:36:11,240 --> 00:36:12,200 can everyone hear me? 850 00:36:13,100 --> 00:36:13,500 Okay. 851 00:36:14,840 --> 00:36:17,100 I tend to say that what I try to say as far as the, 852 00:36:17,160 --> 00:36:21,460 damn, that's loud, what I try to say with upgrading is, 853 00:36:21,880 --> 00:36:23,620 you know, whenever I upgrade my systems, 854 00:36:23,920 --> 00:36:25,540 what I do is I'm partitioned. 855 00:36:25,540 --> 00:36:29,060 So I've got a home partition and I've got other partitions 856 00:36:29,060 --> 00:36:31,220 or maybe just one other partition for everything else. 857 00:36:31,740 --> 00:36:32,100 Okay? 858 00:36:32,180 --> 00:36:34,820 So what I want to do is if I'm going to upgrade, 859 00:36:34,980 --> 00:36:37,720 I actually just do a fresh reinstall on the normal 860 00:36:37,720 --> 00:36:39,340 partitions, I leave my home directory alone. 861 00:36:39,600 --> 00:36:40,880 So still keep all my data. 862 00:36:41,480 --> 00:36:44,480 This is, you know, this is one way to do it. 863 00:36:44,480 --> 00:36:45,720 It's what we do on a major OS. 864 00:36:46,180 --> 00:36:48,740 I don't know if anybody's tried going from like Solaris 2.6 865 00:36:48,740 --> 00:36:52,700 to Solaris 2.8, but I think there might be an upgrade feature. 866 00:36:52,840 --> 00:36:54,260 I'm not sure how well that works. 867 00:36:54,460 --> 00:36:55,880 That's just, it's four years apart. 868 00:36:56,760 --> 00:36:57,260 I don't know. 869 00:36:57,300 --> 00:36:58,980 I'm not sure the vendors are really that great at upgrading. 870 00:36:59,560 --> 00:37:02,660 So with that said, we have something that'll let you, 871 00:37:02,740 --> 00:37:04,740 you know, one of the issues is you can undo Bastille 872 00:37:05,560 --> 00:37:07,660 and, you know, do your upgrade and redo Bastille. 873 00:37:07,800 --> 00:37:09,700 Another is you can make the upgrade, 874 00:37:10,400 --> 00:37:12,340 you can make the upgrade and rerun Bastille 875 00:37:12,340 --> 00:37:13,980 and it'll use your old configuration file. 876 00:37:14,520 --> 00:37:17,300 But really, OS upgrades are just really hard to do. 877 00:37:17,480 --> 00:37:19,200 I mean, I don't really think most of the vendors 878 00:37:19,200 --> 00:37:20,240 get it right so well. 879 00:37:20,840 --> 00:37:21,980 And stuff just breaks. 880 00:37:24,140 --> 00:37:24,500 Okay. 881 00:37:25,980 --> 00:37:27,380 I have a list of stuff we turn, 882 00:37:27,940 --> 00:37:29,540 I have a list of stuff we turn off. 883 00:37:29,980 --> 00:37:31,800 If it's starred, it's had a vulnerability lately. 884 00:37:32,000 --> 00:37:33,680 I think Samba should probably be in that list. 885 00:37:35,940 --> 00:37:38,280 GPM, the news server, maybe one of the routing games 886 00:37:38,280 --> 00:37:38,760 had a vulnerability. 887 00:37:39,280 --> 00:37:41,080 It turns out what I'm trying to do with these stars 888 00:37:41,080 --> 00:37:43,680 is I'm trying to show you how much of the stuff, you know, 889 00:37:44,480 --> 00:37:46,840 has had a vulnerability in the last three years. 890 00:37:47,260 --> 00:37:49,200 Okay, if you're running a three-year-old operating system, 891 00:37:49,340 --> 00:37:50,100 you've probably nailed. 892 00:37:50,540 --> 00:37:52,260 Okay, if you're running a one-year-old operating system, 893 00:37:52,360 --> 00:37:54,380 some of these you got hit by. 894 00:37:54,660 --> 00:37:56,220 I mean, there are tons of vulnerabilities. 895 00:37:56,660 --> 00:37:58,980 That's why we patch, which is, I think, 896 00:37:58,980 --> 00:38:02,260 the number one most boring area of computer security. 897 00:38:03,200 --> 00:38:04,180 But that's why we patch 898 00:38:04,180 --> 00:38:06,380 and it's why I try to get people to harden your systems. 899 00:38:06,680 --> 00:38:08,760 Okay, especially because there are lots of vulnerabilities 900 00:38:08,760 --> 00:38:10,980 we never hear about, or maybe some of you do, 901 00:38:11,040 --> 00:38:13,160 but I don't hear about until they get made public, 902 00:38:13,180 --> 00:38:14,000 maybe a year later. 903 00:38:14,480 --> 00:38:17,740 In the meantime, there's no patch 904 00:38:17,740 --> 00:38:19,160 because nobody knows there's a problem, 905 00:38:19,260 --> 00:38:20,100 so we don't patch it. 906 00:38:20,720 --> 00:38:22,560 Okay, hardening will actually, 907 00:38:22,800 --> 00:38:24,420 hardening has some chance of actually 908 00:38:24,420 --> 00:38:25,620 blocking the exploit anyway. 909 00:38:26,340 --> 00:38:27,980 Okay, even while you're still vulnerable. 910 00:38:28,540 --> 00:38:29,420 Does that make sense? 911 00:38:29,700 --> 00:38:32,000 So that's, I guess that's the biggest argument for hardening 912 00:38:32,000 --> 00:38:33,760 is it's just, you know, there are lots of vulnerabilities 913 00:38:33,760 --> 00:38:34,940 you may or may not know about, 914 00:38:35,080 --> 00:38:37,360 and you may, heck, you may be lazy about patches, 915 00:38:37,380 --> 00:38:40,960 like 80% of us, and so you may be getting, 916 00:38:41,120 --> 00:38:43,640 you may be vulnerable to a bunch of exploits, 917 00:38:43,640 --> 00:38:44,340 or at least to one. 918 00:38:44,480 --> 00:38:45,680 You may be getting a major exploit at any given time, 919 00:38:45,760 --> 00:38:47,960 and it would really rock to have a hardening script 920 00:38:47,960 --> 00:38:49,900 or to have hardened the system personally 921 00:38:50,380 --> 00:38:51,820 so that that stuff doesn't work. 922 00:38:55,140 --> 00:38:56,980 Okay, some of the stuff we do, 923 00:38:57,200 --> 00:39:00,160 I'm gonna go through the rest of the hardening steps. 924 00:39:00,560 --> 00:39:01,140 Send mail. 925 00:39:01,540 --> 00:39:04,480 We try to set send mail so it doesn't listen on the network 926 00:39:04,480 --> 00:39:06,240 because if you're just sending mail off the box, 927 00:39:06,400 --> 00:39:07,900 you don't need send mail listening on the network, 928 00:39:08,060 --> 00:39:08,880 so we can turn that off. 929 00:39:09,680 --> 00:39:11,360 We remove those recon commands 930 00:39:11,360 --> 00:39:14,460 that spammers can use expn and verify to find a case. 931 00:39:14,480 --> 00:39:14,980 Hound's in a box. 932 00:39:15,160 --> 00:39:15,800 Yeah, in the back. 933 00:39:20,000 --> 00:39:20,960 You a Qmail guy? 934 00:39:22,000 --> 00:39:23,500 Anybody in here write Qmail? 935 00:39:24,840 --> 00:39:26,820 Okay, okay, two, that's great. 936 00:39:27,100 --> 00:39:28,640 Okay, why don't we replace send mail 937 00:39:28,640 --> 00:39:31,740 with something decent like Qmail or Postfix? 938 00:39:33,040 --> 00:39:34,640 Yeah, that's a really good idea, actually. 939 00:39:34,860 --> 00:39:37,200 We try not to install software right now. 940 00:39:37,280 --> 00:39:38,520 We try to just harden what's there. 941 00:39:39,600 --> 00:39:42,240 Postfix is making it onto Red Hat and Mandrake, 942 00:39:42,300 --> 00:39:42,920 which is kinda nice. 943 00:39:43,060 --> 00:39:43,940 I'd love to see it. 944 00:39:43,940 --> 00:39:46,980 I think the Qmail was also added to the base distributions. 945 00:39:48,200 --> 00:39:50,080 We haven't tried configuring those 946 00:39:50,700 --> 00:39:52,500 because we're trying not to install software 947 00:39:52,500 --> 00:39:55,040 because you wouldn't believe how amazingly hard it is 948 00:39:55,040 --> 00:39:56,680 to help people install software 949 00:39:56,680 --> 00:39:57,920 and to do it in a secure way. 950 00:39:58,180 --> 00:40:01,000 The people who really, really know their stuff say, 951 00:40:01,580 --> 00:40:03,820 your particular method of installing software isn't good 952 00:40:03,820 --> 00:40:05,820 because maybe you're not getting vendor keys, 953 00:40:05,980 --> 00:40:07,300 maybe you're not able to check with PGP 954 00:40:07,300 --> 00:40:08,320 on old operating systems, 955 00:40:08,460 --> 00:40:10,000 maybe you're not able to check with PGP 956 00:40:10,000 --> 00:40:11,580 on all the non-linuses. 957 00:40:12,280 --> 00:40:15,080 The people who are really new to this get upset 958 00:40:15,080 --> 00:40:16,260 because if the installation, 959 00:40:16,540 --> 00:40:17,940 if we tell them how to install software, 960 00:40:18,600 --> 00:40:19,780 often they don't get it right. 961 00:40:19,900 --> 00:40:21,640 And they get really upset and they send us email 962 00:40:21,640 --> 00:40:22,940 or they just get rid of Bastille 963 00:40:22,940 --> 00:40:24,320 and we haven't helped them in the slightest bit 964 00:40:24,320 --> 00:40:25,240 because they got all upset 965 00:40:25,240 --> 00:40:27,460 because they couldn't get a package installed. 966 00:40:28,800 --> 00:40:31,720 But no, I think you're right. 967 00:40:31,820 --> 00:40:34,480 We should at least be putting a screen in that says, 968 00:40:34,620 --> 00:40:36,420 hey, run Qmail or Postfix 969 00:40:36,820 --> 00:40:38,180 because SunMail's had a history 970 00:40:38,180 --> 00:40:39,420 and these guys really haven't. 971 00:40:41,040 --> 00:40:44,080 Good enough for the alternative MTA zealots. 972 00:40:44,360 --> 00:40:45,940 I am one, so yeah. 973 00:40:48,460 --> 00:40:49,740 Okay, we're gonna table questions 974 00:40:49,740 --> 00:40:50,800 till the end of the presentation. 975 00:40:51,620 --> 00:40:52,800 Anybody hate that idea? 976 00:40:53,540 --> 00:40:54,980 Okay, so we're tabling, cool. 977 00:40:55,780 --> 00:40:57,120 Okay, other stuff we do with SunMail, 978 00:40:57,140 --> 00:40:58,540 we're gonna run it as a non-root user 979 00:40:58,540 --> 00:41:00,140 via INETD or XINETD. 980 00:41:00,360 --> 00:41:01,960 If you do a bunch of permissions changing, 981 00:41:02,020 --> 00:41:03,920 you can actually do this so SunMail does get hit. 982 00:41:04,100 --> 00:41:06,060 It wasn't running as root, it was running as mail. 983 00:41:06,180 --> 00:41:08,620 So somebody can actually go and read everybody 984 00:41:08,620 --> 00:41:09,140 and change them. 985 00:41:09,140 --> 00:41:10,880 Everybody's email, but they don't have root on the system. 986 00:41:11,100 --> 00:41:13,780 This is a darn useful thing, so we're gonna start doing it. 987 00:41:16,360 --> 00:41:18,520 I'm gonna have a Postfix slide, but no Qmail slide. 988 00:41:18,860 --> 00:41:22,820 So I always try to recommend the other MTAs. 989 00:41:23,480 --> 00:41:25,600 Postfix is a nice easy one 990 00:41:25,600 --> 00:41:26,340 because it's getting installed 991 00:41:26,340 --> 00:41:27,840 on a lot of operating systems by default. 992 00:41:28,680 --> 00:41:31,480 The Postfix and Qmail people will probably be holding 993 00:41:31,480 --> 00:41:33,940 a small fight outside after this talk. 994 00:41:35,000 --> 00:41:36,520 Or maybe we can just all go out for beers. 995 00:41:37,920 --> 00:41:38,800 So yeah. 996 00:41:38,800 --> 00:41:41,060 But yeah, think about going on all your systems. 997 00:41:41,140 --> 00:41:42,580 Think about going with Postfix or Qmail. 998 00:41:42,600 --> 00:41:44,060 I think there are books on each of these now. 999 00:41:44,240 --> 00:41:46,100 There are more and more people who are trained on them. 1000 00:41:46,660 --> 00:41:50,900 It would definitely be great to be on an MTA, 1001 00:41:50,960 --> 00:41:53,560 on a mail transfer agent that actually was written 1002 00:41:53,560 --> 00:41:54,920 with security in mind from the start 1003 00:41:55,340 --> 00:41:57,160 instead of with the idea that we have to make 1004 00:41:57,160 --> 00:41:59,440 50 different kinds of mailing systems all work together. 1005 00:42:03,000 --> 00:42:03,800 DNS bind. 1006 00:42:04,880 --> 00:42:07,320 Historical note, we secured bind before there were 1007 00:42:07,320 --> 00:42:08,600 a bunch of remote root exploits. 1008 00:42:08,600 --> 00:42:11,060 Before the worms came out that went around exploiting bind. 1009 00:42:11,760 --> 00:42:13,040 This is not a brag. 1010 00:42:13,180 --> 00:42:15,420 This is a, hey, this is a really good idea. 1011 00:42:15,660 --> 00:42:17,540 Harden it before you find out that it's vulnerable. 1012 00:42:17,720 --> 00:42:18,880 So when you do find out that it's vulnerable, 1013 00:42:19,260 --> 00:42:20,520 hopefully you haven't already been hit. 1014 00:42:20,940 --> 00:42:21,300 Okay. 1015 00:42:24,340 --> 00:42:25,420 Things that we do to bind. 1016 00:42:25,540 --> 00:42:27,700 One is we churn it into a little directory 1017 00:42:27,700 --> 00:42:30,180 that if somebody breaks into bind, they can't get out of, 1018 00:42:30,240 --> 00:42:31,980 which means they can't really do much on the system. 1019 00:42:32,400 --> 00:42:34,420 Another thing we do is run it as an independent user. 1020 00:42:34,700 --> 00:42:36,040 This is just about containing it. 1021 00:42:36,060 --> 00:42:38,020 We're trying to stop, if someone does exploit it, 1022 00:42:38,020 --> 00:42:39,300 then we're trying to stop them from getting anywhere. 1023 00:42:40,300 --> 00:42:41,640 This is some other stuff we do. 1024 00:42:41,700 --> 00:42:44,760 We make it so that if you've got a bind server 1025 00:42:44,760 --> 00:42:46,940 that's just for your, let's say, 1026 00:42:46,980 --> 00:42:48,340 your company's network or your home network, 1027 00:42:48,560 --> 00:42:50,540 other people outside of that network 1028 00:42:50,540 --> 00:42:52,200 can't go and query and ask it questions 1029 00:42:52,200 --> 00:42:53,620 and thus possibly pass it attacks. 1030 00:42:55,280 --> 00:42:57,140 All they can do is ask your DNS server 1031 00:42:57,140 --> 00:42:58,600 possibly about your zones. 1032 00:42:58,840 --> 00:43:00,460 This is a really useful step. 1033 00:43:00,520 --> 00:43:01,780 This is the stuff from whenever I do 1034 00:43:01,780 --> 00:43:03,900 attacking and securing DNS, 1035 00:43:04,120 --> 00:43:05,980 these are the steps that end up in there. 1036 00:43:06,680 --> 00:43:07,580 Do things like, 1037 00:43:08,020 --> 00:43:10,280 the zone transfers are only supposed to use by secondaries, 1038 00:43:10,820 --> 00:43:13,740 but zone transfers are what people like me 1039 00:43:13,740 --> 00:43:15,320 who are doing pen testing love, 1040 00:43:15,560 --> 00:43:18,540 because you go and you ask some huge domain, 1041 00:43:18,840 --> 00:43:21,040 hey, just give me everything so I can read through it all 1042 00:43:21,040 --> 00:43:22,140 and to my heart's content 1043 00:43:22,140 --> 00:43:23,900 and figure out everything I can about your site. 1044 00:43:24,960 --> 00:43:27,760 Well, we should definitely shut this functionality off, 1045 00:43:27,820 --> 00:43:28,220 so we do. 1046 00:43:29,320 --> 00:43:30,320 We also do things like, 1047 00:43:30,380 --> 00:43:32,040 we're gonna choose a random version string. 1048 00:43:32,200 --> 00:43:33,500 So if you've got a worm out there 1049 00:43:33,500 --> 00:43:34,520 that's running around and it checks 1050 00:43:34,520 --> 00:43:35,660 and it says, oh, you've got bind. 1051 00:43:36,140 --> 00:43:37,900 I'm looking for, I'm looking for bind, 1052 00:43:37,900 --> 00:43:38,780 bind 8.2.1 servers. 1053 00:43:38,940 --> 00:43:39,960 You're running an 8.2.1 server, 1054 00:43:40,020 --> 00:43:41,200 but your bind server answers back, 1055 00:43:41,340 --> 00:43:42,560 I'm bind 8.2.2. 1056 00:43:42,640 --> 00:43:44,540 They say, oh, I can't do this, 1057 00:43:44,600 --> 00:43:45,940 I can't exploit this one, so they don't attack. 1058 00:43:46,360 --> 00:43:47,980 A lot of the worms, this is the way they work. 1059 00:43:48,040 --> 00:43:48,860 They check version strings. 1060 00:43:49,200 --> 00:43:51,480 Change your version strings, you don't get hit. 1061 00:43:52,000 --> 00:43:53,720 Doesn't mean that we've actually saved you 1062 00:43:53,720 --> 00:43:54,360 from being vulnerable. 1063 00:43:54,500 --> 00:43:55,260 You're still vulnerable. 1064 00:43:55,560 --> 00:43:57,160 You just get attacked less often. 1065 00:43:57,560 --> 00:43:59,560 Less often means, unless you're somewhere here, 1066 00:43:59,660 --> 00:44:01,020 which is an extremely hostile network, 1067 00:44:01,300 --> 00:44:04,020 that you generally, you might never get attacked by, 1068 00:44:04,040 --> 00:44:06,100 you might never get attacked by one of these worms. 1069 00:44:06,300 --> 00:44:07,800 You might never get attacked by one of these scripts. 1070 00:44:07,800 --> 00:44:08,180 Script kiddies. 1071 00:44:10,020 --> 00:44:11,300 Another thing is views. 1072 00:44:11,480 --> 00:44:13,320 Views let you do, views are really cool. 1073 00:44:13,380 --> 00:44:14,220 Most people don't know about them. 1074 00:44:14,260 --> 00:44:17,240 Views do what SplitBrain or SplitHorizonDNS did. 1075 00:44:17,500 --> 00:44:19,200 They give people who are on the inside 1076 00:44:19,200 --> 00:44:21,720 of your internal network, the whole list, 1077 00:44:21,800 --> 00:44:23,940 everything that's in your DNS files, okay? 1078 00:44:24,100 --> 00:44:25,520 And they give people on the outside, 1079 00:44:25,740 --> 00:44:27,740 just the machines that they need to know about. 1080 00:44:27,780 --> 00:44:29,160 Just your externally accessible machines, 1081 00:44:29,280 --> 00:44:32,120 like your web server, your mail server, 1082 00:44:32,320 --> 00:44:33,820 your DNS server, your FTP server. 1083 00:44:34,100 --> 00:44:36,440 But they don't tell about where all the printers are. 1084 00:44:36,440 --> 00:44:39,160 So no one ends up using your printers for bounce attacks. 1085 00:44:40,320 --> 00:44:41,540 More on that some other time. 1086 00:44:43,020 --> 00:44:45,200 Apache, we try to turn it off. 1087 00:44:45,380 --> 00:44:48,380 We try to bind it to a local, to the local interface. 1088 00:44:48,600 --> 00:44:50,340 The idea being, if you're just using your web server 1089 00:44:50,340 --> 00:44:52,600 as a development platform and nothing else, 1090 00:44:52,700 --> 00:44:54,320 then maybe you don't need it to listen to the network. 1091 00:44:56,160 --> 00:44:57,980 We turn off different functionality on Apache, 1092 00:44:58,260 --> 00:45:00,480 like following symbolic links. 1093 00:45:00,620 --> 00:45:04,440 We turn off things like server site includes, CGI scripts. 1094 00:45:04,640 --> 00:45:06,320 Most all the, most all of the, 1095 00:45:06,320 --> 00:45:08,800 The ways that people nail a web server 1096 00:45:08,800 --> 00:45:10,280 actually isn't through the web server itself. 1097 00:45:11,000 --> 00:45:13,720 It's through CGI scripts or whatever that's on the box. 1098 00:45:13,940 --> 00:45:16,580 And if we can disable them, then they don't get used. 1099 00:45:17,640 --> 00:45:19,220 The last thing is we're going to try to remove 1100 00:45:19,220 --> 00:45:21,560 as much of the weird functionality 1101 00:45:21,560 --> 00:45:23,200 that most people don't know about from Apache 1102 00:45:23,200 --> 00:45:25,360 because often if you remove it, 1103 00:45:25,400 --> 00:45:28,000 there's a lot of stuff that we all have on our web servers. 1104 00:45:28,080 --> 00:45:29,020 We don't even know about it. 1105 00:45:29,040 --> 00:45:30,800 Just weird modules that the vendor thought 1106 00:45:30,800 --> 00:45:32,400 would be really useful to us. 1107 00:45:32,440 --> 00:45:33,540 And they're probably useful to us. 1108 00:45:33,540 --> 00:45:36,240 But if they aren't, we'll turn them off for you. 1109 00:45:39,600 --> 00:45:40,780 FTP. FTP stinks. 1110 00:45:41,360 --> 00:45:42,460 FTP really stinks. 1111 00:45:42,660 --> 00:45:45,600 I told you about usernames and passwords being stolen. 1112 00:45:46,140 --> 00:45:48,760 FTP servers get rooted all the time. 1113 00:45:49,040 --> 00:45:50,360 Why else is FTP bad? 1114 00:45:50,940 --> 00:45:52,940 There are nice tools out there 1115 00:45:52,940 --> 00:45:54,960 that let you steal people's files while they're in transit. 1116 00:45:56,900 --> 00:45:59,740 I recommend trying to replace it with SFTP. 1117 00:46:00,560 --> 00:46:01,940 It's part of the SSH suite. 1118 00:46:02,120 --> 00:46:03,340 There are free clients. 1119 00:46:03,540 --> 00:46:05,940 It's for Windows and Mac and Unix 1120 00:46:07,400 --> 00:46:08,480 and web servers. 1121 00:46:10,820 --> 00:46:12,260 I'm losing tons of... 1122 00:46:12,260 --> 00:46:13,340 I'm losing people off the side. 1123 00:46:13,400 --> 00:46:14,200 Am I really boring y'all? 1124 00:46:15,000 --> 00:46:15,620 I'm boring? 1125 00:46:16,160 --> 00:46:16,560 Okay. 1126 00:46:18,340 --> 00:46:19,580 FTP, one of the things we do now 1127 00:46:19,580 --> 00:46:22,600 is we'll either turn off normal authenticated access 1128 00:46:22,600 --> 00:46:24,760 or we'll turn off anonymous mode. 1129 00:46:25,600 --> 00:46:27,740 This is all the stuff that I came up to add to that 1130 00:46:28,520 --> 00:46:30,080 because I had to write a paper 1131 00:46:30,080 --> 00:46:31,320 and do a talk for this conference 1132 00:46:31,320 --> 00:46:33,260 and in the process ended up making a nice, 1133 00:46:33,260 --> 00:46:33,660 nice, long list. 1134 00:46:34,300 --> 00:46:34,660 Okay. 1135 00:46:36,280 --> 00:46:38,040 Anybody who wants to can download that talk 1136 00:46:38,040 --> 00:46:39,320 and find out why we're doing all this stuff. 1137 00:46:39,660 --> 00:46:41,220 But basically all this stuff is 1138 00:46:41,220 --> 00:46:43,200 is removing functionality from FTP 1139 00:46:43,200 --> 00:46:45,380 from the FTP daemon that you may not be using. 1140 00:46:45,900 --> 00:46:46,260 Okay. 1141 00:46:48,720 --> 00:46:49,080 Well. 1142 00:46:51,700 --> 00:46:52,060 Eight. 1143 00:46:52,880 --> 00:46:54,680 So let me check on time, 1144 00:46:54,740 --> 00:46:55,300 see where we are. 1145 00:46:57,460 --> 00:46:58,780 We're actually doing fine on time. 1146 00:46:58,900 --> 00:46:59,700 Are there any questions? 1147 00:46:59,880 --> 00:47:01,460 Does anybody want me to go into detail on this slide? 1148 00:47:01,560 --> 00:47:02,520 I thought we'd be out of time by now. 1149 00:47:02,760 --> 00:47:03,120 Yeah. 1150 00:47:16,060 --> 00:47:17,220 The question was, 1151 00:47:17,280 --> 00:47:20,400 we'd see Venema had a secure port mapper 1152 00:47:20,400 --> 00:47:21,900 called RPC bind for Solaris. 1153 00:47:22,040 --> 00:47:23,540 Do we use anything like that? 1154 00:47:23,580 --> 00:47:25,140 Actually, I think the Linux vendors are, 1155 00:47:25,220 --> 00:47:27,300 we're going to have to install that, I think, 1156 00:47:27,300 --> 00:47:29,800 or we're going to have to try to at least recommend it 1157 00:47:29,800 --> 00:47:31,520 on the Solaris systems when we're supporting those. 1158 00:47:32,120 --> 00:47:33,240 On Red Hat systems, 1159 00:47:33,260 --> 00:47:34,040 it's already there. 1160 00:47:34,220 --> 00:47:35,860 They're already using a port mapper 1161 00:47:35,860 --> 00:47:36,860 that allows access control. 1162 00:47:37,980 --> 00:47:38,380 Yeah. 1163 00:47:38,580 --> 00:47:40,140 You said you're going to be incorporating 1164 00:47:40,140 --> 00:47:42,080 the FTP stuff back into the FTP. 1165 00:47:42,500 --> 00:47:44,520 I think you referenced it in your other talk. 1166 00:47:44,780 --> 00:47:47,200 You just brought up the best deal. 1167 00:47:47,680 --> 00:47:49,960 Is there going to be a list of parts 1168 00:47:49,960 --> 00:47:52,420 that you didn't do that you're going to have to manually add? 1169 00:47:52,980 --> 00:47:53,380 Yeah. 1170 00:47:53,440 --> 00:47:55,140 Actually, the question I just asked was, 1171 00:47:55,220 --> 00:47:57,160 the question was, 1172 00:47:57,240 --> 00:47:58,460 you said you're going to be incorporating 1173 00:47:58,460 --> 00:48:01,280 all the stuff you did in your FTP talk into best deal. 1174 00:48:01,440 --> 00:48:03,080 What about the stuff that you're not going to do? 1175 00:48:03,260 --> 00:48:06,100 We actually have a nice feature called the to-do list, 1176 00:48:06,220 --> 00:48:07,240 which says this is all the stuff 1177 00:48:07,240 --> 00:48:09,160 that we didn't feel confident doing on our own, 1178 00:48:09,200 --> 00:48:11,460 like maybe installing QML, guys. 1179 00:48:12,760 --> 00:48:14,180 These are things you should do, 1180 00:48:14,240 --> 00:48:15,560 and they'll tell you what to do, 1181 00:48:15,580 --> 00:48:16,280 and maybe they'll tell you how. 1182 00:48:17,220 --> 00:48:18,100 Any other questions? 1183 00:48:21,520 --> 00:48:22,820 Oh, stop leaving, guys. 1184 00:48:22,880 --> 00:48:23,820 I can't be that boring. 1185 00:48:25,060 --> 00:48:25,420 Yeah. 1186 00:48:26,360 --> 00:48:26,720 Yeah. 1187 00:48:30,920 --> 00:48:33,040 I was talking about putting a patch in a churro, 1188 00:48:33,260 --> 00:48:34,520 that's a really good idea. 1189 00:48:34,720 --> 00:48:35,880 I think I may try to do that. 1190 00:48:36,020 --> 00:48:37,280 We haven't gotten to it yet. 1191 00:48:37,500 --> 00:48:38,480 We haven't gotten to it yet. 1192 00:48:38,780 --> 00:48:39,700 Any other questions? 1193 00:48:41,360 --> 00:48:41,760 Yeah. 1194 00:48:42,180 --> 00:48:43,040 Mac OS X. 1195 00:48:43,440 --> 00:48:44,340 Mac OS X. 1196 00:48:44,940 --> 00:48:45,340 Okay. 1197 00:48:46,100 --> 00:48:48,240 If anybody has deep pockets in here, 1198 00:48:48,440 --> 00:48:51,200 the first person to buy me or lend me 1199 00:48:51,200 --> 00:48:53,680 an OS X capable machine 1200 00:48:54,100 --> 00:48:56,760 gets a full port of best deal to OS X. 1201 00:48:57,480 --> 00:48:58,560 I don't have a machine. 1202 00:48:58,700 --> 00:48:59,680 I don't have one that'll do it. 1203 00:48:59,800 --> 00:49:00,800 So, you know. 1204 00:49:01,240 --> 00:49:02,440 The other possibility is 1205 00:49:02,440 --> 00:49:03,580 if somebody who has one 1206 00:49:03,580 --> 00:49:05,180 decides to help us port it, 1207 00:49:05,220 --> 00:49:05,860 then we'll get one. 1208 00:49:06,160 --> 00:49:08,720 So, anybody who either has deep pockets, 1209 00:49:08,880 --> 00:49:10,760 has a machine they wouldn't mind lending to somebody, 1210 00:49:10,960 --> 00:49:13,620 or, heck, you know, 1211 00:49:13,620 --> 00:49:14,580 wants to help us port, 1212 00:49:14,740 --> 00:49:15,460 send me an email. 1213 00:49:16,320 --> 00:49:17,020 Send me an email. 1214 00:49:17,040 --> 00:49:17,300 Seriously. 1215 00:49:17,460 --> 00:49:18,340 Get on the discussion list 1216 00:49:18,340 --> 00:49:19,120 if you want to help us port. 1217 00:49:19,300 --> 00:49:20,240 I don't have a machine, 1218 00:49:20,420 --> 00:49:21,340 so it's going to be, 1219 00:49:21,420 --> 00:49:22,660 once we're done porting, 1220 00:49:22,660 --> 00:49:23,760 it's going to be even slightly hard 1221 00:49:23,760 --> 00:49:24,600 for me to certify it. 1222 00:49:24,680 --> 00:49:25,380 Yeah, in the back. 1223 00:49:26,000 --> 00:49:27,360 The client gets to do it. 1224 00:49:27,460 --> 00:49:29,060 It's not only part of the system, 1225 00:49:29,320 --> 00:49:31,000 but it's also part of the machine. 1226 00:49:31,860 --> 00:49:34,280 The question in the back is Titan. 1227 00:49:35,880 --> 00:49:36,340 No, no. 1228 00:49:38,280 --> 00:49:38,640 Yeah. 1229 00:49:39,900 --> 00:49:41,280 So, Titan is an auditor. 1230 00:49:41,560 --> 00:49:42,620 Titan audits 1231 00:49:43,140 --> 00:49:44,620 and then tells you what, you know, 1232 00:49:44,620 --> 00:49:45,980 says, hey, you want to harden this stuff. 1233 00:49:46,160 --> 00:49:47,180 It's actually a really good program. 1234 00:49:47,240 --> 00:49:48,280 It came out way before us. 1235 00:49:48,460 --> 00:49:50,200 They weren't ported to Linux when we came out, 1236 00:49:50,800 --> 00:49:51,720 but now they are. 1237 00:49:52,920 --> 00:49:55,060 They're doing Linux and FreeBSD and Solaris. 1238 00:49:55,680 --> 00:49:57,060 Yeah, I think we're talking about 1239 00:49:57,060 --> 00:49:58,100 getting some of the auditing functionality. 1240 00:49:58,320 --> 00:49:59,160 The cool thing is 1241 00:49:59,620 --> 00:50:00,840 the Center for Internet Security, 1242 00:50:01,000 --> 00:50:02,200 writes, you know, 1243 00:50:03,380 --> 00:50:06,440 distributes an auditing program 1244 00:50:06,440 --> 00:50:08,540 for Linux and Red Hat, 1245 00:50:08,660 --> 00:50:10,880 I mean, Linux and HPUX and Solaris, 1246 00:50:10,920 --> 00:50:12,020 and soon AIX, 1247 00:50:12,120 --> 00:50:13,880 and I actually write that thing, 1248 00:50:14,020 --> 00:50:15,200 so there's some possibility 1249 00:50:15,200 --> 00:50:16,200 that what we'll do is 1250 00:50:16,200 --> 00:50:17,920 we'll distribute both together somehow 1251 00:50:17,920 --> 00:50:19,440 and have the one audit 1252 00:50:19,440 --> 00:50:20,240 and the other one fix. 1253 00:50:20,720 --> 00:50:21,500 So, yeah. 1254 00:50:21,760 --> 00:50:22,920 What about, like, 1255 00:50:22,920 --> 00:50:24,980 adding accounts for individual services, 1256 00:50:25,240 --> 00:50:27,840 like, so nobody is in the car? 1257 00:50:28,620 --> 00:50:29,700 The question is, 1258 00:50:29,720 --> 00:50:30,640 what about adding accounts? 1259 00:50:31,000 --> 00:50:32,220 For different services, 1260 00:50:32,400 --> 00:50:33,760 so that they can all run as, 1261 00:50:33,820 --> 00:50:34,600 instead of running as root, 1262 00:50:34,680 --> 00:50:35,360 they can run as that account. 1263 00:50:35,660 --> 00:50:36,340 Or as nobody. 1264 00:50:36,500 --> 00:50:37,320 Oh, yeah, or as nobody. 1265 00:50:37,500 --> 00:50:38,580 We're trying to do that. 1266 00:50:38,680 --> 00:50:39,640 That's actually the DNS, 1267 00:50:39,760 --> 00:50:41,100 with the DNS thing, 1268 00:50:41,140 --> 00:50:42,240 we add a DNS user, 1269 00:50:42,260 --> 00:50:44,060 we run the DNS server as that user. 1270 00:50:44,780 --> 00:50:45,720 The idea is, 1271 00:50:45,760 --> 00:50:47,460 for everyone who's thought of running everything as nobody, 1272 00:50:47,700 --> 00:50:48,560 what you really want 1273 00:50:48,560 --> 00:50:49,840 is not so much everything running as nobody, 1274 00:50:49,960 --> 00:50:51,420 but everything running as different users. 1275 00:50:51,820 --> 00:50:53,760 So if anybody takes over one user 1276 00:50:53,760 --> 00:50:54,820 to take over the DNS server, 1277 00:50:55,000 --> 00:50:56,460 they can't necessarily use the, 1278 00:50:56,560 --> 00:50:58,620 you know, they can't go and modify the web server's files, 1279 00:50:58,760 --> 00:51:00,100 or they can't go and, you know, 1280 00:51:00,100 --> 00:51:00,820 do stuff as, 1281 00:51:00,820 --> 00:51:01,580 as the web server user. 1282 00:51:02,360 --> 00:51:04,020 This can be really darn useful. 1283 00:51:04,200 --> 00:51:05,360 So, yeah, we do do that. 1284 00:51:05,400 --> 00:51:06,200 We're going to do it even more. 1285 00:51:06,740 --> 00:51:07,660 Please do it yourselves. 1286 00:51:08,680 --> 00:51:09,040 Yeah. 1287 00:51:09,400 --> 00:51:10,160 Any other questions? 1288 00:51:13,280 --> 00:51:13,640 Okay. 1289 00:51:14,200 --> 00:51:15,160 Time's basically up, 1290 00:51:15,180 --> 00:51:16,140 but, yeah, I'll take another question. 1291 00:51:16,260 --> 00:51:16,400 Sure. 1292 00:51:22,380 --> 00:51:23,400 The question was, 1293 00:51:23,480 --> 00:51:25,560 we talk about password-protecting LILO. 1294 00:51:25,600 --> 00:51:26,440 Yeah, we do GRUB, too. 1295 00:51:27,000 --> 00:51:28,280 Yeah, and on Solaris, 1296 00:51:28,300 --> 00:51:29,680 we're going to password-protect EEPROM, 1297 00:51:29,740 --> 00:51:30,540 so you can't, you know, 1298 00:51:30,820 --> 00:51:32,560 you can't stick a CD in even 1299 00:51:32,560 --> 00:51:33,560 and boot off the CD. 1300 00:51:33,680 --> 00:51:36,360 You can't modify the boot process on Solaris. 1301 00:51:36,660 --> 00:51:38,500 Yeah, boot security is really 1302 00:51:38,500 --> 00:51:39,600 one of the hardest things to do, 1303 00:51:39,660 --> 00:51:41,400 but we can at least take some basic steps 1304 00:51:41,400 --> 00:51:44,160 to keep off the one-minute routes 1305 00:51:44,160 --> 00:51:45,780 and the five-minute routes that, you know, 1306 00:51:45,780 --> 00:51:46,700 you get as soon as you sit down 1307 00:51:46,700 --> 00:51:47,560 on the keyboard on one of these. 1308 00:51:48,180 --> 00:51:48,920 Any other questions? 1309 00:51:49,760 --> 00:51:51,200 Actually, I have one first, real quick. 1310 00:51:51,860 --> 00:51:53,160 Do you all have fun at this talk? 1311 00:51:53,400 --> 00:51:54,380 You all are kind of, you know, 1312 00:51:54,400 --> 00:51:56,100 I've had people leaking out to the side. 1313 00:51:57,840 --> 00:51:58,200 Okay. 1314 00:51:59,640 --> 00:52:00,260 I'm happy. 1315 00:52:02,600 --> 00:52:03,200 I'm happy. 1316 00:52:03,340 --> 00:52:03,860 That's cool. 1317 00:52:04,600 --> 00:52:04,960 Okay. 1318 00:52:05,320 --> 00:52:06,380 Yeah, the question was? 1319 00:52:07,000 --> 00:52:07,360 Contact. 1320 00:52:08,040 --> 00:52:08,760 Contact info. 1321 00:52:09,520 --> 00:52:09,880 Ah. 1322 00:52:10,520 --> 00:52:11,860 At the bottom of that is a website. 1323 00:52:12,500 --> 00:52:12,860 Okay? 1324 00:52:12,920 --> 00:52:14,120 At the bottom of that is a website. 1325 00:52:14,120 --> 00:52:15,020 If you go to that website, 1326 00:52:15,260 --> 00:52:16,100 that's my website. 1327 00:52:16,960 --> 00:52:18,520 It should have my email address. 1328 00:52:18,760 --> 00:52:20,240 If you follow it long enough to my business, 1329 00:52:20,360 --> 00:52:21,540 you'll find my work phone number. 1330 00:52:22,820 --> 00:52:24,400 Don't call me at work just to harass me. 1331 00:52:24,600 --> 00:52:25,680 I know I call, you know, 1332 00:52:25,720 --> 00:52:26,960 I know I bust unscripted kiddies 1333 00:52:26,960 --> 00:52:27,620 if they're in the audience. 1334 00:52:27,740 --> 00:52:29,420 I'd really appreciate not getting phone calls. 1335 00:52:29,420 --> 00:52:30,820 If you do call me, 1336 00:52:30,860 --> 00:52:31,940 I'll just change my phone number, 1337 00:52:32,000 --> 00:52:32,980 so please don't. 1338 00:52:33,200 --> 00:52:33,700 But yeah. 1339 00:52:34,020 --> 00:52:34,940 Now, on the other hand, 1340 00:52:34,980 --> 00:52:37,620 if anybody wants to hire an independent consultant, 1341 00:52:38,640 --> 00:52:39,660 hey, man, I'm there. 1342 00:52:39,980 --> 00:52:41,140 So, but yeah, no, 1343 00:52:41,200 --> 00:52:42,880 actually, that website I'm giving you there 1344 00:52:42,880 --> 00:52:44,520 has a bunch of articles that I write in security 1345 00:52:46,240 --> 00:52:47,940 and conference talks where I can, 1346 00:52:48,000 --> 00:52:49,120 where I'm allowed to publish them. 1347 00:52:49,200 --> 00:52:50,380 They'll be published on there. 1348 00:52:50,420 --> 00:52:51,200 There'll be links to there. 1349 00:52:51,580 --> 00:52:52,880 So, one example is, 1350 00:52:52,960 --> 00:52:53,540 if you're in this room 1351 00:52:53,540 --> 00:52:54,540 and you're one of the many people 1352 00:52:54,540 --> 00:52:55,840 who asked me about the FTP talk 1353 00:52:55,840 --> 00:52:56,860 that I gave here at UMist, 1354 00:52:57,340 --> 00:52:59,300 the slides are at that site. 1355 00:52:59,420 --> 00:53:00,660 The updated slides are at that site. 1356 00:53:02,020 --> 00:53:03,140 So, any other questions? 1357 00:53:04,080 --> 00:53:05,460 I think we should let the next speaker, 1358 00:53:05,560 --> 00:53:06,840 let the next speaker get up here. 1359 00:53:06,920 --> 00:53:08,160 So, I'll be around. 1360 00:53:08,240 --> 00:53:09,260 You can all, you know, 1361 00:53:09,260 --> 00:53:10,220 we can all hang out or whatever 1362 00:53:10,220 --> 00:53:12,380 or we can all go and catch the next talk. 1363 00:53:12,420 --> 00:53:12,740 It's all good. 1364 00:53:13,920 --> 00:53:14,560 Thank you.