1 00:00:01,940 --> 00:00:04,040 Welcome to the annual DEF CON convention. 2 00:00:04,380 --> 00:00:09,380 This meeting was held in exciting Las Vegas, Nevada from July 9th through the 11th, 1999. 3 00:00:10,500 --> 00:00:12,620 This is video tape number 35. 4 00:00:13,140 --> 00:00:16,340 How to be aware of security problems on your network. 5 00:00:31,800 --> 00:00:34,940 Again, I'm wearing a cameraman. Sometimes I move around a lot. I am kind of hyper. 6 00:00:35,700 --> 00:00:43,680 My name is Craig Roland. I do run a website called Sinex Software. 7 00:00:43,840 --> 00:00:45,780 It's basically my own homepage. It's really not a company. 8 00:00:46,480 --> 00:00:49,280 The website address is up there. That's my email address. 9 00:00:49,420 --> 00:00:54,540 If you need to contact me for any question, recipes, whatever, just write me there. 10 00:00:54,660 --> 00:00:57,280 I'll be happy to get back to you. I'm generally pretty responsive. 11 00:00:57,860 --> 00:00:59,900 Sometimes things fall through, like my filter. 12 00:01:00,000 --> 00:01:03,720 Somehow it throws you in the dead knoll, but that doesn't happen too often. 13 00:01:04,200 --> 00:01:05,220 So give it a shot. 14 00:01:06,040 --> 00:01:09,320 Today, I'm going to talk about basic ways to detect an intruder. 15 00:01:09,800 --> 00:01:15,380 From my experience, I've done a lot of system auditing work as well as intrusion detection system. 16 00:01:15,920 --> 00:01:21,520 Actively right now, I do work on security auditing tool exploit development. 17 00:01:22,320 --> 00:01:25,100 The easiest way to detect an intruder is awareness. 18 00:01:26,060 --> 00:01:29,960 It's just there three times because you need to really be aware of what your computer is 19 00:01:30,000 --> 00:01:30,460 telling you. 20 00:01:30,500 --> 00:01:34,800 In almost every case, there's going to be an indication of what that person is doing 21 00:01:34,800 --> 00:01:38,100 on your network, and there's always going to be some way that you can detect it. 22 00:01:38,720 --> 00:01:42,900 Specifically, you need to be aware, and it matters so much, because computers almost 23 00:01:42,900 --> 00:01:44,600 always tell you when there's a problem. 24 00:01:45,020 --> 00:01:50,100 As stealthy as you want to be, if someone's coming in and causing bizarre application errors, 25 00:01:50,120 --> 00:01:53,420 like, for instance, you're running bind 495. It's been working great. 26 00:01:53,640 --> 00:01:58,480 One morning, 2 a.m., it cordons. No reason whatsoever. 27 00:01:58,480 --> 00:01:59,420 It's never done that. 28 00:01:59,500 --> 00:02:00,660 You've had it up for over a year. 29 00:02:00,740 --> 00:02:01,400 What's the problem? 30 00:02:01,500 --> 00:02:04,940 Maybe you need to look into it if we're trying to remote root overflow exploit. 31 00:02:05,240 --> 00:02:06,800 It's certainly going to tell you what's going on. 32 00:02:07,540 --> 00:02:08,560 System errors, too. 33 00:02:08,640 --> 00:02:11,260 When someone's banging on your system, it's very hard to be quiet. 34 00:02:11,540 --> 00:02:15,900 Even though a data may not specifically say, oh, wow, I'm being hacked, they may indicate 35 00:02:16,380 --> 00:02:19,240 other error messages that certainly show that there's going to be a problem. 36 00:02:19,460 --> 00:02:24,840 For instance, if you do a standard port scan against RSH, it's going to say illegal connect 37 00:02:24,840 --> 00:02:26,680 or connect on an illegal port. 38 00:02:26,920 --> 00:02:27,880 Basically, what that means. 39 00:02:27,880 --> 00:02:32,540 If someone connected to your RSH data from a high ephemeral port number, and yeah, it 40 00:02:32,540 --> 00:02:36,060 may not necessarily be a hack, but it certainly points to the fact that they're probably doing 41 00:02:36,060 --> 00:02:37,360 some type of port scan on you. 42 00:02:37,800 --> 00:02:38,740 Other things, too. 43 00:02:38,820 --> 00:02:42,640 Users may notice an application isn't working right, or they're corrupted or missing files, 44 00:02:43,000 --> 00:02:46,960 or somehow that some type of data that they thought they had entered is missing, or it's 45 00:02:46,960 --> 00:02:49,200 been corrupted, or it's returning incorrect values. 46 00:02:49,420 --> 00:02:51,820 These are surely indicators that something's going on there. 47 00:02:52,100 --> 00:02:55,620 A lot of problems you find on systems aren't caused by the computer system itself. 48 00:02:55,720 --> 00:02:57,860 There's almost always some type of human behind it. 49 00:02:57,880 --> 00:02:59,440 And it may not be deliberate. 50 00:02:59,580 --> 00:03:03,580 It could just be a user fouling up somewhere, but a lot of times it can also indicate that 51 00:03:03,580 --> 00:03:05,040 there's an intruder hanging around there. 52 00:03:05,980 --> 00:03:10,260 The second point there is that every interaction with the computer system causes a change in 53 00:03:10,260 --> 00:03:10,680 its state. 54 00:03:10,800 --> 00:03:12,120 I don't care how subtle it is. 55 00:03:12,160 --> 00:03:17,660 If you log into a box, you would change multiple items on that system that can be logged, audited, 56 00:03:17,860 --> 00:03:19,460 traced, and accounted on. 57 00:03:19,620 --> 00:03:23,800 This doesn't include just the basic stuff such as log files itself, but you have the 58 00:03:23,800 --> 00:03:26,060 process accounting records, the login accounting records. 59 00:03:26,180 --> 00:03:27,860 You have changes in maybe the swipes. 60 00:03:27,860 --> 00:03:28,100 You have changes in the log file. 61 00:03:28,580 --> 00:03:31,080 You have changes in how much CPU is being used. 62 00:03:31,180 --> 00:03:34,500 And all these things can be looked at and monitored, and you can detect whether or not 63 00:03:34,500 --> 00:03:37,560 a problem is actually happening before it's become a really big issue. 64 00:03:37,860 --> 00:03:42,620 And the last thing here, and this is the thing that as an attacker, this is what they 65 00:03:42,620 --> 00:03:43,220 focus on. 66 00:03:43,360 --> 00:03:45,980 Attackers really are counting on you not to notice their presence. 67 00:03:46,280 --> 00:03:51,400 This is why there's so much stealth and sneaking around involved when you're hacking a system 68 00:03:51,400 --> 00:03:51,720 itself. 69 00:03:51,980 --> 00:03:56,660 Even the time of day that a hacker attacks a box is typically related for two things. 70 00:03:56,660 --> 00:03:59,700 One can be the insomnia, which is always present. 71 00:04:00,080 --> 00:04:04,700 But the second thing, too, is at 3 AM, people really aren't watching the boxes too close. 72 00:04:04,900 --> 00:04:08,160 So really, they're counting on the fact that you're not going to be aware that they're there. 73 00:04:10,240 --> 00:04:13,740 So the basic thing, what I call a primary director of computer security, is that under 74 00:04:13,740 --> 00:04:17,640 no circumstances would you ever allow an intruder on the target host system you control. 75 00:04:18,140 --> 00:04:19,700 This is for a variety of reasons. 76 00:04:19,940 --> 00:04:26,140 The basic one is that once an intruder gets on your box, you are quickly losing how many 77 00:04:26,140 --> 00:04:31,100 options you have left to prevent their spread throughout the entire network. 78 00:04:31,320 --> 00:04:36,300 In fact, I spent a lot of money this weekend contacting an animation and design house, 79 00:04:36,500 --> 00:04:39,260 and I made three special slides just for DEF CON. 80 00:04:39,620 --> 00:04:43,200 It's very important because we're going to illustrate the exact thing that's going to 81 00:04:43,200 --> 00:04:45,840 happen if an intruder gets a single toehold on one of your systems. 82 00:04:46,120 --> 00:04:49,420 The first thing they're going to do, whoa, and I go all the way to the end, and that's 83 00:04:49,420 --> 00:04:49,880 really bad. 84 00:04:52,420 --> 00:04:53,180 I've been hacked! 85 00:04:54,500 --> 00:04:56,120 They're going to start doing that evil hack. 86 00:04:57,000 --> 00:05:00,440 And the first thing he's going to do, he's going to start crawling through your network, 87 00:05:00,620 --> 00:05:02,060 and he's just going to start breaking machines. 88 00:05:02,320 --> 00:05:08,340 He's got sniffers loaded up, he's got Trojan horses fired, and he's going to have Binance 89 00:05:08,340 --> 00:05:11,460 replaced, he's going to be social engineering users, he's been grabbing passwords, he's 90 00:05:11,460 --> 00:05:14,460 been going through your network, and he's going to be pulling out no password accounts, 91 00:05:14,900 --> 00:05:18,080 he's going to be cracking the passwords once he pulls the passwords back to his system, 92 00:05:18,120 --> 00:05:19,440 and he's just going to go on and on and on. 93 00:05:19,760 --> 00:05:22,860 Once he takes control of your network, and this is going to happen once they get on a 94 00:05:22,860 --> 00:05:24,580 single host, we've seen it lots of times. 95 00:05:25,040 --> 00:05:28,420 Once they take control of your network, there's only one possible thing left for them to do, 96 00:05:28,520 --> 00:05:32,100 and Hollywood has shown us this time and time again, and that is in fact the hacking of 97 00:05:32,100 --> 00:05:32,840 a Whopper supercomputer. 98 00:05:33,500 --> 00:05:37,300 And at this point, they're going to take over the military industrial complex of the United 99 00:05:37,300 --> 00:05:43,240 States, which includes the jets, the helicopters, the tanks, the Viking slave ships, and they 100 00:05:43,240 --> 00:05:49,620 will eventually take over a fleet of hot air balloons, and they will take your tired, sleepless, 101 00:05:50,700 --> 00:05:54,260 ragged out sysadmin, and they're going to fly them up to the highest altitude they can 102 00:05:54,260 --> 00:05:58,460 attain, and they're going to throw his pathetic, security-ridden ass over. 103 00:06:00,660 --> 00:06:09,860 And as he's falling to the ground, he's going to realize something, that because he allowed that 104 00:06:09,860 --> 00:06:14,240 person onto the one network, he has in fact led the total world domination of the hackers. 105 00:06:14,320 --> 00:06:18,100 They spread from continent to continent, and they're going to attack and attack and attack 106 00:06:18,100 --> 00:06:22,580 until finally the entire planet is overrun, and there's nothing he can do about this. 107 00:06:23,160 --> 00:06:24,780 Now, there are two basic reasons. 108 00:06:25,180 --> 00:06:29,580 There are two reasons, and that's the end of my presentation, thank you. 109 00:06:30,020 --> 00:06:34,760 There are, now there are two reasons I'm showing you this. 110 00:06:34,960 --> 00:06:39,840 Number one is to prove that Microsoft provides way too much clip art for a person like me 111 00:06:39,840 --> 00:06:41,360 to effectively use in a presentation. 112 00:06:44,040 --> 00:06:51,920 And point two is to illustrate the fact that once a person gets on your host, the amount of damage they can do by concealing their activities, 113 00:06:51,920 --> 00:06:56,300 by spreading from host to host, and taking control of your network, begins to approach infinity. 114 00:06:56,760 --> 00:07:02,340 And the amount of options you have left to control the network and clean up the situation rapidly approaches zero. 115 00:07:03,700 --> 00:07:06,780 So basically, I have what I call four tiers of network security. 116 00:07:07,580 --> 00:07:13,840 The tier one, you can see over by the brick wall there on the right-hand side, these are your classical security measures. 117 00:07:14,140 --> 00:07:19,380 These mean your filters, your firewalls, centralized dial-ins, and also good network design and administration. 118 00:07:19,740 --> 00:07:20,980 This is really important. 119 00:07:20,980 --> 00:07:25,760 A bad network design from the beginning damages security so badly it's hard to put into words. 120 00:07:26,480 --> 00:07:30,360 If you're going in for a network redesign, you make sure security is designed from the beginning. 121 00:07:31,080 --> 00:07:37,300 These are effective because they prevent the attacks from even beginning, and that's really the best way to keep something from happening. 122 00:07:37,420 --> 00:07:39,340 It's like, you know, you have a house with an alarm system. 123 00:07:39,520 --> 00:07:43,520 Sure, you have motion detectors, but it sure would be nice to have bars on the windows they can't get in to begin with. 124 00:07:43,940 --> 00:07:49,740 And this is really, this is really, you need to make sure this is a very strong part of your network security architecture, 125 00:07:49,940 --> 00:07:50,960 although there are certain things that you can do. 126 00:07:50,980 --> 00:07:54,940 There are certain changes in the internet that are kind of destroying the whole concept of a hard perimeter, 127 00:07:55,120 --> 00:07:58,500 and this is because new services are emerging that don't necessarily mesh well with this. 128 00:07:58,640 --> 00:08:02,560 But in any event, you should make sure that this is a key component of anything you do. 129 00:08:03,060 --> 00:08:06,560 Tier two are tools that promote network-wide awareness and protection. 130 00:08:07,760 --> 00:08:10,100 Network-based IDS, internal packet filters. 131 00:08:10,320 --> 00:08:13,300 So you have something, you have a packet filter that splits up sales and R&D. 132 00:08:13,380 --> 00:08:16,460 There's no reason they should have absolute direct communication with each other. 133 00:08:17,040 --> 00:08:18,400 Centralized log file auditing. 134 00:08:18,560 --> 00:08:20,200 These are effective at detecting attacks. 135 00:08:20,200 --> 00:08:23,260 But maybe they can't necessarily do anything about it. 136 00:08:23,300 --> 00:08:25,340 A little IDS maybe could spot an attack and stop it, 137 00:08:25,400 --> 00:08:28,120 but a log file auditing is maybe going to tell you that there's something going on, 138 00:08:28,260 --> 00:08:30,520 but maybe that you need to look into it. 139 00:08:30,540 --> 00:08:32,300 It might not be able to take action directly of itself. 140 00:08:33,420 --> 00:08:38,160 Tier three, this is basically saying that someone is actively attacking your host. 141 00:08:38,440 --> 00:08:41,940 And this is really the last phase where someone can mount an effective defense. 142 00:08:42,180 --> 00:08:43,760 This is your network-based IDS again. 143 00:08:44,360 --> 00:08:49,520 Host-based IDS, your log file auditing on a per-host basis, wrappers, filters, 144 00:08:49,520 --> 00:08:54,260 and other very centralized or distributed host-based security mechanisms 145 00:08:54,260 --> 00:08:55,880 that you may have deployed throughout your network. 146 00:08:56,120 --> 00:08:59,920 And again, this is the last variable defense before your host is potentially compromised. 147 00:09:01,220 --> 00:09:01,780 Excuse me? 148 00:09:02,600 --> 00:09:03,720 Intrusion detection systems. 149 00:09:05,400 --> 00:09:07,800 Now, the fourth tier is what I call the coffee tier, 150 00:09:07,960 --> 00:09:09,540 because this is where you're going to be awake a lot. 151 00:09:10,020 --> 00:09:11,680 Pretty much your security has failed. 152 00:09:11,940 --> 00:09:14,660 And I'm not saying that checksums and the like are bad. 153 00:09:14,800 --> 00:09:18,940 I'm just saying that a checksum is telling you that someone has broken into your host 154 00:09:18,940 --> 00:09:19,860 and they changed something. 155 00:09:20,140 --> 00:09:23,360 And now you're at the point where you're going to really need to start looking at your backups 156 00:09:23,360 --> 00:09:25,920 and maybe start seeing if someone has gotten onto your network, 157 00:09:26,160 --> 00:09:27,980 how bad the intrusion has been, 158 00:09:28,200 --> 00:09:30,300 and then try to start cleaning up the process. 159 00:09:30,580 --> 00:09:32,320 You really don't want to get to this point. 160 00:09:32,860 --> 00:09:37,600 My tools that I've written are basically designed to work like the tier level three 161 00:09:37,600 --> 00:09:39,480 or maybe tier level four a little bit. 162 00:09:39,580 --> 00:09:43,580 But basically, my core premise is to keep people off the host to begin with 163 00:09:43,580 --> 00:09:44,900 under all circumstances. 164 00:09:45,200 --> 00:09:47,660 I really don't want to handle if a person gets on. 165 00:09:47,660 --> 00:09:49,260 There's very little you can do. 166 00:09:49,920 --> 00:09:53,900 I have a tool in mind that may help a little bit with the tier four side of things. 167 00:09:54,100 --> 00:09:56,680 But again, it's kind of a little too late at that point. 168 00:09:57,980 --> 00:09:58,960 And here I am. 169 00:09:58,980 --> 00:10:00,640 I'm going to misapply Occam's Razor. 170 00:10:00,940 --> 00:10:05,060 And I'm going to talk a little bit about Occam's Razor and the art of computer security. 171 00:10:05,600 --> 00:10:10,840 Occam's Razor is, I guess, a philosophy or technique used in the scientific method. 172 00:10:11,140 --> 00:10:13,600 And basically what it says is very simple. 173 00:10:13,720 --> 00:10:16,660 When faced with two hypotheses that explain data equally well, 174 00:10:16,660 --> 00:10:17,780 choose the simpler. 175 00:10:18,080 --> 00:10:19,600 And you can use this for a variety of things. 176 00:10:19,720 --> 00:10:21,720 But for computer security, it applies very nicely. 177 00:10:22,040 --> 00:10:23,600 So for instance, you have a system hacked. 178 00:10:23,860 --> 00:10:26,440 The first thing you need to think of is how is it done? 179 00:10:26,720 --> 00:10:31,100 And you should think, well, is it an elite exploit that isn't out on the web yet? 180 00:10:31,180 --> 00:10:33,180 Or is it a common hole that perhaps I overlooked? 181 00:10:33,540 --> 00:10:36,580 And the answer almost always is, it's probably a common hole you overlooked. 182 00:10:37,060 --> 00:10:38,360 So you need to look into that first. 183 00:10:38,560 --> 00:10:41,500 And if you can't find an answer at that point, then you really need to move on and say, 184 00:10:41,540 --> 00:10:42,640 maybe this is something unknown. 185 00:10:43,000 --> 00:10:44,420 And then escalate from there. 186 00:10:44,660 --> 00:10:46,640 The basis of my tools is to use them. 187 00:10:46,660 --> 00:10:50,720 You can use generic and simple detection methods first and always. 188 00:10:51,100 --> 00:10:54,080 And the same thing should be done, too, when you're securing your network. 189 00:10:54,280 --> 00:10:56,860 You should really watch for and fix common problems first. 190 00:10:57,140 --> 00:11:00,220 When you're looking through your network, like let's say you just spent 10K, 191 00:11:00,320 --> 00:11:03,100 you buy a brand new security scanner, and you've run it. 192 00:11:03,700 --> 00:11:05,680 Well, you want to look at the easy things first, 193 00:11:05,760 --> 00:11:08,080 because those are going to be the ones that other people are going to find. 194 00:11:08,260 --> 00:11:12,380 So you have your exotic exploits, which maybe involve some type of very unique situation 195 00:11:12,380 --> 00:11:15,840 and sequence numbers or some type of exact buffer offset 196 00:11:15,840 --> 00:11:18,100 with a particular CPU type to have it execute. 197 00:11:18,280 --> 00:11:21,320 Or you look at the fact that you're exploiting everything via NFS. 198 00:11:21,340 --> 00:11:22,680 They have unpassworded accounts. 199 00:11:22,920 --> 00:11:24,640 Or you have transitive trust all over the place. 200 00:11:24,720 --> 00:11:27,300 Someone could just crawl through your network using an RSH. 201 00:11:28,140 --> 00:11:30,240 You want to always fix the simpler things first. 202 00:11:30,520 --> 00:11:32,880 And likewise with security tools, I'm kind of the same way, 203 00:11:32,900 --> 00:11:34,860 that people are going to try the easier things first. 204 00:11:35,000 --> 00:11:36,620 And so that's really what I'm going to watch for. 205 00:11:36,720 --> 00:11:38,240 And then I'll escalate if I have to. 206 00:11:43,220 --> 00:11:45,240 Now, the tools basically are pretty simple. 207 00:11:46,440 --> 00:11:50,140 LogCheck has been around for about five years, just as log file auditing. 208 00:11:50,260 --> 00:11:51,040 It's pretty basic. 209 00:11:51,400 --> 00:11:55,240 In some ways, it's kind of getting a little behind, 210 00:11:55,460 --> 00:11:57,960 because I haven't updated some of the keyword databases in a year or two. 211 00:11:59,180 --> 00:12:00,580 PortSentry does port scan detection, 212 00:12:00,900 --> 00:12:02,840 and HostSentry does log and anomaly detection, 213 00:12:03,080 --> 00:12:04,780 and that's my most recent release of a tool. 214 00:12:06,440 --> 00:12:08,360 LogCheck itself just watches log files. 215 00:12:08,820 --> 00:12:09,720 It's really simple. 216 00:12:09,820 --> 00:12:14,660 It's amazing how much information is gathered in your log files when someone's attacking you. 217 00:12:14,660 --> 00:12:17,220 And the thing is you need to be able to look at the log files 218 00:12:17,220 --> 00:12:19,020 and determine what is and isn't a problem. 219 00:12:19,200 --> 00:12:21,260 And if you don't know what is or isn't a problem, 220 00:12:21,480 --> 00:12:23,820 then at least you have the information around to show someone else 221 00:12:23,820 --> 00:12:25,420 who may be able to pull that information out. 222 00:12:26,200 --> 00:12:30,300 And LogCheck basically is a clone of a TI's Gauntlet script 223 00:12:30,300 --> 00:12:32,020 called FrequentCheck.sh. 224 00:12:32,260 --> 00:12:33,840 This is probably from the older version of Gauntlet. 225 00:12:34,720 --> 00:12:36,100 I saw it run a couple of times. 226 00:12:36,160 --> 00:12:37,780 I liked how it operated. It was pretty nice. 227 00:12:39,380 --> 00:12:40,860 LogCheck has three basic phases. 228 00:12:40,920 --> 00:12:44,300 The first phase is it's going to report known hacking attempts. 229 00:12:44,660 --> 00:12:47,220 So it's actually going to look through when I have keyword files set out, 230 00:12:47,300 --> 00:12:49,200 like someone's verified root or expanding something 231 00:12:49,200 --> 00:12:51,600 or they're trying to pass something that you need to decode, et cetera, et cetera. 232 00:12:51,860 --> 00:12:53,180 And I know these are hacking attempts. 233 00:12:53,360 --> 00:12:54,360 I'm going to flag them like that. 234 00:12:54,700 --> 00:12:58,320 The list is very long now because I really want to avoid false alarms there. 235 00:12:59,020 --> 00:13:02,780 Now, the second thing it looks for is reporting possible security problems. 236 00:13:02,940 --> 00:13:04,680 And this is done through a variety of mechanisms. 237 00:13:04,740 --> 00:13:06,740 Number one, I went through a whole bunch of daemons, 238 00:13:06,840 --> 00:13:09,960 and I pulled out error messages that they dropped to syslog 239 00:13:09,960 --> 00:13:12,780 that are probably security problems of some type. 240 00:13:12,780 --> 00:13:17,740 The second thing I did was I thought about how an author writing a security tool 241 00:13:17,740 --> 00:13:19,100 would represent something that's bad, 242 00:13:19,240 --> 00:13:21,560 which basically means I'd pull out words that are negative, 243 00:13:21,880 --> 00:13:24,140 such as denied or illegal or prohibited. 244 00:13:24,580 --> 00:13:26,880 And I dropped all these words in the keyword list at all. 245 00:13:27,160 --> 00:13:30,520 The last part here is something I really like from the original script from Gauntlet. 246 00:13:30,840 --> 00:13:34,900 Basically, anything it didn't recognize as something to ignore, it reports. 247 00:13:35,420 --> 00:13:38,420 So if there's something going on that I haven't seen before in a daemon, 248 00:13:38,480 --> 00:13:40,740 you're going to hear about it because I haven't told it to ignore it. 249 00:13:40,780 --> 00:13:41,540 And this is really nice, 250 00:13:41,540 --> 00:13:45,680 especially a couple weeks ago I had a hard drive start flitzing out on me 251 00:13:45,680 --> 00:13:48,740 where I didn't know the driver was going to report a whole bunch of read errors, 252 00:13:48,820 --> 00:13:50,240 and I might not have seen those in the logs, 253 00:13:50,360 --> 00:13:53,020 but because it showed up as something not to ignore, 254 00:13:53,140 --> 00:13:55,740 it immediately came up and I could look into the problem itself. 255 00:13:57,740 --> 00:13:59,780 Now, here's some examples I have here. 256 00:13:59,800 --> 00:14:00,740 This is very basic. 257 00:14:00,960 --> 00:14:02,880 Active system attack would just come up as that. 258 00:14:03,480 --> 00:14:06,500 I have a lot of custom daemons that report information to me. 259 00:14:06,580 --> 00:14:09,160 In one case here, right after the... 260 00:14:10,340 --> 00:14:12,800 I guess it was named the overflow, I forgot which, 261 00:14:12,980 --> 00:14:15,460 but someone's doing a bind version request all over the place. 262 00:14:15,660 --> 00:14:17,420 That just would come up and it would just tell you that. 263 00:14:17,460 --> 00:14:18,100 It's pretty simple. 264 00:14:18,700 --> 00:14:21,640 The second one too, security violations. 265 00:14:22,160 --> 00:14:23,980 This is keyed on that word security alert. 266 00:14:24,260 --> 00:14:25,780 That's something Firewall Toolkit did. 267 00:14:26,240 --> 00:14:27,260 I kind of like that. 268 00:14:27,320 --> 00:14:28,900 I'd make all my daemons do that as well. 269 00:14:29,200 --> 00:14:32,520 The big problem with Unix in general is that the auditing pretty much stinks. 270 00:14:33,520 --> 00:14:36,840 If you get into the trusted versions of the OS, it's a lot better, 271 00:14:36,900 --> 00:14:37,840 but the problem with the... 272 00:14:37,840 --> 00:14:40,700 Linux and the BSD versions of that, 273 00:14:40,720 --> 00:14:44,540 there's no real standard for an author to write to if there's a security problem. 274 00:14:44,860 --> 00:14:46,980 How do they represent a security problem in your log? 275 00:14:47,140 --> 00:14:49,160 Really, they make something up and they throw it in there 276 00:14:49,160 --> 00:14:50,420 and they hope that someone sees it. 277 00:14:50,620 --> 00:14:52,780 Sometimes it's a good message, sometimes it's not. 278 00:14:53,220 --> 00:14:55,920 It's one advantage that, for instance, NT has, 279 00:14:56,140 --> 00:14:59,080 because out of the box, you have different sets of logging 280 00:14:59,080 --> 00:15:01,140 for security system or application errors, 281 00:15:01,240 --> 00:15:02,840 and that really helps go into your log files. 282 00:15:03,120 --> 00:15:05,820 I'm hoping one day that becomes more widespread under Unix. 283 00:15:07,380 --> 00:15:07,820 Here's another example. 284 00:15:07,820 --> 00:15:08,860 Here's actually a full thing here. 285 00:15:09,020 --> 00:15:10,380 Someone did a heavy scan. 286 00:15:10,620 --> 00:15:12,480 I don't have the full thing because we're going for pages. 287 00:15:13,160 --> 00:15:15,060 They did a heavy scan against a host I controlled. 288 00:15:15,800 --> 00:15:17,560 Here they tried the expanding route. 289 00:15:17,880 --> 00:15:20,320 Generally not a good thing. 290 00:15:20,440 --> 00:15:21,260 I frowned upon it. 291 00:15:21,940 --> 00:15:24,540 They went down here, unusual system events. 292 00:15:25,240 --> 00:15:27,100 Here they're hitting the packet filter, 293 00:15:27,380 --> 00:15:31,100 and they're having a fun time there trying to hit telnet, imap, and pop3. 294 00:15:31,460 --> 00:15:33,400 Oh, they did something else too that was interesting. 295 00:15:33,980 --> 00:15:36,940 Here you can see they're coming from the telnet port, going to the telnet port. 296 00:15:36,940 --> 00:15:38,240 That's called source porting. 297 00:15:38,240 --> 00:15:39,900 They tried a source porting attack. 298 00:15:40,180 --> 00:15:43,420 They tried source porting from FTP data port 20, 299 00:15:43,560 --> 00:15:46,680 and they also tried regular scans using high ephemeral ports. 300 00:15:46,980 --> 00:15:50,020 What they're doing there is they're trying to hop my packet filter. 301 00:15:50,320 --> 00:15:55,020 If you've ever tried to do packet filter rules, it's complicated, 302 00:15:55,740 --> 00:15:57,760 especially if you have a lot of services going on. 303 00:15:57,960 --> 00:16:01,400 Sometimes admins get things a little confused on how to let ports through. 304 00:16:01,680 --> 00:16:05,640 If you perform a port scan and you try to come from the same port as you're going to, 305 00:16:05,640 --> 00:16:09,000 if they screwed up the packet filter rule, you could sometimes punch through it 306 00:16:09,000 --> 00:16:12,500 because they set the connection up two ways. 307 00:16:12,740 --> 00:16:15,440 If you're doing port scanning, you should probably try that. 308 00:16:16,440 --> 00:16:19,680 If you're trying to protect against port scanning, you make sure you don't do that. 309 00:16:21,540 --> 00:16:23,220 There are some dangers with log check. 310 00:16:23,680 --> 00:16:24,940 One is log flooding. 311 00:16:25,060 --> 00:16:30,260 If you run an ancient version of syslog and you have port 514 open, that's a UDP port. 312 00:16:30,440 --> 00:16:33,460 A UDP port means that I can send whatever information I want 313 00:16:33,460 --> 00:16:34,900 and make it appear to come from anyone, 314 00:16:34,900 --> 00:16:36,120 including your own host. 315 00:16:36,320 --> 00:16:38,960 If I just store random information in your log files, 316 00:16:39,320 --> 00:16:43,320 I could fill up the log files or I could make your reports come out very long. 317 00:16:43,640 --> 00:16:45,000 There's an additional danger, too. 318 00:16:45,180 --> 00:16:46,740 I don't think log check has this problem, 319 00:16:46,940 --> 00:16:50,920 but there are other log file auditors that take action based on what's in that information. 320 00:16:51,580 --> 00:16:58,760 If I were to file something in to your log file in some properly placed semicolons, for instance, 321 00:16:59,040 --> 00:17:02,820 and you pipe that out to something, like a pager script you hacked up, 322 00:17:02,980 --> 00:17:04,800 I can start running commands in your host. 323 00:17:04,900 --> 00:17:09,280 You need to remember that log files are completely untrusted data source. 324 00:17:09,540 --> 00:17:12,780 You don't ever want to trust that data in the log files. 325 00:17:13,040 --> 00:17:16,700 You certainly don't want to pull that data out and do anything with it unattended 326 00:17:17,220 --> 00:17:21,120 unless you have thoroughly gone through and had something cleaned it up. 327 00:17:21,380 --> 00:17:23,420 People can really insert some stuff in there. 328 00:17:23,560 --> 00:17:27,300 I haven't heard of anyone doing this yet, but it's certainly within the realm of possibilities. 329 00:17:27,840 --> 00:17:32,660 If you're using log check, don't modify it and make it run stuff based on that 330 00:17:32,660 --> 00:17:34,400 because you may get bitten really bad. 331 00:17:35,280 --> 00:17:37,120 False alarms are another problem, too. 332 00:17:37,260 --> 00:17:41,860 Sometimes the way log check is, I can't accommodate every system. 333 00:17:42,220 --> 00:17:43,940 You're going to have to go through and tune it. 334 00:17:44,320 --> 00:17:45,340 There's no other way to put it. 335 00:17:45,440 --> 00:17:47,720 All the log file auditing tools are the same way, pretty much. 336 00:17:49,160 --> 00:17:49,800 Port century. 337 00:17:49,920 --> 00:17:53,560 This is a tool I wrote in October of 97. 338 00:17:53,880 --> 00:17:57,280 I think after an evening, I got frustrated because someone kept port skating a box. 339 00:17:57,400 --> 00:18:01,600 I couldn't firewall, and it was an older OS that patches weren't readily available for, 340 00:18:01,680 --> 00:18:04,820 so I decided just to give them something to port skate. 341 00:18:05,260 --> 00:18:10,340 The way I used to do this is I'd set up tripwire ports using TCP wrappers out of iNetD, 342 00:18:10,900 --> 00:18:16,380 but that got me a little bit nervous because I wasn't using a tool specifically designed for that. 343 00:18:16,560 --> 00:18:20,460 I just went ahead and I wrote something really fast that would bind to a bunch of ports, 344 00:18:20,500 --> 00:18:24,400 and when they hit it, it would just drop the route or it would drop them into a filter. 345 00:18:25,760 --> 00:18:27,640 Basically, do all of you know what a port scan is? 346 00:18:28,740 --> 00:18:31,960 I may have to say, well, I'll explain anyway because someone doesn't want to admit it. 347 00:18:33,100 --> 00:18:34,680 Basically, a port scan is a person's, 348 00:18:34,900 --> 00:18:39,280 attempting to contact your host and see if you have a port open for a hole they could potentially exploit, 349 00:18:39,400 --> 00:18:42,700 such as IMAP or PortMap or MountD, et cetera, et cetera, et cetera. 350 00:18:42,940 --> 00:18:44,480 They do this as a recon mechanism. 351 00:18:45,140 --> 00:18:47,560 What you want to do is if you can detect this early enough, 352 00:18:47,640 --> 00:18:49,960 you can actually stop it from gaining that reconnaissance information 353 00:18:49,960 --> 00:18:52,680 and an alert at the same time that someone's doing this, 354 00:18:52,740 --> 00:18:54,040 and maybe it's a host you need to watch. 355 00:18:54,800 --> 00:18:56,800 Now, there are lots of other tools out there that do this, 356 00:18:56,860 --> 00:19:00,880 but port century really has something kind of, I guess, controversial is the only way to say it. 357 00:19:01,100 --> 00:19:02,940 I do real-time blocking. 358 00:19:03,360 --> 00:19:04,580 If you hit a port, 359 00:19:04,900 --> 00:19:06,000 and it's trip-wired, 360 00:19:06,180 --> 00:19:08,480 you're going to nearly get dropped into a bad route 361 00:19:08,480 --> 00:19:10,680 or a packet filter or TCP wrappers, 362 00:19:10,740 --> 00:19:14,960 and your host is going to be actually denied access to the host itself. 363 00:19:15,280 --> 00:19:16,780 Now, here I have the benefit of surprise. 364 00:19:17,200 --> 00:19:18,720 If someone's scanning your host, 365 00:19:18,740 --> 00:19:20,360 and all of a sudden it just dies, 366 00:19:20,700 --> 00:19:22,280 it really isn't a good feeling. 367 00:19:22,740 --> 00:19:27,020 And then sometimes what you'll see them do is they'll actually go to a different host, 368 00:19:27,060 --> 00:19:28,120 thinking that there's a bad route, 369 00:19:28,340 --> 00:19:30,720 and they'll try coming from that host, and they get dropped there. 370 00:19:30,880 --> 00:19:33,720 Well, now they've revealed two hosts that are probably hacked, 371 00:19:33,940 --> 00:19:34,880 and they're trying to get to that host. 372 00:19:34,900 --> 00:19:35,680 They're trying to get into your system on. 373 00:19:35,940 --> 00:19:38,640 And at that point, they may wise up and decide to move on, 374 00:19:38,720 --> 00:19:41,020 but sometimes they may go to a third host and try there, too. 375 00:19:41,280 --> 00:19:43,060 And then usually by then they get the clue. 376 00:19:44,320 --> 00:19:45,860 That's kind of a nice thing to have. 377 00:19:46,700 --> 00:19:48,140 And when you're in warfare, 378 00:19:48,300 --> 00:19:49,300 especially if you read, like, 379 00:19:49,300 --> 00:19:50,560 The Art of War by Sun Tzu, 380 00:19:51,180 --> 00:19:53,720 surprise is a very big factor in winning any battle. 381 00:19:53,860 --> 00:19:54,840 If you look back through history, 382 00:19:54,940 --> 00:19:57,180 surprise has really been a key factor. 383 00:19:57,860 --> 00:20:00,220 Here, they're really not expecting anything to happen. 384 00:20:00,360 --> 00:20:01,580 They're expecting to get a banner back. 385 00:20:01,780 --> 00:20:03,260 Well, you know, don't give them a banner. 386 00:20:04,000 --> 00:20:04,880 The third one here, 387 00:20:04,900 --> 00:20:06,280 is it doesn't play games with people. 388 00:20:08,200 --> 00:20:10,800 This is mainly referring to the concept of like a honeypot, 389 00:20:11,000 --> 00:20:12,940 where you set up a system and kind of find out 390 00:20:12,940 --> 00:20:13,740 what they're trying to do. 391 00:20:14,400 --> 00:20:15,620 It has its application. 392 00:20:15,860 --> 00:20:17,560 I think for most people it doesn't, 393 00:20:17,560 --> 00:20:18,840 because you're keeping a person around. 394 00:20:19,260 --> 00:20:20,980 I want to spot the problem, 395 00:20:21,120 --> 00:20:22,360 and get rid of them. 396 00:20:22,940 --> 00:20:24,060 Go on to the neighbor. 397 00:20:24,240 --> 00:20:25,260 I don't want to play with you. 398 00:20:25,360 --> 00:20:27,400 I think this is generally a good idea for most people. 399 00:20:27,520 --> 00:20:28,900 Sometimes a honeypot can be interesting 400 00:20:28,900 --> 00:20:30,300 if you want to see what people are running. 401 00:20:34,900 --> 00:20:36,380 Or what you can download yourself. 402 00:20:36,700 --> 00:20:38,860 And it usually isn't a good idea to egg them on. 403 00:20:38,980 --> 00:20:40,340 You start playing games with people, 404 00:20:40,480 --> 00:20:40,920 and they know it. 405 00:20:40,960 --> 00:20:42,920 Like they find out, man, this is a honeypot the whole time. 406 00:20:42,960 --> 00:20:44,860 I just wasted three hours trying to crack this box. 407 00:20:45,780 --> 00:20:48,100 Maybe they just decided to download a smurf program. 408 00:20:48,200 --> 00:20:50,260 A 14-year-old kid with a smurf program 409 00:20:50,260 --> 00:20:51,820 can cause a bunch of problems for you. 410 00:20:51,920 --> 00:20:53,460 It doesn't take much skill to do that. 411 00:20:53,700 --> 00:20:55,380 So usually you just want to get rid of them. 412 00:20:57,620 --> 00:20:59,140 Theory of operations is pretty straightforward. 413 00:21:02,240 --> 00:21:03,240 The first mode, 414 00:21:06,320 --> 00:21:07,640 you go to a list of ports, 415 00:21:07,860 --> 00:21:08,680 it binds to them, 416 00:21:08,820 --> 00:21:09,780 it waits for a full connection, 417 00:21:09,940 --> 00:21:11,080 and then it drops the host. 418 00:21:11,180 --> 00:21:12,100 It's really kind of straightforward. 419 00:21:12,760 --> 00:21:14,160 People started writing to me and saying, 420 00:21:14,320 --> 00:21:15,780 wow, it really would be nice if it did UDP. 421 00:21:16,160 --> 00:21:18,200 It really would be nice if it did stealth scans. 422 00:21:18,460 --> 00:21:20,060 And I kept saying, well, if you do that, 423 00:21:20,180 --> 00:21:22,460 someone could forge a scan and then drop your host. 424 00:21:22,620 --> 00:21:23,860 But enough people started writing, 425 00:21:23,920 --> 00:21:26,420 and I figured to put the option in, 426 00:21:26,640 --> 00:21:27,740 give adequate warning, 427 00:21:27,980 --> 00:21:29,420 and let them make up their own mind. 428 00:21:29,540 --> 00:21:31,820 And that's kind of still my basis today. 429 00:21:34,940 --> 00:21:36,340 It's some type of great vulnerability, 430 00:21:36,640 --> 00:21:37,220 and I know that, 431 00:21:37,340 --> 00:21:39,500 but at the same time, 432 00:21:39,620 --> 00:21:41,440 I think if people want to rate a risk, 433 00:21:41,660 --> 00:21:44,460 it may not be a tremendous vulnerability for certain hosts. 434 00:21:44,840 --> 00:21:46,520 And I think I could provide enough information 435 00:21:46,520 --> 00:21:48,720 in the documents that people can make up their own mind 436 00:21:48,720 --> 00:21:49,460 of what they want to do. 437 00:21:49,520 --> 00:21:51,020 I don't want to make a decision for them. 438 00:21:51,620 --> 00:21:54,520 As I said here, TCP is really simple and effective. 439 00:21:54,780 --> 00:21:55,760 It binds to a bunch of ports, 440 00:21:55,920 --> 00:21:57,220 but it may miss some scans, 441 00:21:57,320 --> 00:21:58,320 such as a port scan. 442 00:21:58,700 --> 00:22:00,040 When I originally released the tool, 443 00:22:00,200 --> 00:22:02,080 I actually mentioned the fact that a port scan, 444 00:22:04,900 --> 00:22:05,400 was a big deal. 445 00:22:06,320 --> 00:22:07,760 And the reason for this is because, 446 00:22:07,820 --> 00:22:09,600 from my experience, a lot of stealth port scanning 447 00:22:09,600 --> 00:22:11,780 is a precursor to an actual attack. 448 00:22:12,200 --> 00:22:14,320 And when people are coming in and doing a stealth port scan, 449 00:22:14,600 --> 00:22:16,780 they're usually collecting data on a wide variety of hosts, 450 00:22:16,960 --> 00:22:18,140 and then they're going to come back later 451 00:22:18,140 --> 00:22:19,640 and kind of find out whether or not 452 00:22:19,640 --> 00:22:21,780 that host is going to cough up any information. 453 00:22:22,180 --> 00:22:24,160 So in this case here, they're going to get a bunch of ports 454 00:22:24,160 --> 00:22:24,820 that are going to come back, 455 00:22:24,960 --> 00:22:26,780 and then when they eventually come back and try an attack, 456 00:22:26,940 --> 00:22:29,260 maybe by hand or maybe by some other automated script, 457 00:22:29,520 --> 00:22:31,420 at that point they're probably going to get dropped. 458 00:22:31,600 --> 00:22:33,020 And that might be a little bit worse. 459 00:22:34,900 --> 00:22:35,240 What is UDP? 460 00:22:37,620 --> 00:22:38,660 UDP is a, 461 00:22:38,660 --> 00:22:39,700 is a, 462 00:22:42,160 --> 00:22:42,560 basically, 463 00:22:42,860 --> 00:22:43,720 it's a, 464 00:22:45,720 --> 00:22:46,640 I'm trying to think of a, 465 00:22:47,420 --> 00:22:48,720 it's a connectionless protocol, 466 00:22:48,760 --> 00:22:50,440 but it's completely unauthenticated. 467 00:22:51,160 --> 00:22:52,460 It's connectionless meaning that 468 00:22:52,460 --> 00:22:54,700 I can send a packet to the host, 469 00:22:54,880 --> 00:22:57,360 it doesn't attempt a handshake of any type. 470 00:22:57,580 --> 00:22:59,180 So at that point I can make the packet 471 00:22:59,180 --> 00:23:00,200 to be whatever I want, 472 00:23:00,340 --> 00:23:01,820 and the host is just going to accept it, 473 00:23:01,900 --> 00:23:04,180 and it really has no way of verifying it's coming from the host. 474 00:23:04,900 --> 00:23:06,680 So UDP makes you have a three-way handshake 475 00:23:06,680 --> 00:23:07,400 that's going to happen, 476 00:23:07,540 --> 00:23:09,900 the full sequence known as to protect the whole session 477 00:23:09,900 --> 00:23:10,920 as it's occurring. 478 00:23:11,480 --> 00:23:13,660 And yes, while in the past it has been possible 479 00:23:13,660 --> 00:23:14,800 to forge this, 480 00:23:15,000 --> 00:23:17,420 with modern kernels it's extremely difficult to do. 481 00:23:18,940 --> 00:23:20,480 The wall socket binding mode 482 00:23:20,480 --> 00:23:21,320 basically works, 483 00:23:21,440 --> 00:23:22,960 this is a stealth scan detection mode, 484 00:23:23,100 --> 00:23:24,480 it only works on a Linux right now. 485 00:23:25,180 --> 00:23:27,880 This is, for the first cut is for expediency, 486 00:23:27,940 --> 00:23:28,620 I have to admit. 487 00:23:29,160 --> 00:23:31,320 Linux has this feature where I can open a wall socket 488 00:23:31,320 --> 00:23:32,920 and just start reading packets in off the wire. 489 00:23:34,900 --> 00:23:37,560 I don't need libpcap or any of the libraries on top of that. 490 00:23:37,760 --> 00:23:38,840 It is more complex, 491 00:23:39,160 --> 00:23:40,660 but it does catch most scans. 492 00:23:40,920 --> 00:23:42,680 It certainly catches most of the Nmap scans. 493 00:23:43,940 --> 00:23:46,260 But it does have a higher false alarm possibility. 494 00:23:46,780 --> 00:23:49,060 In fact, the latest version of Nmap 495 00:23:49,060 --> 00:23:50,520 they put in a feature called a 496 00:23:50,980 --> 00:23:51,580 decoy feature, 497 00:23:52,040 --> 00:23:54,380 and I'm not sure what causes it to be put in, 498 00:23:54,460 --> 00:23:56,460 although I highly suspect there was a release of this tool. 499 00:23:57,580 --> 00:23:59,080 But basically a decoy feature, 500 00:23:59,260 --> 00:24:00,180 you give it some decoy, 501 00:24:00,180 --> 00:24:01,560 some decoy host, 502 00:24:01,700 --> 00:24:04,100 and as it's scanning you it also hits you with these fake hosts. 503 00:24:04,900 --> 00:24:07,300 It's a trip sentry to block all these hosts at the same time. 504 00:24:07,520 --> 00:24:08,060 It's kind of, 505 00:24:08,080 --> 00:24:10,900 I haven't had any complaints of people using that 506 00:24:10,900 --> 00:24:11,820 directed towards me. 507 00:24:11,860 --> 00:24:13,800 If you've been hit by it, I'd love to hear about it, 508 00:24:13,820 --> 00:24:15,140 but I haven't heard one person yet. 509 00:24:16,120 --> 00:24:17,460 It's not on other platforms yet, 510 00:24:17,500 --> 00:24:19,000 because it's going to require a lot more code, 511 00:24:19,160 --> 00:24:20,160 a lot more investigation, 512 00:24:21,000 --> 00:24:22,980 and certainly it's going to be a lot more complicated, 513 00:24:23,040 --> 00:24:23,620 as I've said. 514 00:24:23,700 --> 00:24:25,980 I think it's going to use more CPU power on the other systems. 515 00:24:26,140 --> 00:24:27,420 It's probably going to have to do promiscuous mode 516 00:24:27,420 --> 00:24:28,840 or some type of kernel level interface, 517 00:24:29,280 --> 00:24:30,960 and it's just going to require a lot more time, 518 00:24:36,500 --> 00:24:36,900 but it's going to be a lot more complicated. 519 00:24:36,900 --> 00:24:38,660 Now blocks host in three ways. 520 00:24:38,780 --> 00:24:39,380 Dropping them out, 521 00:24:39,480 --> 00:24:41,120 TCP wrappers, or with packet filters. 522 00:24:41,320 --> 00:24:42,600 Packet filters are your best bet. 523 00:24:42,680 --> 00:24:43,780 They're designed for the task, 524 00:24:44,420 --> 00:24:45,760 and they work really well. 525 00:24:45,980 --> 00:24:47,800 All the modern Unix kernels out there 526 00:24:47,800 --> 00:24:50,200 have some type of packet filtering capability built in. 527 00:24:50,300 --> 00:24:51,100 You should really use that. 528 00:24:51,520 --> 00:24:52,700 TCP wrappers work, 529 00:24:52,860 --> 00:24:54,240 but they don't protect all services. 530 00:24:54,440 --> 00:24:55,800 If you have HTTP, for instance, 531 00:24:56,040 --> 00:24:58,360 and it's not linked against libwrap, 532 00:24:58,440 --> 00:24:59,820 you're not going to get any protection from 533 00:25:04,900 --> 00:25:05,380 the default route. 534 00:25:06,480 --> 00:25:07,740 The default route is 535 00:25:07,740 --> 00:25:10,240 333-444-555-666. 536 00:25:10,420 --> 00:25:12,800 That's not a valid IPv4 address. 537 00:25:13,640 --> 00:25:15,120 So you need to change that. 538 00:25:15,180 --> 00:25:16,240 Some people in news groups are saying 539 00:25:16,240 --> 00:25:17,540 just leave it alone. That's incorrect. 540 00:25:17,820 --> 00:25:18,600 You want to change that. 541 00:25:18,960 --> 00:25:20,320 The problem with dropping a route 542 00:25:20,320 --> 00:25:22,580 is that you cause something called an asynchronous route, 543 00:25:22,740 --> 00:25:24,800 meaning the packets come in, but they don't go out. 544 00:25:25,000 --> 00:25:26,660 That sounds like an advertising slogan. 545 00:25:29,180 --> 00:25:30,700 Basically, what this means for TCP, 546 00:25:30,840 --> 00:25:31,280 it's okay, 547 00:25:31,440 --> 00:25:33,400 because that way the handshake doesn't complete. 548 00:25:34,900 --> 00:25:36,720 The SYNAC doesn't go back out and gets the host. 549 00:25:37,200 --> 00:25:38,380 UDP, this is not okay. 550 00:25:38,740 --> 00:25:40,680 If they're trying to port scan your host 551 00:25:40,680 --> 00:25:42,600 or they have a particular service they want to attack, 552 00:25:43,100 --> 00:25:45,180 you can do blind spoofing with UDP. 553 00:25:45,260 --> 00:25:46,760 You don't need to get the packets back. 554 00:25:46,860 --> 00:25:48,580 If you already know how the protocol's going to behave, 555 00:25:48,720 --> 00:25:49,680 you can still abuse it. 556 00:25:49,820 --> 00:25:52,860 So this is really not the optimal way to do this. 557 00:25:52,920 --> 00:25:54,620 It does work, but it's just 558 00:25:54,620 --> 00:25:56,100 warning you that it's not optimal. 559 00:25:56,180 --> 00:25:58,020 If they're attacking a UDP-based service, 560 00:25:58,680 --> 00:26:01,360 they can do it blind and not have any real issues. 561 00:26:10,800 --> 00:26:13,820 Well, if they're doing a port scan, 562 00:26:14,080 --> 00:26:17,000 they're expecting an ICMP port unreachable 563 00:26:17,000 --> 00:26:17,760 or some other indicator. 564 00:26:18,120 --> 00:26:19,940 But let's say that they do a port scan 565 00:26:19,940 --> 00:26:21,000 and they don't get anything back, 566 00:26:21,200 --> 00:26:24,540 but they decide to run their UDP attack script anyway. 567 00:26:24,860 --> 00:26:26,840 And the UDP attack script 568 00:26:26,840 --> 00:26:28,960 doesn't really care if it gets anything back, 569 00:26:29,020 --> 00:26:30,560 it just wants to do a blind spoof. 570 00:26:30,740 --> 00:26:32,020 And if it's doing a blind spoof, 571 00:26:32,160 --> 00:26:33,460 then you're going to get hammered. 572 00:26:33,460 --> 00:26:34,880 This drop in the route is not going to get you anything back. 573 00:26:35,320 --> 00:26:36,480 It's an asynchronous route. 574 00:26:36,560 --> 00:26:38,080 The packets still do hit your kernel, 575 00:26:38,200 --> 00:26:39,440 they're just not making it back out, 576 00:26:39,500 --> 00:26:40,360 so you need to be really careful. 577 00:26:41,220 --> 00:26:42,440 Deployment steps are pretty simple. 578 00:26:42,840 --> 00:26:45,920 Compile, configure, start one of the options for TCP 579 00:26:45,920 --> 00:26:48,620 and one of the options for UDP if you want to do that. 580 00:26:49,220 --> 00:26:50,460 The only one I endorse, 581 00:26:50,760 --> 00:26:52,240 and I say this multiple times on the doc, 582 00:26:52,340 --> 00:26:53,020 is dash TCP. 583 00:26:53,580 --> 00:26:55,280 This doesn't bind all the ports. 584 00:26:55,360 --> 00:26:58,220 It requires a full connect for it to detect a port scan. 585 00:26:58,380 --> 00:27:00,200 This is going to be very hard for someone to spoof against. 586 00:27:01,080 --> 00:27:02,120 That's the only one I endorse. 587 00:27:02,300 --> 00:27:04,180 If you want to do the other ones, you need to weigh the risks. 588 00:27:04,900 --> 00:27:06,560 Most of the time the risks probably won't affect you, 589 00:27:06,980 --> 00:27:09,520 but if you're running a high visibility server 590 00:27:09,520 --> 00:27:11,100 or you're egging people on, 591 00:27:11,240 --> 00:27:12,800 it's probably going to bite you sooner or later. 592 00:27:13,660 --> 00:27:15,140 And then you automate it 593 00:27:15,140 --> 00:27:16,400 in your init scripts 594 00:27:16,400 --> 00:27:17,600 and then you kind of leave it alone. 595 00:27:18,100 --> 00:27:19,580 And that's another premise of my tools. 596 00:27:19,700 --> 00:27:21,300 I like to have them be simple to set up 597 00:27:21,300 --> 00:27:22,500 and you kind of leave them alone 598 00:27:22,500 --> 00:27:24,660 and at that point you just don't need to touch them anymore. 599 00:27:24,740 --> 00:27:25,900 You just kind of let them do their job. 600 00:27:28,260 --> 00:27:29,660 Here are some examples here. 601 00:27:30,320 --> 00:27:31,140 Someone's coming in. 602 00:27:32,020 --> 00:27:33,940 Example.com, they hit port 143. 603 00:27:34,900 --> 00:27:35,960 The port sentry just tells you, 604 00:27:36,040 --> 00:27:38,720 okay, I'm going to put them in TCP wrappers with that. 605 00:27:38,820 --> 00:27:39,540 I'm going to block them. 606 00:27:39,740 --> 00:27:41,240 And then it's going to drop them here 607 00:27:41,240 --> 00:27:43,240 using a packet filtering command. 608 00:27:43,600 --> 00:27:45,840 At that point later on, you're going to see here 609 00:27:45,840 --> 00:27:46,840 here's what happened. 610 00:27:46,920 --> 00:27:48,700 It started 1906 and then they went down here 611 00:27:48,700 --> 00:27:49,640 and they just kept trying. 612 00:27:50,000 --> 00:27:52,420 And you know, sometimes people will sit there for hours. 613 00:27:53,300 --> 00:27:55,660 And it's probably your scripts aren't timing out correctly. 614 00:27:55,860 --> 00:27:57,480 In fact, I'm sure that there's one out there 615 00:27:57,480 --> 00:27:58,920 I know of. I don't want to say it 616 00:27:58,920 --> 00:27:59,820 because I don't want the bug fix. 617 00:28:00,540 --> 00:28:03,680 It doesn't time out. It just keeps sitting there and sitting there. 618 00:28:04,900 --> 00:28:07,120 And it'll come back days later and try to connect again. 619 00:28:07,300 --> 00:28:08,540 So I leave them in there for a while. 620 00:28:08,600 --> 00:28:09,600 I call it the penalty box. 621 00:28:10,700 --> 00:28:12,360 So they'll sit in there for a while 622 00:28:12,360 --> 00:28:14,580 and they will come back actually and retry again. 623 00:28:14,820 --> 00:28:17,000 And like I said, sometimes they'll come from multiple hosts. 624 00:28:17,160 --> 00:28:18,520 And this is really advantageous 625 00:28:18,520 --> 00:28:20,560 because now they're exposing themselves on multiple sides. 626 00:28:20,760 --> 00:28:22,540 And sometimes those hosts may be the one you control. 627 00:28:23,280 --> 00:28:24,520 It's kind of nice to know that. 628 00:28:26,840 --> 00:28:28,100 Dangers, again, I hit on. 629 00:28:28,280 --> 00:28:29,100 Denial of service. 630 00:28:29,220 --> 00:28:30,840 If someone is forging packets, 631 00:28:32,380 --> 00:28:34,280 they can cause a stealthy UUP mode to activate. 632 00:28:35,080 --> 00:28:36,140 It's not hard to do. 633 00:28:37,100 --> 00:28:39,140 A second point here is over-reliance. 634 00:28:39,780 --> 00:28:40,700 Sometimes you figure 635 00:28:40,700 --> 00:28:41,820 you have these tools installed. 636 00:28:42,060 --> 00:28:43,740 Well, I'll just wait a bit if I update. 637 00:28:44,680 --> 00:28:46,320 Don't do that. It's not a substitute. 638 00:28:46,780 --> 00:28:48,120 It's supposed to augment security. 639 00:28:48,340 --> 00:28:51,100 It doesn't replace basic administrative tasks. 640 00:28:51,660 --> 00:28:52,260 And lastly, 641 00:28:52,400 --> 00:28:53,980 it may be an unnecessary application. 642 00:28:54,340 --> 00:28:55,920 If you have a firewall that's already secure, 643 00:28:56,680 --> 00:28:58,860 don't want another app on it if you don't have to. 644 00:28:58,940 --> 00:29:00,340 Even if it is a security app. 645 00:29:00,840 --> 00:29:02,240 Like I said, there is a possibility. 646 00:29:02,500 --> 00:29:04,280 I could screw up somewhere. There could be some type of 647 00:29:04,900 --> 00:29:05,340 backup available. 648 00:29:06,380 --> 00:29:08,620 You just don't want to expose yourself in that way. 649 00:29:08,740 --> 00:29:10,460 If your host doesn't absolutely need it, 650 00:29:10,500 --> 00:29:13,160 you may not just say, well, I don't care if they port-scan me. 651 00:29:13,340 --> 00:29:14,320 I have a firewall. 652 00:29:15,080 --> 00:29:16,420 I don't want it on it. 653 00:29:16,560 --> 00:29:18,660 I just say, okay, port-scan me. 654 00:29:18,720 --> 00:29:19,360 I don't care. 655 00:29:21,640 --> 00:29:22,820 Sometimes that's the choice. 656 00:29:23,120 --> 00:29:23,940 Sometimes it's not. 657 00:29:24,140 --> 00:29:26,460 You're going to have to weigh it on a case-by-case basis. 658 00:29:28,180 --> 00:29:28,680 HostSensory is 659 00:29:28,680 --> 00:29:29,280 something released. 660 00:29:30,120 --> 00:29:32,660 Definitely not as popular as a port-sensory tool is. 661 00:29:32,960 --> 00:29:33,780 It does something called 662 00:29:34,900 --> 00:29:35,140 login anomaly detection. 663 00:29:35,360 --> 00:29:37,320 What login anomaly detection does is 664 00:29:38,480 --> 00:29:40,540 it's going to watch user login activity. 665 00:29:41,060 --> 00:29:42,480 This came out of a situation 666 00:29:42,480 --> 00:29:43,980 about three or four years ago. 667 00:29:44,240 --> 00:29:46,300 I was helping out with security in ISP. 668 00:29:46,960 --> 00:29:48,440 One morning, one of the admins noticed 669 00:29:48,440 --> 00:29:50,480 a very high CPU on a 670 00:29:50,480 --> 00:29:52,280 host out on the West Coast. 671 00:29:53,140 --> 00:29:54,680 At this point, he logged in 672 00:29:54,680 --> 00:29:55,540 and found out that 673 00:29:55,540 --> 00:29:58,720 it had a sniffer and crack running out at the same time. 674 00:29:59,580 --> 00:30:00,560 We went in there 675 00:30:00,560 --> 00:30:01,900 to figure out what was going on. 676 00:30:02,520 --> 00:30:04,880 Basically, what happened was a user had a password sniffer 677 00:30:04,900 --> 00:30:06,220 It happens all the time. 678 00:30:06,480 --> 00:30:08,120 In fact, it's really quite pathetic. 679 00:30:08,400 --> 00:30:09,320 A colleague of mine 680 00:30:10,360 --> 00:30:12,440 went on a rant before 681 00:30:12,440 --> 00:30:14,520 about the fact that when protocols are 682 00:30:14,520 --> 00:30:16,560 presented as a form of an RFC, 683 00:30:16,720 --> 00:30:18,320 they really need to go through a security audit. 684 00:30:18,420 --> 00:30:20,280 If they can't pass it, they really shouldn't be approved. 685 00:30:20,740 --> 00:30:22,900 There's no reason why some of the more modern protocols 686 00:30:22,900 --> 00:30:24,100 like POP and IMAP 687 00:30:24,100 --> 00:30:26,300 pass unencrypted passwords over the wire. 688 00:30:26,440 --> 00:30:27,120 It's kind of ridiculous. 689 00:30:27,540 --> 00:30:30,260 In this case, this user had his password sniffed by using POP 690 00:30:30,260 --> 00:30:32,820 coming out of a university that had people all over it. 691 00:30:34,040 --> 00:30:34,800 The person 692 00:30:34,900 --> 00:30:36,400 logged in from a European country 693 00:30:36,400 --> 00:30:38,440 and kind of went to town on the server. 694 00:30:38,880 --> 00:30:40,140 This is very common. 695 00:30:40,180 --> 00:30:42,480 Some of you may have had the exact same thing happen to you. 696 00:30:42,560 --> 00:30:43,780 It's very hard to defend against. 697 00:30:44,200 --> 00:30:46,080 If this person hadn't fired up a sniffer 698 00:30:46,080 --> 00:30:48,580 and a crack program, we may not have spotted them 699 00:30:48,580 --> 00:30:50,400 just because they were logging in as a normal user. 700 00:30:51,900 --> 00:30:52,940 It's important, I think, 701 00:30:52,960 --> 00:30:53,760 to watch some of this. 702 00:30:53,980 --> 00:30:55,460 It is kind of Big Brother-esque, 703 00:30:55,520 --> 00:30:58,600 but sometimes you need that for a sysadmin 704 00:30:58,600 --> 00:30:59,980 if you want to maintain security. 705 00:31:00,840 --> 00:31:02,620 What HostSentry does is it basically 706 00:31:02,620 --> 00:31:04,540 monitors WTemp and UTemp. 707 00:31:04,900 --> 00:31:07,100 Or similar auditing data format. 708 00:31:07,320 --> 00:31:09,040 Right now, though, this is alpha-grade software. 709 00:31:09,220 --> 00:31:10,820 It's only monitoring the WTemp, 710 00:31:10,820 --> 00:31:11,460 UTemp files. 711 00:31:11,800 --> 00:31:13,600 It maintains two databases. 712 00:31:13,780 --> 00:31:15,300 One is a TTY state database. 713 00:31:15,740 --> 00:31:18,980 This keeps track of the current logins 714 00:31:18,980 --> 00:31:20,600 and logouts occurring on the host. 715 00:31:21,460 --> 00:31:23,040 This is for a variety of reasons. 716 00:31:23,240 --> 00:31:25,100 One is so LogSentry knows who's logging in 717 00:31:25,100 --> 00:31:26,160 and logging out, of course. 718 00:31:26,680 --> 00:31:28,520 The other is to help track it 719 00:31:28,520 --> 00:31:30,180 between reboots and whatnot to make sure 720 00:31:30,180 --> 00:31:32,380 its own internal records are being cleaned up correctly. 721 00:31:32,760 --> 00:31:34,360 The second one is a user database. 722 00:31:34,900 --> 00:31:36,600 And a user database, as soon as you log in, 723 00:31:36,760 --> 00:31:38,340 you're immediately going to get a user record. 724 00:31:38,460 --> 00:31:39,980 That user record is going to have your username. 725 00:31:40,200 --> 00:31:41,360 It's going to have when you were created. 726 00:31:41,900 --> 00:31:43,120 It's going to have your first login, 727 00:31:43,240 --> 00:31:45,460 which included not only the time you logged in, 728 00:31:45,500 --> 00:31:47,120 but where you logged in from and what TTY. 729 00:31:47,720 --> 00:31:49,300 And it's also going to have a large field 730 00:31:49,300 --> 00:31:50,380 called track logins. 731 00:31:50,400 --> 00:31:53,080 And what this does is it keeps track of all your logins, 732 00:31:53,080 --> 00:31:55,180 including where you logged in from, again, 733 00:31:55,280 --> 00:31:57,380 your TTY, your login and your logout times. 734 00:31:57,660 --> 00:31:59,000 It's also going to have whether or not 735 00:31:59,000 --> 00:32:00,500 you allowed to log in at that hour, 736 00:32:01,260 --> 00:32:03,260 whether or not you allowed to log in at that day, 737 00:32:04,900 --> 00:32:05,640 whether it's been disabled by the admin 738 00:32:05,640 --> 00:32:08,080 or it's been disabled by the HostSentry program itself. 739 00:32:08,540 --> 00:32:10,220 And as you're logging in and logging out, 740 00:32:10,280 --> 00:32:11,880 HostSentry looks at this information 741 00:32:11,880 --> 00:32:14,420 and it runs modular signatures as required. 742 00:32:15,500 --> 00:32:16,760 Now, there's several indicators 743 00:32:16,760 --> 00:32:18,580 that HostSentry actually attempts to spot. 744 00:32:18,820 --> 00:32:20,740 The one with the asterisks are not fully implemented yet. 745 00:32:20,780 --> 00:32:22,880 Again, this is experimental development software. 746 00:32:24,040 --> 00:32:26,260 The basic one are login and logouts. 747 00:32:26,440 --> 00:32:27,520 Not too high tech, 748 00:32:27,660 --> 00:32:28,720 except that, again, 749 00:32:28,840 --> 00:32:30,980 across Unix platforms, the way these are logged 750 00:32:30,980 --> 00:32:32,280 is not consistent. 751 00:32:32,540 --> 00:32:34,440 Sometimes if you're trying to track this stuff, 752 00:32:34,900 --> 00:32:35,640 it can be a real big pain. 753 00:32:36,080 --> 00:32:38,120 Second one, odd login times. 754 00:32:38,600 --> 00:32:40,600 After you've logged in a certain number of times, 755 00:32:40,780 --> 00:32:42,460 the tool has the ability 756 00:32:42,460 --> 00:32:44,860 to look at your past logins 757 00:32:44,860 --> 00:32:46,040 and develop a profile 758 00:32:46,040 --> 00:32:47,100 of what's going on. 759 00:32:47,380 --> 00:32:48,680 In this case, for this signature, 760 00:32:49,640 --> 00:32:52,720 it will look at your past logins 761 00:32:52,720 --> 00:32:54,420 and develop an average time window. 762 00:32:54,820 --> 00:32:56,960 So if you only log in between 8 and 5, 763 00:32:57,080 --> 00:32:59,040 there's no reason you should be logging in at 2 a.m. 764 00:32:59,080 --> 00:33:00,200 So that's what it's going to look for. 765 00:33:00,540 --> 00:33:01,800 First time logins. 766 00:33:01,920 --> 00:33:03,160 That's a really big deal. 767 00:33:05,020 --> 00:33:06,960 If you run a Unix host 768 00:33:06,960 --> 00:33:08,300 and people don't need a shell account 769 00:33:08,300 --> 00:33:09,380 or shell access, 770 00:33:09,900 --> 00:33:11,240 please don't give it to them. 771 00:33:11,460 --> 00:33:14,140 Shell access is the biggest security problem 772 00:33:14,140 --> 00:33:15,200 with Unix by far. 773 00:33:15,340 --> 00:33:17,060 The fact that it allows you that interactive access. 774 00:33:18,620 --> 00:33:19,940 For a first time login, 775 00:33:20,200 --> 00:33:21,860 if you have a person who's only doing POP 776 00:33:21,860 --> 00:33:23,880 and that's all they need to do 777 00:33:23,880 --> 00:33:26,280 is see the secretary, join the account, 778 00:33:26,440 --> 00:33:27,280 whoever it is, 779 00:33:27,460 --> 00:33:30,300 and then you see that they log in for the first time 780 00:33:30,300 --> 00:33:32,140 and they don't even know how to type, 781 00:33:32,200 --> 00:33:34,440 let alone know how to use Unix, 782 00:33:34,900 --> 00:33:36,060 you really need to look into that 783 00:33:36,060 --> 00:33:37,520 because it's a very suspicious activity. 784 00:33:38,220 --> 00:33:39,640 Foreign domains are put in quotes. 785 00:33:40,720 --> 00:33:42,800 Basically, this is a domain that you don't control. 786 00:33:43,040 --> 00:33:45,000 So if you're running example.com 787 00:33:45,000 --> 00:33:47,020 and someone's coming in from Haxor.com, 788 00:33:47,300 --> 00:33:49,180 you probably want to find out why they are. 789 00:33:49,420 --> 00:33:50,200 At the same time, 790 00:33:50,240 --> 00:33:51,600 if you're a domain in Germany 791 00:33:51,600 --> 00:33:53,140 and someone's logging in from Malaysia, 792 00:33:53,520 --> 00:33:55,280 again, another very suspicious activity 793 00:33:55,280 --> 00:33:56,040 you need to look for. 794 00:33:56,840 --> 00:33:59,540 Username inserted is another one too. 795 00:33:59,600 --> 00:34:01,200 This is kind of a strange one 796 00:34:01,200 --> 00:34:03,300 where basically I know what usernames are supposed to be 797 00:34:04,900 --> 00:34:06,860 and if another one person logs in with a username 798 00:34:06,860 --> 00:34:07,820 I'm not familiar with, 799 00:34:07,880 --> 00:34:08,960 I flag it as an attack. 800 00:34:09,300 --> 00:34:11,080 And the reason for this is a recent exploit 801 00:34:11,080 --> 00:34:13,100 like I think it was a StatD overflow. 802 00:34:13,640 --> 00:34:17,340 A lot of them insert a line at the bottom of a password file 803 00:34:17,340 --> 00:34:19,240 like root or hacked or whatever. 804 00:34:19,580 --> 00:34:20,500 And at this point, 805 00:34:20,940 --> 00:34:22,060 they will tell that in 806 00:34:22,060 --> 00:34:23,380 and it has a null password on it 807 00:34:23,380 --> 00:34:24,720 or some password they already know about. 808 00:34:24,940 --> 00:34:26,800 So they log in and they drop into a shell 809 00:34:26,800 --> 00:34:28,200 and they have root access immediately. 810 00:34:28,760 --> 00:34:30,840 Well, with this type of signature in there, 811 00:34:31,020 --> 00:34:32,040 when they log in, 812 00:34:34,900 --> 00:34:36,160 if there's a new database I'm familiar with, 813 00:34:36,220 --> 00:34:37,680 I'm going to boot them off the system. 814 00:34:37,940 --> 00:34:40,560 So that's another way to maybe do a little bit of CYA. 815 00:34:41,120 --> 00:34:42,460 Strange file modifications 816 00:34:42,460 --> 00:34:45,200 plus an R host or other oddball things 817 00:34:45,200 --> 00:34:46,680 you'd be able to look for with it too. 818 00:34:47,020 --> 00:34:48,880 Strange directories when they log out. 819 00:34:48,940 --> 00:34:50,620 Hosts don't truly look through their directory. 820 00:34:50,960 --> 00:34:52,600 They have dot dot dot, 821 00:34:52,680 --> 00:34:53,600 dot dot space. 822 00:34:53,920 --> 00:34:56,440 They have other oddball names that people use to hide things in. 823 00:34:56,980 --> 00:34:57,860 Things to look for. 824 00:34:58,140 --> 00:35:00,300 History file tampering when you're logging out. 825 00:35:00,340 --> 00:35:01,900 It's going to make sure your history file is there. 826 00:35:02,160 --> 00:35:03,740 It's going to look you up in the password list. 827 00:35:04,900 --> 00:35:07,100 If you have and knows what history files go with what shell, 828 00:35:07,260 --> 00:35:09,420 it's going to see if that history file is truncated, 829 00:35:09,560 --> 00:35:10,920 deleted, or linked to dead null. 830 00:35:11,320 --> 00:35:12,820 All very suspicious activities. 831 00:35:13,440 --> 00:35:15,060 Multiple concurrent logins 832 00:35:15,060 --> 00:35:16,400 is probably not what you think. 833 00:35:17,180 --> 00:35:18,520 Basically, if someone's logged in 834 00:35:18,520 --> 00:35:20,680 and they have 5x terms open from a single host, 835 00:35:20,880 --> 00:35:21,860 not a big deal. 836 00:35:22,140 --> 00:35:23,740 But if that same person's logged in 837 00:35:23,740 --> 00:35:26,620 five times and they're logged in 838 00:35:26,620 --> 00:35:28,860 from Sweden, Malaysia, China, 839 00:35:29,060 --> 00:35:30,460 Jamaica, and Haiti, 840 00:35:30,720 --> 00:35:32,160 you really need to look at that 841 00:35:32,160 --> 00:35:34,540 because they're probably not in all those places at the same time. 842 00:35:34,900 --> 00:35:36,200 Very, very suspicious activity. 843 00:35:37,760 --> 00:35:38,840 Invalid UTEMP entry. 844 00:35:38,920 --> 00:35:39,720 When you log out, 845 00:35:41,520 --> 00:35:43,240 host entry will look through 846 00:35:43,240 --> 00:35:44,680 and see if you have a matching 847 00:35:44,680 --> 00:35:46,200 UTEMP login record. 848 00:35:46,400 --> 00:35:47,560 Maybe you've been zapped out. 849 00:35:48,400 --> 00:35:49,580 Suspicious history commands. 850 00:35:50,120 --> 00:35:51,320 Running network daemon. 851 00:35:51,380 --> 00:35:53,400 Egg drop running when you log out. 852 00:35:53,660 --> 00:35:55,120 Yeah, a lot of you probably want to know that. 853 00:35:55,240 --> 00:35:57,260 I don't like that program running on systems I control. 854 00:35:59,360 --> 00:36:01,540 I think that's suspicious activity too 855 00:36:01,540 --> 00:36:03,360 if your policy prevents network daemons 856 00:36:03,360 --> 00:36:04,700 that use your zone from running. 857 00:36:04,900 --> 00:36:06,200 Some people do allow it. 858 00:36:06,400 --> 00:36:07,240 File exists. 859 00:36:07,320 --> 00:36:09,800 You can put in a name of a file you want to look for. 860 00:36:09,840 --> 00:36:11,320 If it's in the directory, it'll flag you. 861 00:36:11,760 --> 00:36:12,860 Inactive account used. 862 00:36:13,140 --> 00:36:15,800 A lot of times people will create accounts 863 00:36:15,800 --> 00:36:16,940 like a corporation 864 00:36:16,940 --> 00:36:20,500 and maybe they get logged into once just to test, right? 865 00:36:21,020 --> 00:36:22,360 But then they're not used again. 866 00:36:22,600 --> 00:36:25,060 But they have to stay there for various policy reasons 867 00:36:25,060 --> 00:36:26,980 or maybe email access or whatever. 868 00:36:27,380 --> 00:36:28,920 Well, if that account is used for a login 869 00:36:28,920 --> 00:36:29,800 six months later, 870 00:36:30,080 --> 00:36:31,260 we should know about that. 871 00:36:31,680 --> 00:36:33,900 A feature to be put in, host entry. 872 00:36:34,900 --> 00:36:36,580 The asterisks, I apologize, aren't done yet. 873 00:36:36,680 --> 00:36:37,260 They will be soon. 874 00:36:38,040 --> 00:36:39,040 It will flag that. 875 00:36:39,080 --> 00:36:40,700 It'll say, you know, this is an inactive account. 876 00:36:40,880 --> 00:36:41,960 It's suddenly become active again. 877 00:36:42,060 --> 00:36:42,960 Maybe you want to look at this. 878 00:36:43,940 --> 00:36:45,060 Some examples here. 879 00:36:45,120 --> 00:36:46,440 Sorry for the verbosity. 880 00:36:47,320 --> 00:36:48,560 Security alert, here I am. 881 00:36:48,560 --> 00:36:49,180 I'm logging in. 882 00:36:49,780 --> 00:36:50,600 Here's my TTY. 883 00:36:50,800 --> 00:36:51,560 Here's some host. 884 00:36:51,840 --> 00:36:52,740 And here it goes. 885 00:36:52,960 --> 00:36:53,900 First time logging. 886 00:36:54,000 --> 00:36:55,120 I didn't have a database entry. 887 00:37:04,900 --> 00:37:05,520 I'm logging in from somehost, 888 00:37:05,540 --> 00:37:07,500 or somehost.com as the case may be. 889 00:37:08,020 --> 00:37:09,560 At that point, it will then go through 890 00:37:09,560 --> 00:37:10,340 and do what it needs. 891 00:37:10,480 --> 00:37:11,700 And here you go, I have a logout. 892 00:37:11,780 --> 00:37:12,920 I'm just saying that I'm logging out. 893 00:37:13,420 --> 00:37:14,720 I come back and log in again. 894 00:37:14,900 --> 00:37:16,580 Let's say I modified the foreign domain 895 00:37:16,580 --> 00:37:18,180 to say allow somehost to come in. 896 00:37:18,300 --> 00:37:19,320 The next time I log in, it just says 897 00:37:19,320 --> 00:37:20,340 log in and log out. 898 00:37:20,400 --> 00:37:21,140 It's pretty basic. 899 00:37:21,400 --> 00:37:22,580 No signatures fired. 900 00:37:23,740 --> 00:37:24,820 Let's say we have a test user. 901 00:37:24,820 --> 00:37:26,580 Test user logged in here. 902 00:37:26,960 --> 00:37:28,180 Nothing really happened. 903 00:37:28,260 --> 00:37:29,080 Everything was kosher. 904 00:37:29,260 --> 00:37:30,380 And then they log out. 905 00:37:30,480 --> 00:37:33,860 Well, in our host, they dropped a plus plus in. 906 00:37:34,060 --> 00:37:35,840 So it takes some action against that. 907 00:37:37,060 --> 00:37:37,580 Furthermore, 908 00:37:38,380 --> 00:37:39,740 they have an odd domain here. 909 00:37:39,880 --> 00:37:41,020 They have dot dot dot. 910 00:37:41,500 --> 00:37:44,660 Not a good directory to have in your user space 911 00:37:44,660 --> 00:37:46,200 unless they really like 912 00:37:46,200 --> 00:37:47,580 having confusing directory names. 913 00:37:48,000 --> 00:37:49,760 If someone's naming a directory like that, 914 00:37:49,800 --> 00:37:50,920 it's pretty suspicious, I think. 915 00:37:52,700 --> 00:37:53,820 Further down here, 916 00:37:55,260 --> 00:37:56,140 history truncated. 917 00:37:56,620 --> 00:37:58,760 And it says here that it's a symbolic link 918 00:37:58,760 --> 00:37:59,520 to bash history. 919 00:38:00,080 --> 00:38:01,280 Again, not a good thing. 920 00:38:01,360 --> 00:38:04,660 If someone's linking to dev null, 921 00:38:04,880 --> 00:38:05,980 they're hiding their activity. 922 00:38:06,440 --> 00:38:08,640 A lot of history files only write their data 923 00:38:08,640 --> 00:38:10,500 for the current session after they log out. 924 00:38:10,660 --> 00:38:12,540 So if you just remove a file, 925 00:38:12,860 --> 00:38:14,900 a lot of people think they're slick. 926 00:38:15,040 --> 00:38:16,180 They remove a file, 927 00:38:16,280 --> 00:38:17,400 they think their history's clean, 928 00:38:17,580 --> 00:38:18,260 and they log out. 929 00:38:18,400 --> 00:38:19,800 But the last thing the shell does 930 00:38:19,800 --> 00:38:21,140 is it writes out the history file. 931 00:38:25,380 --> 00:38:27,140 So the smarter people 932 00:38:27,140 --> 00:38:28,620 generally try to link it to dev null, 933 00:38:28,740 --> 00:38:29,380 so when it writes out, 934 00:38:29,440 --> 00:38:30,840 it just goes to dev null. 935 00:38:31,440 --> 00:38:33,320 One thing someone does that's kind of interesting 936 00:38:33,320 --> 00:38:34,560 are history files for users. 937 00:38:34,860 --> 00:38:36,100 I forgot his name, I'm sorry, 938 00:38:36,220 --> 00:38:39,260 but he does an append-only mode 939 00:38:39,260 --> 00:38:41,200 on all his user's history files 940 00:38:41,200 --> 00:38:43,800 using the secure level flags. 941 00:38:44,040 --> 00:38:45,360 And that could be something useful for you. 942 00:38:46,600 --> 00:38:47,460 Database record here. 943 00:38:47,540 --> 00:38:48,780 I'm going to dump the database here. 944 00:38:48,960 --> 00:38:50,300 And here's what's in the user database. 945 00:38:50,700 --> 00:38:52,020 Created the first time login. 946 00:38:54,820 --> 00:38:55,200 You can see what's going on. 947 00:38:55,360 --> 00:38:57,740 These stamps here are Unix Epoch. 948 00:38:58,040 --> 00:38:59,600 Your login days and hours 949 00:38:59,600 --> 00:39:01,200 aren't implemented yet. 950 00:39:01,760 --> 00:39:04,000 Whether it's disabled, these are just flags 951 00:39:04,000 --> 00:39:05,380 and the total number of logins. 952 00:39:05,940 --> 00:39:07,860 This database will track all the users 953 00:39:07,860 --> 00:39:08,720 on your system. 954 00:39:09,120 --> 00:39:10,760 And eventually I'm going to have tools written up 955 00:39:10,760 --> 00:39:13,060 that can actually crawl through this entire thing 956 00:39:13,060 --> 00:39:14,640 and design pretty little web pages 957 00:39:14,640 --> 00:39:16,080 so you can actually track all this stuff 958 00:39:16,080 --> 00:39:18,380 and what users are doing when and where. 959 00:39:20,060 --> 00:39:21,000 Again, dangers. 960 00:39:22,700 --> 00:39:23,980 Wtemp and Etemp, again, 961 00:39:24,840 --> 00:39:26,120 Unix, they're not, 962 00:39:26,440 --> 00:39:28,100 I mean, they've been around for decades 963 00:39:28,100 --> 00:39:29,500 but they're really just not very good. 964 00:39:30,120 --> 00:39:32,260 There's a possibility people can tamper with it. 965 00:39:32,400 --> 00:39:34,860 I'm assuming that root is not compromised on the host 966 00:39:34,860 --> 00:39:36,460 when these tools are running. 967 00:39:36,660 --> 00:39:38,220 It's obvious that if root is compromised 968 00:39:38,790 --> 00:39:40,500 that people can really do whatever they want 969 00:39:40,500 --> 00:39:42,440 to anything, including my own tools. 970 00:39:43,000 --> 00:39:44,480 So it's possible that they could 971 00:39:45,240 --> 00:39:46,160 somehow tamper 972 00:39:46,610 --> 00:39:48,580 with the ability 973 00:39:48,580 --> 00:39:50,500 to write out that they're even logging in 974 00:39:50,500 --> 00:39:51,300 and I may miss it. 975 00:39:52,360 --> 00:39:54,420 Additionally, if it's a service that's allowing 976 00:39:54,820 --> 00:39:55,760 you to log in but it doesn't write to 977 00:39:55,760 --> 00:39:57,940 utemp or wtemp, I may miss that too. 978 00:39:58,600 --> 00:39:59,960 So that's another possibility. 979 00:40:00,660 --> 00:40:02,200 The utemp records are all different 980 00:40:02,200 --> 00:40:03,860 from BSD, Linux, and Solaris. 981 00:40:03,940 --> 00:40:05,720 Linux and Solaris are okay because 982 00:40:05,720 --> 00:40:07,780 their host record size is large enough. 983 00:40:07,840 --> 00:40:09,000 It's 255 bytes. 984 00:40:09,280 --> 00:40:11,760 That means if your host name is 255 bytes or below, 985 00:40:11,960 --> 00:40:13,420 I'm going to see the entire thing. 986 00:40:13,920 --> 00:40:15,440 Linux goes a step further because 987 00:40:15,440 --> 00:40:16,940 it also includes the IP address. 988 00:40:17,320 --> 00:40:18,860 And really, any auditing record, 989 00:40:18,980 --> 00:40:20,160 you always need to include the IP address 990 00:40:20,160 --> 00:40:23,340 because DNS entries are so easy to screw around with 991 00:40:24,820 --> 00:40:25,140 if you trust it. 992 00:40:25,480 --> 00:40:28,220 The problem with BSD is the UT host size 993 00:40:28,220 --> 00:40:29,620 and the utemp struct 994 00:40:29,620 --> 00:40:33,060 is either 16 or 32 bytes long. 995 00:40:33,380 --> 00:40:34,760 So if you come in from a host 996 00:40:34,760 --> 00:40:36,440 and really, really, really, really, really, 997 00:40:36,440 --> 00:40:38,780 really, really, really long hosting.com, 998 00:40:38,980 --> 00:40:40,220 it's going to truncate it down 999 00:40:40,220 --> 00:40:42,120 to 16 or 32 bytes 1000 00:40:42,620 --> 00:40:44,640 and the records themselves may not be 1001 00:40:44,640 --> 00:40:45,880 as complete as you'd like. 1002 00:40:46,120 --> 00:40:48,820 In the case of HostSentry, since I'm relying on that information 1003 00:40:48,820 --> 00:40:50,380 to be able to make certain comparisons 1004 00:40:50,380 --> 00:40:51,680 with foreign domains and whatnot, 1005 00:40:51,880 --> 00:40:53,400 you make inaccurate results back. 1006 00:40:54,820 --> 00:40:55,660 If we use compromise. 1007 00:40:56,100 --> 00:40:57,780 And the last thing is, I consider it 1008 00:40:57,780 --> 00:40:58,640 like a last line of defense. 1009 00:40:59,160 --> 00:41:01,020 It does not replace good security measures 1010 00:41:01,020 --> 00:41:02,700 such as protecting your passwords. 1011 00:41:03,140 --> 00:41:05,300 If you're using services like POP and IMAP, 1012 00:41:05,340 --> 00:41:07,460 you just need to make sure you take other measures too 1013 00:41:07,460 --> 00:41:08,520 that are a little bit more robust. 1014 00:41:10,380 --> 00:41:11,800 Closing thoughts are pretty straightforward. 1015 00:41:12,460 --> 00:41:14,360 I'm real big on paying attention to your systems. 1016 00:41:14,460 --> 00:41:15,720 They're almost always going to tell you 1017 00:41:15,720 --> 00:41:16,340 when there's a problem. 1018 00:41:16,460 --> 00:41:19,700 I can't exaggerate that enough. 1019 00:41:21,640 --> 00:41:23,540 You need to be aware of other activity 1020 00:41:23,540 --> 00:41:24,460 on your network too, 1021 00:41:24,820 --> 00:41:25,800 such as increased network traffic 1022 00:41:25,800 --> 00:41:26,940 at certain hours of the day. 1023 00:41:27,580 --> 00:41:29,500 Maybe network devices aren't functioning 1024 00:41:29,500 --> 00:41:30,200 as they should. 1025 00:41:30,480 --> 00:41:32,440 Maybe a password all of a sudden doesn't work 1026 00:41:32,440 --> 00:41:34,040 the way it used to and nobody on your team 1027 00:41:34,040 --> 00:41:34,720 has changed it. 1028 00:41:34,760 --> 00:41:36,500 All these things are just little subtle indicators 1029 00:41:36,500 --> 00:41:37,280 that there's a problem. 1030 00:41:37,640 --> 00:41:40,620 The last thing, using bug track and other security forms 1031 00:41:40,620 --> 00:41:42,740 is a very great way to stay informed 1032 00:41:42,740 --> 00:41:43,800 of the latest problems. 1033 00:41:44,960 --> 00:41:46,960 And Q&A links, I only put two there. 1034 00:41:47,100 --> 00:41:48,980 One is for my webpage. 1035 00:41:49,360 --> 00:41:52,220 It has the papers and tools there. 1036 00:41:54,820 --> 00:41:56,620 There's a lot of free tools and security papers 1037 00:41:56,620 --> 00:41:57,580 really well organized. 1038 00:41:58,360 --> 00:42:00,780 I would put up, I normally put up 1039 00:42:00,780 --> 00:42:02,280 packet storm security, 1040 00:42:02,620 --> 00:42:04,540 but there's a certain individual 1041 00:42:04,540 --> 00:42:06,800 on the net who likes causing problems 1042 00:42:06,800 --> 00:42:08,480 for people and I'm not sure of the state 1043 00:42:08,480 --> 00:42:09,360 of the site right now. 1044 00:42:10,160 --> 00:42:11,960 It's unfortunate. It's a very nice site. 1045 00:42:13,760 --> 00:42:14,200 Questions? 1046 00:42:16,980 --> 00:42:17,420 Comments? 1047 00:42:18,420 --> 00:42:18,860 Yes? 1048 00:42:21,000 --> 00:42:21,940 Yes, I'm sorry. 1049 00:42:23,000 --> 00:42:24,560 Presentations I do, I always put them up 1050 00:42:24,820 --> 00:42:24,940 on the web. 1051 00:42:25,440 --> 00:42:27,260 This will be up on the web when I get back. 1052 00:42:41,780 --> 00:42:43,080 Yeah, I agree. 1053 00:42:43,300 --> 00:42:45,980 I like to make tools that kind of 1054 00:42:46,560 --> 00:42:48,740 can last for a long time between updates 1055 00:42:48,740 --> 00:42:49,420 for that reason. 1056 00:42:49,820 --> 00:42:52,100 It does take a lot of work to write software. 1057 00:42:52,260 --> 00:42:53,180 It's all in my spare time. 1058 00:42:54,820 --> 00:42:56,220 I try to do at least a few hours a week. 1059 00:42:56,340 --> 00:42:58,440 Sometimes I'll do four to eight hours a day 1060 00:42:58,440 --> 00:43:00,660 if I can, but of late 1061 00:43:00,660 --> 00:43:02,780 it's actually been less than a couple hours a week 1062 00:43:02,780 --> 00:43:04,120 and that's just for a variety of circumstances 1063 00:43:04,120 --> 00:43:05,260 related to work. 1064 00:43:06,180 --> 00:43:07,120 My real work. 1065 00:43:17,460 --> 00:43:18,260 Well, ideally 1066 00:43:18,260 --> 00:43:19,460 they hit the first port. 1067 00:43:20,040 --> 00:43:22,360 What I'll do, if you're doing the basic TCP 1068 00:43:22,360 --> 00:43:24,600 binding, I always have it bind like a few of the 1069 00:43:24,820 --> 00:43:25,820 ports first. 1070 00:43:26,020 --> 00:43:28,280 If they're doing like a sequential scan, they hit those first 1071 00:43:28,280 --> 00:43:30,120 and by the time they get up to 1072 00:43:30,120 --> 00:43:32,240 a higher port, they've already been dropped. 1073 00:43:32,660 --> 00:43:34,720 If you're on like a fast internet with 1074 00:43:34,720 --> 00:43:36,720 Nmap, it may be able to hit quite 1075 00:43:36,720 --> 00:43:38,720 a few ports before they get dropped because the machines 1076 00:43:38,720 --> 00:43:40,720 aren't reacting fast enough and they just sprayed a bunch 1077 00:43:40,720 --> 00:43:42,400 of packets, but if they're coming in over the internet 1078 00:43:42,400 --> 00:43:44,680 where the links are a lot slower, they may hit 1079 00:43:44,680 --> 00:43:46,200 one port and then 1080 00:43:46,660 --> 00:43:48,760 one, maybe two ports and then by that 1081 00:43:48,760 --> 00:43:50,460 time they're dropped and you just kind of vanish. 1082 00:43:53,280 --> 00:43:53,780 I'm sorry. 1083 00:43:57,200 --> 00:43:58,080 . 1084 00:44:00,580 --> 00:44:01,220 I'm sorry. 1085 00:44:04,480 --> 00:44:04,920 . 1086 00:44:07,560 --> 00:44:08,440 . 1087 00:44:10,360 --> 00:44:11,240 . 1088 00:44:14,200 --> 00:44:15,080 . 1089 00:44:15,080 --> 00:44:15,980 . 1090 00:44:15,980 --> 00:44:16,400 . 1091 00:44:16,400 --> 00:44:17,840 . 1092 00:44:18,600 --> 00:44:20,680 Well, if someone is 1093 00:44:20,680 --> 00:44:22,660 forging packets to complete their port scan, 1094 00:44:22,820 --> 00:44:24,680 are you asking are they 1095 00:44:24,820 --> 00:44:26,680 forging packets to cause a denial of service? 1096 00:44:27,960 --> 00:44:28,380 . 1097 00:44:28,380 --> 00:44:28,600 . 1098 00:44:28,600 --> 00:44:28,620 . 1099 00:44:30,660 --> 00:44:31,080 . 1100 00:44:31,080 --> 00:44:31,120 . 1101 00:44:31,120 --> 00:44:31,220 . 1102 00:44:31,220 --> 00:44:31,280 . 1103 00:44:31,280 --> 00:44:31,360 . 1104 00:44:31,360 --> 00:44:31,400 . 1105 00:44:31,400 --> 00:44:31,600 . 1106 00:44:31,600 --> 00:44:31,700 . 1107 00:44:31,700 --> 00:44:32,320 . 1108 00:44:32,320 --> 00:44:32,800 . 1109 00:44:33,200 --> 00:44:33,480 . 1110 00:44:35,740 --> 00:44:36,020 . 1111 00:44:45,760 --> 00:44:46,040 . 1112 00:44:46,040 --> 00:44:46,200 . 1113 00:44:46,200 --> 00:44:46,240 . 1114 00:44:46,240 --> 00:44:46,320 . 1115 00:44:46,320 --> 00:44:46,400 . 1116 00:44:46,400 --> 00:44:46,460 . 1117 00:44:46,460 --> 00:44:46,600 . 1118 00:44:46,600 --> 00:44:46,620 . 1119 00:44:46,620 --> 00:44:46,640 . 1120 00:44:56,060 --> 00:44:56,340 . 1121 00:44:59,860 --> 00:45:00,140 . 1122 00:45:00,580 --> 00:45:00,620 . 1123 00:45:06,140 --> 00:45:06,180 . 1124 00:45:12,960 --> 00:45:13,000 . 1125 00:45:13,080 --> 00:45:13,120 . 1126 00:45:13,340 --> 00:45:13,380 . 1127 00:45:13,380 --> 00:45:13,400 . 1128 00:45:13,400 --> 00:45:13,420 . 1129 00:45:13,420 --> 00:45:13,440 . 1130 00:45:13,440 --> 00:45:13,460 . 1131 00:45:13,460 --> 00:45:13,480 . 1132 00:45:13,480 --> 00:45:13,500 . 1133 00:45:13,500 --> 00:45:13,520 . 1134 00:45:13,520 --> 00:45:13,860 . 1135 00:45:13,860 --> 00:45:15,080 . 1136 00:45:18,760 --> 00:45:19,820 . 1137 00:45:19,820 --> 00:45:20,540 . 1138 00:45:20,540 --> 00:45:20,580 . 1139 00:45:22,940 --> 00:45:24,000 . 1140 00:45:24,000 --> 00:45:24,040 . 1141 00:45:24,040 --> 00:45:24,100 . 1142 00:45:24,100 --> 00:45:24,260 . 1143 00:45:27,680 --> 00:45:28,120 . 1144 00:45:33,960 --> 00:45:34,840 . 1145 00:45:34,840 --> 00:45:35,280 . 1146 00:45:35,280 --> 00:45:35,760 . 1147 00:45:35,760 --> 00:45:35,800 . 1148 00:45:35,800 --> 00:45:35,820 . 1149 00:45:35,820 --> 00:45:35,840 . 1150 00:45:35,840 --> 00:45:35,860 . 1151 00:45:51,520 --> 00:45:52,400 . 1152 00:45:52,400 --> 00:45:54,080 . 1153 00:45:56,180 --> 00:45:57,560 . 1154 00:45:57,470 --> 00:45:58,160 . 1155 00:46:08,960 --> 00:46:10,340 . 1156 00:46:10,340 --> 00:46:10,360 . 1157 00:46:10,360 --> 00:46:10,380 . 1158 00:46:10,380 --> 00:46:12,340 . 1159 00:46:12,340 --> 00:46:14,520 . 1160 00:46:14,520 --> 00:46:14,540 . 1161 00:46:14,540 --> 00:46:14,560 . 1162 00:46:14,560 --> 00:46:14,580 . 1163 00:46:14,580 --> 00:46:15,360 . 1164 00:46:15,360 --> 00:46:15,380 . 1165 00:46:17,800 --> 00:46:19,180 . 1166 00:46:19,180 --> 00:46:20,820 . 1167 00:46:24,100 --> 00:46:24,260 . 1168 00:46:25,520 --> 00:46:25,680 . 1169 00:46:39,920 --> 00:46:40,080 . 1170 00:46:40,080 --> 00:46:40,100 . 1171 00:46:40,100 --> 00:46:40,120 . 1172 00:46:40,120 --> 00:46:40,140 . 1173 00:46:40,140 --> 00:46:40,260 . 1174 00:46:40,260 --> 00:46:40,300 . 1175 00:46:40,300 --> 00:46:40,580 . 1176 00:46:40,580 --> 00:46:40,660 . 1177 00:46:40,660 --> 00:46:40,700 . 1178 00:46:40,700 --> 00:46:40,760 . 1179 00:46:42,000 --> 00:46:42,160 . 1180 00:46:54,380 --> 00:46:55,320 . 1181 00:46:57,930 --> 00:46:58,400 . 1182 00:47:08,440 --> 00:47:09,380 . 1183 00:47:09,380 --> 00:47:09,400 . 1184 00:47:09,400 --> 00:47:09,460 . 1185 00:47:09,460 --> 00:47:10,340 . 1186 00:47:10,340 --> 00:47:10,360 . 1187 00:47:10,360 --> 00:47:10,380 . 1188 00:47:10,380 --> 00:47:10,400 . 1189 00:47:14,040 --> 00:47:14,980 . 1190 00:47:14,980 --> 00:47:15,960 and you may not catch it. 1191 00:47:16,420 --> 00:47:18,600 And there was, like I said, there were some other tools 1192 00:47:18,600 --> 00:47:20,680 that I think the SNI people were playing with 1193 00:47:21,050 --> 00:47:24,340 that would do timing, check the timing against it. 1194 00:47:24,500 --> 00:47:27,660 The really only thing you could do is go to each host 1195 00:47:27,660 --> 00:47:30,260 and you could check for promiscuous is on, 1196 00:47:30,360 --> 00:47:32,840 then they can hack that so it looks like it's off 1197 00:47:32,840 --> 00:47:34,780 if they've rootkitted your ifconfig. 1198 00:47:35,500 --> 00:47:36,940 But there are other utilities available 1199 00:47:36,940 --> 00:47:40,700 that you can compile on a secure box 1200 00:47:40,700 --> 00:47:42,320 and bring onto that system and run them 1201 00:47:42,320 --> 00:47:43,880 and they can look at the network card directly 1202 00:47:43,880 --> 00:47:45,840 and maybe tell you whether or not 1203 00:47:45,840 --> 00:47:47,160 that thing's in promiscuous mode. 1204 00:47:47,320 --> 00:47:50,720 Another indicator, too, is just very high CPE utilization 1205 00:47:50,720 --> 00:47:52,140 or an odd process name. 1206 00:47:52,360 --> 00:47:54,840 Again, they could've went in, rootkitted PS command 1207 00:47:54,840 --> 00:47:57,940 or anything else, but if you bring in a secure set of tools, 1208 00:47:58,080 --> 00:47:59,420 you can sometimes spot it that way. 1209 00:47:59,740 --> 00:48:01,240 High CPE's a pretty good indicator. 1210 00:48:16,620 --> 00:48:18,320 Did the Loft release your tool yet? 1211 00:48:19,460 --> 00:48:21,420 Okay, yeah, I haven't seen it yet. 1212 00:48:21,460 --> 00:48:22,780 I really am interested in looking at it. 1213 00:48:22,840 --> 00:48:23,400 It sounds what I need. 1214 00:48:23,740 --> 00:48:26,920 The Loft is releasing a tool called, I think, anti-SNF, 1215 00:48:27,380 --> 00:48:29,960 which may be able to help some of what you're talking about. 1216 00:48:30,040 --> 00:48:31,260 I'm sorry I don't have more information. 1217 00:48:32,260 --> 00:48:33,480 I like to look at it myself. 1218 00:48:33,580 --> 00:48:34,560 It sounds very useful. 1219 00:48:41,200 --> 00:48:42,680 I think CERT had one. 1220 00:48:43,880 --> 00:48:45,720 CERT had one or two at their website 1221 00:48:45,720 --> 00:48:47,820 that can detect promiscuous mode. 1222 00:48:49,040 --> 00:48:51,180 Of course, you can use ifconfig on the box. 1223 00:48:51,220 --> 00:48:52,360 That'll tell you if it's promiscuous, 1224 00:48:52,360 --> 00:48:54,020 but again, if they've gone in there and changed that 1225 00:48:54,020 --> 00:48:55,280 or if they've done something, 1226 00:48:55,340 --> 00:48:58,640 some kind of loadable kernel module or something, 1227 00:48:58,740 --> 00:49:00,620 obscure that fact, you might have a real problem. 1228 00:49:02,060 --> 00:49:02,500 Yes? 1229 00:49:03,700 --> 00:49:04,140 Yeah. 1230 00:49:04,140 --> 00:49:05,680 Well, Stanford, if someone did it wrong, 1231 00:49:05,840 --> 00:49:07,340 there is no way to tell 1232 00:49:07,340 --> 00:49:09,780 whether the business is backing the wire 1233 00:49:09,780 --> 00:49:11,000 or if it fucking does something. 1234 00:49:11,000 --> 00:49:13,860 Yeah, but that gets in there religiously. 1235 00:49:13,860 --> 00:49:14,000 Sure. 1236 00:49:15,020 --> 00:49:16,940 There's a lot of unusual ways of doing it. 1237 00:49:17,340 --> 00:49:19,660 If someone was entirely used to it 1238 00:49:19,660 --> 00:49:21,120 and never really, you know, 1239 00:49:21,180 --> 00:49:23,100 they just set up a device and set it up. 1240 00:49:23,480 --> 00:49:26,800 Yeah, I agree. 1241 00:49:27,080 --> 00:49:29,800 I mean, if someone puts up a promiscuous mode card 1242 00:49:29,800 --> 00:49:33,520 that has no addresses or network protocols bound to it, 1243 00:49:33,620 --> 00:49:35,460 it could probably be a real problem, but. 1244 00:49:35,620 --> 00:49:36,700 It's got a oscilloscope, you know. 1245 00:49:36,840 --> 00:49:37,280 Yeah. 1246 00:49:39,420 --> 00:49:40,300 Anyone else? 1247 00:49:43,860 --> 00:49:44,840 Yeah.