1 00:00:12,800 --> 00:00:16,160 I am sure you'll be very underwhelmed by my presentation, so please don't clap. 2 00:00:17,800 --> 00:00:22,980 Starting off, we're going to be talking about anomaly-based intrusion detection systems and why is a hack source best friend? 3 00:00:23,680 --> 00:00:25,820 First, before I start, let me ask a couple of questions. 4 00:00:25,920 --> 00:00:28,780 How many people here are familiar with anomaly-based intrusion detection systems? 5 00:00:29,440 --> 00:00:32,260 Wow. That's pretty cool. 6 00:00:32,800 --> 00:00:35,140 Normally, when you go out to other places, people have never heard of them. 7 00:00:35,380 --> 00:00:36,700 How many people have worked with them? 8 00:00:38,180 --> 00:00:39,400 That's still a pretty good number. 9 00:00:40,840 --> 00:00:45,720 If any time during this speech you have a question or concern, please get my attention. 10 00:00:45,860 --> 00:00:47,760 I'm kind of blind, so you have to shoot up flares or something. 11 00:00:48,480 --> 00:00:51,040 But if I get my attention, I'll be more than happy to mitigate your question. 12 00:00:51,280 --> 00:00:51,620 Yes? 13 00:00:53,540 --> 00:00:54,920 Do I have any connection with ISS? 14 00:00:55,920 --> 00:00:56,280 No. 15 00:00:57,920 --> 00:00:58,760 Even though I'm in Atlanta? 16 00:00:58,780 --> 00:01:02,260 You know, it's a popular misconception that everybody in Atlanta works for ISS. 17 00:01:03,240 --> 00:01:04,700 But it's actually not true. 18 00:01:04,800 --> 00:01:07,140 There's four people that don't work for ISS, and I'm one of them. 19 00:01:09,180 --> 00:01:11,580 We're going to start off with the history of the castle. 20 00:01:13,080 --> 00:01:16,860 What is anomaly-based intrusion detection, and how does it differ from signature-based systems? 21 00:01:17,700 --> 00:01:24,240 Well, basically, intrusion detection has had the signature-based system for quite a long time. 22 00:01:24,300 --> 00:01:28,180 Basically, it looks for a static thing in a packet. 23 00:01:28,780 --> 00:01:32,820 It's like a certain string or whatnot that will identify it as a certain type of attack. 24 00:01:33,540 --> 00:01:39,920 For instance, password file formats or whatnot. 25 00:01:40,960 --> 00:01:46,840 Anomaly-based intrusion detection systems rely mostly on creating a network baseline, 26 00:01:47,160 --> 00:01:53,180 something that it can compare against, and then checking how much a host or a network segment will vary from that. 27 00:01:53,500 --> 00:01:57,840 Meaning that over time, as things grow, 28 00:01:57,840 --> 00:02:02,140 the theory is that your network's not going to change much. 29 00:02:02,260 --> 00:02:10,580 And if it does change much, the anomaly-based intrusion detection system should be able to integrate with that. 30 00:02:10,780 --> 00:02:13,040 However, when attacks happen, something that's unusual, 31 00:02:13,380 --> 00:02:18,440 something like a new port being opened that people are communicating heavily with, 32 00:02:18,580 --> 00:02:21,300 a new web server that's running, a new application, 33 00:02:21,900 --> 00:02:25,720 it will be able to detect this quickly, and you can respond to it. 34 00:02:27,100 --> 00:02:28,440 Where do they come from? 35 00:02:28,600 --> 00:02:35,580 Well, anomaly-based intrusion detection systems have a birthplace in a gap in the signature-based system. 36 00:02:35,660 --> 00:02:41,020 Signature-based systems have a problem because they require a signature to work. 37 00:02:41,200 --> 00:02:43,480 They require that you know about the attack. 38 00:02:43,880 --> 00:02:48,540 And if your attack is zero-day, then there's generally not many signatures for it. 39 00:02:48,600 --> 00:02:54,700 So if you know an attack that no one else does, it can go on for quite some time until it's covered attacking and compromising hosts. 40 00:02:55,720 --> 00:02:57,500 With reckless abandon, basically. 41 00:02:58,020 --> 00:03:04,800 So until there's something developed to mitigate this, there was not much you can do. 42 00:03:05,960 --> 00:03:08,600 That's where anomaly-based intrusion detection systems came from. 43 00:03:08,700 --> 00:03:10,760 They're just looking for things out of the ordinary. 44 00:03:11,120 --> 00:03:12,400 What drives their development? 45 00:03:12,480 --> 00:03:14,680 That's that gap we talked about, I just mentioned. 46 00:03:14,840 --> 00:03:20,920 The gap between the creation of the exploit and the creation of the signature for the system. 47 00:03:22,560 --> 00:03:25,240 How anomaly-based intrusion detection systems work. 48 00:03:25,860 --> 00:03:28,460 A baseline is normally gathered during a tuning phase. 49 00:03:28,720 --> 00:03:34,400 This means that in order to create a baseline, the anomaly-based intrusion detection system has to run for a certain amount of time on your network 50 00:03:34,400 --> 00:03:38,380 to gather enough data to decide what is normal and what is not. 51 00:03:39,280 --> 00:03:43,660 The tuning phase ranges between products, but it goes from three days to a month. 52 00:03:48,700 --> 00:03:49,360 Say again? 53 00:03:49,780 --> 00:03:50,260 . 54 00:03:54,180 --> 00:03:55,700 It depends on how the... 55 00:03:55,700 --> 00:03:56,920 The particular system is implemented. 56 00:03:58,240 --> 00:03:58,760 . 57 00:04:08,120 --> 00:04:11,680 This is true, but then that's a protocol anomaly-based intrusion detection system. 58 00:04:11,820 --> 00:04:14,700 Not a general anomaly-based intrusion detection system. 59 00:04:14,980 --> 00:04:21,320 What he's asking is if you have an intrusion detection system that just looks for packet anomalies. 60 00:04:21,380 --> 00:04:25,640 For instance, your sequence number is out of the range of a RFC sequence number. 61 00:04:25,640 --> 00:04:29,500 Or if you have flags set that shouldn't be set in concert. 62 00:04:30,420 --> 00:04:36,760 That is also a type of anomaly-based intrusion detection that most vendors do implement, behavioral-based systems. 63 00:04:37,160 --> 00:04:44,260 However, unless you have a really dumb attacker, you don't have much use for that. 64 00:04:44,420 --> 00:04:50,280 Because most people who write attacks now don't really want to vary from the RFC. 65 00:04:50,620 --> 00:04:54,020 Because the signature-based systems can also detect these. 66 00:04:54,020 --> 00:04:56,740 If you have a tight enough system. 67 00:04:59,200 --> 00:05:00,260 Does that answer your question? 68 00:05:02,560 --> 00:05:03,240 All right. 69 00:05:03,900 --> 00:05:05,280 The theory behind them. 70 00:05:06,520 --> 00:05:08,380 Traffic that's not seen before is bad. 71 00:05:08,880 --> 00:05:15,460 This basically means that when you go through your auto-tuning phase, you're creating a baseline. 72 00:05:15,760 --> 00:05:20,760 And things that are not seen during your baseline are exceptions or generally bad. 73 00:05:21,120 --> 00:05:22,840 An example of this would be you have a network. 74 00:05:22,840 --> 00:05:24,620 You create your baseline for your network. 75 00:05:24,720 --> 00:05:27,640 A week later, you have somebody who installs Windows Media Player, for instance. 76 00:05:28,180 --> 00:05:36,780 And then when they run Windows Media Player to get streaming content, the anomaly-based system will pick it up and flag it. 77 00:05:37,060 --> 00:05:41,160 Which actually takes security admins a certain amount of time to mitigate. 78 00:05:41,520 --> 00:05:42,420 They've got to research this. 79 00:05:43,820 --> 00:05:46,180 Attacks can cause things that the system has not seen before. 80 00:05:46,500 --> 00:05:52,120 This is basically relying on the theory that if you're going to attack this system, there's got to be something about your attack. 81 00:05:52,120 --> 00:05:58,040 That is going to be strange or outside the norm of activity generally seen for this system. 82 00:05:59,020 --> 00:06:01,160 That's not true in all cases. 83 00:06:03,900 --> 00:06:06,500 Can science brood and research labs work in the wild? 84 00:06:06,600 --> 00:06:15,400 This is an interesting question because most of the behavioral based anomaly intrusion detection systems are based on theory and proofs. 85 00:06:15,520 --> 00:06:20,240 Meaning that if there's formulas to everything. 86 00:06:20,400 --> 00:06:20,960 They... 87 00:06:22,120 --> 00:06:28,680 It doesn't take well into account growing networks or changes in different environments. 88 00:06:29,160 --> 00:06:32,440 Basically, they think that everything is easily representable. 89 00:06:34,480 --> 00:06:36,840 AKS can build rockets, but can they build security products? 90 00:06:37,180 --> 00:06:45,060 My point in this statement is unless you've actually looked at network flows for a long time. 91 00:06:45,120 --> 00:06:48,360 And have spent a long time looking at and debugging network problems. 92 00:06:48,660 --> 00:06:52,040 You'll realize that you don't have the ability. 93 00:06:52,040 --> 00:06:54,960 To easily referenceable new attacks that you haven't seen before. 94 00:06:55,600 --> 00:06:57,040 I'll get to more of that later. 95 00:06:57,160 --> 00:06:57,980 Hardware based considerations. 96 00:06:59,240 --> 00:07:06,120 The anomaly based intrusion detection systems require slightly different hardware than signature based. 97 00:07:06,960 --> 00:07:10,580 They're generally going to be your standard x86 systems with high speed cards. 98 00:07:12,440 --> 00:07:15,440 But they need to be a little bit more scalable. 99 00:07:15,540 --> 00:07:19,740 Most anomaly based intrusion detections do look at things like protocol headers and leave payloads out. 100 00:07:20,000 --> 00:07:21,960 So generally they're a little bit faster. 101 00:07:21,960 --> 00:07:24,660 Than signature based systems that have to actually inspect the payload. 102 00:07:25,840 --> 00:07:28,880 However, there are some things that you need to keep in mind. 103 00:07:29,120 --> 00:07:32,100 One of these is the amount of data you're gathering. 104 00:07:32,320 --> 00:07:35,400 To make it an efficient anomaly based intrusion detection system. 105 00:07:35,540 --> 00:07:37,740 You have to gather enough data to do trending over time. 106 00:07:38,120 --> 00:07:40,880 You basically have to be able to take your baseline and augment it. 107 00:07:41,240 --> 00:07:46,940 That requires a lot of overhead. 108 00:07:47,300 --> 00:07:48,500 As far as speed goes. 109 00:07:48,760 --> 00:07:51,060 You need to make sure that your sniffer. 110 00:07:51,060 --> 00:07:52,300 Is fast. 111 00:07:52,620 --> 00:07:54,040 In addition to that. 112 00:07:54,100 --> 00:07:57,720 You need enough juice left in your processor to run your engine. 113 00:07:58,040 --> 00:07:58,520 Basically. 114 00:07:58,720 --> 00:08:01,240 And this isn't that big a deal on a class C. 115 00:08:01,440 --> 00:08:03,480 But when you get to a class B level or greater. 116 00:08:03,920 --> 00:08:05,960 This becomes a very big deal. 117 00:08:08,360 --> 00:08:10,320 The CASL is built on a shaky foundation. 118 00:08:10,540 --> 00:08:11,960 It's built on a foundation of science basically. 119 00:08:12,100 --> 00:08:13,280 Like I mentioned before. 120 00:08:13,700 --> 00:08:15,580 About the proofs and what not. 121 00:08:17,220 --> 00:08:17,700 You. 122 00:08:19,640 --> 00:08:20,700 You have basically. 123 00:08:20,700 --> 00:08:22,440 You're starting with a problem that has an unwieldy size. 124 00:08:22,560 --> 00:08:24,880 You have to gather all the data on your network. 125 00:08:25,020 --> 00:08:25,720 To make this work. 126 00:08:26,760 --> 00:08:28,840 Generally over a period of time. 127 00:08:29,660 --> 00:08:31,040 That's obviously a lot of data. 128 00:08:31,860 --> 00:08:34,700 So you have problems with this with data structures and memory. 129 00:08:34,840 --> 00:08:35,940 You have problems with hardware limitations. 130 00:08:36,580 --> 00:08:40,000 And you have problems with the integrating network changes into this. 131 00:08:40,180 --> 00:08:42,960 Meaning that if you suddenly decide you want to bring up a new network. 132 00:08:43,140 --> 00:08:44,260 Or a new set of hosts. 133 00:08:45,800 --> 00:08:47,540 That hasn't been seen by the system before. 134 00:08:47,920 --> 00:08:48,740 You're going to have to. 135 00:08:48,780 --> 00:08:49,380 You're going to have to. 136 00:08:49,380 --> 00:08:51,920 Go through a learning phase again. 137 00:08:51,960 --> 00:08:54,920 Basically to integrate this into your system. 138 00:08:55,460 --> 00:08:56,840 Which can be a problem. 139 00:08:56,980 --> 00:08:58,600 And offers an opportunity for attack. 140 00:09:00,100 --> 00:09:03,140 And there's some things that most anomaly based systems assume. 141 00:09:03,600 --> 00:09:04,680 Once again when I say anomaly. 142 00:09:04,840 --> 00:09:06,720 I mean all types of anomaly. 143 00:09:06,860 --> 00:09:07,960 Not just behavioral systems. 144 00:09:11,120 --> 00:09:12,660 What hasn't seen before is bad. 145 00:09:13,120 --> 00:09:14,280 Machines have normal patterns. 146 00:09:14,440 --> 00:09:15,660 It can be easily distinguished. 147 00:09:15,900 --> 00:09:16,900 And networks don't change. 148 00:09:17,000 --> 00:09:18,380 This is somewhat of a half truth. 149 00:09:18,380 --> 00:09:21,300 Basically I talked about this briefly before. 150 00:09:21,600 --> 00:09:22,760 But let me expand a little bit. 151 00:09:23,560 --> 00:09:26,480 An anomaly based intrusion detection works on the principle that. 152 00:09:28,020 --> 00:09:29,160 It's going to create a baseline. 153 00:09:29,660 --> 00:09:33,380 And over time it will work based on that baseline. 154 00:09:33,580 --> 00:09:35,420 And only evaluate changes to it. 155 00:09:37,600 --> 00:09:41,620 Unless you have a system that integrates changes to a network over time. 156 00:09:43,120 --> 00:09:44,160 You're going to have some problems. 157 00:09:44,400 --> 00:09:46,240 Because there's no network that doesn't grow. 158 00:09:46,560 --> 00:09:47,540 In my experience. 159 00:09:47,540 --> 00:09:49,340 Of nine years of consulting. 160 00:09:49,500 --> 00:09:51,280 I've never seen a network that doesn't grow over time. 161 00:09:52,400 --> 00:09:56,140 This will raise problems with administrators for anomaly based systems. 162 00:09:56,380 --> 00:09:59,800 Because they have to integrate these changes into the network. 163 00:10:00,740 --> 00:10:02,260 Machines have normal patterns. 164 00:10:02,640 --> 00:10:03,960 It's kind of a strange thing. 165 00:10:04,320 --> 00:10:06,320 Unless you understand your operating system thoroughly. 166 00:10:06,720 --> 00:10:10,960 You can't exactly understand everything your operating system does. 167 00:10:11,320 --> 00:10:13,860 An example is a random broadcast from a host. 168 00:10:13,940 --> 00:10:16,420 For a rendezvous for example. 169 00:10:18,540 --> 00:10:19,700 Things such as this. 170 00:10:20,680 --> 00:10:22,460 Networks that don't change is a fallacy. 171 00:10:22,500 --> 00:10:23,680 Networks are always changing. 172 00:10:23,880 --> 00:10:26,040 They very seldomly stay the same. 173 00:10:26,100 --> 00:10:27,200 Unless you work for the Department of Defense. 174 00:10:28,880 --> 00:10:30,920 Why is it hard to tell good traffic from bad traffic? 175 00:10:31,080 --> 00:10:32,980 An anomaly based systems rarely look at the payload. 176 00:10:33,120 --> 00:10:34,740 There are some that will inspect the payload. 177 00:10:34,880 --> 00:10:35,860 But many of them don't. 178 00:10:35,880 --> 00:10:36,760 They don't care about the payload. 179 00:10:37,100 --> 00:10:39,780 They're looking at your headers for things like protocol anomalies. 180 00:10:40,060 --> 00:10:41,560 Or they're looking for flow information. 181 00:10:41,700 --> 00:10:44,780 For things that are doing stuff that hasn't been seen before. 182 00:10:45,120 --> 00:10:45,680 For instance. 183 00:10:45,680 --> 00:10:46,760 Talking to new hosts. 184 00:10:47,120 --> 00:10:50,640 And talking to hosts that hasn't been seen before. 185 00:10:50,860 --> 00:10:56,320 Talking on services that hasn't been seen before. 186 00:10:57,540 --> 00:10:59,400 This is a serious problem. 187 00:10:59,520 --> 00:11:02,360 Because most attacks you need a payload. 188 00:11:02,580 --> 00:11:04,040 To understand what's going on. 189 00:11:04,400 --> 00:11:06,680 If a network runs in a non standard configuration. 190 00:11:06,860 --> 00:11:07,600 There are problems. 191 00:11:08,720 --> 00:11:11,380 This basically means if you have in house developed applications. 192 00:11:11,720 --> 00:11:13,700 Or things that aren't generally. 193 00:11:14,320 --> 00:11:15,660 That are developed in house. 194 00:11:15,660 --> 00:11:19,440 Most anomaly based intrusion detection systems have problems with these. 195 00:11:19,600 --> 00:11:21,500 Which is an easily exploitable avenue. 196 00:11:22,580 --> 00:11:25,020 Attacks against commonly used services on machines are ignored. 197 00:11:25,540 --> 00:11:28,940 An example of this are web server attacks against public web servers that go unnoticed. 198 00:11:29,200 --> 00:11:31,340 An example of this would be if I had a. 199 00:11:31,600 --> 00:11:35,260 If there was a machine on your network that was serving port 80 to the world. 200 00:11:35,480 --> 00:11:37,400 And I wanted to attack this. 201 00:11:41,140 --> 00:11:42,820 Based on the. 202 00:11:42,820 --> 00:11:45,780 The model the anomaly based intrusion detection system gives. 203 00:11:46,400 --> 00:11:49,480 I can easily attack and compromise this host. 204 00:11:49,860 --> 00:11:54,240 And the anomaly based intrusion detection system won't see much of a problem with this. 205 00:11:54,280 --> 00:11:54,940 Because all it will see. 206 00:11:55,260 --> 00:11:57,340 Is data flowing to and from the host. 207 00:11:57,500 --> 00:11:58,120 Which is normal. 208 00:11:58,540 --> 00:11:59,460 Like I said before. 209 00:11:59,600 --> 00:12:02,320 Most anomaly based intrusion detection systems rely on flows. 210 00:12:02,720 --> 00:12:04,000 Am I going too fast? 211 00:12:05,660 --> 00:12:06,180 Alright. 212 00:12:07,620 --> 00:12:08,260 Say again. 213 00:12:09,880 --> 00:12:10,400 Louder. 214 00:12:10,860 --> 00:12:11,380 Louder. 215 00:12:14,120 --> 00:12:14,520 Louder. 216 00:12:14,520 --> 00:12:14,720 Louder. 217 00:12:14,840 --> 00:12:15,860 Sorry about this. 218 00:12:15,900 --> 00:12:17,460 This is my first time really speaking in public. 219 00:12:17,580 --> 00:12:19,900 My parents kept me locked up for a long time. 220 00:12:21,540 --> 00:12:22,120 Don't laugh. 221 00:12:22,220 --> 00:12:22,500 I'm serious. 222 00:12:22,660 --> 00:12:22,820 I'm serious. 223 00:12:24,400 --> 00:12:27,300 Well this example it sends to many things. 224 00:12:27,500 --> 00:12:30,680 If you run most services that are open to the world. 225 00:12:30,780 --> 00:12:32,500 For instance if you're a public web server. 226 00:12:32,620 --> 00:12:35,100 If you do DNS for other companies. 227 00:12:35,420 --> 00:12:38,680 If you run a lot of services that are generally open to the world. 228 00:12:38,840 --> 00:12:41,360 That you're used to a lot of different hosts speaking to. 229 00:12:41,360 --> 00:12:45,160 Most anomaly based intrusion detection systems will have problems with these. 230 00:12:45,980 --> 00:12:47,020 Detecting attacks that is. 231 00:12:47,200 --> 00:12:49,980 Now unless they have a very glaringly obvious problem. 232 00:12:50,200 --> 00:12:52,780 Like a protocol header that doesn't match the RFC. 233 00:12:53,100 --> 00:12:54,300 Or something such as this. 234 00:12:54,400 --> 00:12:55,380 You're not going to see it. 235 00:12:55,820 --> 00:12:57,640 Which is a big problem. 236 00:12:57,800 --> 00:12:59,740 An example of this would be the Apache chunk exploit. 237 00:13:00,660 --> 00:13:01,900 On port 443. 238 00:13:02,220 --> 00:13:06,480 A lot of anomaly based intrusion detection systems will think the traffic to that is just fine. 239 00:13:07,580 --> 00:13:10,740 Because it's used to seeing people talking to and from HTTPS. 240 00:13:10,740 --> 00:13:15,960 When in reality you actually have a glaring payload that says hello I'm an attack. 241 00:13:16,560 --> 00:13:19,940 So keep this in mind when you're attacking networks that have this. 242 00:13:20,420 --> 00:13:23,320 Configuration problems is a serious example. 243 00:13:23,940 --> 00:13:27,560 Most, a lot of anomaly based intrusion detection systems. 244 00:13:27,620 --> 00:13:29,400 Specifically behavioral based systems. 245 00:13:29,560 --> 00:13:31,960 Rely on a concept of inside and outside. 246 00:13:32,800 --> 00:13:36,440 That being that the inside network is what you're protecting. 247 00:13:36,680 --> 00:13:39,060 As your specific range of hosts. 248 00:13:39,060 --> 00:13:41,860 The outside network is everything else. 249 00:13:42,240 --> 00:13:44,680 So if things aren't set up quite right. 250 00:13:44,860 --> 00:13:48,740 You're going to allow communication between hosts that shouldn't be talking. 251 00:13:49,180 --> 00:13:50,520 And that will go unnoticed. 252 00:13:50,840 --> 00:13:55,160 Configuration is a large problem because this is still a relatively new type of product. 253 00:13:55,420 --> 00:13:58,700 So most people who are implementing it have configuration problems. 254 00:13:59,420 --> 00:14:06,320 Such as they are not allowing changes to the network to be integrated into their baseline over time. 255 00:14:06,940 --> 00:14:08,580 This basically means that. 256 00:14:09,060 --> 00:14:11,000 When somebody does start that new Windows media player. 257 00:14:11,180 --> 00:14:14,060 Or they just download AOL instant messenger for the first time. 258 00:14:14,140 --> 00:14:14,720 They run it. 259 00:14:15,900 --> 00:14:17,960 That host will be a high risk. 260 00:14:18,720 --> 00:14:19,960 Basically a high risk host. 261 00:14:20,300 --> 00:14:25,300 Most behavioral based systems and most anomaly based systems in general have a different way of dealing with this. 262 00:14:28,220 --> 00:14:33,520 And this can give administrators varying degrees of headaches. 263 00:14:33,580 --> 00:14:38,680 Based on how those changes are being integrated over time. 264 00:14:39,460 --> 00:14:40,680 I'm sorry I'm really nervous. 265 00:14:46,120 --> 00:14:47,500 How to tear the castle down. 266 00:14:47,660 --> 00:14:49,080 Now I'm going to talk about how to attack it. 267 00:14:49,160 --> 00:14:50,360 And this is actually what I'm really good at. 268 00:14:51,440 --> 00:14:52,900 More noise less accuracy. 269 00:14:53,780 --> 00:14:55,540 Is basically the theory that. 270 00:14:56,280 --> 00:14:57,760 We talked about it briefly before. 271 00:14:57,900 --> 00:15:01,680 If anomaly based intrusion detection system has not seen this type of traffic before. 272 00:15:01,800 --> 00:15:02,420 It's bad. 273 00:15:03,600 --> 00:15:04,840 Now let me give you an example. 274 00:15:05,100 --> 00:15:06,820 Everybody here is familiar with Nessus I'm assuming. 275 00:15:08,400 --> 00:15:13,760 Now if you run a Nessus scan against a set of hosts that are being protected by an anomaly based intrusion detection system. 276 00:15:13,900 --> 00:15:15,220 You'll notice something very funny. 277 00:15:15,620 --> 00:15:18,280 Every one of those hosts is now a very bad host. 278 00:15:18,620 --> 00:15:23,700 The reason for this is the response to your scans is being logged by the state table in the anomaly based system. 279 00:15:23,980 --> 00:15:26,000 And it hasn't seen this type of traffic before. 280 00:15:26,180 --> 00:15:28,160 So generally it's all bad. 281 00:15:28,780 --> 00:15:34,260 So if you want to do a very simple attack on a machine that's used to not seeing much traffic. 282 00:15:34,520 --> 00:15:35,980 The best way to do it. 283 00:15:35,980 --> 00:15:41,900 Is to raise the alert level of every other machine around it. 284 00:15:42,040 --> 00:15:43,960 This is similar to doing an ARP attack. 285 00:15:44,100 --> 00:15:46,720 An ARP storm to hide a port scan. 286 00:15:47,960 --> 00:15:51,660 Properly crafted packets will cause inside machines to veer as attackers. 287 00:15:51,840 --> 00:15:53,500 That's what I was just basically talking about. 288 00:15:54,020 --> 00:15:54,560 You can. 289 00:15:55,400 --> 00:15:57,180 Based on the type of system being used. 290 00:15:57,340 --> 00:16:02,600 It's trivial to craft packets to make those attackers appear to be very very bad. 291 00:16:02,880 --> 00:16:05,960 An example is with the latest 5580. 292 00:16:05,960 --> 00:16:06,580 85808 problem. 293 00:16:07,500 --> 00:16:08,700 Everybody's been reading about that. 294 00:16:08,880 --> 00:16:10,080 It was a month or so ago. 295 00:16:10,400 --> 00:16:11,980 The ISSX force named it Stumbler. 296 00:16:14,360 --> 00:16:14,800 Stumbler. 297 00:16:15,720 --> 00:16:16,160 Right. 298 00:16:17,300 --> 00:16:19,920 The anomaly based intrusion detection system I work with. 299 00:16:20,700 --> 00:16:22,560 Was set to look at that. 300 00:16:23,020 --> 00:16:26,400 Any packet with a payload size of 55808 as a bad packet. 301 00:16:26,840 --> 00:16:30,080 Which made making this machine very slow very easily. 302 00:16:30,180 --> 00:16:32,160 Because then all I had to do was use a tool like Libnet. 303 00:16:32,340 --> 00:16:34,640 To craft packets. 304 00:16:34,640 --> 00:16:35,580 Go into a firewall. 305 00:16:36,220 --> 00:16:39,040 With a send flag set with a window of 55808. 306 00:16:39,160 --> 00:16:41,440 When the packets were being reset and sent back. 307 00:16:41,680 --> 00:16:44,480 They strange enough had the same window size. 308 00:16:44,700 --> 00:16:46,060 And were being flagged as bad packets. 309 00:16:46,340 --> 00:16:48,700 Because the anomaly based intrusion detection system. 310 00:16:48,900 --> 00:16:52,640 Thought that the inside machines were generating these packets. 311 00:16:53,940 --> 00:16:56,560 This allowed all those machines to be very bad. 312 00:16:56,900 --> 00:16:59,320 And the administrator watching this machine. 313 00:16:59,560 --> 00:17:03,180 Missed that one very critical CRC32 exploit that went by. 314 00:17:05,280 --> 00:17:05,980 Covert channels. 315 00:17:06,120 --> 00:17:12,460 This is actually the best way of handling anomaly based intrusion detection systems. 316 00:17:12,740 --> 00:17:14,680 You're basically hiding your data in plain sight. 317 00:17:15,040 --> 00:17:16,080 Is everybody familiar with Loki? 318 00:17:17,720 --> 00:17:18,680 Yeah Loki's bad. 319 00:17:18,800 --> 00:17:20,960 It doesn't work that well with anomaly based intrusion detection systems. 320 00:17:21,120 --> 00:17:24,280 Because it violates that RFC stuff we were talking about before. 321 00:17:24,360 --> 00:17:26,000 That most of these systems love. 322 00:17:26,780 --> 00:17:32,820 Now what would work is something a little different. 323 00:17:32,860 --> 00:17:34,040 Like a low and slow attack. 324 00:17:34,640 --> 00:17:38,880 Meaning that your attack is going very slow and taking a large amount of time. 325 00:17:39,300 --> 00:17:41,340 This isn't a particularly fast thing. 326 00:17:41,760 --> 00:17:47,360 However it will most likely time out the state table and the system itself. 327 00:17:47,820 --> 00:17:52,640 Because what you're trying to do is you're trying to make your traffic appear as normal as possible. 328 00:17:53,260 --> 00:17:59,100 So an easy way of doing this is hiding information in something like a sequence number. 329 00:17:59,380 --> 00:18:01,320 As long as it's following RFC you're good. 330 00:18:01,320 --> 00:18:03,520 Now an example of this. 331 00:18:03,540 --> 00:18:06,920 Let's go back to the 58808 Trojan that was first found by Intrusec. 332 00:18:07,740 --> 00:18:14,960 It was a very simple model that relied on a window size. 333 00:18:15,320 --> 00:18:20,200 Now the versions that were found apparently opened a PCAP filter and sniffed for. 334 00:18:21,120 --> 00:18:21,920 Do you have a question? 335 00:18:23,160 --> 00:18:23,940 Oh I'm sorry. 336 00:18:24,020 --> 00:18:27,200 You stood up so suddenly I thought you were going to throw something at me. 337 00:18:28,800 --> 00:18:31,060 It appeared that it would just open the PCAP filter. 338 00:18:31,320 --> 00:18:33,700 And sniff for anything with that window size. 339 00:18:33,960 --> 00:18:37,880 When it would pull that window size out it would do a conversion on the sequence number. 340 00:18:38,000 --> 00:18:41,120 And based on the sequence number it would be able to extract a new IP address. 341 00:18:41,580 --> 00:18:44,480 That would allow communication to a new host. 342 00:18:44,580 --> 00:18:51,160 That something inside an added network or a firewall network would be able to communicate with. 343 00:18:51,760 --> 00:18:57,020 An example of something like this is something that an anomaly based intrusion detection system would fail at very greatly. 344 00:18:57,340 --> 00:19:01,300 Signature based systems generally have had a better chance of detecting things like this. 345 00:19:01,320 --> 00:19:04,300 Because you have something that's generally alike in the payload. 346 00:19:04,480 --> 00:19:07,880 Unless you're just reading your payload from a random data source. 347 00:19:08,160 --> 00:19:09,540 You can't really... 348 00:19:11,480 --> 00:19:14,320 You have a hard time writing a signature for it. 349 00:19:14,500 --> 00:19:21,460 If you're doing it completely random and relying on your anomaly based intrusion detection system. 350 00:19:22,140 --> 00:19:24,460 This covert channel would go into this. 351 00:19:24,540 --> 00:19:30,360 An example of this attack would be if I have compromised a machine over time on the inside of a network that's being firewalled. 352 00:19:30,360 --> 00:19:32,700 And I have a root kit that's running on this host. 353 00:19:32,940 --> 00:19:34,120 That generates... 354 00:19:34,920 --> 00:19:37,360 That's set to listen for packets with that window size. 355 00:19:38,100 --> 00:19:40,860 Now over time this would be a configurable option. 356 00:19:41,260 --> 00:19:43,220 And the inside host would have to know what it is. 357 00:19:44,300 --> 00:19:45,760 But that's pretty simple. 358 00:19:47,740 --> 00:19:50,620 So I send in a packet with a window size of... 359 00:19:50,620 --> 00:19:52,360 We'll go back to 55808. 360 00:19:52,400 --> 00:19:53,700 It pulls out the IP address. 361 00:19:54,520 --> 00:19:57,320 It starts communicating back to a new host. 362 00:19:57,540 --> 00:19:59,160 But it's doing it at such a slow rate. 363 00:19:59,160 --> 00:20:02,740 That the system thinks that it's either normal traffic or such a low anomaly. 364 00:20:02,840 --> 00:20:05,100 That it bothers not even know warranty is a high risk. 365 00:20:05,880 --> 00:20:11,240 This is generally the easiest way to defeat anomaly based intrusion detection system. 366 00:20:12,180 --> 00:20:13,960 Then we go to everybody's favorite. 367 00:20:14,080 --> 00:20:14,820 If you're a script kitty. 368 00:20:14,920 --> 00:20:15,440 Which is flooding. 369 00:20:15,640 --> 00:20:18,060 Which is you just really get a big pipe and you blast it. 370 00:20:18,740 --> 00:20:21,000 You generally time out the state table. 371 00:20:21,240 --> 00:20:26,600 You create such great events that in some systems you'll have overflows in the state table. 372 00:20:30,240 --> 00:20:32,820 This is a less desired method. 373 00:20:32,900 --> 00:20:34,280 As a very loud method. 374 00:20:34,560 --> 00:20:38,200 And normally the emitters that are doing this will be found. 375 00:20:38,820 --> 00:20:42,140 However it's very useful for a quick and dirty attack. 376 00:20:44,540 --> 00:20:46,120 Braking traffic analysis. 377 00:20:46,440 --> 00:20:48,040 Now we talked about... 378 00:20:48,040 --> 00:20:52,560 We talked briefly about the way a baseline is created. 379 00:20:52,780 --> 00:20:53,900 And what's done with it over time. 380 00:20:54,200 --> 00:20:57,100 Now a lot of these systems have a way that's implemented. 381 00:20:57,280 --> 00:20:58,240 To take changes. 382 00:20:58,240 --> 00:21:00,180 And integrate into the baseline over time. 383 00:21:00,900 --> 00:21:03,160 Now if you have a low and slow attack. 384 00:21:03,320 --> 00:21:04,220 Like I was describing earlier. 385 00:21:04,720 --> 00:21:09,700 Over time you can teach an anomaly based system. 386 00:21:09,860 --> 00:21:13,040 That your people soft server is indeed supposed to be doing IRC traffic. 387 00:21:14,420 --> 00:21:15,860 And everybody loves that. 388 00:21:17,060 --> 00:21:18,540 It's great for... 389 00:21:19,140 --> 00:21:20,460 The breaking traffic analysis. 390 00:21:21,100 --> 00:21:23,600 A lot of people assume that if you're recalling a target. 391 00:21:23,740 --> 00:21:25,520 Like general wide and map scans. 392 00:21:25,740 --> 00:21:26,700 Things like this. 393 00:21:26,700 --> 00:21:28,220 That very shortly thereafter. 394 00:21:28,560 --> 00:21:30,600 You're going to try to compromise host you're looking for. 395 00:21:30,780 --> 00:21:31,740 And this is because. 396 00:21:31,960 --> 00:21:34,440 This is the way a lot of worm behaviors work. 397 00:21:35,040 --> 00:21:36,020 Like for instance. 398 00:21:36,120 --> 00:21:39,940 The slammer worm will start looking for all the MSSQL host it can find. 399 00:21:40,200 --> 00:21:41,120 Once it finds it. 400 00:21:41,160 --> 00:21:44,100 It tries to attempt it by sending itself to it. 401 00:21:44,160 --> 00:21:44,940 And compromise the machine. 402 00:21:46,840 --> 00:21:49,000 If you time your recon. 403 00:21:49,240 --> 00:21:50,020 And your attack. 404 00:21:50,700 --> 00:21:52,360 Over a great period of time. 405 00:21:52,540 --> 00:21:54,180 You can actually fool this system. 406 00:21:54,300 --> 00:21:55,940 Which is pretty simple to do. 407 00:21:56,700 --> 00:21:57,020 Generally. 408 00:21:57,600 --> 00:21:58,540 If you look at the. 409 00:21:58,680 --> 00:22:00,260 You have to look at the site you're attacking. 410 00:22:00,580 --> 00:22:02,880 A good example would be a single individual class C. 411 00:22:03,240 --> 00:22:05,000 Let's say there's a company you wanted to attack. 412 00:22:05,180 --> 00:22:06,620 That had a small network. 413 00:22:06,740 --> 00:22:08,720 A class C that was running a system such as this. 414 00:22:09,440 --> 00:22:12,200 You would have to look at what they're doing in and out. 415 00:22:12,320 --> 00:22:15,020 You can find what kind of bandwidth they have pretty easily. 416 00:22:15,080 --> 00:22:15,960 Let's say they have a T1. 417 00:22:16,320 --> 00:22:18,420 So you know what their bandwidth constraints are. 418 00:22:18,540 --> 00:22:18,940 Over time. 419 00:22:20,900 --> 00:22:24,420 You at that time can. 420 00:22:26,540 --> 00:22:27,640 That won't work. 421 00:22:31,020 --> 00:22:33,460 You at that time can begin your recon of your target. 422 00:22:33,540 --> 00:22:36,880 By understanding the data flow in and out. 423 00:22:37,100 --> 00:22:38,160 And over time. 424 00:22:38,260 --> 00:22:40,240 You can understand how much the state table will grow. 425 00:22:40,340 --> 00:22:41,840 Based on the data it has. 426 00:22:42,080 --> 00:22:42,640 For instance. 427 00:22:42,760 --> 00:22:44,840 A smaller system. 428 00:22:45,340 --> 00:22:50,380 That uses a small network. 429 00:22:50,500 --> 00:22:51,540 I'm really tanking here. 430 00:22:51,720 --> 00:22:52,300 I'm sorry about this. 431 00:22:53,000 --> 00:22:53,440 A. 432 00:22:55,880 --> 00:22:56,240 Right. 433 00:22:58,920 --> 00:22:59,280 No. 434 00:22:59,560 --> 00:23:00,200 For instance. 435 00:23:00,480 --> 00:23:02,460 What we're basically talking about is state table size. 436 00:23:02,740 --> 00:23:03,980 When you have a smaller network. 437 00:23:04,140 --> 00:23:05,740 With a smaller amount of bandwidth over time. 438 00:23:06,060 --> 00:23:07,520 The state table is not that big a problem. 439 00:23:08,080 --> 00:23:08,520 For instance. 440 00:23:08,580 --> 00:23:10,000 A small company with a small class C. 441 00:23:10,040 --> 00:23:10,420 Over time. 442 00:23:11,380 --> 00:23:12,940 You'd have to wait weeks and weeks and weeks. 443 00:23:13,000 --> 00:23:13,980 To time out the state table. 444 00:23:14,220 --> 00:23:15,540 Now let's go to something a little bit bigger. 445 00:23:15,640 --> 00:23:17,740 Let's say you're attacking a company with a class B. 446 00:23:18,220 --> 00:23:19,860 And this class B is being protected by. 447 00:23:20,400 --> 00:23:22,300 Two anomaly based intrusion detection systems. 448 00:23:22,300 --> 00:23:23,480 And a failover configuration. 449 00:23:24,360 --> 00:23:27,560 Now you know that this class B is being fed by an OC12. 450 00:23:27,960 --> 00:23:30,040 Everybody knows what the speed of an OC12 is. 451 00:23:30,240 --> 00:23:32,640 And if you can do some estimations. 452 00:23:32,700 --> 00:23:34,460 Based on the system they're using. 453 00:23:34,660 --> 00:23:35,540 You know how much RAM. 454 00:23:35,780 --> 00:23:37,480 An SA6 system can implement. 455 00:23:37,740 --> 00:23:39,460 You know how much disk space is possible. 456 00:23:39,860 --> 00:23:40,680 You know over time. 457 00:23:40,820 --> 00:23:41,300 How much. 458 00:23:41,320 --> 00:23:42,940 How big their state table can get. 459 00:23:43,280 --> 00:23:45,620 So with pretty accurate guessing. 460 00:23:45,720 --> 00:23:48,620 You can understand how long it will take to time out a state table. 461 00:23:48,860 --> 00:23:50,100 So you can send in an attack. 462 00:23:50,700 --> 00:23:51,900 It will time out. 463 00:23:51,900 --> 00:23:53,160 You can send in your recon. 464 00:23:53,580 --> 00:23:55,900 Your recon will be noted by the anomaly based system. 465 00:23:55,980 --> 00:23:57,260 But it doesn't think it's that bad yet. 466 00:23:57,320 --> 00:23:58,080 Because it's just only recon. 467 00:23:58,220 --> 00:23:59,080 Port scanning and what not. 468 00:23:59,560 --> 00:24:00,440 And then over time. 469 00:24:00,560 --> 00:24:02,540 It will be timed out. 470 00:24:02,620 --> 00:24:04,660 Because there's no follow up activity from that host. 471 00:24:06,340 --> 00:24:06,900 After that. 472 00:24:07,140 --> 00:24:08,140 After you get estimation. 473 00:24:08,420 --> 00:24:11,180 You can pretty much do whatever you want. 474 00:24:11,560 --> 00:24:12,700 But you have to keep it low key. 475 00:24:13,280 --> 00:24:17,520 And my last philosophy for breaking traffic analysis. 476 00:24:17,680 --> 00:24:18,400 Is when in Rome. 477 00:24:18,700 --> 00:24:20,300 A good way to break a traffic analysis. 478 00:24:20,300 --> 00:24:22,680 Is to understand what the host you're compromising is doing. 479 00:24:22,920 --> 00:24:25,160 A good example of this would be a work station. 480 00:24:25,740 --> 00:24:27,260 If you compromise a work station. 481 00:24:27,480 --> 00:24:29,900 That does a lot of outbound SSH connections. 482 00:24:30,320 --> 00:24:34,600 Which is pretty easy to determine what a host does once it's compromised. 483 00:24:35,080 --> 00:24:37,260 If you were to mimic the activity of that host. 484 00:24:38,740 --> 00:24:40,680 It looks like normal traffic to it. 485 00:24:41,080 --> 00:24:42,640 So with the SSH example. 486 00:24:42,900 --> 00:24:44,440 If you were to compromise a host. 487 00:24:45,000 --> 00:24:47,020 And then write your root crit. 488 00:24:47,160 --> 00:24:49,960 Your root crit has to be portable enough to plug any port in. 489 00:24:50,300 --> 00:24:53,640 Or your root crit to send data over to destination port 22. 490 00:24:54,320 --> 00:24:57,020 The anomaly based system will think this is normal traffic once again. 491 00:24:58,680 --> 00:24:59,640 Flies in the system. 492 00:24:59,700 --> 00:25:00,840 Attacks against the system itself. 493 00:25:01,200 --> 00:25:03,240 This is a little bit iffier. 494 00:25:03,300 --> 00:25:04,480 Because in order to do this stuff. 495 00:25:04,580 --> 00:25:06,000 You have to know what the system is running is. 496 00:25:06,340 --> 00:25:07,500 For a lot of institutions. 497 00:25:08,100 --> 00:25:10,560 You can search in Google or what not. 498 00:25:10,800 --> 00:25:12,020 For PowerPoint presentations. 499 00:25:12,240 --> 00:25:14,860 They wrote to get funding for their systems. 500 00:25:15,320 --> 00:25:17,440 And by doing that. 501 00:25:17,480 --> 00:25:19,020 You can know what types of systems are running. 502 00:25:19,020 --> 00:25:19,960 And based on that. 503 00:25:20,040 --> 00:25:22,180 You can determine what's vulnerable to an attack. 504 00:25:22,280 --> 00:25:22,920 Buffer overflows. 505 00:25:23,020 --> 00:25:24,080 Sniffers and things like this. 506 00:25:25,620 --> 00:25:28,440 A simple method is attack of what's feeding the system. 507 00:25:29,040 --> 00:25:33,760 The router or the aggregation point itself for the system. 508 00:25:34,160 --> 00:25:36,200 Because although the system may function properly. 509 00:25:36,420 --> 00:25:37,140 If it's got no data. 510 00:25:37,320 --> 00:25:38,400 It's pretty useless. 511 00:25:42,220 --> 00:25:44,580 Is there any way to fix anomaly based systems? 512 00:25:45,400 --> 00:25:46,320 Yes and no. 513 00:25:46,600 --> 00:25:48,380 The best way to fix an anomaly based system. 514 00:25:48,380 --> 00:25:50,080 Is not to rely on it itself. 515 00:25:50,400 --> 00:25:51,460 It's got to be used in concert. 516 00:25:51,540 --> 00:25:52,240 With something else. 517 00:25:52,440 --> 00:25:54,140 Such as a signature based system. 518 00:25:54,620 --> 00:25:55,820 Like somebody asked earlier. 519 00:25:56,120 --> 00:25:57,440 ISS's or in terrorist's dragons. 520 00:25:58,120 --> 00:25:59,680 There's tons of signature based systems. 521 00:25:59,740 --> 00:26:00,820 My favorite happens to be snort. 522 00:26:01,260 --> 00:26:02,880 But if used in concert. 523 00:26:03,040 --> 00:26:05,040 You have something that's looking at the protocol header. 524 00:26:05,340 --> 00:26:07,940 And you have something that's also looking at the payload. 525 00:26:09,640 --> 00:26:13,340 As far as the problems being fixable. 526 00:26:13,500 --> 00:26:16,960 It would take greater time. 527 00:26:16,960 --> 00:26:19,820 To implement it. 528 00:26:19,840 --> 00:26:21,520 Basically what needs to happen is. 529 00:26:23,100 --> 00:26:24,680 More science needs to be developed. 530 00:26:24,860 --> 00:26:26,480 And they need to be tested greater in the wild. 531 00:26:27,280 --> 00:26:27,980 I'm sorry. 532 00:26:28,080 --> 00:26:29,020 I flew through this. 533 00:26:32,300 --> 00:26:33,120 Is it useful? 534 00:26:33,320 --> 00:26:34,780 Is anomaly based system useful? 535 00:26:34,980 --> 00:26:36,100 The answer is yes. 536 00:26:36,560 --> 00:26:37,340 Yes it's useful. 537 00:26:37,700 --> 00:26:38,820 But not by itself. 538 00:26:39,080 --> 00:26:39,680 Like I said earlier. 539 00:26:39,760 --> 00:26:40,540 It has to be used in concert. 540 00:26:40,640 --> 00:26:41,240 With something else. 541 00:26:41,720 --> 00:26:42,800 Who do they keep out? 542 00:26:42,960 --> 00:26:44,620 They do a really great job. 543 00:26:44,740 --> 00:26:46,160 At keeping out things like worms. 544 00:26:46,160 --> 00:26:47,060 Automated attacks. 545 00:26:47,500 --> 00:26:49,180 With the upcoming decom worm. 546 00:26:49,460 --> 00:26:53,240 I'm sure everybody's familiar with the recently found decom exploit. 547 00:26:55,140 --> 00:26:55,540 Destiny. 548 00:26:55,760 --> 00:26:58,560 It won't be long until ISS is releasing a. 549 00:26:58,580 --> 00:26:59,320 I love ISS. 550 00:26:59,340 --> 00:27:01,180 Because the guy in the front asked me if I worked for ISS earlier. 551 00:27:01,560 --> 00:27:02,860 I love using them now. 552 00:27:03,260 --> 00:27:03,960 Ask me if. 553 00:27:05,140 --> 00:27:07,760 It won't be long until there's a worm out for it. 554 00:27:08,700 --> 00:27:10,440 Since it's such a widely spread hole. 555 00:27:10,540 --> 00:27:11,400 This is going to be a big problem. 556 00:27:11,780 --> 00:27:14,400 An anomaly based system would do a very good job. 557 00:27:14,440 --> 00:27:15,940 In protecting you against something like this. 558 00:27:15,940 --> 00:27:19,340 But also do a good job against protecting you against spammers. 559 00:27:19,600 --> 00:27:23,400 Or things that generally create loud network footprints and are out of the ordinary. 560 00:27:23,680 --> 00:27:26,600 What they won't protect you against is a dedicated attacker. 561 00:27:26,800 --> 00:27:28,400 That wants to get whatever you have. 562 00:27:30,840 --> 00:27:32,360 If given enough time. 563 00:27:32,800 --> 00:27:35,540 Anybody can learn to mimic anything inside your network. 564 00:27:35,980 --> 00:27:38,000 Which will pretty much render the system useless. 565 00:27:38,960 --> 00:27:40,080 How can they be better? 566 00:27:40,560 --> 00:27:41,040 Correlation. 567 00:27:41,460 --> 00:27:42,320 Correlation is good. 568 00:27:42,520 --> 00:27:43,900 You got to have correlation systems. 569 00:27:43,900 --> 00:27:45,340 Did somebody boo? 570 00:27:48,060 --> 00:27:48,500 Oh. 571 00:27:48,620 --> 00:27:48,960 Boo. 572 00:27:49,140 --> 00:27:49,560 Yeah. 573 00:27:49,580 --> 00:27:50,140 Correlation systems. 574 00:27:50,420 --> 00:27:51,600 You got to have a correlation system. 575 00:27:52,020 --> 00:27:58,060 Correlation your data from an anomaly based system with a signature based system. 576 00:27:58,140 --> 00:27:59,100 As we described before. 577 00:27:59,200 --> 00:28:01,560 As well as a vulnerability detection or port scan. 578 00:28:01,920 --> 00:28:02,380 For instance. 579 00:28:02,420 --> 00:28:05,480 If you see a lot of packets going to a port that's not open. 580 00:28:05,780 --> 00:28:08,500 That should give you an indication of something wrong there. 581 00:28:10,020 --> 00:28:13,620 The problem with this is I can write root kits now that will work on. 582 00:28:13,620 --> 00:28:14,560 Closed ports. 583 00:28:14,680 --> 00:28:17,060 I can get packets sent to a port that's closed. 584 00:28:17,440 --> 00:28:21,320 And I can do something strange based on the information in that packet. 585 00:28:21,460 --> 00:28:22,520 Although it's not technically received. 586 00:28:23,920 --> 00:28:28,100 And things like a signature based system would have problems with that. 587 00:28:29,260 --> 00:28:30,120 This could be a little better. 588 00:28:31,040 --> 00:28:32,940 What does this all mean for your standard system cracker? 589 00:28:33,040 --> 00:28:33,820 I'm a penetration tester. 590 00:28:34,080 --> 00:28:35,160 I like breaking the things. 591 00:28:35,260 --> 00:28:36,000 What does this mean for me? 592 00:28:36,120 --> 00:28:37,700 This makes my life a little bit more difficult. 593 00:28:38,020 --> 00:28:40,300 This means I have to use greater recon in my target. 594 00:28:42,100 --> 00:28:42,460 Uh. 595 00:28:43,560 --> 00:28:44,780 That's basically about it. 596 00:28:44,840 --> 00:28:47,520 It won't change the methodology in which I break into machines. 597 00:28:48,240 --> 00:28:51,660 It just means I have to spend more time making sure I know what kind of machines I'm breaking into. 598 00:28:53,400 --> 00:28:54,700 And that is my presentation. 599 00:28:55,420 --> 00:28:56,040 That was. 600 00:28:56,620 --> 00:28:57,380 Wait, wait, wait. 601 00:28:57,500 --> 00:28:58,020 I'm not quite. 602 00:28:58,140 --> 00:28:58,320 Wait. 603 00:28:58,520 --> 00:28:58,920 Whoa. 604 00:28:59,200 --> 00:28:59,480 What's that? 605 00:28:59,620 --> 00:29:00,400 I'm not quite done. 606 00:29:03,820 --> 00:29:04,220 Uh. 607 00:29:04,440 --> 00:29:04,640 No. 608 00:29:05,080 --> 00:29:07,380 What this basically all means is. 609 00:29:07,860 --> 00:29:08,320 You know. 610 00:29:08,380 --> 00:29:09,500 I flew through this really quickly. 611 00:29:09,620 --> 00:29:11,620 Because I thought my slides were really lame. 612 00:29:12,120 --> 00:29:12,220 So. 613 00:29:12,460 --> 00:29:13,020 I'm going to tell you now. 614 00:29:13,280 --> 00:29:15,340 What my real opinion on these systems are. 615 00:29:15,480 --> 00:29:16,000 They're great. 616 00:29:16,080 --> 00:29:16,600 They really are. 617 00:29:16,680 --> 00:29:18,240 As long as you're using them with something else. 618 00:29:18,520 --> 00:29:18,780 Uh. 619 00:29:18,940 --> 00:29:20,160 If you're a determined attacker. 620 00:29:20,540 --> 00:29:23,080 I spend most of my time attacking systems as a pen tester. 621 00:29:23,320 --> 00:29:25,860 They're not going to keep that single determined attacker out. 622 00:29:26,060 --> 00:29:29,520 So if you're betting your infrastructure on this one type of technology. 623 00:29:30,020 --> 00:29:30,900 You're pretty screwed. 624 00:29:31,380 --> 00:29:32,260 And if you're. 625 00:29:32,300 --> 00:29:32,380 Uh. 626 00:29:32,740 --> 00:29:33,760 If you're an attacker. 627 00:29:34,080 --> 00:29:35,240 It's pretty good for you. 628 00:29:35,300 --> 00:29:36,920 Because if somebody's relying on this. 629 00:29:36,980 --> 00:29:42,300 This is a lot like people in 97, 98, 99 that relied only on firewalls for security. 630 00:29:42,300 --> 00:29:44,280 Without properly configuring them. 631 00:29:44,440 --> 00:29:44,880 You know. 632 00:29:44,940 --> 00:29:46,200 You can have a heyday with this. 633 00:29:46,780 --> 00:29:47,220 Uh. 634 00:29:47,320 --> 00:29:47,880 Are there any questions? 635 00:29:49,500 --> 00:29:49,940 You. 636 00:29:55,080 --> 00:29:55,520 . 637 00:30:06,160 --> 00:30:08,940 He's asking if I work primarily with network or host based systems. 638 00:30:09,020 --> 00:30:09,600 I work with both. 639 00:30:10,360 --> 00:30:11,020 And uh. 640 00:30:12,000 --> 00:30:16,260 Host based detection has a very good future. 641 00:30:16,600 --> 00:30:19,180 Especially with things like kernel level root kits. 642 00:30:19,400 --> 00:30:23,260 Because if you can detect anomalies in things like your system calls in the kernel. 643 00:30:23,460 --> 00:30:24,860 You can do a great job with that. 644 00:30:24,940 --> 00:30:27,320 The problem is this won't stop somebody from getting in initially. 645 00:30:28,720 --> 00:30:30,920 However once they're in it makes getting them out easier. 646 00:30:31,220 --> 00:30:31,980 Any other questions? 647 00:30:32,760 --> 00:30:33,200 You. 648 00:30:35,580 --> 00:30:36,020 . 649 00:30:38,420 --> 00:30:38,860 . 650 00:30:38,860 --> 00:30:39,100 . 651 00:30:40,180 --> 00:30:40,620 . 652 00:30:40,620 --> 00:30:40,840 . 653 00:30:44,100 --> 00:30:46,920 Are you asking if the anomaly based systems are in line? 654 00:30:47,020 --> 00:30:48,600 If they're intrusion prevention systems basically. 655 00:30:49,100 --> 00:30:49,540 Yes. 656 00:30:49,600 --> 00:30:50,000 No. 657 00:30:50,220 --> 00:30:50,380 . 658 00:30:50,880 --> 00:30:54,720 Right now anomaly based systems are pretty much a new toy. 659 00:30:54,940 --> 00:30:58,560 Not, not many people have started adopting them. 660 00:30:58,660 --> 00:30:59,320 This is going to change. 661 00:30:59,440 --> 00:31:00,440 They do have a place. 662 00:31:00,700 --> 00:31:03,240 And people will be using them. 663 00:31:03,300 --> 00:31:07,400 But at this time they're not reliable enough to use as a prevention system. 664 00:31:07,400 --> 00:31:12,400 because the, what they're basically, what they can basically tell you is this host is doing 665 00:31:12,400 --> 00:31:17,360 something strange. I don't know what it is, but it's strange. And based on that, you can't really 666 00:31:17,360 --> 00:31:20,720 prevent an action. Yes? 667 00:31:31,200 --> 00:31:35,980 No. His question was have I seen products that are very, very effective at detecting 668 00:31:35,980 --> 00:31:41,920 covert channels. The answer to that is no, because basically in order to do that, you have to 669 00:31:41,920 --> 00:31:47,580 gather all the data that's going on in your network forever and basically use that for a statistical 670 00:31:47,580 --> 00:31:52,040 analysis of what doesn't quite look right. And then you have to compare that with things like the 671 00:31:52,040 --> 00:31:55,720 sequence number count from your host and why this packet is being generated with this sequence 672 00:31:55,720 --> 00:32:00,120 number where everything else is going to fall in this predictable pattern. There's nothing right 673 00:32:00,120 --> 00:32:04,080 now that really does this. Yes? 674 00:32:08,220 --> 00:32:15,080 What anomaly-based systems have I worked with? That's a funny question. Based on non-disclosure agreements, 675 00:32:15,380 --> 00:32:23,580 I could tell you, but then I could be sued. Would you like to pay my legal bills? I'm looking for someone 676 00:32:23,580 --> 00:32:35,680 to, if anybody would like to volunteer. Yes? Which one's my favorite? TCP dump with a lot of Perl scripts. 677 00:32:38,920 --> 00:32:43,200 That seems to work well, because if you're a competent network administrator slash coder, 678 00:32:43,240 --> 00:32:46,900 you know what your network's supposed to be doing. TCP dump and a couple of Perl scripts will let 679 00:32:46,900 --> 00:32:50,420 you know what your network's doing that you don't think it's doing. Yes? 680 00:32:51,160 --> 00:32:56,040 Is there an open source anomaly-based IDS that you have any good experience with? 681 00:32:57,100 --> 00:32:59,160 An open source? An open source. 682 00:33:02,560 --> 00:33:04,920 My realm of knowledge is mostly in the commercial area. 683 00:33:04,920 --> 00:33:08,060 To my knowledge at this time, there's not, but I could be wrong. 684 00:33:10,520 --> 00:33:11,140 Say again? 685 00:33:13,420 --> 00:33:16,960 I'm sorry? Spade. Spade. I forgot about that. 686 00:33:17,780 --> 00:33:19,860 That would work, I suppose. 687 00:33:23,180 --> 00:33:24,620 But that's a different discussion. 688 00:33:25,260 --> 00:33:27,960 There's problems with that, in my experience. 689 00:33:28,400 --> 00:33:32,440 And I didn't really view that as an anomaly-based intrusion detection system. 690 00:33:32,440 --> 00:33:36,520 It's more of a...actually, I don't know how to describe that. 691 00:33:37,660 --> 00:33:42,940 It's a great tool, though. I mostly use it for statistical analysis of stuff. 692 00:33:44,220 --> 00:33:47,420 Any other questions? Yes? 693 00:33:47,720 --> 00:33:59,040 Do you know of any products that correlate data between anomaly-based and signature-based technologies? 694 00:34:00,040 --> 00:34:00,680 Uh... 695 00:34:03,400 --> 00:34:08,640 The SEMs I'm familiar with are mostly working on that technology now, 696 00:34:08,740 --> 00:34:11,340 which is GuardedNet, would be the biggest one. 697 00:34:11,560 --> 00:34:14,700 There's some open source projects that it worked with, 698 00:34:15,410 --> 00:34:19,340 but they still have some time until they're effective. 699 00:34:20,000 --> 00:34:24,940 In the answer to that, we're looking for security information management systems. 700 00:34:25,740 --> 00:34:28,680 Our site, where they're guarded back then, 701 00:34:28,680 --> 00:34:35,240 has a lot of data that's based typically in tech tools and all those kinds of stuff. 702 00:34:35,520 --> 00:34:37,040 That's an effort that we may want to get into. 703 00:34:38,460 --> 00:34:39,660 Other questions? 704 00:34:41,400 --> 00:34:42,000 Yes? 705 00:34:42,540 --> 00:34:47,780 Is there any way to find out what kind of brain death... 706 00:34:49,040 --> 00:34:52,700 There is fingerprinting techniques, but that's an entire other discussion. 707 00:34:53,500 --> 00:34:58,660 You know, just actually talking about that would take 20 minutes or so to begin with. 708 00:34:58,660 --> 00:35:02,460 But if you find me afterwards, we can discuss it. 709 00:35:04,120 --> 00:35:05,040 Any other questions? 710 00:35:07,640 --> 00:35:08,480 No other questions? 711 00:35:10,660 --> 00:35:11,440 Okie-dokie. 712 00:35:11,480 --> 00:35:12,480 Wait. Question? 713 00:35:13,040 --> 00:35:14,460 I'm going to ask one actually. 714 00:35:14,700 --> 00:35:17,140 I'm wondering, people talk a lot about the reactive system, 715 00:35:19,100 --> 00:35:21,480 and kind of my opinion on that is that 716 00:35:23,820 --> 00:35:25,840 you're not going to see a lot of reactive systems 717 00:35:25,840 --> 00:35:28,640 until somebody is comfortable with what they're doing. 718 00:35:29,400 --> 00:35:32,640 And I think that provides a lot of data systems 719 00:35:32,640 --> 00:35:37,080 that actually say flag an alert and block traffic based on it. 720 00:35:37,120 --> 00:35:37,920 Why do you think it's wrong? 721 00:35:37,980 --> 00:35:40,300 It's like a lot of the most curious thing is built that way. 722 00:35:41,400 --> 00:35:43,840 Well, the reactive or the prevention systems? 723 00:35:44,360 --> 00:35:49,860 His question is, what's my opinion on the implementation of these over time? 724 00:35:50,100 --> 00:35:54,620 And right now, there's not an IDS anomaly signature base 725 00:35:54,620 --> 00:35:56,900 that I know of that doesn't create false positives. 726 00:35:57,140 --> 00:35:57,620 Yes. 727 00:35:57,620 --> 00:36:01,500 And until this problem is cut down greatly, 728 00:36:01,820 --> 00:36:04,080 no one is going to trust an inline prevention system. 729 00:36:04,660 --> 00:36:08,320 Now, there's several companies that are doing research based on this. 730 00:36:08,520 --> 00:36:10,420 There's several companies that are very close, 731 00:36:10,520 --> 00:36:12,240 ISS being one of them with their prevention appliance. 732 00:36:13,740 --> 00:36:15,200 There's some other companies. 733 00:36:15,380 --> 00:36:20,460 But right now, the problem is, especially as a security administrator, 734 00:36:20,800 --> 00:36:23,620 when you wake up in the morning to 10 million alerts on your network 735 00:36:23,620 --> 00:36:25,140 because somebody is randomly port scanning it, 736 00:36:25,140 --> 00:36:28,900 you don't really want to trust whatever thought that that was a critical enough alert 737 00:36:28,900 --> 00:36:31,520 to wake you up at 3 in the morning to randomly block hosts. 738 00:36:32,420 --> 00:36:35,580 So until an administrator feels comfortable enough 739 00:36:35,580 --> 00:36:40,720 that whatever they're using isn't seeing a great amount of false positives, 740 00:36:41,320 --> 00:36:46,700 there's not going to be anything that can be done about the psychological part of implementing it. 741 00:36:49,340 --> 00:36:49,980 Yes, sir. 742 00:36:56,940 --> 00:37:02,760 Perhaps I should tell you some research I did for about a year that is consistent with yours. 743 00:37:03,140 --> 00:37:08,960 I was analyzing the rates of traffic to a lot of the systems that we had, 744 00:37:09,120 --> 00:37:11,280 not looking at absolutely everything, 745 00:37:11,500 --> 00:37:15,460 but trying to do an anomaly-based detection on database access traffic. 746 00:37:15,860 --> 00:37:17,740 You know, if you use Oracle databases, 747 00:37:18,840 --> 00:37:22,500 SQLNet is something that you can peek inside of. 748 00:37:22,540 --> 00:37:23,260 You can get rates. 749 00:37:23,260 --> 00:37:29,180 It turned out that establishing a baseline just didn't work for us. 750 00:37:31,020 --> 00:37:35,520 There are variations which I could readily see in patterns of use 751 00:37:35,520 --> 00:37:37,520 on a daily, on a weekly basis. 752 00:37:38,020 --> 00:37:41,100 And in order to establish a baseline, 753 00:37:41,220 --> 00:37:44,000 it took so long that by the time I could get a baseline, 754 00:37:44,160 --> 00:37:45,940 people were changing what they were doing. 755 00:37:46,120 --> 00:37:50,080 So the only things that were really useful in analysis that way 756 00:37:50,080 --> 00:37:51,760 were really huge variations. 757 00:37:54,820 --> 00:37:57,660 That would be consistent with my philosophy as well. 758 00:37:58,760 --> 00:37:59,560 Any other questions? 759 00:38:03,580 --> 00:38:04,700 We have one right over there. 760 00:38:07,280 --> 00:38:08,380 Am I your daddy? 761 00:38:08,940 --> 00:38:10,360 Yes. Yes, I am. 762 00:38:13,220 --> 00:38:17,460 Especially if you're running anomaly-based intrusion detection as your only method of security, 763 00:38:17,720 --> 00:38:18,600 I will be your daddy. 764 00:38:19,000 --> 00:38:20,940 And you will get an email tomorrow about that. 765 00:38:23,260 --> 00:38:24,660 Thank you very much.