1 00:00:32,660 --> 00:00:34,280 We'll be right back. 2 00:01:00,000 --> 00:01:00,980 Let's go. 3 00:01:42,240 --> 00:01:45,800 Hi, my name is Mark Grimes, also known as Obetian. 4 00:01:46,240 --> 00:01:48,160 Some of you may or may not know me. 5 00:01:49,540 --> 00:01:56,800 I'm basically here to present a specification in a tool called Intravenous. 6 00:01:57,440 --> 00:01:59,600 We're going to talk a little bit at the beginning 7 00:01:59,600 --> 00:01:59,980 about the use of intravenous. 8 00:01:59,980 --> 00:02:03,940 We're going to talk a little bit about marrying artificial intelligence with TCP IP 9 00:02:03,940 --> 00:02:13,400 because the areas of research that you can explore with raw sockets 10 00:02:13,400 --> 00:02:18,460 and how to obtain next packet injection are very important. 11 00:02:19,840 --> 00:02:23,600 Everybody knows that you can just connect client server through BSD sockets, 12 00:02:23,740 --> 00:02:28,400 and we want to explore the arena of actually taking raw sockets to, 13 00:02:28,760 --> 00:02:29,960 especially with Windows. 14 00:02:29,980 --> 00:02:32,860 Windows carrying raw sockets in the next version by default. 15 00:02:33,320 --> 00:02:37,880 I want to explore the arena of producing next packet injection 16 00:02:38,540 --> 00:02:43,040 with connection integrity with respect to time is the goal. 17 00:02:43,660 --> 00:02:47,540 We don't really care about payload, but we'll start getting into this here. 18 00:02:51,080 --> 00:02:53,440 First thing we want to cover is packet injection. 19 00:02:54,120 --> 00:02:58,400 Some of you may or may not know that I'm responsible for a tool called Nemesis. 20 00:02:58,400 --> 00:03:02,800 It is a nine protocol packet injection suite. 21 00:03:03,500 --> 00:03:06,220 It is based on Mike Shiffman's LipNet, 22 00:03:06,420 --> 00:03:10,220 which makes it extremely portable between operating systems. 23 00:03:10,600 --> 00:03:16,120 I've even had reports that this works on trusted Solaris. 24 00:03:18,640 --> 00:03:21,020 We've got node integrity, evasion testing. 25 00:03:21,500 --> 00:03:24,620 I mean, these are the common uses that this tool is used for. 26 00:03:25,940 --> 00:03:28,380 The emails I've gotten in regards to this tool, I've gotten a lot of emails saying, 27 00:03:28,380 --> 00:03:28,760 I should test Nemesis. 28 00:03:29,140 --> 00:03:36,560 I was kind of creating this on a whim for studying for a test called the CCNA, 29 00:03:36,680 --> 00:03:41,740 and I don't really believe in theory without testing the practical, 30 00:03:41,960 --> 00:03:49,760 and it's nice to read a bunch of CISCO books that are written by yada, yada, Ph.D., 31 00:03:49,760 --> 00:03:56,120 but it would be nice to actually see these packets go across the wire 32 00:03:56,120 --> 00:03:58,360 and actually work as suggestions. 33 00:03:58,360 --> 00:04:00,320 in the Cisco reading material. 34 00:04:00,740 --> 00:04:03,760 So the three top uses are node integrity 35 00:04:03,760 --> 00:04:06,740 and evasion testing of routers, switches, and firewalls, 36 00:04:06,740 --> 00:04:08,360 IESs, and then stack integrity. 37 00:04:08,620 --> 00:04:12,940 So we use it to test malformed packets on the network wire. 38 00:04:14,900 --> 00:04:19,040 Router congestion management is also another real good aspect of it 39 00:04:19,040 --> 00:04:25,900 because the tool is used for throwing gigabyte files 40 00:04:25,900 --> 00:04:27,880 across the wire as payload. 41 00:04:28,960 --> 00:04:33,020 To test a particular protocol and see where the router chokes. 42 00:04:34,000 --> 00:04:36,080 It can also be used for covert channels. 43 00:04:36,300 --> 00:04:39,000 I've actually done a little demo where I had, 44 00:04:39,640 --> 00:04:43,500 I was testing sending a 35k text file through ARP. 45 00:04:44,580 --> 00:04:48,580 Since nobody looks at the payload of ARP in an IDS. 46 00:04:48,920 --> 00:04:52,300 And I sent the readme file for Nemesis across the wire 47 00:04:52,300 --> 00:04:55,880 and just dummied up a little program to collect the packets 48 00:04:55,880 --> 00:04:57,680 and collect it on the other end. 49 00:04:57,760 --> 00:04:58,340 And 100%. 50 00:04:58,360 --> 00:04:59,100 100 ARP packets later. 51 00:04:59,780 --> 00:05:01,220 Not that that would be noticed or anything. 52 00:05:01,480 --> 00:05:07,360 But it made it through and it collected it at the other end. 53 00:05:07,500 --> 00:05:09,380 And it was a little nice covert channel. 54 00:05:09,980 --> 00:05:11,800 Obviously it can be used for spoofing. 55 00:05:12,000 --> 00:05:18,960 The last version I did give Nemesis to Jeff Nathan of AtStake 56 00:05:18,960 --> 00:05:21,040 who presented at Black Hat this year 57 00:05:21,040 --> 00:05:23,340 and also used the tool in his demonstration. 58 00:05:25,380 --> 00:05:28,340 The tool is actively being worked on. 59 00:05:28,340 --> 00:05:30,740 Again, I kind of lost the passion for working on this 60 00:05:30,740 --> 00:05:33,080 because this is kind of like just plugging in more protocols. 61 00:05:34,580 --> 00:05:37,620 At this point it seems like esoteric assembly line work. 62 00:05:37,820 --> 00:05:42,380 I talked to Mike at Black Hat to see what the future of LibNet is going to hold. 63 00:05:42,660 --> 00:05:46,440 It looks promising and it looks like Jeff is going to have an interesting project ahead of him. 64 00:05:46,780 --> 00:05:49,780 I wanted to focus my research on intravenous. 65 00:05:51,000 --> 00:05:53,180 And it can also be used for evasion, of course, 66 00:05:53,220 --> 00:05:58,140 because if you've mapped your IDS and understand what the IDS is, 67 00:05:58,160 --> 00:05:58,320 it's a little bit more complicated. 68 00:05:58,320 --> 00:05:58,680 It's a little bit more complicated than just alerting from 69 00:05:58,680 --> 00:06:01,000 because perhaps they're running an insecure X server 70 00:06:01,000 --> 00:06:03,680 and you're able to pull the screen. 71 00:06:04,520 --> 00:06:05,540 There's been many. 72 00:06:05,820 --> 00:06:09,280 I work for SAIC Corporation. 73 00:06:10,680 --> 00:06:14,260 And I'm the technical lead of network penetration and data forensics. 74 00:06:15,480 --> 00:06:21,380 And although this research is not a part of SAIC, 75 00:06:21,700 --> 00:06:23,580 this is stuff I've done on my own time. 76 00:06:24,100 --> 00:06:28,120 Anything that's said today is basically pointed 77 00:06:28,120 --> 00:06:29,620 at me and not at my corporation. 78 00:06:31,720 --> 00:06:33,920 The tool has been demonstrated. 79 00:06:34,500 --> 00:06:37,480 It has reached a lot of media attention, actually. 80 00:06:38,520 --> 00:06:42,880 SANS has covered a lot of articles choking on NAPFA. 81 00:06:43,080 --> 00:06:49,020 NAPFA, I believe, was a type of attack that was coined by BindView. 82 00:06:49,800 --> 00:06:52,800 And there's an article from February 2001. 83 00:06:53,120 --> 00:06:55,980 There's all kinds of articles protecting network infrastructure. 84 00:06:56,600 --> 00:06:58,100 There was a November article. 85 00:06:58,120 --> 00:07:07,660 There was a November GIAC detect report that was promoted through SANS. 86 00:07:08,660 --> 00:07:12,540 And it pits Nemesis versus Cisco PIX. 87 00:07:12,740 --> 00:07:16,800 And they were actually able to send IP packets that didn't log IP addresses, 88 00:07:16,900 --> 00:07:18,760 which is not exactly a great thing. 89 00:07:19,660 --> 00:07:24,960 Fyodor has listed Nemesis as the top 50 security tools of all time. 90 00:07:25,280 --> 00:07:28,100 And it's available at www.pix.com. 91 00:07:28,100 --> 00:07:30,740 Packetninja.net, if you hadn't already known about that domain. 92 00:07:31,940 --> 00:07:34,400 We reach artificial intelligence. 93 00:07:34,880 --> 00:07:37,460 And a lot of you are probably coming in here with the misconception 94 00:07:37,460 --> 00:07:42,900 that we're creating sci-fi material, like if you've seen the movie. 95 00:07:44,660 --> 00:07:48,320 But what we are actually creating is intelligence software, 96 00:07:48,540 --> 00:07:50,920 software that is based on the... 97 00:07:50,920 --> 00:07:51,500 Thank you very much. 98 00:07:52,060 --> 00:07:54,040 Software that is based on the... 99 00:07:54,740 --> 00:07:55,620 Hold on one sec. 100 00:08:04,040 --> 00:08:07,700 Software that is based on artificial intelligent design, 101 00:08:08,420 --> 00:08:14,460 the different types of data structures that are indicative of expert systems 102 00:08:14,460 --> 00:08:15,820 and machine learning. 103 00:08:16,800 --> 00:08:18,500 Intelligence is defined... 104 00:08:18,500 --> 00:08:21,040 I looked this up on dictionary.com and was kind of intrigued 105 00:08:21,040 --> 00:08:23,620 that when I looked this up right before I finished the presentation, 106 00:08:23,960 --> 00:08:25,240 they had changed the definitions. 107 00:08:27,100 --> 00:08:27,660 But... 108 00:08:27,660 --> 00:08:28,080 I don't know. 109 00:08:28,800 --> 00:08:32,460 Intelligence is defined as the capacity to acquire and apply knowledge 110 00:08:33,480 --> 00:08:35,620 and the faculty of thought and reason, 111 00:08:35,780 --> 00:08:38,860 both of which can be defined in software. 112 00:08:39,820 --> 00:08:43,040 You can have something automated that takes care of a human function 113 00:08:43,040 --> 00:08:44,560 that we're normally... 114 00:08:44,940 --> 00:08:45,800 We would be doing... 115 00:08:45,800 --> 00:08:47,340 Like if you're doing a pen test 116 00:08:47,340 --> 00:08:54,240 and you are exploring the boundaries of some network host-based exploitation, 117 00:08:55,220 --> 00:08:56,820 we can automate that process. 118 00:08:56,960 --> 00:08:57,860 Like if you're scanning... 119 00:08:57,860 --> 00:09:00,780 In a network, you do a ping scan, you do a port scan, you do a reverse DNS. 120 00:09:01,080 --> 00:09:02,500 I mean, all that can be automated. 121 00:09:02,540 --> 00:09:05,200 If we can write it down on a piece of paper, we can automate it. 122 00:09:06,680 --> 00:09:11,900 The third definition of intelligence is where human bias becomes a factor. 123 00:09:12,760 --> 00:09:15,240 We have superpowers of the mind... 124 00:09:15,240 --> 00:09:19,800 Or superior powers of the mind, and mind is defined as the human consciousness 125 00:09:19,800 --> 00:09:21,340 that originates in the brain. 126 00:09:21,440 --> 00:09:22,720 Of course, not dolphins, but humans. 127 00:09:23,160 --> 00:09:27,280 And it's manifested in thought, perception, emotion, will, memory, and imagination. 128 00:09:28,680 --> 00:09:31,060 This is the point where the definition skews, 129 00:09:31,140 --> 00:09:35,660 and we really are having a problem in the artificial intelligence arena 130 00:09:35,660 --> 00:09:38,020 of defining intelligence in regards to... 131 00:09:38,560 --> 00:09:43,940 Perhaps some of you that are not really engaged in artificial intelligence study 132 00:09:44,800 --> 00:09:48,860 are perhaps thinking that artificial intelligence is taking things to a different level. 133 00:09:49,260 --> 00:09:51,040 And it's not really. 134 00:09:51,140 --> 00:09:55,640 It's just really automating human interaction in an automated fashion. 135 00:09:56,500 --> 00:09:57,840 An intelligent person... 136 00:09:57,860 --> 00:10:00,980 This is a common definition that's been seen in a number of AI texts. 137 00:10:01,540 --> 00:10:05,860 An intelligent program is one that exhibits behavior similar to that of a human 138 00:10:05,860 --> 00:10:07,520 when confronted with a similar problem. 139 00:10:07,880 --> 00:10:10,560 It's not necessary that the program actually solves 140 00:10:10,560 --> 00:10:13,420 or attempts to solve the problem in the same way a human would. 141 00:10:14,140 --> 00:10:16,640 So our goal is we work on performance measures. 142 00:10:16,920 --> 00:10:21,360 We tell when we get a port scan and it comes up with port 80, 143 00:10:21,440 --> 00:10:23,580 and we assume it's an HTTP server. 144 00:10:24,560 --> 00:10:26,980 And we probe for HTTP vulnerabilities. 145 00:10:27,060 --> 00:10:27,840 We assume... 146 00:10:27,860 --> 00:10:30,020 We assume that this is a proper performance measure, 147 00:10:30,160 --> 00:10:32,820 a positive rather than a negative decrement. 148 00:10:33,720 --> 00:10:38,000 And the agent understands that it's doing the right thing moving forward. 149 00:10:41,540 --> 00:10:44,040 This is basically defined in our environment. 150 00:10:44,340 --> 00:10:47,060 An artificial intelligence program is defined by the environment, 151 00:10:47,160 --> 00:10:49,380 which is the network traffic that passes over the wire. 152 00:10:50,380 --> 00:10:50,940 Sensors. 153 00:10:51,440 --> 00:10:54,740 The sensors are obviously a packet capture filter 154 00:10:55,660 --> 00:10:57,680 that would narrow down the traffic. 155 00:10:57,720 --> 00:10:57,840 That would narrow down the traffic. 156 00:10:57,840 --> 00:10:59,020 That we want to see on the wire. 157 00:10:59,660 --> 00:11:00,780 With port exclusion. 158 00:11:01,160 --> 00:11:02,900 And we'll get into this when we start talking about 159 00:11:02,900 --> 00:11:06,280 the actual live artificial intelligent agent 160 00:11:06,280 --> 00:11:07,720 that I'm producing for OpenBSD. 161 00:11:09,220 --> 00:11:11,900 Static capture rules and categorized traffic. 162 00:11:13,080 --> 00:11:14,240 We have effectors. 163 00:11:14,240 --> 00:11:16,000 Effectors are the injection engine, essentially. 164 00:11:16,960 --> 00:11:18,620 For the course of this mission, 165 00:11:18,840 --> 00:11:20,400 we're doing stateful packet injection, 166 00:11:20,760 --> 00:11:22,480 which is something that's not commonly done. 167 00:11:22,640 --> 00:11:24,180 We always look at things from an IDS, 168 00:11:24,180 --> 00:11:25,080 from a defense standpoint. 169 00:11:26,240 --> 00:11:27,760 This is an offensive tool. 170 00:11:28,440 --> 00:11:33,060 This is an attempt to create a disease 171 00:11:33,060 --> 00:11:34,640 so that we can create an antidote 172 00:11:34,640 --> 00:11:38,740 on how we can perceive distributed denial of service 173 00:11:38,740 --> 00:11:39,960 from the arena of... 174 00:11:40,760 --> 00:11:43,300 Imagine you have a typical DDoS attack 175 00:11:43,300 --> 00:11:47,960 and you set a packet crafter on the end of each node 176 00:11:47,960 --> 00:11:50,940 instead of a particular distributed denial of service attack. 177 00:11:51,200 --> 00:11:53,740 And then you're able to communicate with these different agents 178 00:11:53,740 --> 00:11:56,760 as to what specific traffic you want to hit. 179 00:11:56,880 --> 00:11:57,740 You can do that. 180 00:11:57,740 --> 00:11:59,160 You can strategically place them on the inside 181 00:11:59,160 --> 00:12:00,520 and the outside of firewalls 182 00:12:00,520 --> 00:12:02,300 on different points of a LAN 183 00:12:03,060 --> 00:12:05,640 where you have two different endpoints. 184 00:12:05,860 --> 00:12:08,880 Say you wanted to ARP spoof in two directions 185 00:12:08,880 --> 00:12:11,340 so that you could bring two VLANs together 186 00:12:11,340 --> 00:12:12,280 or closer together 187 00:12:12,280 --> 00:12:14,200 so you have a distributed sniffer component. 188 00:12:16,440 --> 00:12:19,660 Examples of agents for host-based vulnerabilities 189 00:12:19,660 --> 00:12:23,200 would be like ASCII or binary fingerprint target analysis 190 00:12:23,200 --> 00:12:24,260 or target response. 191 00:12:26,200 --> 00:12:27,720 Recently, well, not recently, 192 00:12:28,660 --> 00:12:34,020 SCUT of TESO created binary fingerprints in ASCII 193 00:12:34,020 --> 00:12:35,200 or printable ASCII 194 00:12:36,260 --> 00:12:41,540 that could basically detect finger responses 195 00:12:41,540 --> 00:12:43,580 and there were a couple other tools 196 00:12:43,580 --> 00:12:44,880 that they created in this arena. 197 00:12:45,400 --> 00:12:46,880 I mean, obviously, we don't want to stay confined 198 00:12:46,880 --> 00:12:48,920 to just ASCII printable characters. 199 00:12:49,060 --> 00:12:50,500 We want to go to extended ASCII 200 00:12:50,500 --> 00:12:51,720 and just make a binary fingerprint 201 00:12:51,720 --> 00:12:54,000 as to what we can print on the screen 202 00:12:54,000 --> 00:12:56,620 and then store that to a file just as SCUT has done. 203 00:12:57,840 --> 00:12:59,560 If you want to see more of them, 204 00:12:59,620 --> 00:13:01,360 you can head up to TESO's website. 205 00:13:01,500 --> 00:13:03,100 I'm sure most of you know where that's at. 206 00:13:04,620 --> 00:13:06,560 Intelligent shellcode offset alignment analysis. 207 00:13:08,420 --> 00:13:09,620 We have a knowledge base. 208 00:13:09,880 --> 00:13:11,460 A knowledge base is the foundation 209 00:13:11,460 --> 00:13:13,560 or one integral part of an expert system. 210 00:13:14,580 --> 00:13:16,880 We can define OS major and minor versions 211 00:13:16,880 --> 00:13:19,700 and we can do process context recognition. 212 00:13:19,780 --> 00:13:20,900 We can look at banners. 213 00:13:21,000 --> 00:13:23,440 We can look at things that would be indicative 214 00:13:23,440 --> 00:13:25,080 of a particular exploit 215 00:13:25,740 --> 00:13:27,240 and attempt to exploit that. 216 00:13:27,360 --> 00:13:27,500 I mean, 217 00:13:27,500 --> 00:13:28,580 what's the biggest problem 218 00:13:28,580 --> 00:13:29,940 with third-party scanners today? 219 00:13:30,140 --> 00:13:31,240 They're doing fingerprinting. 220 00:13:31,280 --> 00:13:31,640 They're saying, 221 00:13:31,720 --> 00:13:32,920 oh, if you're running a particular version, 222 00:13:33,100 --> 00:13:34,200 that must be exploitable. 223 00:13:34,780 --> 00:13:35,580 Well, later, 224 00:13:35,620 --> 00:13:37,280 when a particular vendor's software 225 00:13:37,280 --> 00:13:40,180 came back with Solaris exploits for NT, 226 00:13:40,780 --> 00:13:42,300 that didn't really work out too well 227 00:13:42,300 --> 00:13:43,580 in our reports that we were handing off 228 00:13:43,580 --> 00:13:44,180 to the customer. 229 00:13:47,160 --> 00:13:52,280 So SCIC has developed a 500 megabyte toolkit 230 00:13:52,280 --> 00:13:55,040 that comprises a lot of tools 231 00:13:55,040 --> 00:13:56,560 that are standard. 232 00:13:56,640 --> 00:13:57,420 You know, packet storage, 233 00:13:57,500 --> 00:13:59,340 some private, some not, 234 00:14:00,660 --> 00:14:02,780 that we can go out and assess and exploit 235 00:14:02,780 --> 00:14:04,660 or access a vulnerability 236 00:14:05,540 --> 00:14:07,260 to where it is truly exploitable 237 00:14:07,260 --> 00:14:09,220 and not just a fingerprint match. 238 00:14:10,180 --> 00:14:11,220 Network vulnerabilities, 239 00:14:11,500 --> 00:14:12,640 we've got default passwords, 240 00:14:13,020 --> 00:14:13,760 clear text protocols, 241 00:14:14,500 --> 00:14:15,620 dynamic ARP caches. 242 00:14:15,760 --> 00:14:16,640 There's a ton of areas 243 00:14:16,640 --> 00:14:18,460 that we can define agents 244 00:14:18,460 --> 00:14:20,400 for making an expert system 245 00:14:20,400 --> 00:14:23,000 where you just map everything 246 00:14:23,000 --> 00:14:24,400 and say, okay, 247 00:14:24,480 --> 00:14:25,700 well, if we're hitting a Cisco device, 248 00:14:25,880 --> 00:14:27,180 we're going to try these password combinations. 249 00:14:27,180 --> 00:14:27,480 We're going to try these password combinations. 250 00:14:27,480 --> 00:14:28,400 We're hitting this SNMT, 251 00:14:28,520 --> 00:14:29,600 so we're going to hit these combinations. 252 00:14:30,160 --> 00:14:31,240 There's no reason 253 00:14:31,240 --> 00:14:33,200 that we have to take ADM SNMP 254 00:14:33,200 --> 00:14:34,300 and grind on passwords 255 00:14:34,300 --> 00:14:34,960 that we already know 256 00:14:34,960 --> 00:14:36,640 are not default passwords on that device. 257 00:14:37,560 --> 00:14:39,720 You can actually map them by device. 258 00:14:39,820 --> 00:14:41,100 It's just one layer deeper. 259 00:14:42,780 --> 00:14:43,820 Net BIOS, of course, 260 00:14:43,900 --> 00:14:44,960 is a nice network vulnerability. 261 00:14:46,920 --> 00:14:48,980 The replacement for that, of course, 262 00:14:49,000 --> 00:14:50,180 by Microsoft is, 263 00:14:50,240 --> 00:14:51,520 well, we don't own the protocol. 264 00:14:51,680 --> 00:14:52,460 We just use it. 265 00:14:53,000 --> 00:14:53,880 Use IPsec, 266 00:14:55,200 --> 00:14:56,200 which, of course, 267 00:14:56,220 --> 00:14:56,880 means you have to run 268 00:14:56,880 --> 00:14:57,440 and win 2K. 269 00:14:58,800 --> 00:15:00,300 It's attached to dial-up networking 270 00:15:00,300 --> 00:15:01,360 for VPNing, 271 00:15:01,420 --> 00:15:03,040 so we all know what's going on there. 272 00:15:04,120 --> 00:15:05,020 Stack integrity, 273 00:15:05,640 --> 00:15:06,680 malformed packets. 274 00:15:09,000 --> 00:15:10,680 Obviously, this would be another thing. 275 00:15:10,780 --> 00:15:12,160 Just like Nemesis has proved 276 00:15:12,160 --> 00:15:13,580 that certain devices 277 00:15:13,580 --> 00:15:15,740 can drop like a rock 278 00:15:15,740 --> 00:15:17,360 to particular malformed packets 279 00:15:17,360 --> 00:15:18,340 through ROSOC. 280 00:15:19,780 --> 00:15:21,060 We've got covert channels. 281 00:15:21,220 --> 00:15:22,880 We can look at OSRFC deficiencies. 282 00:15:23,900 --> 00:15:25,600 There are many vendors 283 00:15:25,600 --> 00:15:26,700 that ignore, 284 00:15:26,880 --> 00:15:27,640 must be zero bits, 285 00:15:28,340 --> 00:15:30,040 and use reserved bits 286 00:15:30,040 --> 00:15:31,260 to store whatever. 287 00:15:32,200 --> 00:15:33,300 I'm not so sure 288 00:15:33,300 --> 00:15:34,240 that some of these commercial vendors 289 00:15:34,240 --> 00:15:35,400 are actually reading the RFCs. 290 00:15:37,580 --> 00:15:38,200 We've got, 291 00:15:38,960 --> 00:15:39,800 I mean, 292 00:15:39,820 --> 00:15:42,060 you can have an unbelievable amount 293 00:15:42,060 --> 00:15:42,800 of covert channels, 294 00:15:42,980 --> 00:15:44,080 but the reason why I've tuned 295 00:15:44,080 --> 00:15:45,940 a particular intelligent agent 296 00:15:45,940 --> 00:15:47,140 to one operating system 297 00:15:47,140 --> 00:15:47,880 as opposed to making 298 00:15:47,880 --> 00:15:49,880 a portable intelligent agent 299 00:15:50,740 --> 00:15:52,940 is because we can't trust 300 00:15:52,940 --> 00:15:54,480 the operating system's packets 301 00:15:54,480 --> 00:15:55,280 that are coming back 302 00:15:55,280 --> 00:15:55,960 on the end of the wire. 303 00:15:56,040 --> 00:15:56,780 We all know Linux drops. 304 00:15:56,780 --> 00:15:58,140 We all know that 305 00:15:59,000 --> 00:16:00,060 what you see 306 00:16:00,060 --> 00:16:00,780 is not what you get 307 00:16:01,260 --> 00:16:02,280 when it's coming back 308 00:16:02,280 --> 00:16:04,360 from particular operating systems. 309 00:16:05,760 --> 00:16:07,180 We could have crafted payload 310 00:16:07,180 --> 00:16:08,340 and non-standard protocols. 311 00:16:10,020 --> 00:16:11,600 And this crafted protocol 312 00:16:11,600 --> 00:16:12,820 or crafted payload 313 00:16:12,820 --> 00:16:15,220 could be directed or indirected. 314 00:16:16,040 --> 00:16:17,880 We could be sending this to, 315 00:16:18,420 --> 00:16:19,160 I don't know, 316 00:16:19,280 --> 00:16:20,680 there was a talk last year 317 00:16:20,680 --> 00:16:21,300 about IDS 318 00:16:21,860 --> 00:16:23,560 and about how you should be looking 319 00:16:23,560 --> 00:16:24,700 at things that are on your network 320 00:16:24,700 --> 00:16:25,520 as opposed to things 321 00:16:25,520 --> 00:16:26,240 that are not running 322 00:16:26,240 --> 00:16:26,800 on your network. 323 00:16:28,460 --> 00:16:29,400 This is great 324 00:16:29,400 --> 00:16:31,160 if we have sane data. 325 00:16:32,100 --> 00:16:33,680 We do not have sane data out there. 326 00:16:33,780 --> 00:16:34,500 We have a bunch of hackers 327 00:16:34,500 --> 00:16:35,280 throwing packets everywhere. 328 00:16:35,600 --> 00:16:36,260 Look at FNED. 329 00:16:38,860 --> 00:16:40,860 If we send a packet 330 00:16:40,860 --> 00:16:42,460 to a non-existent host 331 00:16:42,460 --> 00:16:44,180 and an IDS isn't going to catch this, 332 00:16:45,340 --> 00:16:46,780 then we can pick this up 333 00:16:46,780 --> 00:16:47,480 on the other end 334 00:16:47,480 --> 00:16:49,220 if we're looking for packets 335 00:16:49,820 --> 00:16:51,660 somewhere else on that segment 336 00:16:53,060 --> 00:16:54,320 destined to that host. 337 00:16:54,920 --> 00:16:56,720 And we can actually have 338 00:16:56,720 --> 00:16:58,340 communication running back and forth 339 00:16:58,340 --> 00:16:59,980 that an IDS has no awareness of. 340 00:17:00,880 --> 00:17:02,140 So although, yes, 341 00:17:02,260 --> 00:17:04,280 for optimization reasons, 342 00:17:04,480 --> 00:17:05,180 it's important 343 00:17:06,460 --> 00:17:08,620 to scale your IDS 344 00:17:08,620 --> 00:17:09,740 to your network topology, 345 00:17:10,260 --> 00:17:11,320 you're also going to miss 346 00:17:11,320 --> 00:17:12,280 a whole hell of a lot. 347 00:17:13,840 --> 00:17:14,740 Packet scrubbing 348 00:17:14,740 --> 00:17:16,000 was a suggested alternative. 349 00:17:16,340 --> 00:17:17,280 And I'm all for this. 350 00:17:18,220 --> 00:17:19,780 Doug Song, I believe, 351 00:17:19,860 --> 00:17:21,240 was pointed out his last shoot 352 00:17:21,240 --> 00:17:22,280 who had been working on this. 353 00:17:22,960 --> 00:17:24,180 I've seen the stubs 354 00:17:24,180 --> 00:17:25,600 go into OpenBSD PF. 355 00:17:26,020 --> 00:17:26,700 For those of you 356 00:17:26,700 --> 00:17:27,540 that are not familiar, 357 00:17:27,840 --> 00:17:28,860 Darren has pretty much 358 00:17:28,860 --> 00:17:29,820 not given us permission 359 00:17:29,820 --> 00:17:31,240 to use IPF. 360 00:17:31,400 --> 00:17:32,900 And his license 361 00:17:32,900 --> 00:17:34,520 violates our open standards. 362 00:17:36,340 --> 00:17:38,720 So we are moving towards 363 00:17:38,720 --> 00:17:40,160 OpenBSD PF, 364 00:17:40,760 --> 00:17:42,400 which is a product 365 00:17:42,400 --> 00:17:43,540 of Dan Hartmeyer 366 00:17:43,540 --> 00:17:45,320 at the OpenBSD development team. 367 00:17:46,520 --> 00:17:47,660 He has produced 368 00:17:47,660 --> 00:17:49,760 a wonderful set 369 00:17:49,760 --> 00:17:51,460 of initial code 370 00:17:51,460 --> 00:17:52,160 to start from 371 00:17:52,160 --> 00:17:54,040 with some optimization 372 00:17:54,180 --> 00:17:55,320 that I think Darren 373 00:17:56,060 --> 00:17:57,340 kind of missed the boat on. 374 00:17:57,460 --> 00:17:59,120 As far as a firewall, 375 00:17:59,320 --> 00:18:01,620 he's got some IDS implications 376 00:18:01,620 --> 00:18:03,480 to what he had put 377 00:18:03,480 --> 00:18:04,300 into his firewall, 378 00:18:04,460 --> 00:18:05,700 such as keep frags. 379 00:18:06,160 --> 00:18:07,480 We'll get to this more later 380 00:18:07,480 --> 00:18:08,160 when we discuss 381 00:18:09,020 --> 00:18:09,900 TCP fragmentation 382 00:18:09,900 --> 00:18:11,920 and assembly and MTU. 383 00:18:14,040 --> 00:18:16,140 We have assessment codes today. 384 00:18:16,920 --> 00:18:18,720 Our code is singular and disjoint. 385 00:18:19,720 --> 00:18:21,600 We have an IDS that detects. 386 00:18:21,600 --> 00:18:22,740 We have a scanner that scans 387 00:18:22,740 --> 00:18:24,020 and a sniffer that sniffs. 388 00:18:24,040 --> 00:18:24,160 So we have a scanner that scans 389 00:18:24,160 --> 00:18:24,320 and a sniffer that sniffs. 390 00:18:24,320 --> 00:18:25,020 I mean, this is really, 391 00:18:25,120 --> 00:18:26,380 really backwards. 392 00:18:26,520 --> 00:18:27,560 We have a security consultant 393 00:18:27,560 --> 00:18:28,540 that sits in the middle 394 00:18:28,540 --> 00:18:29,640 and mitigates this risk. 395 00:18:32,200 --> 00:18:32,680 Tomorrow, 396 00:18:33,380 --> 00:18:34,120 or today, 397 00:18:34,960 --> 00:18:35,860 we're going to have 398 00:18:35,860 --> 00:18:36,720 conditional response. 399 00:18:37,780 --> 00:18:39,540 We're having intelligent tool suites 400 00:18:39,540 --> 00:18:41,660 that are able to use agents 401 00:18:41,660 --> 00:18:43,080 to talk with each other 402 00:18:43,080 --> 00:18:45,000 so that we have centralized 403 00:18:45,000 --> 00:18:46,520 or decentralized reporting. 404 00:18:47,800 --> 00:18:49,240 We can use these tools 405 00:18:49,240 --> 00:18:49,960 for the, 406 00:18:49,980 --> 00:18:51,040 so if a scanner 407 00:18:51,040 --> 00:18:51,680 on one tier 408 00:18:51,680 --> 00:18:52,640 of a network infrastructure 409 00:18:53,660 --> 00:18:54,140 detects, 410 00:18:55,380 --> 00:18:56,240 username Joe, 411 00:18:56,640 --> 00:18:57,720 password Bob, 412 00:18:57,880 --> 00:18:58,680 logging into a network, 413 00:18:59,560 --> 00:19:01,520 we can report that 414 00:19:01,520 --> 00:19:03,200 to the network scanner 415 00:19:03,200 --> 00:19:04,480 so that it can detect 416 00:19:04,480 --> 00:19:06,680 the presence of that username 417 00:19:06,680 --> 00:19:07,960 and password on other nodes. 418 00:19:08,220 --> 00:19:09,880 So those counts could be 419 00:19:09,880 --> 00:19:10,700 maybe shut out 420 00:19:10,700 --> 00:19:13,400 if we detect that this 421 00:19:14,760 --> 00:19:15,980 intrusion was across 422 00:19:16,980 --> 00:19:18,440 an anomalous time, 423 00:19:18,620 --> 00:19:19,600 three o'clock in the morning 424 00:19:19,600 --> 00:19:20,180 from the secretary 425 00:19:20,180 --> 00:19:21,720 and the secretary has no 426 00:19:21,720 --> 00:19:22,880 dial-up access or anything. 427 00:19:24,340 --> 00:19:25,620 We can use these tools 428 00:19:25,620 --> 00:19:27,520 to basically secure the environment 429 00:19:27,970 --> 00:19:29,900 until the NOC has a chance 430 00:19:29,900 --> 00:19:30,960 to report the problem 431 00:19:30,960 --> 00:19:32,960 and they can get people dispatched. 432 00:19:35,080 --> 00:19:36,380 We have agent usage. 433 00:19:36,880 --> 00:19:38,540 I'm kind of moving through these slides. 434 00:19:38,700 --> 00:19:39,940 I've been asked to hurry up a little bit 435 00:19:39,940 --> 00:19:43,400 since we're kind of on a off-skew here on time. 436 00:19:43,880 --> 00:19:45,160 We have automated response. 437 00:19:45,600 --> 00:19:46,720 We have replay attack, 438 00:19:47,040 --> 00:19:47,920 session hijacking, 439 00:19:48,080 --> 00:19:49,080 sniff to compromise. 440 00:19:49,180 --> 00:19:51,520 That's a nice little term 441 00:19:51,520 --> 00:19:52,920 that would mainly mean 442 00:19:52,920 --> 00:19:53,680 that you would sniff it, 443 00:19:53,680 --> 00:19:55,880 packet, like using dsniff, 444 00:19:55,880 --> 00:19:57,320 you get a username and password combination 445 00:19:57,320 --> 00:19:58,600 and immediately use that 446 00:19:58,600 --> 00:19:59,860 against the host that you have 447 00:20:00,780 --> 00:20:01,880 sniffed the traffic on 448 00:20:02,440 --> 00:20:04,020 without anybody being present. 449 00:20:04,560 --> 00:20:06,200 So if somebody came back, 450 00:20:06,240 --> 00:20:07,040 they could report that 451 00:20:07,040 --> 00:20:08,700 that was actually a successful login 452 00:20:08,700 --> 00:20:09,720 and wasn't a bogus packet 453 00:20:09,720 --> 00:20:10,520 or something like that. 454 00:20:10,920 --> 00:20:12,040 We've got sniffers out there 455 00:20:12,040 --> 00:20:12,880 that will report anything 456 00:20:12,880 --> 00:20:13,960 based on what you send 457 00:20:13,960 --> 00:20:14,880 as a crafted packet. 458 00:20:15,800 --> 00:20:18,260 If I can dummy up any packet nemesis 459 00:20:18,260 --> 00:20:21,320 and trigger any sniffer 460 00:20:21,320 --> 00:20:23,380 to believe what I want it to believe, 461 00:20:23,680 --> 00:20:25,680 you're not necessarily getting information 462 00:20:25,680 --> 00:20:27,760 that's indicative of what's really out there 463 00:20:27,760 --> 00:20:28,260 on your network. 464 00:20:30,060 --> 00:20:32,300 We can use distributed agents and autonomous nodes. 465 00:20:32,400 --> 00:20:33,660 This kind of reaches the area 466 00:20:33,660 --> 00:20:36,000 of where Ender was talking about autonomous nodes 467 00:20:36,000 --> 00:20:39,900 and using them to each have their own control, 468 00:20:40,120 --> 00:20:42,760 each have no knowledge of each other. 469 00:20:42,860 --> 00:20:44,360 They just have their own tasks 470 00:20:44,360 --> 00:20:45,600 that are mandated on the wire. 471 00:20:46,280 --> 00:20:48,340 And this is basically the future 472 00:20:48,340 --> 00:20:49,960 of enterprise security solutions. 473 00:20:50,240 --> 00:20:53,580 I mean, we are taking information on a network wire. 474 00:20:53,680 --> 00:20:55,560 We are producing a report. 475 00:20:55,780 --> 00:20:57,220 And we are walking out of the corporation 476 00:20:57,220 --> 00:20:59,160 with a snapshot of the corporation. 477 00:20:59,460 --> 00:21:00,940 And two minutes later, 478 00:21:01,000 --> 00:21:02,240 as we drive off the parking lot, 479 00:21:02,440 --> 00:21:03,640 if they move one box, 480 00:21:03,800 --> 00:21:09,820 that actual engagement has completely been obsoleted. 481 00:21:11,940 --> 00:21:14,460 And obviously, this can stem with distributed agents 482 00:21:14,460 --> 00:21:15,800 to intelligent viral infection, 483 00:21:16,220 --> 00:21:18,740 DDoS attacks, and inner segment sniffers. 484 00:21:18,920 --> 00:21:20,460 And what I mean by inner segment 485 00:21:21,060 --> 00:21:23,080 is by having two different agents 486 00:21:23,080 --> 00:21:24,180 on two different endpoints, 487 00:21:24,340 --> 00:21:26,060 both ARP spoofing across the routers, 488 00:21:26,710 --> 00:21:29,240 both collecting information and then sorting out 489 00:21:29,240 --> 00:21:31,580 which ones have the exact same packets. 490 00:21:32,780 --> 00:21:36,080 And putting together a nice network topology 491 00:21:36,080 --> 00:21:37,080 that you wouldn't normally get 492 00:21:37,080 --> 00:21:38,120 from a fully switched environment. 493 00:21:41,080 --> 00:21:42,720 The problem with agents, though, 494 00:21:42,760 --> 00:21:44,300 is that it can't think outside the box. 495 00:21:44,500 --> 00:21:46,280 When you're there doing a network penetration, 496 00:21:46,600 --> 00:21:48,240 you've got other risks to worry about. 497 00:21:48,380 --> 00:21:49,000 You've got policy. 498 00:21:49,540 --> 00:21:52,220 You've got social, political, and economic risks 499 00:21:52,220 --> 00:21:52,820 to the corporation. 500 00:21:52,820 --> 00:21:53,060 You've got social, political, and economic risks to the corporation. 501 00:21:53,060 --> 00:21:55,920 That won't maybe not be so intelligible 502 00:21:55,920 --> 00:21:57,400 for a program to figure out 503 00:21:57,400 --> 00:21:58,940 through looking at files 504 00:21:58,940 --> 00:22:01,020 that may be of a proprietary format. 505 00:22:02,440 --> 00:22:06,200 So, obviously, there's a means to an ends 506 00:22:06,200 --> 00:22:09,820 in taking this to the electronic level. 507 00:22:10,060 --> 00:22:12,040 But we're gonna miss a whole hell of a lot 508 00:22:12,040 --> 00:22:13,960 from the actual risk in a corporation 509 00:22:13,960 --> 00:22:15,560 if somebody's doing laundering 510 00:22:15,560 --> 00:22:17,340 or somebody's doing something 511 00:22:17,340 --> 00:22:20,000 that possibly may not be seen 512 00:22:20,000 --> 00:22:21,980 just through electronic traffic alone. 513 00:22:21,980 --> 00:22:23,840 Or we would never reach that. 514 00:22:25,820 --> 00:22:27,460 We would never reach that solution 515 00:22:27,460 --> 00:22:29,580 based on looking at that electronic data alone. 516 00:22:29,720 --> 00:22:31,640 And that we would have to be crossing to a level 517 00:22:31,640 --> 00:22:33,620 of looking at other documents in the corporation. 518 00:22:35,300 --> 00:22:36,900 So, now we reach intravenous. 519 00:22:38,020 --> 00:22:41,380 The prior slides were just telling along the lines 520 00:22:41,380 --> 00:22:44,760 of marrying agents up with TCP IP. 521 00:22:45,540 --> 00:22:49,260 This is a actual live intelligent agent 522 00:22:49,260 --> 00:22:50,620 that I'm working on currently. 523 00:22:50,620 --> 00:22:53,380 I handed off the Nemesis source code 524 00:22:53,380 --> 00:22:54,920 to Jeff Nathan of AdStake 525 00:22:54,920 --> 00:22:56,680 because I don't have time to work on it anymore. 526 00:22:57,480 --> 00:22:59,460 This is all stuff coming out of my free time. 527 00:23:01,920 --> 00:23:06,040 And I'm looking at marrying an intelligent agent 528 00:23:06,040 --> 00:23:08,540 up with a host and network 529 00:23:09,120 --> 00:23:11,760 so that we can have network and host-based assertion 530 00:23:13,840 --> 00:23:15,880 as far as what we can look at. 531 00:23:16,040 --> 00:23:16,620 Hold on. 532 00:23:17,500 --> 00:23:18,420 Client server design. 533 00:23:19,140 --> 00:23:20,500 Our agent design criteria. 534 00:23:20,920 --> 00:23:23,380 Criteria for this project, intravenous, 535 00:23:23,500 --> 00:23:25,500 is we've got ammunition here. 536 00:23:25,680 --> 00:23:27,420 So this is only, I talked to Jennifer Granik 537 00:23:27,420 --> 00:23:28,420 for about an hour yesterday, 538 00:23:28,680 --> 00:23:31,480 or day before yesterday, or yesterday, Black Hat. 539 00:23:33,160 --> 00:23:34,780 And we're using Blowfish internally. 540 00:23:34,920 --> 00:23:35,980 I'm not making plug-ins. 541 00:23:36,920 --> 00:23:38,480 I'm not gonna scale this down 542 00:23:39,420 --> 00:23:42,000 because U.S. crypto law is restricting exportation. 543 00:23:43,760 --> 00:23:46,840 We're all, hopefully, well, there's a lot of people here 544 00:23:46,840 --> 00:23:47,540 from other countries. 545 00:23:48,500 --> 00:23:49,660 We're gonna do what we can. 546 00:23:49,660 --> 00:23:52,600 If somebody else can help write a plug-in, that'd be great. 547 00:23:52,760 --> 00:23:54,260 I wanna marry this to OpenBSD. 548 00:23:54,500 --> 00:23:57,080 So if we can find some other solutions, that'd be great. 549 00:23:57,120 --> 00:23:58,860 But I'd like to use the internal Blowfish functions. 550 00:24:01,840 --> 00:24:03,380 So we've got a strongly connected, 551 00:24:04,020 --> 00:24:06,440 or strongly authenticated, as well as strongly connected, 552 00:24:06,620 --> 00:24:07,700 client server model. 553 00:24:08,160 --> 00:24:09,260 And what we mean by this 554 00:24:10,300 --> 00:24:12,300 is that we authenticate the Blowfish password 555 00:24:12,620 --> 00:24:14,200 and then we have configuration files 556 00:24:14,200 --> 00:24:15,340 that are stored at both ends. 557 00:24:15,800 --> 00:24:19,580 And we do a SHA-1 hash and a challenge response. 558 00:24:19,660 --> 00:24:22,740 To verify that the information stored 559 00:24:22,740 --> 00:24:24,760 about who the client IP addresses are 560 00:24:25,620 --> 00:24:28,500 is sane on both the client and the server. 561 00:24:30,820 --> 00:24:32,460 Oh, screw up in the slides. 562 00:24:32,980 --> 00:24:36,920 We have a sensor which is modeled after OpenBSD PF 563 00:24:36,920 --> 00:24:38,380 and it's scaled to user land. 564 00:24:39,220 --> 00:24:42,120 So we bring this out to stateful packet inspection. 565 00:24:42,440 --> 00:24:44,520 We have to take care of TCP fragment handling. 566 00:24:44,600 --> 00:24:45,920 We have static filtering rules 567 00:24:46,380 --> 00:24:48,860 that are broken up into two categories called interstate. 568 00:24:49,660 --> 00:24:50,300 And extrastate. 569 00:24:51,760 --> 00:24:52,860 We have an expert system, 570 00:24:54,440 --> 00:24:57,720 which has knowledge bases in both the arenas of TCP IP. 571 00:24:57,960 --> 00:25:00,960 So we actually essentially have three expert systems, 572 00:25:01,100 --> 00:25:02,880 three minor expert systems rolled into one. 573 00:25:03,880 --> 00:25:05,440 The attack and the defensive, 574 00:25:05,720 --> 00:25:08,340 or the attack and defense expert systems, 575 00:25:08,920 --> 00:25:11,280 because the inference engines provide lookup functions 576 00:25:11,280 --> 00:25:12,520 to the knowledge bases, 577 00:25:12,880 --> 00:25:14,280 are essentially packet steps, 578 00:25:14,500 --> 00:25:16,400 or function steps for the moment. 579 00:25:16,820 --> 00:25:19,640 We're trying to concentrate on next packet injection, over, right? 580 00:25:19,660 --> 00:25:20,060 So we're not going to concentrate on the cross-succut, 581 00:25:20,100 --> 00:25:23,080 so we'll be focusing on TCP IP expert systems. 582 00:25:24,420 --> 00:25:25,680 We have an injection engine, 583 00:25:26,660 --> 00:25:31,020 these being the three components of intravenous, 584 00:25:31,700 --> 00:25:34,740 which is simply a user-defined injection, 585 00:25:36,020 --> 00:25:39,220 and we have some sort of automated injection, 586 00:25:39,400 --> 00:25:42,200 which is going to be looked at across the expert system 587 00:25:42,200 --> 00:25:43,960 to see if we've actually gotten packets. 588 00:25:44,300 --> 00:25:47,120 We're trying to do this from the standpoint of allowing, 589 00:25:47,380 --> 00:25:49,560 or not allowing hackers to be able to dump, 590 00:25:50,680 --> 00:25:54,060 or craft packets with Nemesis or some other tool 591 00:25:54,060 --> 00:25:58,140 to corrupt the state table of interstate traffic, 592 00:25:58,300 --> 00:25:59,740 which is the most important state 593 00:25:59,740 --> 00:26:02,160 or stateful information that's kept on the wire. 594 00:26:03,480 --> 00:26:05,600 Our model sort of looks like this. 595 00:26:05,680 --> 00:26:07,360 This is all designed in OpenBSD. 596 00:26:07,460 --> 00:26:08,300 This is using DIA. 597 00:26:10,360 --> 00:26:12,760 We have packets that come in. 598 00:26:12,820 --> 00:26:14,320 We've got the client that connects to a server. 599 00:26:15,080 --> 00:26:17,040 The server rules are configured. 600 00:26:17,480 --> 00:26:18,620 We've got three systems. 601 00:26:18,620 --> 00:26:22,540 The sensors, the injection engine, and the expert system 602 00:26:22,540 --> 00:26:24,900 made up of the knowledge bases and the inference engine. 603 00:26:25,740 --> 00:26:27,720 Packets arrive to the packet filter, 604 00:26:28,520 --> 00:26:30,100 are brought through the sensor, 605 00:26:30,720 --> 00:26:32,740 are checked with the injection table 606 00:26:32,740 --> 00:26:35,920 to make sure that the user that connected to the server 607 00:26:35,920 --> 00:26:37,500 actually injected this packet. 608 00:26:39,740 --> 00:26:42,520 We kind of care less about the extra state table 609 00:26:42,520 --> 00:26:44,020 getting fairly corrupted 610 00:26:44,020 --> 00:26:46,860 because we're keeping very minimal state 611 00:26:46,860 --> 00:26:48,560 when it comes to extra state. 612 00:26:48,620 --> 00:26:50,980 We'll get to the definitions in just a second. 613 00:26:51,580 --> 00:26:53,740 Interstate is the core component of this. 614 00:26:53,820 --> 00:26:56,000 It's all you need to be aware of at this moment. 615 00:26:57,500 --> 00:27:02,320 The problem with Nemesis was that we have static injection. 616 00:27:03,200 --> 00:27:06,400 If we launch one particular packet over and over and over again, 617 00:27:06,460 --> 00:27:08,960 we are basically simulating a SYN flood. 618 00:27:10,900 --> 00:27:12,920 We send out, we have a sequence number of 100, 619 00:27:13,140 --> 00:27:14,920 an acknowledgement number set to zero. 620 00:27:14,940 --> 00:27:16,180 We send that to the target. 621 00:27:16,400 --> 00:27:18,400 The target responds with the sequence number, 622 00:27:18,620 --> 00:27:20,360 200, an acknowledgement number of 101, 623 00:27:20,600 --> 00:27:22,640 which is the next packet it's expecting to send out. 624 00:27:23,240 --> 00:27:25,300 However, Nemesis sends out the same packet again, 625 00:27:25,380 --> 00:27:26,980 so we have another SYN that doesn't get answered, 626 00:27:27,580 --> 00:27:29,660 and we simply have no handshake. 627 00:27:31,300 --> 00:27:33,360 Nobody has really explored the arena 628 00:27:33,900 --> 00:27:36,820 of conducting three-way handshakes through raw sockets, 629 00:27:36,820 --> 00:27:39,980 so this agent is all about handling 630 00:27:39,980 --> 00:27:44,940 this ongoing connection past the three-way handshake 631 00:27:45,820 --> 00:27:48,480 for as long a period of time as we can possibly stand. 632 00:27:48,620 --> 00:27:51,820 The connection is through hackers throwing reset floods 633 00:27:51,820 --> 00:27:53,700 across the wire to try to drop our connection. 634 00:27:56,160 --> 00:28:00,060 The general common chaos that goes on on the network wire, 635 00:28:00,200 --> 00:28:03,500 on a network that is full of maybe untrusted employees, 636 00:28:04,440 --> 00:28:06,560 maybe just a public network like here, 637 00:28:06,680 --> 00:28:08,740 where you're going to have a lot of people running amok 638 00:28:08,740 --> 00:28:09,640 on the wireless LAN, 639 00:28:09,740 --> 00:28:13,760 testing out everything that was presented at Black Hat. 640 00:28:15,740 --> 00:28:18,440 We have a SYN packet that goes in through intravenous, 641 00:28:19,400 --> 00:28:21,280 same thing, sequence number of 100, 642 00:28:21,520 --> 00:28:22,840 acknowledgement number set to zero, 643 00:28:22,980 --> 00:28:24,560 target comes back, 200, 101. 644 00:28:25,360 --> 00:28:27,640 The only difference is because we're interpreting 645 00:28:27,640 --> 00:28:30,360 the packet that comes back from the target's intravenous, 646 00:28:30,440 --> 00:28:34,360 we can actually have a knowledge base 647 00:28:34,360 --> 00:28:36,340 that consists of relative value changes 648 00:28:36,340 --> 00:28:39,440 based on a major and minor protocol version, 649 00:28:39,680 --> 00:28:40,880 which we'll get to in a little bit, 650 00:28:41,520 --> 00:28:45,360 that will discuss how we can perform 651 00:28:45,360 --> 00:28:46,300 that next packet injection, 652 00:28:46,620 --> 00:28:48,500 which the next packet will answer back from, 653 00:28:48,500 --> 00:28:48,900 from the target. 654 00:28:49,220 --> 00:28:50,900 And this keeps this ongoing connection, 655 00:28:51,140 --> 00:28:52,220 regardless of payload. 656 00:28:52,920 --> 00:28:55,040 Because what we'll come to see is that 657 00:28:55,580 --> 00:28:57,960 there are many protocols which are used today, 658 00:28:58,180 --> 00:29:01,080 such as 70% of the internet being web traffic, 659 00:29:02,200 --> 00:29:03,600 that are simply clear text, 660 00:29:03,880 --> 00:29:05,420 with like a new line appended. 661 00:29:05,920 --> 00:29:07,420 And when you've got clear text, 662 00:29:07,520 --> 00:29:08,960 you can just read payload from a file, 663 00:29:09,040 --> 00:29:10,100 just like you did with Nemesis. 664 00:29:11,100 --> 00:29:13,740 And you can have each packet pulling one line 665 00:29:13,740 --> 00:29:14,740 per one line of payload, 666 00:29:15,020 --> 00:29:17,180 and each packet that goes out does 667 00:29:17,180 --> 00:29:19,860 the next packet injection, 668 00:29:20,160 --> 00:29:21,460 such as Unicode. 669 00:29:21,540 --> 00:29:22,460 Unicode's a great example. 670 00:29:22,600 --> 00:29:25,420 You could walk a file system with intravenous, 671 00:29:25,960 --> 00:29:27,520 searching for a particular file 672 00:29:27,520 --> 00:29:28,860 through a string-regex combination. 673 00:29:31,200 --> 00:29:32,440 We have a client-server model. 674 00:29:34,860 --> 00:29:35,900 IV, intravenous, 675 00:29:36,600 --> 00:29:37,680 not to be confused with VI, 676 00:29:37,880 --> 00:29:38,820 if you're typoing. 677 00:29:39,440 --> 00:29:41,480 So yeah, change your CSH shell 678 00:29:41,480 --> 00:29:43,060 so that it doesn't detect typos. 679 00:29:44,060 --> 00:29:46,340 IV, the client has a, 680 00:29:46,360 --> 00:29:46,720 uh, 681 00:29:46,720 --> 00:29:47,640 configuration file called 682 00:29:47,640 --> 00:29:49,420 slash etsyiv.conf, 683 00:29:49,500 --> 00:29:51,680 which contains only the IP addresses of the clients. 684 00:29:52,940 --> 00:29:54,500 Um, I say clients here 685 00:29:54,500 --> 00:29:56,860 because you may have two foreign powers 686 00:29:56,860 --> 00:29:59,640 that want to both join in the same game 687 00:29:59,640 --> 00:30:02,600 of playing with packets across the network. 688 00:30:02,700 --> 00:30:04,560 And you can set this up beforehand 689 00:30:04,560 --> 00:30:06,200 where you have delegated IP addresses. 690 00:30:06,440 --> 00:30:08,740 And this is what the SHA-1 hash is computed against. 691 00:30:09,780 --> 00:30:12,900 So if a hacker had managed to acquire somehow, 692 00:30:13,320 --> 00:30:15,540 um, I mean, you've got to be root to run the client. 693 00:30:15,680 --> 00:30:16,180 Well, 694 00:30:16,720 --> 00:30:18,160 you've got to be a user to run the client. 695 00:30:18,240 --> 00:30:19,420 You've got to be a root to run the, 696 00:30:19,420 --> 00:30:20,640 the actual agent itself 697 00:30:20,640 --> 00:30:22,260 because it's doing the raw packet injection. 698 00:30:23,340 --> 00:30:23,700 Um, 699 00:30:23,800 --> 00:30:25,700 the client just stands up 700 00:30:25,700 --> 00:30:28,020 a Blowfish encrypted tunnel to the agent. 701 00:30:28,100 --> 00:30:30,280 The agent is the only one doing the packet injection. 702 00:30:31,300 --> 00:30:33,540 This is not set up like distributed denial of service 703 00:30:33,540 --> 00:30:35,200 where you have actually three hops, 704 00:30:35,620 --> 00:30:37,160 where you have a client going to a master 705 00:30:37,160 --> 00:30:38,560 and the master's going to the slaves. 706 00:30:38,860 --> 00:30:41,180 And the slaves are hitting the attack 707 00:30:41,180 --> 00:30:43,180 so that when the forensics and analysis 708 00:30:43,180 --> 00:30:44,260 is done on the slaves, 709 00:30:44,780 --> 00:30:46,420 the worst that they could do is point back 710 00:30:46,420 --> 00:30:47,000 to the master, 711 00:30:47,080 --> 00:30:49,040 which can't point back necessarily to the client 712 00:30:49,040 --> 00:30:51,640 unless they do data forensics on the master. 713 00:30:52,600 --> 00:30:54,760 So the whole reason that this was set up 714 00:30:54,760 --> 00:30:56,740 on a three tier for distributed denial of service 715 00:30:56,740 --> 00:30:59,820 was to maintain anonymity 716 00:30:59,820 --> 00:31:02,280 when conducting a denial of service attack. 717 00:31:03,320 --> 00:31:05,500 Although this is an offensive tool 718 00:31:05,500 --> 00:31:08,160 to exploit the defensive applications 719 00:31:08,160 --> 00:31:11,580 that could be, um, implemented with AI, 720 00:31:13,120 --> 00:31:15,580 this tool is also meant to be installed 721 00:31:15,580 --> 00:31:16,400 in OpenBSD. 722 00:31:16,420 --> 00:31:18,040 And it's also meant that you have root access 723 00:31:18,040 --> 00:31:18,900 on all these agents. 724 00:31:19,040 --> 00:31:20,640 So it's assumed that you have control 725 00:31:20,640 --> 00:31:22,320 over all the nodes that are attached 726 00:31:22,320 --> 00:31:23,120 to this network diagram. 727 00:31:23,780 --> 00:31:26,420 So it makes little sense to play the anonymity game 728 00:31:26,420 --> 00:31:28,660 when you are not just compromising a host 729 00:31:29,360 --> 00:31:31,780 and sending packets over the wire. 730 00:31:33,200 --> 00:31:34,640 We initially talked about that 731 00:31:34,640 --> 00:31:37,300 this was going to be used with Nemesis 732 00:31:37,300 --> 00:31:38,820 and that we were going to use Nemesis 733 00:31:38,820 --> 00:31:40,660 to actually do the injection threads. 734 00:31:41,160 --> 00:31:42,800 The problem with that is that 735 00:31:45,280 --> 00:31:46,260 I have had, 736 00:31:46,260 --> 00:31:47,940 I've had some difficulty coordinating 737 00:31:47,940 --> 00:31:50,340 LibNet development with Nemesis development. 738 00:31:50,740 --> 00:31:51,360 At the beginning, 739 00:31:51,400 --> 00:31:53,100 Nemesis was developed just fine 740 00:31:53,100 --> 00:31:55,780 because we hadn't reached the endpoints of LibNet 741 00:31:55,780 --> 00:31:56,760 of where we're at now. 742 00:31:57,860 --> 00:31:58,520 And, um, 743 00:31:58,680 --> 00:32:01,400 LibNet has been getting a little airplay these days 744 00:32:01,400 --> 00:32:03,860 as far as, um, design on itself. 745 00:32:04,700 --> 00:32:06,660 And I spent more time, um, 746 00:32:06,820 --> 00:32:08,060 after talking with Ophir, 747 00:32:08,760 --> 00:32:12,220 uh, to get some ICMP obsolete packet types 748 00:32:12,220 --> 00:32:13,940 and codes in place. 749 00:32:14,520 --> 00:32:16,080 Um, that these were not, 750 00:32:16,260 --> 00:32:17,800 being produced as a part of LibNet. 751 00:32:18,240 --> 00:32:19,740 And so I produced, you know, 752 00:32:19,740 --> 00:32:21,440 some more like ICMP search quench. 753 00:32:22,160 --> 00:32:25,220 And honestly, I got bored of developing LibNet 754 00:32:25,220 --> 00:32:27,540 when Nemesis was the tool I was developing. 755 00:32:28,180 --> 00:32:30,200 Uh, so I decided to bring this in-house 756 00:32:30,200 --> 00:32:33,100 uh, so that we can explore the arena 757 00:32:33,100 --> 00:32:34,240 of host-based analysis 758 00:32:34,720 --> 00:32:37,560 and what we can do with host-based control 759 00:32:37,560 --> 00:32:39,520 if we know the operating system that we're on. 760 00:32:39,720 --> 00:32:41,500 The white paper that will be released 761 00:32:41,500 --> 00:32:42,360 after this proceeding 762 00:32:42,360 --> 00:32:44,400 goes into quite a bit more detail 763 00:32:44,400 --> 00:32:45,600 as to why we described, 764 00:32:46,260 --> 00:32:49,040 uh, or why we are using OpenBSD as a platform 765 00:32:49,040 --> 00:32:50,760 as opposed to another operating system. 766 00:32:52,400 --> 00:32:55,060 The server is IVD, 767 00:32:55,800 --> 00:32:56,720 IV Damon, 768 00:32:57,320 --> 00:32:58,800 uh, which is the agent. 769 00:32:59,000 --> 00:33:02,040 And I'm really, really fascinated with KQ. 770 00:33:02,520 --> 00:33:05,320 I recently tossed Apache to the wayside 771 00:33:05,320 --> 00:33:08,380 and threw up THTTPD on packetninja.net 772 00:33:08,380 --> 00:33:11,980 because I noticed that my load was going up to a point 773 00:33:11,980 --> 00:33:13,860 where I couldn't use the box anymore 774 00:33:13,860 --> 00:33:15,400 that the web server was running on 775 00:33:15,400 --> 00:33:17,040 when there were a lot of simultaneous connections. 776 00:33:18,160 --> 00:33:21,020 Uh, KQ is some remarkable, uh, work 777 00:33:21,020 --> 00:33:22,980 that was, came out of FreeBSD 778 00:33:22,980 --> 00:33:25,760 and has been brought over to OpenBSD. 779 00:33:27,720 --> 00:33:29,360 And, uh, so we're gonna use that 780 00:33:29,360 --> 00:33:30,940 to help create the concurrency 781 00:33:30,940 --> 00:33:32,700 in case there were lots of people 782 00:33:32,700 --> 00:33:34,680 on different agents coming from different regions 783 00:33:34,680 --> 00:33:37,080 that wanted to make multiple simultaneous connections 784 00:33:37,080 --> 00:33:37,840 to the server 785 00:33:38,360 --> 00:33:40,060 so they can manage this a lot better. 786 00:33:41,000 --> 00:33:42,880 So we have etsyivd.com, 787 00:33:42,880 --> 00:33:46,740 which contains the IP addresses of, uh, 788 00:33:46,920 --> 00:33:49,300 this should be servers, or the agents. 789 00:33:49,720 --> 00:33:53,640 Um, it is aware of the actual, um, 790 00:33:53,740 --> 00:33:55,480 other agents that are on the network wire 791 00:33:55,480 --> 00:33:56,580 because, as you'll see later, 792 00:33:57,160 --> 00:33:59,540 uh, we're actually gonna do an extra-state analysis 793 00:33:59,980 --> 00:34:02,300 of the other remote agents that are on the wire. 794 00:34:03,360 --> 00:34:06,920 Um, this helps us in being able to see what's going on 795 00:34:06,920 --> 00:34:09,320 and what packets are being injected into other agents 796 00:34:09,980 --> 00:34:12,860 while we are still connected with yet another agent, 797 00:34:12,860 --> 00:34:14,700 which would be considered our local agent. 798 00:34:15,320 --> 00:34:17,860 And our max connections are allocated, uh, 799 00:34:18,060 --> 00:34:20,580 through etsyivd.com so that we maintain some sanity 800 00:34:20,580 --> 00:34:22,940 and we, we don't have, uh, 801 00:34:23,680 --> 00:34:25,860 lagging connections between packet injections 802 00:34:25,860 --> 00:34:27,760 so that it can keep up with the interstate engine. 803 00:34:29,060 --> 00:34:31,160 As you'll see, we've modeled the interstate engine 804 00:34:31,160 --> 00:34:35,860 to, uh, use as least, uh, clock time, 805 00:34:36,020 --> 00:34:37,960 or CPU time, I should say, as possible. 806 00:34:38,880 --> 00:34:41,960 Um, and this is done through work, through OpenBSD PF, 807 00:34:41,960 --> 00:34:46,060 through understanding how PF handles TCP fragmentary assembly, 808 00:34:46,600 --> 00:34:48,220 um, at minimal cost. 809 00:34:49,120 --> 00:34:51,780 And it also has to do with, um... 810 00:34:52,420 --> 00:34:53,580 I lost that thought. 811 00:34:54,820 --> 00:34:59,200 Um, both the client and the agent use ib.conf and ibd.conf. 812 00:34:59,440 --> 00:35:01,840 Uh, they both have copies of each other, 813 00:35:02,000 --> 00:35:05,000 uh, one-way hashes and strong perm checking of the files. 814 00:35:05,400 --> 00:35:08,580 Uh, we have, uh, basically root-owned file 0400. 815 00:35:10,240 --> 00:35:10,760 Um... 816 00:35:10,760 --> 00:35:13,480 We maintain sanity of IV and IVD 817 00:35:13,480 --> 00:35:15,960 by assuming that we are the only ones 818 00:35:15,960 --> 00:35:17,080 that have root access to the box, 819 00:35:17,160 --> 00:35:18,680 or the ones that do have root access to the box 820 00:35:18,680 --> 00:35:19,380 we have knowledge about. 821 00:35:19,980 --> 00:35:21,960 So by marrying this to OpenBSD 822 00:35:21,960 --> 00:35:24,420 and being the secure-by-default paradigm 823 00:35:24,420 --> 00:35:26,980 and the fact that there have been no remote vulnerabilities 824 00:35:26,980 --> 00:35:30,440 discovered in the last four years publicly... 825 00:35:37,900 --> 00:35:39,240 Yeah, Theo, actually. 826 00:35:39,240 --> 00:35:41,740 Theo and the rest of the core development team, 827 00:35:41,780 --> 00:35:42,760 I mostly work on ports, 828 00:35:42,880 --> 00:35:45,340 but they have a lot of respect on my end. 829 00:35:46,600 --> 00:35:49,640 Um, authentication successful with password and hash compliance. 830 00:35:51,100 --> 00:35:53,120 Um, so we use both these components 831 00:35:53,120 --> 00:35:55,900 to do a one- and a two-part authentication. 832 00:35:56,260 --> 00:35:59,380 This makes sure that if somehow somebody says, 833 00:35:59,520 --> 00:36:00,960 huh, hey, Bob, you know, 834 00:36:00,980 --> 00:36:03,080 talking over the phone on AT&T, you know, or whatever, 835 00:36:03,220 --> 00:36:05,820 and they're like, here's my password for the agent, 836 00:36:05,980 --> 00:36:07,520 and it gets tapped somehow 837 00:36:07,520 --> 00:36:09,220 because they're using a cordless phone, 838 00:36:09,220 --> 00:36:11,800 an analog cordless phone or analog cell phone. 839 00:36:13,080 --> 00:36:14,780 And we snip that over RF, 840 00:36:15,020 --> 00:36:17,080 or we tap their wire or whatever. 841 00:36:17,800 --> 00:36:19,560 And we acquire that password 842 00:36:19,560 --> 00:36:21,180 through not having root access to that box. 843 00:36:21,300 --> 00:36:23,400 We could still, if we just did password authentication, 844 00:36:23,780 --> 00:36:25,140 we could still log in to that agent 845 00:36:25,140 --> 00:36:26,320 and we could still control it. 846 00:36:26,640 --> 00:36:28,100 But by doing this hash compliance, 847 00:36:28,380 --> 00:36:31,620 we assume that the attacker knows the IP addresses 848 00:36:31,620 --> 00:36:34,680 that are configured as the clients. 849 00:36:34,940 --> 00:36:37,700 Um, if the hacker has no knowledge, 850 00:36:37,900 --> 00:36:39,200 no prior knowledge of the clients, 851 00:36:39,220 --> 00:36:40,040 the client IP addresses. 852 00:36:40,280 --> 00:36:41,260 And now, of course, we can just, 853 00:36:41,340 --> 00:36:42,540 we've got comments. 854 00:36:42,640 --> 00:36:44,480 We use pound for comments, just like shell scripts. 855 00:36:44,620 --> 00:36:47,100 We can just throw in garbage into comments, 856 00:36:47,220 --> 00:36:50,000 which just obviously helps pump up the hash. 857 00:36:50,480 --> 00:36:54,420 Uh, so that if one client was assigned to ibd.conf 858 00:36:54,420 --> 00:36:56,800 and somehow that information got transmitted 859 00:36:56,800 --> 00:36:58,560 over a telephone, um, 860 00:36:58,780 --> 00:37:01,200 or by word of mouth across the cubicle farm, 861 00:37:02,660 --> 00:37:06,020 the password and knowledge of the ibd.conf, 862 00:37:06,240 --> 00:37:08,020 or, I mean, ib.conf, 863 00:37:08,020 --> 00:37:09,600 the actual client IP address, 864 00:37:09,840 --> 00:37:11,740 having one IP address in there alone 865 00:37:11,740 --> 00:37:13,540 and doing a SHA-1 is completely pointless 866 00:37:13,540 --> 00:37:14,640 since that could be replicated 867 00:37:14,640 --> 00:37:17,500 and both parts of that authentication could be broken. 868 00:37:19,440 --> 00:37:22,820 Our sensors are obviously running in promiscuous mode 869 00:37:22,820 --> 00:37:23,940 since we're already root, 870 00:37:24,040 --> 00:37:26,080 we might as well be running in promiscuous mode 871 00:37:26,080 --> 00:37:27,100 with filtering. 872 00:37:27,480 --> 00:37:32,000 We use a standard PCAP, uh, for this filter. 873 00:37:32,760 --> 00:37:35,540 And, uh, we're filtering by what's set up 874 00:37:35,540 --> 00:37:36,600 in the configuration file. 875 00:37:38,020 --> 00:37:42,180 So we have our stateful user-defined connection filters, 876 00:37:42,400 --> 00:37:44,240 which are delegated as intrastate 877 00:37:44,240 --> 00:37:45,900 or defined as intrastate traffic. 878 00:37:46,580 --> 00:37:48,140 And we have stateless, 879 00:37:48,140 --> 00:37:49,540 it's actually really not stateless, 880 00:37:49,620 --> 00:37:50,580 it's minimal state. 881 00:37:50,660 --> 00:37:52,940 We keep track of the source, destination IP addresses, 882 00:37:53,260 --> 00:37:55,180 and the ports of applicable Y protocol. 883 00:37:55,580 --> 00:37:58,320 And that's stored in an extra state table. 884 00:38:00,320 --> 00:38:02,580 The agent is a PCAP filter, again. 885 00:38:02,760 --> 00:38:05,120 It stores the agent IP addresses 886 00:38:05,720 --> 00:38:08,000 plus a set of local, exclusive, 887 00:38:08,020 --> 00:38:09,100 exclusion ports. 888 00:38:10,040 --> 00:38:11,880 And what we mean by that is 889 00:38:13,100 --> 00:38:15,020 we want to be able to set up an agent 890 00:38:15,020 --> 00:38:16,260 that can run on a web server 891 00:38:16,260 --> 00:38:18,720 that's already communicating with the outside world. 892 00:38:19,200 --> 00:38:21,660 So if we want to set up an agent on a web server, 893 00:38:21,840 --> 00:38:23,420 we don't want to be sniffing traffic 894 00:38:23,420 --> 00:38:26,020 that is legitimately inbound for that web server. 895 00:38:26,160 --> 00:38:28,220 We're not developing an IDS. 896 00:38:28,340 --> 00:38:29,940 There are other tools to do that. 897 00:38:30,260 --> 00:38:32,660 We want to maintain, um, 898 00:38:32,860 --> 00:38:35,060 we want to actually maintain state 899 00:38:35,060 --> 00:38:36,560 on packets that are unexpected. 900 00:38:38,020 --> 00:38:39,320 They're coming to the same node 901 00:38:39,320 --> 00:38:40,520 that the agent's running on. 902 00:38:41,680 --> 00:38:43,540 And we want to do information gathering 903 00:38:43,540 --> 00:38:46,660 across these, uh, remote port, 904 00:38:46,760 --> 00:38:49,040 or we want to do remote. 905 00:38:49,860 --> 00:38:51,780 The ones that are not exempted, 906 00:38:51,780 --> 00:38:53,760 we want to do information gathering of. 907 00:38:55,060 --> 00:38:56,380 Uh, we have interstate. 908 00:38:56,460 --> 00:38:57,220 We reached the definitions. 909 00:38:57,540 --> 00:38:59,660 Uh, this is the scope of user-injected response. 910 00:39:00,040 --> 00:39:03,020 Uh, these are, the table is based of splay trees. 911 00:39:03,120 --> 00:39:05,200 After talking with Marty about splay trees 912 00:39:05,200 --> 00:39:07,640 and also talking with Dan Hartmeyer, 913 00:39:07,640 --> 00:39:11,100 um, currently OpenBSD PF uses AVL trees 914 00:39:11,640 --> 00:39:12,760 with a single rotation. 915 00:39:13,480 --> 00:39:15,360 Uh, we've discussed, uh, 916 00:39:15,400 --> 00:39:17,180 possibly dumping splay trees in here. 917 00:39:17,300 --> 00:39:17,620 Why? 918 00:39:17,960 --> 00:39:20,360 Uh, when we get to the definitions of trees, 919 00:39:20,480 --> 00:39:22,160 you'll find that splay trees more adhere 920 00:39:22,160 --> 00:39:24,660 to the way that packets move across the wire, 921 00:39:24,800 --> 00:39:26,960 that we can actually simulate caching 922 00:39:26,960 --> 00:39:29,680 by bringing each expected node up to root 923 00:39:29,680 --> 00:39:33,000 rather than having to have each node of a tree, 924 00:39:33,490 --> 00:39:36,380 uh, be maintaining height balance 925 00:39:36,380 --> 00:39:38,980 of plus or minus one to maintain a, 926 00:39:38,980 --> 00:39:40,400 a nice balanced tree. 927 00:39:42,640 --> 00:39:45,640 Um, we use layer three for this obviously 928 00:39:45,640 --> 00:39:48,460 because we can't anticipate necessarily 929 00:39:48,460 --> 00:39:50,620 that all our packets are arriving through data link 930 00:39:50,620 --> 00:39:51,800 on the, on the local LAN. 931 00:39:52,900 --> 00:39:56,580 And we sort the splay tree by source IP addresses. 932 00:39:57,140 --> 00:39:59,540 So incoming packets source IP addresses 933 00:40:00,300 --> 00:40:02,580 because all, obviously the destination IP address 934 00:40:02,580 --> 00:40:06,300 will always be one that is being either one of the other, 935 00:40:06,300 --> 00:40:08,320 other agent IPs or the local agent IP 936 00:40:08,320 --> 00:40:10,400 that the promiscuous filter is running on, 937 00:40:10,460 --> 00:40:11,900 or the promiscuous sniff is running on. 938 00:40:12,860 --> 00:40:16,620 And, um, we also maintain a local state 939 00:40:16,620 --> 00:40:17,920 of the routing table. 940 00:40:18,720 --> 00:40:21,220 Here we start dipping our first finger 941 00:40:21,220 --> 00:40:23,560 into why we're marrying this 942 00:40:23,560 --> 00:40:25,380 to a particular operating system 943 00:40:25,380 --> 00:40:27,540 and are not just using any operating system. 944 00:40:27,760 --> 00:40:29,980 We would only be able to actually maintain, 945 00:40:30,260 --> 00:40:35,140 um, user defined or slash Etsy host 946 00:40:35,140 --> 00:40:36,220 slash Etsy result 947 00:40:36,300 --> 00:40:36,780 dot com. 948 00:40:36,960 --> 00:40:38,880 We would only be able to use very, very clearly 949 00:40:39,440 --> 00:40:41,220 Unix compliant files that are used 950 00:40:41,220 --> 00:40:42,580 across all operating systems. 951 00:40:43,100 --> 00:40:45,160 Um, as you can tell I'm a big Linux fan. 952 00:40:45,220 --> 00:40:47,960 We have Linux, um, TCP IP is, 953 00:40:48,060 --> 00:40:50,560 headers have been rewritten in various ways 954 00:40:50,560 --> 00:40:52,900 to make them completely incompatible with, um, 955 00:40:53,440 --> 00:40:54,700 at low level. 956 00:40:55,540 --> 00:40:57,480 And so we have tools out there. 957 00:40:57,560 --> 00:40:59,580 The reason we have tools out there like LibNet 958 00:41:00,900 --> 00:41:04,020 and LibMUA, which ZSH is making as a, 959 00:41:04,020 --> 00:41:05,960 as a component that is, 960 00:41:05,960 --> 00:41:06,800 is, is like LibNet, 961 00:41:06,860 --> 00:41:07,960 an alternative to LibNet. 962 00:41:08,400 --> 00:41:10,880 Uh, we have LibEvent, 963 00:41:11,120 --> 00:41:12,020 which is a, 964 00:41:13,460 --> 00:41:15,880 a open, well, it's basically a 965 00:41:16,860 --> 00:41:19,840 abstracted, um, KQ method 966 00:41:19,840 --> 00:41:22,080 so that other operating systems like Linux 967 00:41:22,080 --> 00:41:23,620 that don't implement KQs, 968 00:41:23,660 --> 00:41:26,100 uh, can use tools that, 969 00:41:26,160 --> 00:41:27,860 like Niels Provost has come up with, 970 00:41:27,940 --> 00:41:30,600 uh, Vomit, uh, which actually sniffs. 971 00:41:30,680 --> 00:41:31,760 I don't know if you guys have seen this. 972 00:41:32,000 --> 00:41:33,100 It's worth checking out. 973 00:41:33,380 --> 00:41:35,940 Uh, Vomit, uh, actually is a sniffer. 974 00:41:35,960 --> 00:41:37,440 That will basically, uh, 975 00:41:37,640 --> 00:41:39,940 reassemble WAV files of, uh, 976 00:41:39,960 --> 00:41:40,920 voice over IP connections. 977 00:41:41,480 --> 00:41:44,100 Uh, since Cisco chose not to encrypt this, 978 00:41:44,180 --> 00:41:44,940 these connections. 979 00:41:47,860 --> 00:41:49,720 We have intrastate rules. 980 00:41:50,040 --> 00:41:52,320 Uh, these are the rules, the static rules. 981 00:41:52,440 --> 00:41:54,560 Once the traffic makes it 982 00:41:54,560 --> 00:41:55,900 through the initial packet filter, 983 00:41:57,320 --> 00:41:59,580 the PCAP filter, the agent IP addresses, 984 00:42:00,300 --> 00:42:01,600 and the local exclusion, 985 00:42:01,880 --> 00:42:03,180 or local exempted ports, 986 00:42:03,380 --> 00:42:05,620 we have a set of rules that go beyond that, 987 00:42:05,620 --> 00:42:06,680 that are statically defined, 988 00:42:06,880 --> 00:42:08,620 to define what intrastate is 989 00:42:08,620 --> 00:42:09,660 and what extrastate is. 990 00:42:10,140 --> 00:42:12,360 The packet must have 991 00:42:12,360 --> 00:42:14,980 a local agent destination IP address. 992 00:42:15,960 --> 00:42:18,720 The packet also must have a protocol match. 993 00:42:19,160 --> 00:42:20,940 So we have a little bit mask, 994 00:42:21,080 --> 00:42:22,540 a little u-short type 995 00:42:22,540 --> 00:42:24,380 that keeps track of the protocols 996 00:42:24,380 --> 00:42:26,960 that are already current in the intrastate table. 997 00:42:28,180 --> 00:42:30,520 These intrastate, the protocols that are already 998 00:42:30,520 --> 00:42:32,680 been either user-defined, 999 00:42:33,340 --> 00:42:34,720 injections, or, 1000 00:42:35,860 --> 00:42:37,620 following a user-defined injection 1001 00:42:37,620 --> 00:42:39,020 through continual injection, 1002 00:42:40,100 --> 00:42:42,840 um, after the user has made the initial SYN packet, 1003 00:42:43,040 --> 00:42:44,700 we have a flow that goes back and forth 1004 00:42:44,700 --> 00:42:46,860 across the agent that is supposedly 1005 00:42:46,860 --> 00:42:48,020 or hopefully automated, 1006 00:42:48,940 --> 00:42:49,420 um, 1007 00:42:50,740 --> 00:42:53,040 that this matches up with the protocol 1008 00:42:53,040 --> 00:42:55,480 that's already a part of the intrastate table, 1009 00:42:55,680 --> 00:42:57,580 so that we are not actually getting a protocol 1010 00:42:57,580 --> 00:42:59,700 thrown on the wire that is not indicative 1011 00:42:59,700 --> 00:43:01,640 of something that has not already been a part 1012 00:43:01,640 --> 00:43:02,420 of the intrastate engine. 1013 00:43:02,840 --> 00:43:04,400 Part of the reason for this 1014 00:43:04,400 --> 00:43:07,060 is we don't want a hacker crafting packets again 1015 00:43:07,060 --> 00:43:09,780 that can saturate our table, 1016 00:43:10,380 --> 00:43:12,240 um, make it a mess to sort, 1017 00:43:12,420 --> 00:43:13,840 um, if, 1018 00:43:13,940 --> 00:43:16,860 a good example is there are certain tools out there 1019 00:43:16,860 --> 00:43:17,580 that do, um, 1020 00:43:17,940 --> 00:43:19,000 without naming names, 1021 00:43:19,760 --> 00:43:23,200 uh, that do passive OS identification fingerprinting. 1022 00:43:24,160 --> 00:43:25,500 And they use hash tables. 1023 00:43:25,760 --> 00:43:27,380 We chose not to use hash tables 1024 00:43:27,380 --> 00:43:29,300 because hash tables are inherently vulnerable. 1025 00:43:30,320 --> 00:43:31,360 Why are they vulnerable? 1026 00:43:31,580 --> 00:43:32,740 Well, if a hacker knows, 1027 00:43:32,740 --> 00:43:34,180 I should say attacker, 1028 00:43:34,320 --> 00:43:35,140 hackers aren't all bad, 1029 00:43:36,620 --> 00:43:39,140 if an attacker knows that 1030 00:43:39,740 --> 00:43:42,020 what to inject on the wire to produce state, 1031 00:43:42,640 --> 00:43:45,000 the hacker can fill up that hash table. 1032 00:43:46,260 --> 00:43:46,780 Um, 1033 00:43:47,320 --> 00:43:49,940 early days of a particular tool I'm thinking of, 1034 00:43:50,100 --> 00:43:51,800 um, used a hash table, 1035 00:43:51,840 --> 00:43:53,160 the currently publicly available one, 1036 00:43:53,260 --> 00:43:55,460 uses a hash table size 10,000. 1037 00:43:56,780 --> 00:43:58,580 If I inject a whole bunch of packets 1038 00:43:59,400 --> 00:44:00,880 from random IP addresses 1039 00:44:00,880 --> 00:44:02,580 to fill up that 10,000, 1040 00:44:02,740 --> 00:44:06,080 that passive OS fingerprinting no longer happens 1041 00:44:06,080 --> 00:44:09,300 because there isn't a mechanism 1042 00:44:09,820 --> 00:44:11,780 that was implicit in that code 1043 00:44:11,780 --> 00:44:14,380 that would actually do a copy of a, 1044 00:44:14,420 --> 00:44:16,680 the old hash table into a bigger hash table, 1045 00:44:16,860 --> 00:44:18,800 which is a mess on the big O. 1046 00:44:18,880 --> 00:44:20,600 Everybody knows, here knows big O notation. 1047 00:44:22,020 --> 00:44:24,420 And it takes big O of N, 1048 00:44:25,260 --> 00:44:26,720 and if you've got 10,000, 1049 00:44:26,740 --> 00:44:28,140 that's a hell of a lot of time 1050 00:44:28,600 --> 00:44:29,860 to recopy that hash table. 1051 00:44:31,180 --> 00:44:31,620 Um, 1052 00:44:31,620 --> 00:44:33,000 so we wanted to use, um, 1053 00:44:33,640 --> 00:44:35,020 splay trees, or trees, 1054 00:44:35,240 --> 00:44:37,900 uh, to keep a pointer-based reference 1055 00:44:37,900 --> 00:44:39,680 that we can continually expand 1056 00:44:39,680 --> 00:44:41,380 until we exhaust available resources, 1057 00:44:43,160 --> 00:44:44,460 which we're marrying up 1058 00:44:44,460 --> 00:44:46,080 because we're using OpenBSD 1059 00:44:46,080 --> 00:44:48,680 as an operating system of choice. 1060 00:44:48,800 --> 00:44:50,900 We've got a few areas of, 1061 00:44:51,000 --> 00:44:52,180 of, um, 1062 00:44:52,180 --> 00:44:54,480 APIs that we can use that, uh, 1063 00:44:54,520 --> 00:44:57,700 such as pool underscore star. 1064 00:44:58,160 --> 00:44:59,660 And the pool resources 1065 00:44:59,660 --> 00:45:01,600 are a kernel resource set 1066 00:45:01,620 --> 00:45:02,400 by the kernel's pool manager, 1067 00:45:03,380 --> 00:45:05,400 which basically allows the ability 1068 00:45:05,400 --> 00:45:08,020 for an application to not drop like a rock 1069 00:45:08,020 --> 00:45:10,580 when the, the box is hammered 1070 00:45:10,580 --> 00:45:12,680 and the kernel's having enough difficulty 1071 00:45:12,680 --> 00:45:13,580 trying to keep up. 1072 00:45:15,080 --> 00:45:16,540 So we do other things. 1073 00:45:16,680 --> 00:45:18,400 We do packet prediction, um, 1074 00:45:18,600 --> 00:45:21,140 which will, all this will become very apparent 1075 00:45:21,140 --> 00:45:23,260 and is discussed in extreme detail 1076 00:45:23,260 --> 00:45:24,520 in the, in the white paper. 1077 00:45:25,040 --> 00:45:27,680 Uh, packet prediction is the core component 1078 00:45:28,360 --> 00:45:30,060 of the expert system. 1079 00:45:30,060 --> 00:45:31,640 We have injection state. 1080 00:45:33,100 --> 00:45:34,540 We're doing staple packet injection, 1081 00:45:34,820 --> 00:45:36,620 so we want to make sure that if the user says, 1082 00:45:36,720 --> 00:45:38,840 I want to inject a sin to port 80 of this host, 1083 00:45:39,580 --> 00:45:41,960 that that is a part of the injection state 1084 00:45:41,960 --> 00:45:44,660 and that when the next packet is coming back in, 1085 00:45:44,820 --> 00:45:46,900 we marry that up with the expert system's 1086 00:45:46,900 --> 00:45:47,900 relative value changes, 1087 00:45:48,240 --> 00:45:50,380 and we know that that's a valid packet 1088 00:45:50,380 --> 00:45:51,680 and it's not a spoof packet. 1089 00:45:53,040 --> 00:45:55,700 And we check this against the expert system tables, 1090 00:45:55,920 --> 00:45:57,600 which the inference engine uses 1091 00:45:57,600 --> 00:45:59,520 against the, um, 1092 00:46:00,060 --> 00:46:01,500 against the knowledge base for lookup. 1093 00:46:02,200 --> 00:46:04,220 Extra state is the information-gathering component. 1094 00:46:05,120 --> 00:46:06,920 Layer three, um, 1095 00:46:07,160 --> 00:46:08,480 layer two is assumed. 1096 00:46:08,920 --> 00:46:11,340 Uh, layer three, uh, conducts, 1097 00:46:11,340 --> 00:46:13,080 uh, is also on a splay tree. 1098 00:46:13,120 --> 00:46:13,940 It keeps minimal state. 1099 00:46:14,220 --> 00:46:16,500 We have a link list that keeps track of, uh, 1100 00:46:16,580 --> 00:46:18,900 IP MAC address relationships on the local LAN. 1101 00:46:19,660 --> 00:46:21,580 For use later, for use, uh, 1102 00:46:21,660 --> 00:46:23,760 for later purposes of doing, uh, 1103 00:46:23,840 --> 00:46:25,760 either attack or defensive-based research, 1104 00:46:25,980 --> 00:46:28,040 um, using these, um, 1105 00:46:28,740 --> 00:46:29,880 uh, packet anomalies that were, 1106 00:46:30,060 --> 00:46:30,980 that you'll see coming up later. 1107 00:46:31,660 --> 00:46:34,080 Uh, the extra state rules are that 1108 00:46:34,080 --> 00:46:35,500 we have a local agent destination 1109 00:46:35,500 --> 00:46:36,660 with an unknown protocol. 1110 00:46:37,340 --> 00:46:38,840 We have a local agent destination, 1111 00:46:39,120 --> 00:46:41,560 or we have a local agent destination 1112 00:46:41,560 --> 00:46:43,520 with an unknown source IP address. 1113 00:46:44,180 --> 00:46:45,940 We have a remote agent destination, 1114 00:46:46,260 --> 00:46:47,380 strategic placement, 1115 00:46:47,580 --> 00:46:50,060 so if you set your agents up 1116 00:46:50,060 --> 00:46:51,460 on two different sides of a LAN 1117 00:46:51,460 --> 00:46:54,180 where you may predict that attacks may be coming from, 1118 00:46:54,440 --> 00:46:56,600 you can guarantee that one of those agents 1119 00:46:56,600 --> 00:46:58,800 is going to be on the same network segment 1120 00:46:58,800 --> 00:46:59,980 as the attacker, 1121 00:47:00,660 --> 00:47:02,740 which means that we can do some sort of 1122 00:47:04,080 --> 00:47:06,080 stateful analysis from that agent, 1123 00:47:06,720 --> 00:47:09,180 and with a minimal state, 1124 00:47:09,340 --> 00:47:11,440 we can keep track of it with the other remote agents. 1125 00:47:11,980 --> 00:47:13,920 And it also keeps track of layer two 1126 00:47:13,920 --> 00:47:14,880 and layer three broadcast. 1127 00:47:16,980 --> 00:47:18,880 TCP IP header versus MTU. 1128 00:47:18,940 --> 00:47:21,200 This is going to get into why we are handling 1129 00:47:21,200 --> 00:47:23,140 TCP fragment reassembly cheaply. 1130 00:47:24,520 --> 00:47:26,220 The largest packet I've seen 1131 00:47:26,800 --> 00:47:28,780 on a wire, you know, Sunday night, 1132 00:47:28,800 --> 00:47:29,820 I've sent out numerous, numerous packets 1133 00:47:29,820 --> 00:47:31,180 with Nemesis and other tools, 1134 00:47:31,860 --> 00:47:34,660 is a TCP SYN and a SYNHACK, 1135 00:47:34,860 --> 00:47:36,080 which sends out 64 bytes 1136 00:47:36,080 --> 00:47:39,100 because of a 25-byte set of TCP options. 1137 00:47:40,340 --> 00:47:42,720 And we have ARP that follows 28 bytes. 1138 00:47:43,000 --> 00:47:46,300 The RIP base for extended RIP options 1139 00:47:46,300 --> 00:47:47,540 is 24 bytes, 1140 00:47:47,600 --> 00:47:49,640 and an OSPF hello packet is 24 bytes. 1141 00:47:49,780 --> 00:47:51,040 That's kind of like the top four 1142 00:47:51,040 --> 00:47:53,940 of the protocols that are already used in Nemesis 1143 00:47:53,940 --> 00:47:56,380 as to the max values I've seen on the network wire. 1144 00:47:57,200 --> 00:47:58,620 So what happens 1145 00:47:58,800 --> 00:48:01,800 if we get a packet that's sent to us 1146 00:48:03,160 --> 00:48:05,100 that is less than 64 bytes in length 1147 00:48:05,100 --> 00:48:05,960 and we don't have a full header? 1148 00:48:06,780 --> 00:48:10,240 Well, the minimal MTU I've seen is 572, 1149 00:48:10,320 --> 00:48:12,040 which is indicative of PPP. 1150 00:48:13,040 --> 00:48:16,980 I have never seen an MTU that has gone below 64 bytes. 1151 00:48:18,040 --> 00:48:20,040 So the best way that we can handle 1152 00:48:20,040 --> 00:48:22,380 TCP fragment handling 1153 00:48:22,380 --> 00:48:27,280 is to simply drop 1154 00:48:27,280 --> 00:48:29,500 the first FRAG 1155 00:48:29,500 --> 00:48:31,440 if the full protocol header is not contained, 1156 00:48:31,580 --> 00:48:33,540 because we're filtering based on this protocol header. 1157 00:48:35,060 --> 00:48:37,080 Otherwise, we just filter on the first fragment only. 1158 00:48:37,220 --> 00:48:39,700 Whereas, Darren reads IPF, 1159 00:48:40,180 --> 00:48:41,340 it keeps FRAGs. 1160 00:48:42,500 --> 00:48:44,080 Why? I'm not really sure. 1161 00:48:45,600 --> 00:48:47,360 If we don't have a first FRAG combination 1162 00:48:47,360 --> 00:48:49,220 and we let the other FRAGs pass through, 1163 00:48:49,280 --> 00:48:50,820 we don't have a first FRAG to match up 1164 00:48:50,820 --> 00:48:52,860 with the rest of the fragments when doing reassembly. 1165 00:48:53,220 --> 00:48:54,560 Therefore, we don't have 1166 00:48:55,100 --> 00:48:56,520 a full attack taking place. 1167 00:48:57,280 --> 00:48:58,140 The header is missing, 1168 00:48:58,300 --> 00:48:59,400 or part of the header is missing. 1169 00:49:00,160 --> 00:49:01,300 So the packets get dropped. 1170 00:49:01,700 --> 00:49:02,640 So why do we keep FRAGs? 1171 00:49:03,440 --> 00:49:05,460 I've been talking with Dan about this a number of times, 1172 00:49:05,560 --> 00:49:07,100 Dan Hartmeyer, the guy from PF. 1173 00:49:08,140 --> 00:49:09,980 And we haven't been able to come up with 1174 00:49:09,980 --> 00:49:11,940 real legitimate reasons for doing this. 1175 00:49:12,020 --> 00:49:13,800 Now, I can understand doing this for IDS purposes 1176 00:49:13,800 --> 00:49:15,880 because we're trying to match up 1177 00:49:16,400 --> 00:49:17,120 protocol fingerprint, 1178 00:49:17,340 --> 00:49:18,120 or we're trying to match up 1179 00:49:18,960 --> 00:49:19,680 anonymous attacks, 1180 00:49:22,100 --> 00:49:22,820 exploitation fingerprinting. 1181 00:49:22,960 --> 00:49:24,400 We're trying to match this up with signatures. 1182 00:49:24,520 --> 00:49:26,000 So we want to make sure that we get the full header 1183 00:49:26,000 --> 00:49:26,900 along with the payloads 1184 00:49:26,900 --> 00:49:29,060 so that we can actually assign this to rules. 1185 00:49:29,520 --> 00:49:31,200 And we have some sort of a knowledge 1186 00:49:31,200 --> 00:49:32,680 as to what the hacker is doing 1187 00:49:32,680 --> 00:49:34,180 rather than just a bunch of random packets 1188 00:49:34,180 --> 00:49:34,860 going over the wire, 1189 00:49:35,020 --> 00:49:36,660 which doesn't do anybody any good 1190 00:49:37,380 --> 00:49:38,980 and creates a lot of hell 1191 00:49:38,980 --> 00:49:40,120 going through a TCP dump. 1192 00:49:41,780 --> 00:49:43,700 Otherwise, we filter the first fragment only, 1193 00:49:43,820 --> 00:49:44,700 complete header, 1194 00:49:44,840 --> 00:49:45,880 and the next packet injection 1195 00:49:46,660 --> 00:49:47,880 depends only on the header. 1196 00:49:48,280 --> 00:49:50,420 So again, we don't care about the payload. 1197 00:49:50,540 --> 00:49:52,000 If we're only caring about the next header 1198 00:49:52,000 --> 00:49:53,900 or the complete header, 1199 00:49:54,040 --> 00:49:55,560 we can just drop all the packets. 1200 00:49:55,560 --> 00:49:57,840 And obviously, there are many reasons 1201 00:49:57,840 --> 00:49:59,080 for doing fragmentation. 1202 00:49:59,480 --> 00:50:02,080 A classical example is IP over IP tunneling. 1203 00:50:02,740 --> 00:50:04,320 It increases the size. 1204 00:50:04,840 --> 00:50:12,440 Our MTU is set to Ethernet. 1205 00:50:12,460 --> 00:50:14,540 We've got 1,500 bytes on an Ethernet. 1206 00:50:14,540 --> 00:50:17,480 And with IEEE and different header combinations, 1207 00:50:17,620 --> 00:50:18,760 we have 1,492. 1208 00:50:18,980 --> 00:50:22,900 An IP over IP tunnel would drag that size up 1209 00:50:22,900 --> 00:50:25,080 to where it would be greater than the Ethernet MTU. 1210 00:50:25,560 --> 00:50:27,580 So we'd have fragmentation across all these packets. 1211 00:50:27,740 --> 00:50:29,200 Now, of course, this would be better handled 1212 00:50:29,200 --> 00:50:30,740 if we did even distribution 1213 00:50:30,740 --> 00:50:32,800 and we understood ahead of time 1214 00:50:32,800 --> 00:50:34,640 that we're doing IP over IP tunneling 1215 00:50:34,640 --> 00:50:36,360 so that we could bump the MTU up 1216 00:50:36,360 --> 00:50:39,480 and make sure that we were having needless fragmenting 1217 00:50:39,480 --> 00:50:41,100 because this can produce twice the cost 1218 00:50:42,880 --> 00:50:44,460 doing fragmenting on each packet. 1219 00:50:46,280 --> 00:50:47,380 So our definite, 1220 00:50:47,460 --> 00:50:48,780 our possible performance increase 1221 00:50:49,340 --> 00:50:52,240 and decrease is based on this MTU. 1222 00:50:52,620 --> 00:50:53,500 And then, of course, 1223 00:50:53,600 --> 00:50:55,200 hackers fragment these packets. 1224 00:50:55,560 --> 00:50:58,000 Either very large oversized packets 1225 00:50:58,000 --> 00:51:00,800 or very small, usually typically, 1226 00:51:01,060 --> 00:51:03,400 for denial of service, evasion, or compromise. 1227 00:51:05,220 --> 00:51:07,200 We have our state tables, our interstate table. 1228 00:51:07,920 --> 00:51:09,500 The updates are consistent, 1229 00:51:09,600 --> 00:51:11,280 or consist of addition and deletion. 1230 00:51:11,720 --> 00:51:13,000 We have rapid deletion. 1231 00:51:13,040 --> 00:51:14,180 This is why we don't use hash tables. 1232 00:51:14,280 --> 00:51:16,760 It's an expensive cost to have to keep updating a table 1233 00:51:16,760 --> 00:51:17,780 and deleting entries from it. 1234 00:51:18,060 --> 00:51:20,240 It's just easier to make a prime hash table 1235 00:51:20,240 --> 00:51:24,260 and to use linear probing, quadratic probing. 1236 00:51:24,920 --> 00:51:26,940 There's all types of methods that you can use 1237 00:51:27,620 --> 00:51:29,920 for trying to avoid collisions in hash tables. 1238 00:51:31,060 --> 00:51:31,720 Frequent use. 1239 00:51:32,900 --> 00:51:34,320 It's a very expensive operation. 1240 00:51:35,100 --> 00:51:37,140 This is the most expensive operation, 1241 00:51:37,240 --> 00:51:38,600 is keeping state on this table. 1242 00:51:39,260 --> 00:51:40,660 So we need an optimal data structure. 1243 00:51:41,640 --> 00:51:42,940 We need an extra state table, 1244 00:51:43,080 --> 00:51:45,440 which just updates consistent amount of addition. 1245 00:51:46,320 --> 00:51:48,440 And we'll remove the stuff over a timeout. 1246 00:51:48,620 --> 00:51:50,480 I mean, there's really no reason 1247 00:51:50,480 --> 00:51:51,860 to just keep removing stuff 1248 00:51:52,440 --> 00:51:53,680 over and over and over and over again. 1249 00:51:54,380 --> 00:51:55,820 Like we've done with the interstate, 1250 00:51:55,900 --> 00:51:57,420 because we're only trying to keep track 1251 00:51:57,420 --> 00:51:59,340 of the current packet that's on the wire 1252 00:51:59,340 --> 00:52:00,900 so that we can inject the next packet out. 1253 00:52:01,200 --> 00:52:04,240 We don't want to have to sort protocol-dependent fields 1254 00:52:04,240 --> 00:52:05,380 so that we can figure out which packet 1255 00:52:05,380 --> 00:52:06,800 was the latest packet that was sent over the wire. 1256 00:52:06,920 --> 00:52:08,460 There's just too much information to keep track of. 1257 00:52:08,900 --> 00:52:11,100 Oh, which sequence number is the latest sequence number? 1258 00:52:11,600 --> 00:52:12,340 It's a mess. 1259 00:52:12,580 --> 00:52:15,860 So we're doing updates with the interstate table 1260 00:52:15,860 --> 00:52:18,120 with rapid addition and rapid deletion. 1261 00:52:19,120 --> 00:52:19,980 How's my time here? 1262 00:52:22,380 --> 00:52:23,160 How's my time? 1263 00:52:23,160 --> 00:52:24,440 I'm actually pretty good at DM. 1264 00:52:24,560 --> 00:52:25,580 You're over with DM. 1265 00:52:25,920 --> 00:52:26,780 The next speaker is out. 1266 00:52:26,900 --> 00:52:28,100 He's not coming in. 1267 00:52:28,260 --> 00:52:29,420 So we're going to have someone fill, 1268 00:52:29,520 --> 00:52:31,580 so you can go 15 minutes over. 1269 00:52:31,620 --> 00:52:32,160 Thank you so much. 1270 00:52:33,580 --> 00:52:34,180 All right. 1271 00:52:35,660 --> 00:52:36,380 Speed is important, 1272 00:52:36,700 --> 00:52:37,880 but not at the expense of security. 1273 00:52:41,100 --> 00:52:42,960 Hash tables versus search trees. 1274 00:52:43,320 --> 00:52:44,700 Well, why we don't use hash tables 1275 00:52:44,700 --> 00:52:45,700 and why we use search trees. 1276 00:52:46,340 --> 00:52:48,300 Hash tables can create, destroy, 1277 00:52:48,440 --> 00:52:49,600 insert, delete, and find. 1278 00:52:49,780 --> 00:52:50,740 We have a static array, 1279 00:52:50,840 --> 00:52:52,020 and it's expensive to resize, 1280 00:52:52,020 --> 00:52:52,880 as talked before. 1281 00:52:53,340 --> 00:52:55,200 Our worst case is big O of log n. 1282 00:52:55,280 --> 00:52:56,720 Our average case is big O of one 1283 00:52:56,720 --> 00:52:57,800 if we don't have collisions. 1284 00:52:58,560 --> 00:53:00,340 We do collision handling 1285 00:53:00,340 --> 00:53:02,700 by giving that prime hash table size. 1286 00:53:02,960 --> 00:53:04,600 We do open addressing and chaining. 1287 00:53:04,780 --> 00:53:05,820 You can read up on hash tables 1288 00:53:05,820 --> 00:53:06,920 if you're really interested in this. 1289 00:53:07,240 --> 00:53:09,320 This is better if we're doing things like, 1290 00:53:09,400 --> 00:53:10,700 I don't know, some symbol tables 1291 00:53:10,700 --> 00:53:11,960 like when you're compiling something. 1292 00:53:12,340 --> 00:53:13,720 Things where you're not going to be 1293 00:53:13,720 --> 00:53:15,260 removing things as you compile 1294 00:53:15,260 --> 00:53:17,780 because you want to maintain state on those symbols. 1295 00:53:19,280 --> 00:53:21,180 It's better if you just have additions, 1296 00:53:21,180 --> 00:53:22,400 and you don't have deletions. 1297 00:53:27,500 --> 00:53:29,660 Our search trees can also create, destroy, 1298 00:53:29,760 --> 00:53:30,780 insert, delete, and find. 1299 00:53:31,820 --> 00:53:34,220 A typical search tree is height balance 1300 00:53:34,220 --> 00:53:34,740 at each node. 1301 00:53:36,280 --> 00:53:37,840 This can be an expensive operation 1302 00:53:37,840 --> 00:53:40,220 if your search tree is very big. 1303 00:53:41,800 --> 00:53:43,520 Balance is maintained through rotations. 1304 00:53:44,060 --> 00:53:45,580 AVL trees are commonly fined 1305 00:53:45,580 --> 00:53:46,780 as single and double rotations, 1306 00:53:47,700 --> 00:53:49,980 which are commonly called zigzag, 1307 00:53:50,020 --> 00:53:50,460 zagzag, 1308 00:53:51,180 --> 00:53:51,760 and zigzag. 1309 00:53:54,240 --> 00:53:56,420 OpenBSD PF implements solely 1310 00:53:56,420 --> 00:53:58,300 single rotations at the moment, 1311 00:53:58,440 --> 00:54:00,380 but we're still filling out. 1312 00:54:00,780 --> 00:54:02,820 This is still early in the development of it, 1313 00:54:04,220 --> 00:54:06,400 but hopefully everything will be in place, 1314 00:54:06,520 --> 00:54:08,600 and we'll actually have all the state tables 1315 00:54:08,600 --> 00:54:13,120 solidified for PF by OpenBSD 3.0 this December. 1316 00:54:15,080 --> 00:54:17,300 We have a linked structure representation 1317 00:54:17,300 --> 00:54:21,100 rather than a static array that we've defined. 1318 00:54:21,100 --> 00:54:24,680 So our resize is just adding more pointers. 1319 00:54:25,600 --> 00:54:27,760 Our worst case is big O of log n 1320 00:54:27,760 --> 00:54:29,040 on a height balance tree. 1321 00:54:31,000 --> 00:54:33,880 We decided to use splay trees over AVL trees 1322 00:54:33,880 --> 00:54:35,040 after many discussions. 1323 00:54:36,340 --> 00:54:38,580 I'm pretty aware that Dragos, 1324 00:54:38,620 --> 00:54:40,820 I'm not sure if he actually implemented the code, 1325 00:54:41,080 --> 00:54:42,440 I know he was involved with it, 1326 00:54:42,500 --> 00:54:43,280 according to Dan. 1327 00:54:44,680 --> 00:54:47,440 Marty Royce, who just left at 1 o'clock today, 1328 00:54:47,480 --> 00:54:47,860 unfortunately, 1329 00:54:48,000 --> 00:54:49,200 could probably confirm that. 1330 00:54:49,380 --> 00:54:51,080 But splay trees are used all the time, 1331 00:54:51,080 --> 00:54:52,280 all over the place in Snort. 1332 00:54:53,500 --> 00:54:56,780 They can perform faster operations than AVL trees, 1333 00:54:57,060 --> 00:54:58,600 given a good splaying algorithm. 1334 00:55:00,140 --> 00:55:02,040 They're self-adjusting binary trees. 1335 00:55:02,220 --> 00:55:04,220 There's no height data stored, unlike AVL, 1336 00:55:04,280 --> 00:55:05,880 so we get faster searches. 1337 00:55:06,220 --> 00:55:09,220 But we rotate each axis to root. 1338 00:55:09,980 --> 00:55:12,500 So basically, the reason this works better 1339 00:55:13,220 --> 00:55:15,480 for TCP IP is if we're doing 1340 00:55:16,240 --> 00:55:18,180 intrastate analysis of a packet, 1341 00:55:18,420 --> 00:55:20,740 we have source IP to destination IP 1342 00:55:21,080 --> 00:55:22,500 and vice versa, going back and forth, 1343 00:55:22,540 --> 00:55:23,820 over and over and over and over again. 1344 00:55:24,520 --> 00:55:28,280 If we, on the first rotation, 1345 00:55:28,360 --> 00:55:29,900 or into the splay tree, 1346 00:55:30,020 --> 00:55:32,920 we bump that value up to root of the tree, 1347 00:55:33,100 --> 00:55:34,660 we have a big O of 1 1348 00:55:36,540 --> 00:55:37,560 worst case scenario 1349 00:55:38,080 --> 00:55:40,260 for each additional packet that comes across the wire 1350 00:55:40,260 --> 00:55:42,080 until we get a packet 1351 00:55:42,080 --> 00:55:44,500 that is going to get rotated intrastate 1352 00:55:44,500 --> 00:55:46,920 because the user is defining 1353 00:55:46,920 --> 00:55:50,000 that he wants to send a packet to an HTTP server 1354 00:55:50,000 --> 00:55:51,880 and then another packet to an SMTP server 1355 00:55:51,880 --> 00:55:52,820 on yet another box. 1356 00:55:53,360 --> 00:55:55,700 As these stagger back and forth, 1357 00:55:55,800 --> 00:55:57,980 we obviously are going to have 1358 00:55:59,360 --> 00:56:01,040 probably a worse cost of about 1359 00:56:01,040 --> 00:56:02,900 the cost of an AVL tree. 1360 00:56:03,100 --> 00:56:04,940 If anybody can argue that point with me later, 1361 00:56:05,000 --> 00:56:05,500 that'd be great. 1362 00:56:06,180 --> 00:56:08,980 I'd really like to hear that AVL works better than splay, 1363 00:56:09,080 --> 00:56:10,080 but so far I'm not convinced. 1364 00:56:11,140 --> 00:56:12,660 The amortized retrieval 1365 00:56:13,180 --> 00:56:14,920 is big O of log n on average. 1366 00:56:15,180 --> 00:56:16,200 Our worst case 1367 00:56:17,080 --> 00:56:19,840 is a tree that kind of pretty much looks like 1368 00:56:20,000 --> 00:56:21,020 if I'm drawing this backwards, 1369 00:56:21,140 --> 00:56:22,540 straight line that goes across, 1370 00:56:22,800 --> 00:56:23,380 it's all in order. 1371 00:56:24,580 --> 00:56:25,380 By definition, 1372 00:56:25,740 --> 00:56:28,200 a splay tree will never be big O of log, 1373 00:56:28,420 --> 00:56:29,540 or big O of n 1374 00:56:29,540 --> 00:56:34,440 for more than one insert into the splay tree. 1375 00:56:35,060 --> 00:56:36,380 We bump that up to root, 1376 00:56:36,500 --> 00:56:37,660 we have a little bit more balance 1377 00:56:37,660 --> 00:56:39,600 and things are happy. 1378 00:56:40,640 --> 00:56:41,900 We have our splay tree algorithm 1379 00:56:41,900 --> 00:56:43,220 which does double rotations 1380 00:56:43,980 --> 00:56:45,440 and does this zigzag, 1381 00:56:45,620 --> 00:56:47,800 which a zig is indicative of a left branch 1382 00:56:47,800 --> 00:56:49,400 and a zag is indicative of a right branch. 1383 00:56:50,000 --> 00:56:52,340 So it's expressed in more detail in the white paper. 1384 00:56:53,660 --> 00:56:54,560 Expert systems. 1385 00:56:54,840 --> 00:56:55,720 We have an unbiased, 1386 00:56:55,740 --> 00:56:56,560 maximum performance, 1387 00:56:57,520 --> 00:56:58,560 lax personality. 1388 00:57:00,400 --> 00:57:01,000 Mycin, 1389 00:57:01,100 --> 00:57:03,400 which is probably the first commercial expert system, 1390 00:57:03,520 --> 00:57:05,880 mapped bacterial infections 1391 00:57:05,880 --> 00:57:10,720 and how doctors could basically 1392 00:57:10,720 --> 00:57:12,280 take a look at symptoms 1393 00:57:12,280 --> 00:57:14,140 that a particular patient has 1394 00:57:14,140 --> 00:57:16,660 across a number of bacteria 1395 00:57:17,680 --> 00:57:19,500 and to try to pinpoint this 1396 00:57:19,500 --> 00:57:21,380 as to what might be the cause 1397 00:57:21,380 --> 00:57:22,400 of this person's illness. 1398 00:57:23,620 --> 00:57:24,140 Obviously, 1399 00:57:24,720 --> 00:57:26,020 anybody in this room, 1400 00:57:26,200 --> 00:57:28,040 everybody's got their proficiency. 1401 00:57:28,320 --> 00:57:30,040 Some people are Linux kernel coders, 1402 00:57:30,160 --> 00:57:32,000 some people are Linux user line coders, 1403 00:57:32,040 --> 00:57:33,020 some people are Windows people. 1404 00:57:33,780 --> 00:57:34,980 Everybody's got a proficiency, 1405 00:57:35,140 --> 00:57:36,340 but if you have an expert system 1406 00:57:36,340 --> 00:57:37,220 that is matched, 1407 00:57:37,320 --> 00:57:38,800 like in Mycin's case, 1408 00:57:39,060 --> 00:57:41,800 that is mapped against all known 1409 00:57:42,440 --> 00:57:43,880 bacteria infection types, 1410 00:57:44,120 --> 00:57:48,180 we can deduce what the plausible bacteria types are 1411 00:57:48,180 --> 00:57:49,660 with human intervention 1412 00:57:50,240 --> 00:57:53,140 to make sure that we have a possible match 1413 00:57:53,140 --> 00:57:54,000 so we don't give someone 1414 00:57:54,000 --> 00:57:55,500 the wrong prescription or something. 1415 00:57:57,540 --> 00:57:58,360 Knowledge bases. 1416 00:57:59,500 --> 00:58:01,140 We have a TCP IP rule base, 1417 00:58:01,260 --> 00:58:02,020 an attack rule base, 1418 00:58:02,060 --> 00:58:02,960 a defense rule base. 1419 00:58:03,120 --> 00:58:04,940 TCP IP rule base is the most important. 1420 00:58:05,180 --> 00:58:07,260 It is indicative of a dictionary. 1421 00:58:08,080 --> 00:58:09,520 Dictionary of protocols 1422 00:58:09,980 --> 00:58:11,620 by major and minor version 1423 00:58:13,340 --> 00:58:16,860 with the respective dependent fields 1424 00:58:16,860 --> 00:58:18,000 that need to be altered 1425 00:58:18,000 --> 00:58:20,460 to maintain this next packet injection. 1426 00:58:20,940 --> 00:58:21,580 And again, 1427 00:58:21,620 --> 00:58:22,400 we have inference engines 1428 00:58:22,400 --> 00:58:23,800 that match up to these knowledge bases. 1429 00:58:24,160 --> 00:58:25,960 The inference engines pretty much tell 1430 00:58:25,960 --> 00:58:27,560 how to sort the knowledge bases 1431 00:58:27,560 --> 00:58:29,160 in as little time as possible. 1432 00:58:29,940 --> 00:58:32,060 Our TCP IP rule base consists 1433 00:58:32,060 --> 00:58:33,720 of a list of rules by protocol. 1434 00:58:34,440 --> 00:58:36,080 We inject TCP SYN 1435 00:58:36,080 --> 00:58:37,760 across destination port 80. 1436 00:58:38,320 --> 00:58:40,320 So we make an injection table addition. 1437 00:58:40,820 --> 00:58:44,600 We sniff the next incoming TCP SYN ACK packet. 1438 00:58:44,740 --> 00:58:46,840 We reverse the injection table 1439 00:58:46,860 --> 00:58:47,560 so we have a connection state match. 1440 00:58:47,820 --> 00:58:49,940 So we invert the source 1441 00:58:49,940 --> 00:58:51,360 with the destination IP address 1442 00:58:51,360 --> 00:58:52,180 and the ports. 1443 00:58:52,960 --> 00:58:53,700 And we say, 1444 00:58:53,800 --> 00:58:53,900 hey, 1445 00:58:53,980 --> 00:58:55,400 that was already injected by the user. 1446 00:58:55,500 --> 00:58:56,780 So this must be a valid sniff. 1447 00:58:57,240 --> 00:58:59,720 We add that to the interstate table. 1448 00:59:00,760 --> 00:59:01,800 And the rules represent 1449 00:59:01,800 --> 00:59:02,820 the minimal state change, 1450 00:59:03,080 --> 00:59:03,740 connection integrity. 1451 00:59:05,100 --> 00:59:05,960 Here's an example. 1452 00:59:06,040 --> 00:59:06,840 We have a packet prediction. 1453 00:59:07,080 --> 00:59:08,860 We have a SYN ACK going to an ACK. 1454 00:59:09,220 --> 00:59:10,540 So we sniff the SYN ACK. 1455 00:59:10,600 --> 00:59:11,700 We want to send out an ACK 1456 00:59:11,700 --> 00:59:12,320 as the next packet. 1457 00:59:13,460 --> 00:59:14,900 We sniff an ACK number 1458 00:59:14,900 --> 00:59:16,240 of the incoming packet. 1459 00:59:16,440 --> 00:59:17,120 And we make that 1460 00:59:17,120 --> 00:59:17,960 the new sequence number 1461 00:59:17,960 --> 00:59:19,300 of the outgoing packet. 1462 00:59:19,540 --> 00:59:21,300 We sniff the sequence number 1463 00:59:21,300 --> 00:59:22,340 of the incoming packet. 1464 00:59:22,460 --> 00:59:23,100 And we make that 1465 00:59:23,100 --> 00:59:24,100 the ACK number plus one 1466 00:59:24,100 --> 00:59:24,920 of the outgoing packet. 1467 00:59:25,620 --> 00:59:26,060 Hence, 1468 00:59:26,200 --> 00:59:27,780 we keep the connection going 1469 00:59:27,780 --> 00:59:28,800 through raw sockets. 1470 00:59:29,680 --> 00:59:30,620 We add a payload. 1471 00:59:30,900 --> 00:59:32,300 This makes clear text protocols 1472 00:59:32,300 --> 00:59:32,980 really easy. 1473 00:59:33,520 --> 00:59:34,360 You've got Unicode 1474 00:59:34,360 --> 00:59:35,020 and you've got all these 1475 00:59:35,020 --> 00:59:36,160 other little attacks that, 1476 00:59:36,200 --> 00:59:36,440 you know, 1477 00:59:36,480 --> 00:59:37,760 you always see these people 1478 00:59:37,760 --> 00:59:38,560 running them against 1479 00:59:38,560 --> 00:59:39,340 your Unix boxes, 1480 00:59:39,680 --> 00:59:40,040 you know, 1481 00:59:40,040 --> 00:59:41,200 like they did any sort 1482 00:59:41,200 --> 00:59:42,020 of information gathering. 1483 00:59:43,440 --> 00:59:44,520 You can do heads 1484 00:59:44,520 --> 00:59:45,100 slash HTTP. 1485 00:59:45,380 --> 00:59:46,120 You could just dump this 1486 00:59:46,120 --> 00:59:46,800 into a file. 1487 00:59:47,360 --> 00:59:48,520 And if you're maintaining 1488 00:59:48,520 --> 00:59:49,400 this packet prediction, 1489 00:59:49,580 --> 00:59:50,220 next packet injection, 1490 00:59:50,560 --> 00:59:51,400 you pull the next file 1491 00:59:51,400 --> 00:59:52,260 from the payload file, 1492 00:59:52,420 --> 00:59:52,980 and boom. 1493 00:59:53,380 --> 00:59:54,300 You've got a head. 1494 00:59:54,800 --> 00:59:56,720 You've done a stateful connection 1495 00:59:56,720 --> 00:59:57,340 back and forth, 1496 00:59:57,420 --> 00:59:58,060 three-way handshake. 1497 00:59:58,720 --> 01:00:00,140 And you've actually simulated 1498 01:00:00,140 --> 01:00:01,420 doing information gathering 1499 01:00:01,420 --> 01:00:01,940 through head 1500 01:00:01,940 --> 01:00:03,440 using raw sockets alone 1501 01:00:03,440 --> 01:00:05,620 with no client-server-based 1502 01:00:05,620 --> 01:00:06,500 connection 1503 01:00:08,040 --> 01:00:10,180 through standard networking sockets 1504 01:00:10,180 --> 01:00:11,380 like BSD sockets, 1505 01:00:11,400 --> 01:00:11,840 et cetera. 1506 01:00:12,880 --> 01:00:13,360 Exploitation. 1507 01:00:14,020 --> 01:00:14,500 So, 1508 01:00:14,520 --> 01:00:14,620 ah, 1509 01:00:14,640 --> 01:00:15,960 here's a famous one. 1510 01:00:16,900 --> 01:00:17,300 And, 1511 01:00:17,500 --> 01:00:17,700 ooh, 1512 01:00:17,840 --> 01:00:18,280 IDS vision. 1513 01:00:18,780 --> 01:00:19,180 Um, 1514 01:00:19,980 --> 01:00:21,100 we can use this 1515 01:00:21,100 --> 01:00:22,740 and we can actually use this 1516 01:00:22,740 --> 01:00:24,280 to map the directory structure. 1517 01:00:24,540 --> 01:00:25,060 All we have to do 1518 01:00:25,060 --> 01:00:25,700 is change the payload 1519 01:00:25,700 --> 01:00:26,360 at the end of here. 1520 01:00:27,000 --> 01:00:28,160 And we can actually 1521 01:00:28,160 --> 01:00:29,060 walk a file system 1522 01:00:29,060 --> 01:00:30,260 and just have it dump 1523 01:00:30,260 --> 01:00:31,040 all the, 1524 01:00:31,060 --> 01:00:31,480 you know, 1525 01:00:31,500 --> 01:00:32,140 the packet payload 1526 01:00:32,140 --> 01:00:32,740 that's coming back 1527 01:00:32,740 --> 01:00:33,740 on the wire to a file. 1528 01:00:33,940 --> 01:00:34,340 I mean, 1529 01:00:34,360 --> 01:00:35,020 really the goal here 1530 01:00:35,020 --> 01:00:35,940 is not to have the agent 1531 01:00:35,940 --> 01:00:36,440 take over 1532 01:00:37,220 --> 01:00:38,260 the human's interaction. 1533 01:00:38,800 --> 01:00:39,860 It's just to help out 1534 01:00:39,860 --> 01:00:40,800 with the information gathering 1535 01:00:40,800 --> 01:00:41,640 so that the human 1536 01:00:41,640 --> 01:00:42,480 isn't doing all these 1537 01:00:44,520 --> 01:00:45,380 network penetration tests. 1538 01:00:45,820 --> 01:00:46,140 All right, 1539 01:00:46,160 --> 01:00:46,920 I gotta do ping scan. 1540 01:00:47,080 --> 01:00:47,280 All right, 1541 01:00:47,300 --> 01:00:47,980 I gotta do port scan. 1542 01:00:48,160 --> 01:00:48,320 I mean, 1543 01:00:48,320 --> 01:00:49,980 all this is just so humdrum 1544 01:00:50,400 --> 01:00:51,440 that it would be nice 1545 01:00:51,440 --> 01:00:52,360 if we could actually 1546 01:00:53,480 --> 01:00:54,640 automate some of these attacks 1547 01:00:54,640 --> 01:00:55,300 and just bring 1548 01:00:55,300 --> 01:00:56,200 the information 1549 01:00:56,200 --> 01:00:56,880 that we want back. 1550 01:00:57,160 --> 01:00:57,360 I mean, 1551 01:00:57,380 --> 01:00:57,840 after all, 1552 01:00:57,880 --> 01:00:58,420 we're assessing 1553 01:00:58,420 --> 01:00:59,460 the organization 1554 01:00:59,460 --> 01:01:01,700 for economic risk 1555 01:01:01,700 --> 01:01:03,120 and not necessarily 1556 01:01:03,120 --> 01:01:04,580 assessing an organization 1557 01:01:05,220 --> 01:01:05,620 for 1558 01:01:06,720 --> 01:01:07,360 the exploit 1559 01:01:07,360 --> 01:01:07,800 of the day 1560 01:01:07,800 --> 01:01:08,580 for Solaris. 1561 01:01:10,060 --> 01:01:11,040 we've got bouncing 1562 01:01:11,040 --> 01:01:11,900 and stealth. 1563 01:01:13,520 --> 01:01:14,760 We can connect 1564 01:01:14,760 --> 01:01:15,200 to a proxy 1565 01:01:15,200 --> 01:01:16,880 and we can send 1566 01:01:16,880 --> 01:01:17,180 tool, 1567 01:01:17,200 --> 01:01:17,540 you know, 1568 01:01:17,540 --> 01:01:18,280 payload 1569 01:01:18,280 --> 01:01:19,560 after we've made 1570 01:01:19,560 --> 01:01:19,960 this connection 1571 01:01:19,960 --> 01:01:22,720 and we can 1572 01:01:22,720 --> 01:01:23,960 basically masquerade 1573 01:01:23,960 --> 01:01:24,560 our IP address. 1574 01:01:25,640 --> 01:01:26,620 Our attack rules, 1575 01:01:26,680 --> 01:01:27,280 we're gonna go through 1576 01:01:27,280 --> 01:01:27,760 this real quick 1577 01:01:27,760 --> 01:01:28,480 because these are stubs 1578 01:01:28,480 --> 01:01:28,900 right now. 1579 01:01:29,080 --> 01:01:29,800 They maintain 1580 01:01:29,800 --> 01:01:30,720 exploitation signatures 1581 01:01:31,480 --> 01:01:32,520 and denial of service 1582 01:01:32,520 --> 01:01:32,820 signatures. 1583 01:01:33,060 --> 01:01:33,840 All these are 1584 01:01:33,840 --> 01:01:34,460 are taking 1585 01:01:34,460 --> 01:01:35,520 the TCP rule base. 1586 01:01:35,920 --> 01:01:37,300 The reason why 1587 01:01:37,300 --> 01:01:37,780 these are stubs 1588 01:01:37,780 --> 01:01:38,040 right now 1589 01:01:38,040 --> 01:01:38,340 is we need 1590 01:01:38,340 --> 01:01:39,020 a rule-based language 1591 01:01:39,020 --> 01:01:40,400 for maintaining 1592 01:01:40,920 --> 01:01:41,400 packets 1593 01:01:41,900 --> 01:01:42,780 and their dependent 1594 01:01:42,780 --> 01:01:43,840 protocol values. 1595 01:01:44,720 --> 01:01:45,780 What we mean by that 1596 01:01:45,780 --> 01:01:46,320 is we need 1597 01:01:46,320 --> 01:01:46,940 a way 1598 01:01:46,940 --> 01:01:47,720 that we can say, 1599 01:01:47,920 --> 01:01:48,200 okay, 1600 01:01:48,240 --> 01:01:48,940 we want to send out 1601 01:01:48,940 --> 01:01:49,580 this packet 1602 01:01:49,580 --> 01:01:51,040 and then this packet 1603 01:01:51,040 --> 01:01:51,860 with these fields 1604 01:01:51,860 --> 01:01:53,000 then the next packet 1605 01:01:53,000 --> 01:01:53,860 and that's indicative 1606 01:01:53,860 --> 01:01:55,240 of yada yada 1607 01:01:55,240 --> 01:01:56,220 denial of service attack. 1608 01:01:56,580 --> 01:01:57,500 So we do this 1609 01:01:57,500 --> 01:01:58,200 at the protocol layer. 1610 01:01:58,380 --> 01:01:59,260 We aren't calling it Smurf. 1611 01:01:59,320 --> 01:02:00,940 We aren't calling it JP. 1612 01:02:02,020 --> 01:02:03,020 We aren't calling it 1613 01:02:03,020 --> 01:02:04,120 other names 1614 01:02:04,120 --> 01:02:05,420 for denial of service attacks 1615 01:02:05,420 --> 01:02:06,120 but the idea here 1616 01:02:06,120 --> 01:02:06,900 is that we don't want 1617 01:02:06,900 --> 01:02:08,260 to make a network 1618 01:02:08,260 --> 01:02:08,820 attack engine 1619 01:02:08,820 --> 01:02:09,960 that can only do one thing. 1620 01:02:10,640 --> 01:02:11,660 We want to make a packet 1621 01:02:12,640 --> 01:02:14,000 that can launch 1622 01:02:14,000 --> 01:02:14,620 a whole bunch 1623 01:02:14,620 --> 01:02:15,100 of these attacks 1624 01:02:15,100 --> 01:02:16,380 given the knowledge 1625 01:02:16,380 --> 01:02:16,960 in the rule base 1626 01:02:17,800 --> 01:02:18,640 through the inference 1627 01:02:18,640 --> 01:02:19,320 engine lookups 1628 01:02:19,320 --> 01:02:21,020 of how we can actually 1629 01:02:21,500 --> 01:02:22,500 launch each one 1630 01:02:22,500 --> 01:02:23,020 of these attacks 1631 01:02:23,020 --> 01:02:23,760 and define them 1632 01:02:23,760 --> 01:02:25,340 by individual packets 1633 01:02:25,340 --> 01:02:25,900 that get sent 1634 01:02:25,900 --> 01:02:26,820 across the wire. 1635 01:02:27,500 --> 01:02:27,740 I mean, 1636 01:02:27,780 --> 01:02:28,180 keep in mind 1637 01:02:28,180 --> 01:02:28,900 that we have full control 1638 01:02:28,900 --> 01:02:29,760 over the protocol headers 1639 01:02:29,760 --> 01:02:30,820 by not using 1640 01:02:30,820 --> 01:02:31,800 standard networking I.O. 1641 01:02:32,720 --> 01:02:33,680 So we can pretty much 1642 01:02:33,680 --> 01:02:34,300 do anything here. 1643 01:02:35,620 --> 01:02:36,320 The defense 1644 01:02:36,320 --> 01:02:36,860 of rule base, 1645 01:02:37,060 --> 01:02:37,840 the reason we're 1646 01:02:37,840 --> 01:02:38,400 keeping this 1647 01:02:38,400 --> 01:02:38,960 to OpenBSD, 1648 01:02:39,040 --> 01:02:40,240 we want to marry this up 1649 01:02:40,240 --> 01:02:41,240 with OpenBSDPF 1650 01:02:41,920 --> 01:02:43,300 through I.O. control. 1651 01:02:44,120 --> 01:02:45,240 Wouldn't it be cool 1652 01:02:45,240 --> 01:02:46,860 if you had an agent 1653 01:02:46,860 --> 01:02:48,160 on a multi-tiered host 1654 01:02:50,000 --> 01:02:51,040 and you, 1655 01:02:51,180 --> 01:02:52,140 as a user, 1656 01:02:52,240 --> 01:02:53,300 connecting to these agents 1657 01:02:53,300 --> 01:02:54,020 knew that these 1658 01:02:54,020 --> 01:02:54,840 multi-helmed hosts 1659 01:02:54,840 --> 01:02:55,340 were connected 1660 01:02:55,340 --> 01:02:56,220 to two different peers 1661 01:02:56,220 --> 01:02:57,460 across two different interfaces, 1662 01:02:57,800 --> 01:02:59,760 two different ISP peers 1663 01:02:59,760 --> 01:03:00,180 let's say, 1664 01:03:00,260 --> 01:03:01,280 or upstream. 1665 01:03:02,440 --> 01:03:03,580 And attacks started 1666 01:03:03,580 --> 01:03:04,040 coming in 1667 01:03:04,040 --> 01:03:04,820 through a particular interface 1668 01:03:04,820 --> 01:03:05,260 and then we could 1669 01:03:05,260 --> 01:03:06,000 automatically drop 1670 01:03:06,000 --> 01:03:06,480 that attack 1671 01:03:06,480 --> 01:03:07,840 by dynamically adding 1672 01:03:07,840 --> 01:03:08,580 a firewall rule 1673 01:03:08,580 --> 01:03:09,340 to restrict any 1674 01:03:09,340 --> 01:03:10,140 or dynamically 1675 01:03:10,140 --> 01:03:10,220 add a firewall rule 1676 01:03:10,220 --> 01:03:10,500 by automatically adding 1677 01:03:10,500 --> 01:03:11,120 a route, 1678 01:03:11,240 --> 01:03:12,080 a black hole route 1679 01:03:12,080 --> 01:03:13,160 that would drop 1680 01:03:13,160 --> 01:03:13,680 all those packets 1681 01:03:13,680 --> 01:03:14,160 on the wire 1682 01:03:14,160 --> 01:03:14,600 until somebody 1683 01:03:14,600 --> 01:03:15,240 got a chance 1684 01:03:15,700 --> 01:03:16,700 to come and assess 1685 01:03:16,700 --> 01:03:17,220 the damage 1686 01:03:17,220 --> 01:03:18,720 that was happening 1687 01:03:18,720 --> 01:03:19,120 on the network. 1688 01:03:19,300 --> 01:03:19,380 I mean, 1689 01:03:19,380 --> 01:03:20,180 if nobody's getting 1690 01:03:20,180 --> 01:03:20,960 to the server anyway 1691 01:03:20,960 --> 01:03:21,680 because of the denial 1692 01:03:21,680 --> 01:03:22,180 of service attack, 1693 01:03:22,320 --> 01:03:22,800 we might as well 1694 01:03:22,800 --> 01:03:23,680 keep the stuff 1695 01:03:23,680 --> 01:03:24,560 from flooding the network 1696 01:03:24,560 --> 01:03:25,700 because if you've got 1697 01:03:25,700 --> 01:03:26,900 IDS sensors deployed 1698 01:03:26,900 --> 01:03:27,640 across your network 1699 01:03:28,500 --> 01:03:29,300 and you're doing 1700 01:03:29,300 --> 01:03:30,020 information gathering 1701 01:03:30,020 --> 01:03:30,920 based on your topology 1702 01:03:30,920 --> 01:03:32,540 just like every good 1703 01:03:32,540 --> 01:03:33,420 speaker has told you 1704 01:03:33,420 --> 01:03:33,920 so far, 1705 01:03:35,420 --> 01:03:36,800 you are actually 1706 01:03:36,800 --> 01:03:37,640 collecting a ton 1707 01:03:37,640 --> 01:03:37,980 of state 1708 01:03:37,980 --> 01:03:39,140 that keeps coming in, 1709 01:03:39,220 --> 01:03:40,720 banging your boxes, 1710 01:03:40,960 --> 01:03:42,080 you keep getting 1711 01:03:42,080 --> 01:03:44,700 sensors probing 1712 01:03:44,700 --> 01:03:45,440 or you keep getting 1713 01:03:45,440 --> 01:03:46,000 sensor alerts 1714 01:03:46,780 --> 01:03:48,140 that will keep going 1715 01:03:48,140 --> 01:03:49,240 until somebody responds 1716 01:03:49,240 --> 01:03:50,160 and it would be nice 1717 01:03:50,160 --> 01:03:51,220 if we could keep 1718 01:03:51,220 --> 01:03:52,500 the rest of the 1719 01:03:52,500 --> 01:03:53,280 information gathering 1720 01:03:53,280 --> 01:03:53,800 on the network 1721 01:03:53,800 --> 01:03:54,140 sane 1722 01:03:54,140 --> 01:03:55,380 and that we only 1723 01:03:55,380 --> 01:03:56,320 detect it at once 1724 01:03:56,320 --> 01:03:56,900 and we just say 1725 01:03:56,900 --> 01:03:57,820 that it's maintaining 1726 01:03:57,820 --> 01:03:59,460 this until somebody 1727 01:03:59,460 --> 01:04:00,400 can get to the box 1728 01:04:00,400 --> 01:04:01,020 to figure out 1729 01:04:01,020 --> 01:04:01,660 what's going on 1730 01:04:01,660 --> 01:04:02,260 and do some 1731 01:04:02,800 --> 01:04:03,740 data forensics 1732 01:04:03,740 --> 01:04:03,900 analysis 1733 01:04:03,920 --> 01:04:06,560 so we marry this up 1734 01:04:06,560 --> 01:04:06,960 with both 1735 01:04:06,960 --> 01:04:08,020 OpenBSD PF 1736 01:04:08,020 --> 01:04:08,900 and the routing tables. 1737 01:04:09,520 --> 01:04:11,120 We have a TCP IP engine, 1738 01:04:11,340 --> 01:04:11,960 TAC engine 1739 01:04:11,960 --> 01:04:12,720 and defense engine. 1740 01:04:13,320 --> 01:04:15,440 We do deterministic prediction, 1741 01:04:15,680 --> 01:04:16,500 predict with certainty. 1742 01:04:17,680 --> 01:04:19,340 There are many ways 1743 01:04:19,340 --> 01:04:20,260 of doing inference engines. 1744 01:04:20,540 --> 01:04:21,140 There are three, 1745 01:04:21,220 --> 01:04:22,680 pretty much three ways. 1746 01:04:22,780 --> 01:04:23,380 There's forward chaining, 1747 01:04:23,420 --> 01:04:23,960 backward chaining 1748 01:04:23,960 --> 01:04:25,260 and rule value. 1749 01:04:25,620 --> 01:04:26,460 Rule value is 1750 01:04:26,460 --> 01:04:27,460 an optimized version 1751 01:04:27,460 --> 01:04:28,360 of backward chaining 1752 01:04:29,360 --> 01:04:30,400 and basically 1753 01:04:30,400 --> 01:04:31,080 forward chaining 1754 01:04:31,080 --> 01:04:32,740 is a data driven search. 1755 01:04:32,860 --> 01:04:33,520 Backward chaining 1756 01:04:33,520 --> 01:04:33,900 is a gold mine 1757 01:04:33,920 --> 01:04:34,400 or a goal driven search. 1758 01:04:34,740 --> 01:04:35,440 We've got, 1759 01:04:35,880 --> 01:04:36,820 we want to predict 1760 01:04:36,820 --> 01:04:37,400 with certainty 1761 01:04:37,400 --> 01:04:38,720 across the TCP IP 1762 01:04:38,720 --> 01:04:39,260 rule base 1763 01:04:39,260 --> 01:04:39,880 and inference engine. 1764 01:04:40,100 --> 01:04:41,060 We don't want 1765 01:04:41,060 --> 01:04:42,060 to send the next packet 1766 01:04:42,060 --> 01:04:43,020 if we don't know 1767 01:04:43,020 --> 01:04:44,200 exactly what we want 1768 01:04:44,200 --> 01:04:44,740 to send next. 1769 01:04:45,100 --> 01:04:45,920 We don't want 1770 01:04:45,920 --> 01:04:46,280 to hose 1771 01:04:46,280 --> 01:04:47,220 the interstate connections. 1772 01:04:47,500 --> 01:04:48,580 That's the whole goal here. 1773 01:04:48,680 --> 01:04:50,260 If we can't maintain 1774 01:04:50,260 --> 01:04:51,020 because we're missing, 1775 01:04:51,080 --> 01:04:51,920 we've got three unknowns 1776 01:04:51,920 --> 01:04:52,860 and we can't decide 1777 01:04:52,860 --> 01:04:53,700 what two of the unknowns 1778 01:04:53,700 --> 01:04:54,260 we're going to have 1779 01:04:54,260 --> 01:04:54,780 to map to, 1780 01:04:54,920 --> 01:04:56,280 we just drop the packet. 1781 01:04:56,440 --> 01:04:57,380 TCP is very forgiving. 1782 01:04:57,540 --> 01:04:58,220 If you don't respond 1783 01:04:58,220 --> 01:04:58,800 and there's already 1784 01:04:58,800 --> 01:05:00,040 a handshake going, 1785 01:05:00,100 --> 01:05:00,880 it'll gladly send you 1786 01:05:00,880 --> 01:05:01,340 another packet 1787 01:05:04,100 --> 01:05:04,820 or we do 1788 01:05:04,820 --> 01:05:05,980 probabilistic prediction 1789 01:05:05,980 --> 01:05:07,000 for the attack and defense. 1790 01:05:07,200 --> 01:05:08,020 We predict with uncertainty. 1791 01:05:08,760 --> 01:05:09,840 This is mostly used 1792 01:05:09,840 --> 01:05:11,140 for user defined injection 1793 01:05:11,140 --> 01:05:12,500 when I do a smurf attack 1794 01:05:12,500 --> 01:05:13,600 sent across the wire. 1795 01:05:14,720 --> 01:05:15,460 So we remove 1796 01:05:15,460 --> 01:05:16,020 greatest uncertainty 1797 01:05:16,020 --> 01:05:16,960 and minimal cost. 1798 01:05:17,180 --> 01:05:17,640 Oops. 1799 01:05:19,980 --> 01:05:20,760 Major protocol, 1800 01:05:21,100 --> 01:05:21,380 TCP, 1801 01:05:21,580 --> 01:05:22,020 ICMP, 1802 01:05:22,160 --> 01:05:22,820 minor protocol, 1803 01:05:23,040 --> 01:05:23,680 TCP, 1804 01:05:23,840 --> 01:05:24,220 SYNAC, 1805 01:05:24,360 --> 01:05:25,080 ICMP redirect. 1806 01:05:25,460 --> 01:05:26,380 Rule value means 1807 01:05:26,380 --> 01:05:26,880 that we remove 1808 01:05:26,880 --> 01:05:27,740 the greatest uncertainty 1809 01:05:27,740 --> 01:05:28,720 at a minimal cost. 1810 01:05:29,060 --> 01:05:30,140 So if the next packet 1811 01:05:30,140 --> 01:05:30,920 that comes across the wire 1812 01:05:30,920 --> 01:05:31,720 is a TCP packet, 1813 01:05:31,960 --> 01:05:32,840 we can instantly 1814 01:05:32,840 --> 01:05:33,660 narrow the scope 1815 01:05:33,660 --> 01:05:33,900 down to the TCP packet 1816 01:05:33,920 --> 01:05:34,660 down to the knowledge base 1817 01:05:34,660 --> 01:05:35,900 to just TCP packets. 1818 01:05:37,440 --> 01:05:38,200 And then, 1819 01:05:38,280 --> 01:05:39,140 we can again, 1820 01:05:39,280 --> 01:05:40,240 based on the TCP flags 1821 01:05:40,240 --> 01:05:40,980 that come across the wire, 1822 01:05:41,060 --> 01:05:41,840 we can narrow that down 1823 01:05:41,840 --> 01:05:43,200 to an even finer grain scope 1824 01:05:43,740 --> 01:05:45,300 of what the minor protocol is. 1825 01:05:46,360 --> 01:05:47,060 So we go, 1826 01:05:47,220 --> 01:05:48,300 now we're only looking at 1827 01:05:48,300 --> 01:05:49,560 what the next relative injections 1828 01:05:49,560 --> 01:05:51,980 are for a particular event of TCP. 1829 01:05:53,040 --> 01:05:54,460 So we have protocol connection dependent 1830 01:05:54,460 --> 01:05:55,580 relative field values. 1831 01:05:56,460 --> 01:05:58,180 Add plus one to this field. 1832 01:05:59,680 --> 01:06:01,640 Set this to a default value. 1833 01:06:01,640 --> 01:06:04,820 We just grab the minimal state required 1834 01:06:04,820 --> 01:06:06,080 to make the next connection out. 1835 01:06:06,220 --> 01:06:07,060 We have actually what, 1836 01:06:07,120 --> 01:06:08,160 for most packets 1837 01:06:08,160 --> 01:06:09,520 and my research 1838 01:06:09,520 --> 01:06:11,860 of gluing various pieces 1839 01:06:11,860 --> 01:06:12,600 of code together, 1840 01:06:13,320 --> 01:06:14,320 it's a constant value. 1841 01:06:14,380 --> 01:06:15,020 It's like big O three, 1842 01:06:15,300 --> 01:06:16,120 big O four. 1843 01:06:16,300 --> 01:06:17,640 We usually need to change 1844 01:06:17,640 --> 01:06:18,500 about three or four values 1845 01:06:18,500 --> 01:06:20,940 to keep a connection moving. 1846 01:06:26,480 --> 01:06:27,700 User defined injection. 1847 01:06:29,820 --> 01:06:30,860 Can anybody read that? 1848 01:06:33,400 --> 01:06:34,760 User defined injection, 1849 01:06:35,040 --> 01:06:36,680 only way to have interstate. 1850 01:06:38,880 --> 01:06:39,820 We can't, 1851 01:06:39,820 --> 01:06:40,840 we aren't allowing any packets 1852 01:06:40,840 --> 01:06:42,120 to move across the wire 1853 01:06:42,120 --> 01:06:44,280 that are brought in 1854 01:06:44,280 --> 01:06:45,140 through the PCAP filter 1855 01:06:45,140 --> 01:06:46,760 and through the interstate, 1856 01:06:46,820 --> 01:06:48,640 extrastate static rule base 1857 01:06:49,620 --> 01:06:51,740 without the user injecting 1858 01:06:51,740 --> 01:06:52,340 the packet first. 1859 01:06:52,940 --> 01:06:53,760 So we inject 1860 01:06:53,760 --> 01:06:54,640 and we add to the table. 1861 01:06:54,820 --> 01:06:56,020 And then we have automated injection 1862 01:06:56,020 --> 01:06:57,400 which injections the next packet 1863 01:06:57,400 --> 01:06:58,320 if the criteria is met. 1864 01:06:59,000 --> 01:07:00,540 We have stateful packet injection, 1865 01:07:00,820 --> 01:07:01,420 the usage, 1866 01:07:01,640 --> 01:07:02,800 the sensor sniffs the packets. 1867 01:07:03,780 --> 01:07:05,600 Interstate checks the reverses 1868 01:07:05,600 --> 01:07:06,640 of the addresses and the ports. 1869 01:07:07,940 --> 01:07:09,060 Checks injection table, 1870 01:07:09,200 --> 01:07:09,640 present, 1871 01:07:09,760 --> 01:07:11,040 we send to the expert system. 1872 01:07:11,200 --> 01:07:12,060 If it's not present, 1873 01:07:12,100 --> 01:07:13,860 we update the extrastate 1874 01:07:13,860 --> 01:07:15,140 and we drop the pack 1875 01:07:15,140 --> 01:07:16,220 or we drop state. 1876 01:07:16,500 --> 01:07:18,180 So we wanna drop all that state 1877 01:07:18,180 --> 01:07:19,220 we've been keeping on the packet 1878 01:07:19,220 --> 01:07:20,440 and move it into extrastate 1879 01:07:20,440 --> 01:07:21,200 if it's not important 1880 01:07:21,700 --> 01:07:23,120 to what the user 1881 01:07:23,120 --> 01:07:23,880 has already defined 1882 01:07:23,880 --> 01:07:24,680 as what they wanna do 1883 01:07:24,680 --> 01:07:25,320 across the wire. 1884 01:07:27,180 --> 01:07:28,280 Thank you very much. 1885 01:07:29,280 --> 01:07:31,100 This is the actual key 1886 01:07:31,100 --> 01:07:32,460 to unlock the white paper 1887 01:07:32,460 --> 01:07:34,500 that I will upload to the site later. 1888 01:07:35,280 --> 01:07:37,660 I did this just to give you guys 1889 01:07:37,660 --> 01:07:39,320 a little value added flavor 1890 01:07:39,320 --> 01:07:42,540 and I've had like all these people 1891 01:07:42,540 --> 01:07:43,600 on IRC like, 1892 01:07:43,740 --> 01:07:45,260 are you gonna release the paper early? 1893 01:07:46,220 --> 01:07:48,600 No, but if you attended the conference, 1894 01:07:48,700 --> 01:07:49,860 which a lot of you did, 1895 01:07:51,760 --> 01:07:53,300 cognitive science is the key 1896 01:07:53,300 --> 01:07:55,060 and it will be mapped to that key 1897 01:07:55,060 --> 01:07:56,000 and that should encrypt it 1898 01:07:56,000 --> 01:07:57,040 and decrypt it. 1899 01:07:57,860 --> 01:07:58,860 And that's it. 1900 01:07:59,220 --> 01:08:00,400 Does anybody have any questions? 1901 01:08:00,400 --> 01:08:02,400 I know you have a lot, 1902 01:08:02,480 --> 01:08:03,160 but this white paper 1903 01:08:03,160 --> 01:08:03,880 will clear up a lot. 1904 01:08:05,080 --> 01:08:06,300 Is it case sensitive? 1905 01:08:08,900 --> 01:08:10,520 The presentation wasn't, 1906 01:08:10,540 --> 01:08:12,960 but what did you mean 1907 01:08:12,960 --> 01:08:13,760 by case sensitive? 1908 01:08:15,020 --> 01:08:16,480 Oh yeah, it is case sensitive. 1909 01:08:16,720 --> 01:08:16,980 Yes. 1910 01:08:20,120 --> 01:08:20,860 What's the URL? 1911 01:08:23,320 --> 01:08:24,760 www.packetninja.net. 1912 01:08:25,620 --> 01:08:26,940 You'll find both Nemesis 1913 01:08:26,940 --> 01:08:28,420 and you'll find Intravenous. 1914 01:08:28,900 --> 01:08:30,260 I kind of pulled off 1915 01:08:30,400 --> 01:08:31,000 all the kiddie code 1916 01:08:31,000 --> 01:08:32,320 that I used to write off the site. 1917 01:08:32,660 --> 01:08:34,660 I'm trying to get more deeper 1918 01:08:34,660 --> 01:08:35,580 into OpenBSD. 1919 01:08:36,300 --> 01:08:38,540 I currently maintain about 15 ports 1920 01:08:38,540 --> 01:08:39,320 for OpenBSD 1921 01:08:39,320 --> 01:08:42,320 and I want to start delving more 1922 01:08:42,320 --> 01:08:42,900 into the kernel. 1923 01:08:43,660 --> 01:08:45,140 And this is kind of a, 1924 01:08:46,120 --> 01:08:47,980 I'm providing this for OpenBSD 1925 01:08:47,980 --> 01:08:49,840 for reasons that will be outlaid 1926 01:08:49,840 --> 01:08:50,560 on the white paper 1927 01:08:50,560 --> 01:08:51,960 as being very sane reasons 1928 01:08:51,960 --> 01:08:53,140 for making this choice. 1929 01:08:53,640 --> 01:08:55,280 But I'll admit to you all right now 1930 01:08:56,040 --> 01:08:57,480 that I'm being a little selfish 1931 01:08:57,480 --> 01:08:59,360 and that I want to be able to research 1932 01:08:59,360 --> 01:09:00,380 the OpenBSD kernel 1933 01:09:00,380 --> 01:09:01,520 at a more intricate level 1934 01:09:01,520 --> 01:09:02,740 at the same time 1935 01:09:02,740 --> 01:09:04,180 I'm producing the Intelligent Agent. 1936 01:09:07,920 --> 01:09:08,780 Anything else? 1937 01:09:12,000 --> 01:09:13,640 Thank you very much for attending.