1 00:00:01,320 --> 00:00:03,400 Welcome to the annual DEF CON convention. 2 00:00:03,740 --> 00:00:08,740 This meeting was held in exciting Las Vegas, Nevada from July 9th through the 11th, 1999. 3 00:00:09,780 --> 00:00:15,680 This is video tape number 21, Introduction to TCP IP Exploits. 4 00:00:23,340 --> 00:00:27,300 Okay, next up is Pete Shipley. He's going to elaborate on what I just talked about. 5 00:00:27,300 --> 00:00:29,840 He's going to be talking about TCP IP and its weaknesses. 6 00:00:32,500 --> 00:00:33,580 Let's give him a round of applause. 7 00:00:41,780 --> 00:00:42,620 One down. 8 00:00:44,160 --> 00:00:45,120 And leave it. 9 00:00:51,260 --> 00:00:52,460 Yeah, it's not going anywhere. 10 00:00:53,680 --> 00:00:54,640 He's not melting. 11 00:00:55,460 --> 00:00:56,440 Nice keyboard, Mike. 12 00:01:00,140 --> 00:01:01,920 Okay, let's talk about other stuff. 13 00:01:02,260 --> 00:01:02,860 Let's see. 14 00:01:19,420 --> 00:01:20,660 There we go, we're back. 15 00:01:22,600 --> 00:01:25,000 Back on to review a little bit of what Puck has talked about. 16 00:01:25,060 --> 00:01:27,160 Then go on and explain the general exploits. 17 00:01:27,160 --> 00:01:29,140 You're seeing them every other day on bug tracks. 18 00:01:29,820 --> 00:01:32,800 If you're a security expert, I'm going to bore you to death. 19 00:01:34,180 --> 00:01:35,600 This is newbie track. 20 00:01:36,780 --> 00:01:40,280 The purpose of this newbie track is so you don't have to ask stupid questions. 21 00:01:40,360 --> 00:01:41,200 We'll answer them for you. 22 00:01:44,280 --> 00:01:46,400 Well, the basic cover here is what's TCP IP? 23 00:01:46,640 --> 00:01:47,460 Why do we need it? 24 00:01:48,300 --> 00:01:50,180 Basically, what are ports and sockets? 25 00:01:50,420 --> 00:01:51,260 Known problems. 26 00:01:51,380 --> 00:01:53,800 And basically, general attack methods. 27 00:01:55,740 --> 00:01:58,600 If you were awake during the last hour, you already know this. 28 00:01:58,700 --> 00:01:59,560 What TCP is. 29 00:01:59,760 --> 00:02:00,400 Set of protocols. 30 00:02:00,920 --> 00:02:02,440 ARPANET basically became the internet. 31 00:02:02,600 --> 00:02:03,300 All that fun stuff. 32 00:02:04,220 --> 00:02:07,780 And I'm going to skip over the first several slides, obviously, since it's kind of redundant 33 00:02:07,780 --> 00:02:08,640 from Pungus' talk. 34 00:02:09,620 --> 00:02:11,600 We have basically your... 35 00:02:17,620 --> 00:02:19,320 I'm stupid enough to try to call me during my talk. 36 00:02:22,120 --> 00:02:24,480 Basically, if you use the internet, you use TCP IP. 37 00:02:26,020 --> 00:02:27,480 That's just the way life is. 38 00:02:27,660 --> 00:02:28,080 What is IP? 39 00:02:28,680 --> 00:02:33,040 It's basically a collection of protocols that compromise a suite. 40 00:02:33,400 --> 00:02:34,060 This is... 41 00:02:35,640 --> 00:02:37,020 Well, you're at the last talk. 42 00:02:37,100 --> 00:02:38,160 Why don't I just skip this stuff? 43 00:02:39,400 --> 00:02:39,800 Okay. 44 00:02:43,600 --> 00:02:44,720 That's the ISO stack. 45 00:02:45,720 --> 00:02:48,700 The reasons up here, you should actually know the ISO stack. 46 00:02:48,820 --> 00:02:49,300 I think it's pretty good. 47 00:02:49,320 --> 00:02:49,920 It's a bunch of bullshit. 48 00:02:50,060 --> 00:02:51,460 It reminds me of a seven-layer burrito. 49 00:02:52,120 --> 00:02:52,420 But... 50 00:02:54,340 --> 00:02:56,980 In fact, layer one is your... 51 00:02:57,420 --> 00:02:58,740 Layer one is basically your physical. 52 00:02:58,780 --> 00:02:59,240 That's your physical. 53 00:02:59,280 --> 00:02:59,960 That's your actual wire. 54 00:03:00,420 --> 00:03:03,320 Layer two is the protocol on the wire to the ethernet. 55 00:03:03,860 --> 00:03:05,020 Three, we're talking about IP. 56 00:03:05,360 --> 00:03:06,480 On top of that, it's TCP. 57 00:03:07,140 --> 00:03:09,100 And then we jump up to six, which is probably application. 58 00:03:09,900 --> 00:03:14,560 Now, I want you to keep an eye on this, because as I talk about various exploits, I'm probably 59 00:03:14,560 --> 00:03:15,720 going to work from the top down. 60 00:03:16,520 --> 00:03:17,660 What I'm going to do is point out... 61 00:03:17,660 --> 00:03:19,300 Because everybody keeps saying, oh, but what is TCP? 62 00:03:19,300 --> 00:03:21,000 Well, what we're going to do is we're going to have a very secure program. 63 00:03:21,980 --> 00:03:25,420 Well, so I break its foundation, the transport layer. 64 00:03:25,760 --> 00:03:29,280 Well, I'm going to have a very secure transport layer, so I break the network layer. 65 00:03:29,820 --> 00:03:32,340 You go, well, we're going to use better IP authentication. 66 00:03:32,780 --> 00:03:34,240 Well, I'll just break your link layer. 67 00:03:36,020 --> 00:03:39,100 This is what's happening in security continuously, and that's what I'm going to try to point 68 00:03:39,100 --> 00:03:41,120 out in this talk while explaining things. 69 00:03:42,700 --> 00:03:44,460 But everybody understands this, right? 70 00:03:45,100 --> 00:03:45,480 Good. 71 00:03:47,340 --> 00:03:49,220 Now, one nice thing that TCP does... 72 00:03:49,220 --> 00:03:51,300 It provides a connectionless... 73 00:03:51,300 --> 00:03:54,220 Basically, it provides reliable connections over a connectionless protocol. 74 00:03:56,880 --> 00:04:00,300 As you know from this talk, it basically relies on three-way handshaking. 75 00:04:00,560 --> 00:04:03,500 I'm going over this again, because it's important that you understand this part. 76 00:04:04,820 --> 00:04:08,460 It's to ensure both sides agree that, hey, not only are we going to talk, but we're going 77 00:04:08,460 --> 00:04:08,700 to talk. 78 00:04:08,840 --> 00:04:10,620 Like, for example, I go, hey, Pankis. 79 00:04:10,680 --> 00:04:11,780 He goes, hey, Pete. 80 00:04:12,260 --> 00:04:14,180 We've established a communication. 81 00:04:14,420 --> 00:04:15,420 I've called him. 82 00:04:15,560 --> 00:04:17,600 He acknowledges my connection. 83 00:04:17,600 --> 00:04:20,780 I send my request to him, and we continue communication. 84 00:04:21,200 --> 00:04:23,000 That's exactly what a three-way handshake is. 85 00:04:23,440 --> 00:04:24,800 So we have a client and server. 86 00:04:25,380 --> 00:04:26,720 I send a SYN packet. 87 00:04:28,140 --> 00:04:30,040 That's basically SYN equals X. 88 00:04:30,500 --> 00:04:32,500 That is acknowledged with an... 89 00:04:32,500 --> 00:04:36,540 So the acknowledgment is a SYN plus one, and it also stops the sequence. 90 00:04:37,420 --> 00:04:41,520 Now, at this point, that second sequence is acknowledged. 91 00:04:43,980 --> 00:04:45,080 There's a point down here. 92 00:04:45,160 --> 00:04:45,580 I mean... 93 00:04:45,580 --> 00:04:47,040 Again, you send out this. 94 00:04:47,600 --> 00:04:49,780 Now, the sequence in this direction is X. 95 00:04:49,880 --> 00:04:51,240 The sequence in this direction is Y. 96 00:04:53,120 --> 00:04:56,060 Now that we understand that, this is how we establish that somebody asked me during 97 00:04:56,060 --> 00:04:57,440 the break, well, how do you... 98 00:04:57,440 --> 00:04:58,720 We have randomized sequences. 99 00:04:58,860 --> 00:05:00,060 How do you know which sequence to use? 100 00:05:00,300 --> 00:05:01,740 Well, what is the starting sequence? 101 00:05:01,800 --> 00:05:02,580 That's the important part. 102 00:05:05,380 --> 00:05:05,780 Questions? 103 00:05:06,540 --> 00:05:07,760 Interrupt me any time for the question. 104 00:05:09,380 --> 00:05:09,780 Okay. 105 00:05:09,840 --> 00:05:12,720 With three-way handshakes, we basically, again, I'm mutilating this so you understand 106 00:05:12,720 --> 00:05:14,120 so you don't get lost in five minutes. 107 00:05:14,440 --> 00:05:15,560 That we now all agree that we have a three-way handshake. 108 00:05:15,560 --> 00:05:18,160 We all agree that both sides are ready to exchange data, and we have fun. 109 00:05:19,300 --> 00:05:21,340 Now, how do connections fail? 110 00:05:21,620 --> 00:05:22,620 That's actually kind of simple. 111 00:05:23,140 --> 00:05:24,520 We are on a client and server. 112 00:05:26,000 --> 00:05:27,120 I send a SYN. 113 00:05:27,720 --> 00:05:28,680 It sends a reset. 114 00:05:29,900 --> 00:05:31,220 It basically says, no thanks. 115 00:05:33,540 --> 00:05:34,140 This is... 116 00:05:34,140 --> 00:05:35,000 Oh, mind you. 117 00:05:35,100 --> 00:05:39,080 This is an oversimplified case, but in general, that's hopefully the way it's going to work. 118 00:05:43,480 --> 00:05:45,540 Unfortunately, IPStack is susceptible to tons of errors. 119 00:05:45,540 --> 00:05:50,200 We're seeing tens and tons of possible attacks for an ongoing spoof, and that's what the 120 00:05:50,200 --> 00:05:51,200 remainder of this talk is about. 121 00:05:52,820 --> 00:05:54,620 If there are questions at all, please just interrupt. 122 00:05:54,860 --> 00:05:56,740 If I get ahead of you, just say so. 123 00:05:58,560 --> 00:06:01,760 Now, before we go on to attacks, we should talk about what kind of attacks exist. 124 00:06:02,960 --> 00:06:05,480 One frustration I see is like, oh, I've got a new exploit. 125 00:06:05,680 --> 00:06:07,280 It's a denial of service attack. 126 00:06:08,640 --> 00:06:10,720 One thing in security to classify your attacks. 127 00:06:12,480 --> 00:06:14,440 So in general, I find there's four types. 128 00:06:14,520 --> 00:06:15,300 There's disclosure information. 129 00:06:15,300 --> 00:06:19,940 that's theft of information you know getting your info file getting you know 130 00:06:19,940 --> 00:06:25,540 getting your credit report there's destruction of data we're erasing your 131 00:06:25,540 --> 00:06:32,800 files alteration of data changing your grades yeah well so this again will 132 00:06:32,800 --> 00:06:36,720 free disclosures attacks is confidentially data stealing it exposing 133 00:06:36,720 --> 00:06:42,180 things or recent quake before it's ready password sniffers email sniffers there's 134 00:06:42,180 --> 00:06:49,120 all disclosure information destructors wiping alteration is basic 135 00:06:49,120 --> 00:06:52,280 modification data doesn't have to happen on disk you actually happen on a network 136 00:06:53,160 --> 00:06:56,060 while you're logged into a key while you're logged in from a client to a 137 00:06:56,060 --> 00:07:00,700 server for example is so might insert data that's alteration of data and the 138 00:07:00,700 --> 00:07:04,160 most common is denial of service these really script kiddies things are 139 00:07:04,160 --> 00:07:07,480 hackers because they could just flood your network no that is not a break-in 140 00:07:07,480 --> 00:07:09,660 that's denial of service that's the fourth type 141 00:07:12,720 --> 00:07:18,260 now what types of DOS attacks exist well we have ping flooding then there's 142 00:07:18,260 --> 00:07:21,680 modification echo apply flooding I'll explain these terms next slide or two 143 00:07:22,800 --> 00:07:27,840 TCP looping ping at death send fragment overflow I'm going to explain all these talks 144 00:07:27,840 --> 00:07:29,640 and all these exploits to you 145 00:07:33,680 --> 00:07:37,440 ping flooding is the most simple one that's when you just basically send lots and lots 146 00:07:37,440 --> 00:07:41,080 and lots of pings just run ping dash f from the unix shell give it an IP host name 147 00:07:41,080 --> 00:07:41,880 and 148 00:07:42,180 --> 00:07:45,160 the machine that you're on sends as many packets as possible to a remote site 149 00:07:46,300 --> 00:07:49,540 effectively allows it basically allows the attacker to possibly inhibit 150 00:07:49,540 --> 00:07:53,080 network connectivity mind you this is not going to work and get dial-up to my 151 00:07:53,080 --> 00:07:53,580 home t1 152 00:07:55,520 --> 00:08:01,160 they will look for my t1 to your dial-up and those that other than OC48 don't take 153 00:08:01,160 --> 00:08:06,360 out my t1 history I've been with these low bandwidth and a friend who works at 154 00:08:06,360 --> 00:08:11,260 a large web development company they've got several OC 48 since kind of humorous 155 00:08:11,260 --> 00:08:12,160 because people try and get more power with a lot of everything in 156 00:08:12,180 --> 00:08:14,940 to flood them out on IRC all the time. It's a waste of time. 157 00:08:17,440 --> 00:08:20,060 Okay, and, well, another method is setting ping packets. 158 00:08:20,280 --> 00:08:24,100 Basically, you can set any kind of packet. But the ping program comes with Unix 159 00:08:24,100 --> 00:08:26,940 as, you know, why write code where you just type ping-f? 160 00:08:27,920 --> 00:08:32,060 If you really wanted to flood people out, you wouldn't use ping because routers 161 00:08:32,060 --> 00:08:36,120 are going to filter that. Now, how does it work? Simple. I'm sending packets 162 00:08:36,120 --> 00:08:38,840 to the Internet. It's flooding your machine. No-brainer. 163 00:08:42,740 --> 00:08:44,900 To be effective, again, I want to reiterate, 164 00:08:45,060 --> 00:08:48,800 you need greater bandwidth. I reiterate this because I don't know how many kiddies in their 165 00:08:48,800 --> 00:08:51,400 dial-ups try to flood my home T1. It just doesn't work. 166 00:08:52,940 --> 00:08:56,760 One common trick is if you're being flooded a lot, you will modify 167 00:08:56,760 --> 00:09:00,180 your firewall to say, for example, to block ICMP echo packets. 168 00:09:01,980 --> 00:09:04,940 Well, in that case, the person can start setting reply packets. 169 00:09:06,440 --> 00:09:08,440 If that doesn't work, they can literally start 170 00:09:08,960 --> 00:09:12,580 spawning you a whole bunch of other, you know, host-unreachable packets, just random 171 00:09:12,580 --> 00:09:16,280 UDP packets. Now, 172 00:09:17,480 --> 00:09:20,580 one of the main problems with low-power bandwidth, that you have a small bandwidth and I have 173 00:09:20,580 --> 00:09:24,520 greater bandwidth, well, how do we abuse this? Well, we can abuse other people's bandwidth. 174 00:09:25,380 --> 00:09:28,720 As you know, ping is a simple program where you send in a packet and you get a reply back. 175 00:09:29,360 --> 00:09:32,080 Well, it comes back to you because you send it from your address. 176 00:09:33,440 --> 00:09:35,780 Here's the situation. There's another notebook on the bottom. 177 00:09:36,380 --> 00:09:39,760 There's a bunch of badly set up machines on the right and, of course, a nice little victim 178 00:09:39,760 --> 00:09:43,340 they want to take out. Now, Smurf Attack is simple. 179 00:09:43,540 --> 00:09:46,220 I send a single spoofed packet to that network. 180 00:09:47,780 --> 00:09:51,640 This is tested to a broadcast address. I don't know if that was covered, but 181 00:09:51,640 --> 00:09:55,840 when you transmit IP addresses, you transmit to a single host and you also 182 00:09:55,840 --> 00:09:59,700 transmit to all hosts on a network. If you're dumb enough to leave your 183 00:09:59,700 --> 00:10:03,060 gateway open to allow inbound broadcast address, you're going to have problems. 184 00:10:04,420 --> 00:10:07,140 And also, not only you have problems, but other people 185 00:10:07,140 --> 00:10:10,780 will have problems from you. So when the government starts calling you up 186 00:10:10,780 --> 00:10:15,020 on why you're flooding their network, somebody's probably using you as that group of hosts on the right. 187 00:10:15,540 --> 00:10:18,780 Now, I send one packet to that group of systems. 188 00:10:19,320 --> 00:10:22,900 What do all those hosts do? They reply. 189 00:10:23,840 --> 00:10:24,560 A lot. 190 00:10:29,440 --> 00:10:30,520 Now, again, I iterate. 191 00:10:30,760 --> 00:10:31,380 One packet? 192 00:10:33,060 --> 00:10:33,200 Three packets. 193 00:10:34,200 --> 00:10:35,880 This is a classic Smurf Attack. 194 00:10:37,760 --> 00:10:41,260 So this is where your 14.4 modem can wipe out 195 00:10:41,260 --> 00:10:42,940 somebody's large net connection. 196 00:10:46,800 --> 00:10:48,980 Again, float attacks are easy to do. 197 00:10:49,000 --> 00:10:51,940 You should do it by filtering ICMP echo apply packets. 198 00:10:52,420 --> 00:10:55,680 The annoying part is you start filtering those, you can't ping people from your site. 199 00:10:58,800 --> 00:11:01,020 Other forms. Well, we have UDP echo 200 00:11:01,020 --> 00:11:01,620 spoofing. 201 00:11:03,720 --> 00:11:04,500 I'll explain this. 202 00:11:04,660 --> 00:11:05,780 You all know what UDP is now. 203 00:11:06,420 --> 00:11:07,760 Well, we have echo spoofing. 204 00:11:08,020 --> 00:11:10,440 There's a nice little port. There's a whole bunch of little ports 205 00:11:10,960 --> 00:11:13,020 called internal services that come with your 206 00:11:13,020 --> 00:11:14,220 Unix machines and NT machines. 207 00:11:14,660 --> 00:11:15,700 One of which is echo. 208 00:11:16,980 --> 00:11:18,440 You tell it to that port, 209 00:11:18,540 --> 00:11:20,360 and whatever you type gets typed back at you. 210 00:11:20,800 --> 00:11:22,440 If you send a UDP packet, 211 00:11:22,620 --> 00:11:24,280 it'll transmit the packet back to you. 212 00:11:24,300 --> 00:11:26,680 Kind of a ping-like thing, but it's a different layer of service. 213 00:11:28,520 --> 00:11:30,160 I don't know why it's there anymore. 214 00:11:30,260 --> 00:11:32,140 It's more of a legacy service. 215 00:11:33,060 --> 00:11:35,060 If it brings it all, you automatically turn this off. 216 00:11:35,880 --> 00:11:36,980 But we can have fun. 217 00:11:37,120 --> 00:11:39,120 Like, there's a little NT box over on the 218 00:11:39,120 --> 00:11:39,700 right-hand side. 219 00:11:40,320 --> 00:11:42,740 They installed all the network services, including 220 00:11:42,740 --> 00:11:43,720 UDP echo. 221 00:11:44,480 --> 00:11:47,100 So, me being a nice person on the left, 222 00:11:47,200 --> 00:11:48,620 I send a UDP packet 223 00:11:48,620 --> 00:11:50,960 with a from address and to 224 00:11:50,960 --> 00:11:52,160 address of my victim. 225 00:11:53,060 --> 00:11:55,000 So where does my victim send the reply? 226 00:11:57,840 --> 00:11:58,320 Thus. 227 00:11:59,380 --> 00:12:00,780 What is that machine busy 228 00:12:00,780 --> 00:12:02,520 doing with all of its CPU time? 229 00:12:06,640 --> 00:12:08,140 This can go on for quite a while. 230 00:12:08,180 --> 00:12:08,540 Eventually, 231 00:12:08,600 --> 00:12:10,020 CPU time maxes out, 232 00:12:10,080 --> 00:12:11,320 you drop a packet, and it goes away. 233 00:12:12,040 --> 00:12:13,280 Another method I can send is 234 00:12:13,280 --> 00:12:15,480 I can use a source address of localhost, 235 00:12:15,660 --> 00:12:16,940 which is, again, 236 00:12:17,120 --> 00:12:19,060 kind of a unique host 237 00:12:19,660 --> 00:12:20,780 that always refers to yourself. 238 00:12:22,460 --> 00:12:23,040 And, uh, 239 00:12:23,100 --> 00:12:23,900 you send multiple packets. 240 00:12:24,200 --> 00:12:25,300 The machine keeps quite busy. 241 00:12:26,180 --> 00:12:28,360 Variations include transmitting to a broadcast address. 242 00:12:28,460 --> 00:12:30,640 We get a lot of machines broadcasting at each other and such. 243 00:12:31,220 --> 00:12:32,360 But it's kind of simple. 244 00:12:33,060 --> 00:12:34,620 There are patched versions of iNetD. 245 00:12:34,680 --> 00:12:36,680 That's the demon that spawns 246 00:12:36,680 --> 00:12:38,700 most of your internet network services 247 00:12:38,700 --> 00:12:39,220 under UNIX. 248 00:12:39,560 --> 00:12:41,800 There are patched versions that will block these attacks, 249 00:12:42,040 --> 00:12:44,760 as in, I'm not talking to myself. Screw this. 250 00:12:44,800 --> 00:12:45,200 Ignore it. 251 00:12:46,220 --> 00:12:47,220 That type of thing. 252 00:12:47,860 --> 00:12:50,220 IP filtering helps unprotected systems. 253 00:12:50,620 --> 00:12:52,020 I hope you all have a firewall. 254 00:12:53,420 --> 00:12:54,960 Cyber, who flaked out in his early morning 255 00:12:54,960 --> 00:12:56,360 talk, is rescheduled. 256 00:12:56,540 --> 00:12:58,660 He's going to drop his PKI talk, and he's going to talk about 257 00:12:58,660 --> 00:13:00,200 how to build a firewall out of BSD. 258 00:13:00,640 --> 00:13:02,120 That's going to be at 5 o'clock in this room. 259 00:13:03,060 --> 00:13:04,980 And, uh, if you do attend that talk, 260 00:13:05,100 --> 00:13:06,260 ask him where he was this morning. 261 00:13:06,380 --> 00:13:08,200 He's out shooting his guns instead of talking to you. 262 00:13:09,000 --> 00:13:10,720 So, give him lots of hell for that. 263 00:13:13,400 --> 00:13:14,300 Now, SYN flooding. 264 00:13:14,500 --> 00:13:15,880 We all read the paper a few years ago. 265 00:13:16,280 --> 00:13:18,700 SYN flooding's actually been around for, I don't know, 266 00:13:18,820 --> 00:13:20,000 about 15 years. 267 00:13:20,600 --> 00:13:22,820 Although, a couple years ago, Route actually released 268 00:13:22,820 --> 00:13:24,580 a public program, and, um, 269 00:13:24,640 --> 00:13:26,520 all of a sudden, all the script kitties can do it. 270 00:13:27,580 --> 00:13:29,300 And all the script kitties think it's new technology. 271 00:13:30,060 --> 00:13:31,020 Read a paper from 272 00:13:31,020 --> 00:13:32,980 10 years ago. It's all talked about. 273 00:13:33,060 --> 00:13:35,020 In fact, all the attacks were talked about 274 00:13:35,020 --> 00:13:35,840 15 years ago. 275 00:13:36,700 --> 00:13:38,960 Uh, here we are. Basically, SYN flooding 276 00:13:38,960 --> 00:13:40,320 allows an attacker to deny a system. 277 00:13:40,640 --> 00:13:41,740 Attacks a purport basis. 278 00:13:42,340 --> 00:13:43,100 You can read. 279 00:13:44,040 --> 00:13:46,580 Now, the way this simply works, again, 280 00:13:46,660 --> 00:13:48,740 we have my attacker system, non-existent, 281 00:13:48,740 --> 00:13:49,400 legitimate client. 282 00:13:50,180 --> 00:13:52,500 Uh, it used to be that most implements of IP 283 00:13:52,500 --> 00:13:54,460 could only allow a certain number of 284 00:13:54,460 --> 00:13:55,480 starting connections. 285 00:13:56,400 --> 00:13:58,900 Now, they could have an infinite amount of current connections, 286 00:13:58,960 --> 00:14:00,580 but only a small amount of pending connections. 287 00:14:01,820 --> 00:14:02,560 So, if I 288 00:14:03,060 --> 00:14:04,660 were to end any connections, 289 00:14:04,900 --> 00:14:06,120 I could pick somebody, and I go, 290 00:14:06,240 --> 00:14:08,720 Hi! And this person says 291 00:14:08,720 --> 00:14:10,340 hi back to me, but I don't respond to that. 292 00:14:10,500 --> 00:14:12,400 Third person does it, fourth person does it. 293 00:14:12,620 --> 00:14:14,900 Now his buffer is full of pending inbound 294 00:14:14,900 --> 00:14:17,040 connections, and anybody else says hello 295 00:14:17,040 --> 00:14:18,900 to him, he won't respond, because he's 296 00:14:18,900 --> 00:14:20,820 too busy waiting for acknowledgement from me and the other people. 297 00:14:21,680 --> 00:14:22,120 Understand? 298 00:14:22,660 --> 00:14:23,100 Hello? 299 00:14:24,960 --> 00:14:27,200 So, I SYN flood that system. 300 00:14:28,160 --> 00:14:28,880 Now, remember 301 00:14:28,880 --> 00:14:29,640 3D Handshake. 302 00:14:30,240 --> 00:14:32,360 It sends all the acts to a non-existent 303 00:14:33,060 --> 00:14:34,640 into a black hole, a non-existent system. 304 00:14:35,800 --> 00:14:36,820 Now, that victim 305 00:14:36,820 --> 00:14:38,980 system is waiting for the acknowledgement 306 00:14:38,980 --> 00:14:39,720 to its acts. 307 00:14:42,280 --> 00:14:43,020 Are they gonna 308 00:14:43,020 --> 00:14:44,900 come? No, we have to 309 00:14:44,900 --> 00:14:46,500 time out first. So, 310 00:14:47,020 --> 00:14:49,020 since nobody can establish a new connection, 311 00:14:49,400 --> 00:14:50,840 a legitimate client cannot 312 00:14:50,840 --> 00:14:51,120 connect. 313 00:14:53,980 --> 00:14:54,900 Now, if you're logged 314 00:14:54,900 --> 00:14:56,960 in the victim system, everything's just fine 315 00:14:56,960 --> 00:14:59,060 and dandy. Your shell's working, you're typing 316 00:14:59,060 --> 00:15:00,960 away, your machine's load 317 00:15:00,960 --> 00:15:02,960 is nothing, but nobody else 318 00:15:03,060 --> 00:15:04,400 can establish any new connections. 319 00:15:07,460 --> 00:15:08,360 What's the typical 320 00:15:08,360 --> 00:15:10,480 host? It varies 321 00:15:11,060 --> 00:15:12,800 per host. It's usually, I believe, 322 00:15:12,880 --> 00:15:14,500 45 seconds, I guess. 323 00:15:15,160 --> 00:15:15,920 The average. 324 00:15:17,200 --> 00:15:18,880 It pretty much varies 325 00:15:18,880 --> 00:15:20,960 a lot per host. There's a lot of software out there, actually. 326 00:15:21,240 --> 00:15:23,060 More advanced firewalls these days 327 00:15:23,060 --> 00:15:24,880 will detect this, 328 00:15:25,020 --> 00:15:26,820 and in the middle of an attack 329 00:15:26,820 --> 00:15:28,380 of a victim system, an 330 00:15:28,380 --> 00:15:30,980 intelligent firewall, or perhaps certain type of 331 00:15:30,980 --> 00:15:33,000 secure utilities, will start transmitting 332 00:15:33,060 --> 00:15:34,820 the resets, causing all the acts 333 00:15:34,820 --> 00:15:35,800 to be reset. 334 00:15:46,780 --> 00:15:48,800 Destination host and reachable, it depends 335 00:15:48,800 --> 00:15:50,880 on your firewall. Some firewall 336 00:15:50,880 --> 00:15:53,040 types, by default, just say host and reachable 337 00:15:53,040 --> 00:15:54,960 for any packet they reject. Some firewalls 338 00:15:54,960 --> 00:15:57,120 don't apply anything. Other firewalls 339 00:15:57,120 --> 00:15:59,080 say network and reachable. It really depends 340 00:15:59,080 --> 00:16:00,800 on what product or whose 341 00:16:00,800 --> 00:16:02,020 security company you bought into. 342 00:16:03,060 --> 00:16:04,460 Will that reset the connection, though? 343 00:16:05,720 --> 00:16:06,860 Hopefully the firewall 344 00:16:06,860 --> 00:16:08,860 that will reset will actually re-transmit 345 00:16:08,860 --> 00:16:10,580 the connection. Again, it really depends on the product. 346 00:16:10,820 --> 00:16:12,560 I can't say what will what happen. 347 00:16:12,740 --> 00:16:14,800 In most of my examples here, we're assuming there's 348 00:16:14,800 --> 00:16:15,740 no firewall involved. 349 00:16:18,880 --> 00:16:20,260 Of course, you can't make the connection. 350 00:16:21,320 --> 00:16:22,780 In this, remote action victim systems 351 00:16:22,780 --> 00:16:24,580 block takes very little bandwidth. 352 00:16:24,820 --> 00:16:26,700 You and your little dial-up or your ricochet modem can 353 00:16:26,700 --> 00:16:28,800 take out entire corporations this way. 354 00:16:29,780 --> 00:16:31,000 This assumes that you're running 355 00:16:31,000 --> 00:16:32,680 an old-version 356 00:16:33,060 --> 00:16:34,900 virus or some OS. Any modern 357 00:16:34,900 --> 00:16:37,100 system that was released in the last 358 00:16:37,100 --> 00:16:38,900 year or two has listened to this. 359 00:16:45,540 --> 00:16:47,080 Again, strong filtering helps. 360 00:16:48,860 --> 00:16:49,660 Send sniping. 361 00:16:50,960 --> 00:16:52,960 This is a fun one. Ever, like, 362 00:16:52,960 --> 00:16:54,680 be on a network and want to, like, shut people down? 363 00:16:56,640 --> 00:16:57,860 Well, this is how you do it. 364 00:16:59,540 --> 00:17:00,540 Here's that layout again. 365 00:17:03,060 --> 00:17:05,040 Here's that send packet again. Now, remember how 366 00:17:05,040 --> 00:17:06,760 the three-way handshake, you remember how 367 00:17:07,240 --> 00:17:08,620 normally a connection fails? 368 00:17:09,860 --> 00:17:10,940 Now, you'd assume the 369 00:17:10,940 --> 00:17:12,180 reset would come from 370 00:17:12,180 --> 00:17:14,880 the person receiving the connection, the server on the right. 371 00:17:15,860 --> 00:17:16,820 Instead, I 372 00:17:16,820 --> 00:17:17,880 fake the reset. 373 00:17:20,480 --> 00:17:22,440 The legitimate client doesn't know any better. 374 00:17:22,720 --> 00:17:24,180 Send, reset, okay. 375 00:17:24,600 --> 00:17:25,420 Port not open. 376 00:17:27,240 --> 00:17:28,760 Now, when the act does come along, 377 00:17:29,880 --> 00:17:30,960 the legitimate client 378 00:17:30,960 --> 00:17:32,780 sees the send part of that and says, 379 00:17:33,060 --> 00:17:33,920 Reset. Reset. 380 00:17:38,300 --> 00:17:40,800 Both machines did not establish 381 00:17:40,800 --> 00:17:42,840 TCP connection and there are no errors in your logs. 382 00:17:48,160 --> 00:17:48,900 Actually, if you run a 383 00:17:48,900 --> 00:17:50,740 program with ARP Watch, it's kind of fun, because 384 00:17:50,740 --> 00:17:52,060 ARP Watch would notice that your, 385 00:17:53,080 --> 00:17:55,140 effectively, that your spoofed 386 00:17:55,140 --> 00:17:56,900 reset came from the wrong MAC address, but that 387 00:17:56,900 --> 00:17:58,180 could be fooled also. Yes? 388 00:17:58,280 --> 00:17:59,220 How do you use the time? 389 00:18:00,020 --> 00:18:02,200 How do you use the time? 390 00:18:03,060 --> 00:18:04,840 These old machines are on the same physical 391 00:18:04,840 --> 00:18:06,980 wire, on the same unswitched 392 00:18:07,580 --> 00:18:08,420 dumb hub, 393 00:18:08,580 --> 00:18:10,420 and the attacker sniffed, 394 00:18:10,840 --> 00:18:12,620 you know, sift the packet and said, 395 00:18:12,660 --> 00:18:13,560 Oh, here it is, reset. 396 00:18:15,260 --> 00:18:16,900 Now, the sequence number of 397 00:18:16,900 --> 00:18:17,700 the reset is zero. 398 00:18:18,280 --> 00:18:20,760 Your sequence number by default is zero unless 399 00:18:20,760 --> 00:18:21,740 you've established a sequence. 400 00:18:22,620 --> 00:18:24,880 So, in theory, the attacker can 401 00:18:24,880 --> 00:18:26,800 stream resets of sequence 402 00:18:26,800 --> 00:18:28,540 zero at 403 00:18:28,540 --> 00:18:29,780 the legitimate client. 404 00:18:30,740 --> 00:18:31,760 And a connection 405 00:18:31,760 --> 00:18:32,640 can never be established. 406 00:18:36,920 --> 00:18:37,360 Again, 407 00:18:37,540 --> 00:18:39,400 the victim system can be selectively blocked. 408 00:18:39,660 --> 00:18:41,820 It requires, as I pointed out, 409 00:18:42,000 --> 00:18:43,320 local or intermediate 410 00:18:43,320 --> 00:18:45,540 network access. In other words, 411 00:18:45,560 --> 00:18:47,520 it has to be on one of the physical wires that this packet 412 00:18:47,520 --> 00:18:49,380 is traveling over to see the packets 413 00:18:49,380 --> 00:18:50,180 going back and forth. 414 00:18:51,100 --> 00:18:53,520 And it's pretty hard to detect, because 415 00:18:53,520 --> 00:18:55,600 you can basically spoof your MAC address, 416 00:18:55,860 --> 00:18:57,700 spoof the IP address, obviously. 417 00:18:57,900 --> 00:18:59,300 It's kind of a barrier to track down. 418 00:19:00,780 --> 00:19:01,800 Smart hubs help. 419 00:19:02,280 --> 00:19:03,520 Buy your Cisco Catalyst. 420 00:19:03,860 --> 00:19:05,100 Nice little VPN networks. 421 00:19:06,060 --> 00:19:07,300 Spoof, you know, spoof protection. 422 00:19:07,700 --> 00:19:08,540 That'll help a lot. 423 00:19:09,720 --> 00:19:11,800 But then, of course, I'd rather buy a nice 424 00:19:11,800 --> 00:19:13,120 car than a decent, you know, 5500. 425 00:19:14,900 --> 00:19:15,440 Where a 426 00:19:15,440 --> 00:19:17,840 fully loaded Catalyst 2500 is like 110,000. 427 00:19:20,840 --> 00:19:21,720 Yeah. Security's 428 00:19:21,720 --> 00:19:22,580 expensive sometimes. 429 00:19:24,580 --> 00:19:25,640 Ping of Death. We all know 430 00:19:25,640 --> 00:19:26,140 about this one. 431 00:19:27,260 --> 00:19:29,360 It's really simple. This is a commonly implemented 432 00:19:29,780 --> 00:19:31,520 it could be any type of IP packet, but it's commonly 433 00:19:31,520 --> 00:19:32,680 implemented as a ping. 434 00:19:34,400 --> 00:19:35,640 It implements a bug in 435 00:19:35,640 --> 00:19:37,580 layer 3. Now, in all 436 00:19:37,580 --> 00:19:39,560 protocols, or most packet protocols, there's 437 00:19:39,560 --> 00:19:41,140 this concept of maximum size packet. 438 00:19:43,100 --> 00:19:43,500 In 439 00:19:43,500 --> 00:19:45,260 Ping of Death, the error was 440 00:19:45,780 --> 00:19:47,640 we would allocate a packet size, that's 441 00:19:48,880 --> 00:19:49,280 65K, 442 00:19:50,160 --> 00:19:51,600 and then I would transmit a ping 443 00:19:51,600 --> 00:19:52,800 packet, which was fragmented. 444 00:19:53,260 --> 00:19:55,680 When you reassembled all the parts of that packet, 445 00:19:55,820 --> 00:19:57,260 it was larger than a buffer. 446 00:19:58,000 --> 00:19:59,640 So you receive your first fragment, you write 447 00:19:59,780 --> 00:20:01,220 it to the buffer. You receive your second fragment, 448 00:20:01,340 --> 00:20:03,420 write it to the buffer. You receive your third, 449 00:20:03,480 --> 00:20:04,780 write it to the buffer. You receive your fourth, 450 00:20:05,220 --> 00:20:05,940 over the edge. 451 00:20:07,600 --> 00:20:09,520 And you overwrite parts of your system or kernel 452 00:20:09,520 --> 00:20:09,820 memory. 453 00:20:11,620 --> 00:20:12,980 AKA, Blue Screen of Death. 454 00:20:16,380 --> 00:20:17,460 This worked on about 455 00:20:17,460 --> 00:20:18,700 every machine out there 456 00:20:19,260 --> 00:20:20,000 for a while. 457 00:20:21,540 --> 00:20:23,180 Again, this has been known for about a decade, 458 00:20:23,300 --> 00:20:25,340 only really came to public light about 459 00:20:25,340 --> 00:20:26,140 a year or two ago. 460 00:20:29,320 --> 00:20:29,680 Basically, 461 00:20:29,780 --> 00:20:31,900 if you have a firewall you have control of, 462 00:20:31,980 --> 00:20:33,540 filter fragmented packets. 463 00:20:34,060 --> 00:20:35,900 There's no reason to allow a fragmented 464 00:20:35,900 --> 00:20:37,040 packet through your network. 465 00:20:38,420 --> 00:20:39,440 You might say, why? 466 00:20:39,680 --> 00:20:41,200 Well, why should a packet be fragmented? 467 00:20:41,380 --> 00:20:43,660 If you have a healthy network, going over a healthy 468 00:20:43,660 --> 00:20:45,700 internet, into your healthy 469 00:20:45,700 --> 00:20:47,540 network, fragmentation should not happen. 470 00:20:48,200 --> 00:20:49,640 The only time fragmentation can 471 00:20:49,640 --> 00:20:51,380 possibly happen is if you have a large packet 472 00:20:51,380 --> 00:20:52,880 network, for example FTDI, 473 00:20:53,980 --> 00:20:55,640 being retransmitted over ethernet, 474 00:20:55,740 --> 00:20:57,500 which has smaller packets, 475 00:20:57,820 --> 00:20:59,660 at which point they'll fragment. But if you 476 00:20:59,780 --> 00:21:01,580 configure your network to do that, you should suffer. 477 00:21:07,220 --> 00:21:09,460 Again, so just filter 478 00:21:09,460 --> 00:21:11,440 fragmented packets. I think on the average, if you run a 479 00:21:11,440 --> 00:21:13,280 website, you can lose up to 480 00:21:13,280 --> 00:21:14,280 10% of 481 00:21:14,280 --> 00:21:17,480 I think that's maximum 10% of the people trying to 482 00:21:17,480 --> 00:21:19,740 connect to you, sometimes as low as 2%. 483 00:21:20,100 --> 00:21:21,560 As far as I'm concerned, tough. 484 00:21:21,740 --> 00:21:22,460 They have a broken network. 485 00:21:25,520 --> 00:21:27,240 Now, permutations of this. Teardrop attack. 486 00:21:28,440 --> 00:21:29,060 This and 487 00:21:29,780 --> 00:21:31,180 IP fragment flooding, that is 488 00:21:32,020 --> 00:21:33,220 micro-fragments overlapping, 489 00:21:33,720 --> 00:21:34,620 is fun stuff. 490 00:21:35,740 --> 00:21:36,980 Overlapping fragments are fun. 491 00:21:38,060 --> 00:21:39,580 Effectively, Teardrop is a widely available 492 00:21:39,580 --> 00:21:41,460 tool. Anybody could download it. Root Shell, 493 00:21:41,660 --> 00:21:43,220 I kind of hate Root Shell for this, 494 00:21:43,380 --> 00:21:45,960 because they have umpteen versions of Teardrop, 495 00:21:46,000 --> 00:21:47,620 yet they don't say what 496 00:21:47,620 --> 00:21:48,940 the Teardrop attack is. 497 00:21:49,520 --> 00:21:51,340 Wouldn't it be nice for those hacker websites 498 00:21:51,340 --> 00:21:53,660 out there to actually bother to write even a 499 00:21:53,660 --> 00:21:55,720 paragraph to say what it is, so I don't have to 500 00:21:55,720 --> 00:21:56,800 come up here and explain them to you? 501 00:21:58,860 --> 00:21:59,300 No. 502 00:21:59,780 --> 00:22:00,420 That might take effort. 503 00:22:03,220 --> 00:22:04,400 This is mostly 504 00:22:04,400 --> 00:22:05,720 Linux, NNT, 505 00:22:06,260 --> 00:22:07,700 basically Linux and Windows are mostly 506 00:22:07,700 --> 00:22:08,460 vulnerable to this. 507 00:22:09,500 --> 00:22:11,560 Linux should be upgraded to perhaps FreeBSD. 508 00:22:14,820 --> 00:22:17,140 And if you want FreeBSD, we have free CDs 509 00:22:17,140 --> 00:22:18,540 in the conference area. 510 00:22:20,780 --> 00:22:21,740 Unlike Linux, 511 00:22:21,940 --> 00:22:23,000 FreeBSD is free. 512 00:22:23,920 --> 00:22:25,000 How much is Red Hat? 513 00:22:26,920 --> 00:22:28,420 They jacked up the prices, actually. 514 00:22:29,780 --> 00:22:31,400 And by the way, they wouldn't make any available 515 00:22:31,400 --> 00:22:32,220 for free at DEF CON. 516 00:22:36,200 --> 00:22:37,860 I'm not going to rank on them too much. 517 00:22:37,920 --> 00:22:38,900 I'll do that in a bar later. 518 00:22:41,760 --> 00:22:43,500 Okay, IP filtering helps. 519 00:22:44,540 --> 00:22:45,820 Generally what happens is 520 00:22:45,820 --> 00:22:47,520 you have a badly formed fragment, so 521 00:22:47,520 --> 00:22:49,280 one fragment comes in, 522 00:22:49,420 --> 00:22:51,800 you have a badly formed packet that comes in 523 00:22:51,800 --> 00:22:52,920 that tries to process the packet, 524 00:22:53,160 --> 00:22:54,120 the machine burps. 525 00:22:55,040 --> 00:22:57,220 In other words, it wasn't analyzing the fragments 526 00:22:57,670 --> 00:22:59,700 as it came in. Maybe the assumption that the 527 00:22:59,780 --> 00:23:01,080 offset in the packet was correct. 528 00:23:01,520 --> 00:23:03,380 It would, well, inside the packet 529 00:23:03,380 --> 00:23:05,000 in the fragment, effectively, 530 00:23:05,180 --> 00:23:07,760 I kind of skipped that and Punx was talking 531 00:23:07,760 --> 00:23:09,140 after breakfast, so 532 00:23:09,140 --> 00:23:10,860 in case he explains to you, I'm sorry. 533 00:23:11,320 --> 00:23:13,440 But effectively, in a packet, if you're fragmented, 534 00:23:13,460 --> 00:23:14,520 there's an offset reference. 535 00:23:15,100 --> 00:23:17,480 Well, if that offset reference doesn't match the content 536 00:23:17,480 --> 00:23:19,360 of the packet, your program might be 537 00:23:19,360 --> 00:23:21,600 tricked into doing something wrong and blowing up. 538 00:23:22,720 --> 00:23:23,620 Another fun thing, 539 00:23:23,760 --> 00:23:25,620 this is not in my slides, but one great way 540 00:23:25,620 --> 00:23:27,020 I used to be able to take out Cisco routers 541 00:23:27,020 --> 00:23:29,460 about eight years ago, is, and I 542 00:23:29,780 --> 00:23:30,920 have lots of variable options, 543 00:23:31,620 --> 00:23:33,600 and the way the header assembles is 544 00:23:33,600 --> 00:23:35,700 there's a byte offset to next option. 545 00:23:36,640 --> 00:23:37,780 And the way the computer 546 00:23:37,780 --> 00:23:39,840 works is, you know, take current 547 00:23:39,840 --> 00:23:41,220 address, add offset, 548 00:23:42,200 --> 00:23:43,320 and process current option. 549 00:23:43,620 --> 00:23:45,680 If you set that byte to zero, what does 550 00:23:45,680 --> 00:23:47,700 the machine do? Reprocess 551 00:23:47,700 --> 00:23:49,840 that option until power goes out. 552 00:23:51,420 --> 00:23:53,620 On a single-threaded TCPIP stack 553 00:23:53,620 --> 00:23:55,040 like Linux, you can really 554 00:23:55,040 --> 00:23:57,780 your machine really 555 00:23:57,780 --> 00:23:59,360 just literally stops. 556 00:24:01,060 --> 00:24:02,380 If you're multi-threaded, 557 00:24:02,380 --> 00:24:03,660 you know, multi-threaded like 558 00:24:03,660 --> 00:24:05,100 any Solaris or BSD machine, 559 00:24:05,400 --> 00:24:07,400 it's not a problem. It'll just eat up a thread 560 00:24:07,400 --> 00:24:08,200 which will eventually die. 561 00:24:10,880 --> 00:24:11,940 Again, fragment flooding 562 00:24:11,940 --> 00:24:12,740 is another fun one. 563 00:24:12,900 --> 00:24:15,020 When fragments come in, as you realize, 564 00:24:15,620 --> 00:24:16,840 you need to deal with these things. 565 00:24:16,900 --> 00:24:18,300 Sometimes fragments don't show up in order. 566 00:24:19,840 --> 00:24:21,500 So you're getting snippets of articles 567 00:24:21,500 --> 00:24:22,780 coming in, snippets of packets. 568 00:24:22,960 --> 00:24:24,360 So you've got to store them in memory somewhere 569 00:24:24,360 --> 00:24:27,100 until the other part comes up, you connect them together 570 00:24:27,100 --> 00:24:28,860 and then pass it on to the upper layer. 571 00:24:29,780 --> 00:24:30,480 to the application layer. 572 00:24:30,780 --> 00:24:33,320 What if I send lots and lots of random fragments 573 00:24:33,320 --> 00:24:35,460 to your machine? What happens to your RAM space? 574 00:24:36,280 --> 00:24:37,460 It fills up 575 00:24:37,460 --> 00:24:38,960 with useless garbage. 576 00:24:41,640 --> 00:24:43,280 NT, really vulnerable to this. 577 00:24:44,140 --> 00:24:45,720 Linux and BSDs are actually 578 00:24:45,720 --> 00:24:46,780 pretty good about this. 579 00:24:47,180 --> 00:24:49,440 When they begin to run out of memory, they start just dumping the packets. 580 00:24:50,960 --> 00:24:51,400 Because 581 00:24:51,400 --> 00:24:53,800 what happens is, if the packet wasn't properly 582 00:24:53,800 --> 00:24:55,460 acknowledged, it would be retransmitted, 583 00:24:55,560 --> 00:24:56,960 resent. It's not a problem. 584 00:24:58,720 --> 00:24:59,720 But there's a good way 585 00:24:59,780 --> 00:25:01,440 of eating up lots of CPU 586 00:25:01,440 --> 00:25:03,620 resources and running out of RAM 587 00:25:03,620 --> 00:25:04,220 real fast. 588 00:25:06,440 --> 00:25:07,240 In other words, 589 00:25:07,320 --> 00:25:08,000 micro-fragments. 590 00:25:09,640 --> 00:25:11,720 Let's make fragments so small you don't recognize 591 00:25:11,720 --> 00:25:12,280 what they are. 592 00:25:13,900 --> 00:25:15,400 So if I fragment, now mind you, 593 00:25:15,440 --> 00:25:17,340 we had, you know, Ethernet, 594 00:25:18,420 --> 00:25:19,380 IP, TCP. 595 00:25:19,980 --> 00:25:21,540 If you're filtering at the TCP 596 00:25:21,540 --> 00:25:23,620 layer, it's assumed you could 597 00:25:23,620 --> 00:25:25,380 read the entire TCP packet. 598 00:25:26,300 --> 00:25:27,500 At least the header part. 599 00:25:28,060 --> 00:25:29,700 But what if I fragment 600 00:25:29,780 --> 00:25:30,920 my packet so small 601 00:25:30,920 --> 00:25:33,820 you can't read the header as a full part? 602 00:25:34,200 --> 00:25:35,140 Can you still filter? 603 00:25:35,960 --> 00:25:36,980 No. What do you do? 604 00:25:37,140 --> 00:25:38,000 Well, you probably pass it through. 605 00:25:39,740 --> 00:25:41,440 So what you do is you just fragment your packet 606 00:25:41,440 --> 00:25:43,680 so small, each one is not identified 607 00:25:43,680 --> 00:25:44,280 as a problem. 608 00:25:47,920 --> 00:25:48,320 Simple. 609 00:25:49,520 --> 00:25:49,920 Yes? 610 00:25:50,700 --> 00:25:51,820 A firewall policy 611 00:25:55,260 --> 00:25:56,980 of dropping all fragments would help a lot. 612 00:25:58,100 --> 00:25:59,700 Certain firewalls actually do reassembly 613 00:25:59,780 --> 00:26:01,720 I mean, the Cisco 614 00:26:01,720 --> 00:26:03,760 had a firewall that Cisco discontinued. 615 00:26:03,900 --> 00:26:05,800 The NT-based 616 00:26:05,800 --> 00:26:06,040 one. 617 00:26:06,820 --> 00:26:09,460 Sentry was pretty good because the Sentry actually 618 00:26:09,460 --> 00:26:11,240 had a fragment 619 00:26:11,780 --> 00:26:13,480 packet policy that would reassemble 620 00:26:13,480 --> 00:26:15,360 fragments before passing them on. 621 00:26:16,140 --> 00:26:17,540 Actually pretty good. It was a bit 622 00:26:17,540 --> 00:26:18,600 memory intensive, but it worked. 623 00:26:19,860 --> 00:26:21,440 Most other firewalls will simply 624 00:26:21,440 --> 00:26:23,520 forward the fragments. The Pix 625 00:26:23,520 --> 00:26:25,680 firewalls option is only pass 626 00:26:25,680 --> 00:26:27,800 fragments when they come in order. 627 00:26:28,180 --> 00:26:29,560 So obviously the 628 00:26:29,780 --> 00:26:31,580 micro-fragments may or may not work. 629 00:26:31,620 --> 00:26:33,380 Actually, I think it just drops those. 630 00:26:33,740 --> 00:26:35,740 The overlapping fragments 631 00:26:35,740 --> 00:26:37,540 and the fragment flooding 632 00:26:37,540 --> 00:26:39,720 would not work because it only allows 633 00:26:39,720 --> 00:26:41,500 fragments in order. Mind you, this breaks 634 00:26:41,500 --> 00:26:42,920 Linux because when Linux fragments 635 00:26:42,920 --> 00:26:45,000 it breaks a packet, maybe three parts. 636 00:26:45,140 --> 00:26:46,560 It says the last part first 637 00:26:46,560 --> 00:26:48,200 and the first part last. 638 00:26:48,980 --> 00:26:51,160 So the Pix firewall simply drops the packet 639 00:26:51,160 --> 00:26:52,520 because it gets fragments 640 00:26:52,520 --> 00:26:54,860 four, then three, then two, then one. 641 00:26:55,020 --> 00:26:57,220 When it gets packet four it goes, where's three, two, one? Ditch it 642 00:26:57,220 --> 00:26:58,180 because this is a random fragment. 643 00:26:59,840 --> 00:27:01,740 I don't know if that's a bug in Linux or a bug in Pix, 644 00:27:02,480 --> 00:27:03,380 but oh well. 645 00:27:04,380 --> 00:27:04,740 Questions? 646 00:27:07,680 --> 00:27:08,900 Okay, other fun things. 647 00:27:09,520 --> 00:27:10,720 You want to learn about sniffing? 648 00:27:12,040 --> 00:27:13,460 You want to get your password stolen? 649 00:27:15,160 --> 00:27:15,880 Opcache Poison 650 00:27:15,880 --> 00:27:17,400 is a fun one. Now mind you, so far 651 00:27:17,400 --> 00:27:19,500 I've worked my way down that protocol stack. 652 00:27:22,080 --> 00:27:23,400 Every time I explain a fix 653 00:27:23,400 --> 00:27:25,600 I'm going to break it again in about five minutes. 654 00:27:26,740 --> 00:27:27,980 Now sniffing is a fun one. 655 00:27:28,520 --> 00:27:29,760 Don't you love that little number on the bottom? 656 00:27:31,160 --> 00:27:33,480 85 to 95% of attacks. 657 00:27:33,760 --> 00:27:35,480 I love these kids that call themselves hackers 658 00:27:35,480 --> 00:27:38,080 because they break into one ISP, steal a password, 659 00:27:38,180 --> 00:27:39,520 break into another ISP, steal passwords. 660 00:27:39,880 --> 00:27:41,420 When are you actually showing technique? 661 00:27:44,640 --> 00:27:45,800 Now sniffing is easy 662 00:27:45,800 --> 00:27:47,340 for the person who hasn't figured it out yet. 663 00:27:47,540 --> 00:27:49,140 It's simply an intersection of data. 664 00:27:49,400 --> 00:27:51,420 As client sends a server, my notebook 665 00:27:51,420 --> 00:27:52,700 sitting on your machine 666 00:27:53,600 --> 00:27:54,580 has your password. 667 00:27:55,320 --> 00:27:57,080 Anybody use any of these 668 00:27:57,760 --> 00:27:58,740 applications or protocols? 669 00:28:00,540 --> 00:28:01,260 Come on! 670 00:28:02,480 --> 00:28:03,640 Your password has 671 00:28:03,640 --> 00:28:04,220 been stolen. 672 00:28:07,580 --> 00:28:09,520 Telnet, clear text, unencrypted. 673 00:28:09,820 --> 00:28:11,520 Rlogin, clear text, unencrypted. 674 00:28:12,580 --> 00:28:13,500 Well, POP, 675 00:28:13,600 --> 00:28:14,620 IMAP, clear text. 676 00:28:15,140 --> 00:28:17,720 If you're using APOP, okay, then you're a little bit safer. 677 00:28:17,740 --> 00:28:19,220 I can only read your mail, I can't read your password. 678 00:28:20,900 --> 00:28:21,360 HTTP. 679 00:28:23,880 --> 00:28:25,960 A little dialogue box pops up, 680 00:28:26,000 --> 00:28:27,700 you type your name and password, clear text. 681 00:28:30,020 --> 00:28:31,700 FTP, clear text. 682 00:28:32,500 --> 00:28:33,780 Simple mail transfer, 683 00:28:34,120 --> 00:28:35,880 clear text. Simple network management, 684 00:28:36,000 --> 00:28:36,520 clear text. 685 00:28:37,040 --> 00:28:39,100 RPC, NFS, clear text. 686 00:28:40,540 --> 00:28:41,720 All of which 687 00:28:41,720 --> 00:28:42,780 are available 688 00:28:42,780 --> 00:28:44,800 to be listened to over your network. 689 00:28:45,560 --> 00:28:46,640 Is that secure? 690 00:28:48,520 --> 00:28:49,860 Have you used SSH? 691 00:28:56,940 --> 00:28:57,700 SSL will 692 00:28:57,700 --> 00:28:59,620 provide encryption, although 693 00:28:59,780 --> 00:29:01,620 one minor plug again or four against 694 00:29:01,620 --> 00:29:03,460 a cell. SSL simply means the person 695 00:29:03,460 --> 00:29:05,540 cannot listen to your packets between 696 00:29:05,540 --> 00:29:07,500 you and the server. It does not mean 697 00:29:07,500 --> 00:29:08,260 the server is secure. 698 00:29:09,180 --> 00:29:11,780 Well, my pet peeve is like, we're secure, we use SSL. 699 00:29:11,900 --> 00:29:12,860 That doesn't mean they're secure. 700 00:29:14,080 --> 00:29:15,700 It means that the data getting to them 701 00:29:15,700 --> 00:29:17,560 is encrypted. The second it's handed off to 702 00:29:17,560 --> 00:29:18,900 their applications is clear text. 703 00:29:21,160 --> 00:29:21,560 Just 704 00:29:21,560 --> 00:29:23,480 to name a few, be aware. 705 00:29:24,500 --> 00:29:25,540 Download SSH, download 706 00:29:25,540 --> 00:29:27,620 secure CRT, use 707 00:29:27,620 --> 00:29:29,100 it. If your ICP doesn't support it, 708 00:29:29,780 --> 00:29:31,500 tell them to. If they don't, get a new 709 00:29:31,500 --> 00:29:31,960 ISP. 710 00:29:35,040 --> 00:29:35,840 Best protection? 711 00:29:36,040 --> 00:29:36,880 Buy a smart hub. 712 00:29:37,240 --> 00:29:39,900 I know, it's kind of expensive, but you've got to do it if you're going to be serious. 713 00:29:40,380 --> 00:29:41,220 Use SSH, 714 00:29:41,380 --> 00:29:43,120 use Kerberos, that's kind of nice. 715 00:29:43,380 --> 00:29:45,500 Use DES Channel Up, it's not really widely 716 00:29:45,500 --> 00:29:46,540 distributed as it should be. 717 00:29:47,320 --> 00:29:49,240 Whenever possible, remove from riskless mode. 718 00:29:49,760 --> 00:29:51,580 On my home site, you can't 719 00:29:51,580 --> 00:29:53,840 sniff. I've rebuilt all my kernels 720 00:29:53,840 --> 00:29:55,600 and I removed the capability from sniffing 721 00:29:55,600 --> 00:29:57,620 from my kernels. Go ahead, root 722 00:29:57,620 --> 00:29:59,460 my system. People do it all the time. 723 00:29:59,800 --> 00:30:00,520 You can't sniff. 724 00:30:04,740 --> 00:30:05,700 Makes your network a little bit 725 00:30:05,700 --> 00:30:06,080 more secure. 726 00:30:09,240 --> 00:30:11,860 Well, to rebuild the kernel would be kind of nice, but you've got to replace 727 00:30:11,860 --> 00:30:13,100 the kernel, but because it's 728 00:30:13,440 --> 00:30:15,560 immutable to file, you need to reboot the machine from 729 00:30:15,560 --> 00:30:16,740 console and install it. 730 00:30:18,240 --> 00:30:19,700 Which is kind of a pain in the ass, because 731 00:30:19,700 --> 00:30:21,600 I have to be there at console to install it. 732 00:30:24,920 --> 00:30:25,680 Maybe buy Cal 733 00:30:25,680 --> 00:30:27,660 lots of beer, I'll sneak into the war room and do it for me, but 734 00:30:27,660 --> 00:30:29,680 I don't know. But I'm locally 735 00:30:29,780 --> 00:30:31,480 using Ethernet. It's common mac address 736 00:30:31,480 --> 00:30:33,440 poisoning. I love this. Mike told you about 737 00:30:33,440 --> 00:30:35,560 all the different ways about TCP IP and how you can fool 738 00:30:35,560 --> 00:30:37,600 things and redirect things. Well, let's go one 739 00:30:37,600 --> 00:30:38,900 layer. Let's go, like, layer two. 740 00:30:40,840 --> 00:30:41,480 Ethernet level. 741 00:30:41,800 --> 00:30:43,700 Press anybody to impersonate anybody on your 742 00:30:43,700 --> 00:30:44,160 local LAN. 743 00:30:45,500 --> 00:30:47,660 Hmm. Yeah, I love these. We have 744 00:30:47,660 --> 00:30:49,600 secure IP coming out. We're doing all the 745 00:30:49,600 --> 00:30:51,180 secure stuff with IP. We're 746 00:30:51,700 --> 00:30:53,100 encrypting our packets and everything else. 747 00:30:53,360 --> 00:30:55,660 Well, too bad. I just blew your foundation away. 748 00:30:56,580 --> 00:30:57,420 Denial of service. 749 00:30:57,580 --> 00:30:59,380 A lot of redirects. Now, 750 00:30:59,780 --> 00:31:01,600 how does our cache work? Well, 751 00:31:01,660 --> 00:31:03,620 you're on a network. Every network, every 752 00:31:03,620 --> 00:31:06,000 Ethernet card has, in theory, a unique 753 00:31:06,800 --> 00:31:07,560 MAC address. 754 00:31:09,300 --> 00:31:11,700 And also a lot of unique IP addresses. Hopefully 755 00:31:11,700 --> 00:31:13,640 it's a unique IP address. How do the machines figure 756 00:31:13,640 --> 00:31:15,400 out who's who? Well, something called ARPs. 757 00:31:16,720 --> 00:31:17,200 So, 758 00:31:17,780 --> 00:31:19,600 host 3.4 759 00:31:19,600 --> 00:31:21,780 doesn't transmit. Hey, who's 3.8? 760 00:31:22,720 --> 00:31:23,560 That's a broadcast 761 00:31:23,560 --> 00:31:24,600 over the local Ethernet. 762 00:31:26,460 --> 00:31:27,660 That machine replies, hey, 763 00:31:27,720 --> 00:31:28,100 that's me. 764 00:31:29,780 --> 00:31:31,300 Oh, fee notification. That's a 765 00:31:31,980 --> 00:31:32,840 MAC address number. 766 00:31:33,540 --> 00:31:35,720 The first several bytes are, you can 767 00:31:35,720 --> 00:31:37,660 pretty much tell what kind of host I'm working with here by 768 00:31:37,660 --> 00:31:39,780 looking at the first several bytes. I'll leave that 769 00:31:39,780 --> 00:31:41,700 to your own figuring out what kind of machine 770 00:31:41,700 --> 00:31:43,840 I have at home. And the second set of bytes 771 00:31:43,840 --> 00:31:45,740 are the host type. But by 772 00:31:45,740 --> 00:31:47,620 just looking at the MAC address, you can tell the hardware type. 773 00:31:49,760 --> 00:31:51,620 So, in the case of a break-in, what 774 00:31:51,620 --> 00:31:53,720 happens? Here we are with that little 775 00:31:53,720 --> 00:31:55,300 transmission. Hey, who is this person? 776 00:31:57,440 --> 00:31:58,080 I lie. 777 00:32:01,760 --> 00:32:03,240 Where would the IP packets go? 778 00:32:04,680 --> 00:32:05,360 Straight down. 779 00:32:07,420 --> 00:32:08,060 Oh, by the way, 780 00:32:08,080 --> 00:32:09,820 Loft will be announcing a product this weekend. 781 00:32:10,240 --> 00:32:11,400 If you're interested in this stuff, 782 00:32:11,580 --> 00:32:12,480 look for the announcement. 783 00:32:16,680 --> 00:32:17,600 So, hard cache 784 00:32:17,600 --> 00:32:19,640 poisoning by a smart switch, by a smart 785 00:32:19,640 --> 00:32:21,420 hub. Oh, one more quick thing about this. 786 00:32:21,780 --> 00:32:23,660 You don't have to wait for the 787 00:32:23,660 --> 00:32:25,580 request. A lot of applications 788 00:32:25,580 --> 00:32:27,440 will just accept the packet. 789 00:32:28,020 --> 00:32:29,760 If you just get on a network and say, hey, 790 00:32:29,780 --> 00:32:31,480 hi, I'm the new router here. I'm 791 00:32:31,480 --> 00:32:32,340 this manager. 792 00:32:33,140 --> 00:32:35,640 A lot of machines are like, oh, okay, update the cache 793 00:32:35,640 --> 00:32:36,760 and start sending information to you. 794 00:32:41,640 --> 00:32:43,500 And, of course, I don't believe in things 795 00:32:43,500 --> 00:32:45,440 that hand out fixes. Again, 796 00:32:45,520 --> 00:32:47,180 mortgage the house by a smart hub or 797 00:32:47,180 --> 00:32:47,600 switch. 798 00:32:49,880 --> 00:32:51,200 Whenever possible, remove some 799 00:32:51,200 --> 00:32:53,300 from your kernel. That's like a broken record. 800 00:32:53,980 --> 00:32:55,580 One network, ARP Watch is 801 00:32:55,580 --> 00:32:57,520 really good. ARP Watch is a program that 802 00:32:57,520 --> 00:32:59,660 a friend of mine wrote. It 803 00:32:59,780 --> 00:33:01,320 basically listens to your network 804 00:33:01,840 --> 00:33:03,140 and keeps a table 805 00:33:03,640 --> 00:33:05,780 of IP addresses to ethernet addresses. 806 00:33:06,960 --> 00:33:09,520 If a new one shows up, it sends a notification, 807 00:33:09,840 --> 00:33:11,500 hey, new IP address, or hey, 808 00:33:11,600 --> 00:33:13,540 new MAC address. If somebody uses 809 00:33:13,540 --> 00:33:15,380 somebody else's IP address, it goes, hey, 810 00:33:15,780 --> 00:33:16,500 that changed. 811 00:33:18,220 --> 00:33:19,540 So, if I plug my notebook 812 00:33:19,540 --> 00:33:21,720 into your network and start trying to take over 813 00:33:21,720 --> 00:33:22,280 your identity, 814 00:33:23,740 --> 00:33:25,680 what happens? At least they'll 815 00:33:25,680 --> 00:33:27,600 know about it. It's really good for people 816 00:33:27,600 --> 00:33:29,580 running large sites and people that you run and you have them 817 00:33:29,780 --> 00:33:31,740 always bringing new computers in or moving 818 00:33:31,740 --> 00:33:33,540 computers around the network. It catches them 819 00:33:33,540 --> 00:33:34,000 real fast. 820 00:33:35,160 --> 00:33:37,740 On stable networks, in other words, places that aren't being 821 00:33:37,740 --> 00:33:39,200 re-IP addressed all the time, 822 00:33:39,640 --> 00:33:41,480 go to your servers, preferably 823 00:33:41,480 --> 00:33:43,460 UNIX. You can also do this on NT. 824 00:33:43,640 --> 00:33:45,320 You figure out where that menu is by yourself. 825 00:33:45,760 --> 00:33:47,420 And you can permanently insert 826 00:33:47,420 --> 00:33:49,560 into an ARP table. And that's the 827 00:33:49,560 --> 00:33:51,360 command ARP dash S, IP address, 828 00:33:51,620 --> 00:33:53,580 MAC address, and pub. That will 829 00:33:53,580 --> 00:33:55,680 permanently insert that MAC address 830 00:33:55,680 --> 00:33:56,920 into your kernel table, 831 00:33:57,440 --> 00:33:59,400 which means it'll ignore the broadcasts. 832 00:34:00,880 --> 00:34:01,860 If you have your 833 00:34:01,860 --> 00:34:03,280 mail server, your DNS server, 834 00:34:03,500 --> 00:34:05,640 all your different servers, I hope you're not running on the same machine. 835 00:34:05,720 --> 00:34:07,580 That's another foolish thing to do, but that's 836 00:34:07,580 --> 00:34:09,620 different talk. I hope each of your 837 00:34:09,620 --> 00:34:11,220 major network services runs on dedicated 838 00:34:11,220 --> 00:34:13,520 individual hardware. And I hope 839 00:34:13,520 --> 00:34:15,620 when you get home that you go and you hard code 840 00:34:15,620 --> 00:34:17,060 your MAC addresses between servers. 841 00:34:17,860 --> 00:34:19,380 This way, no one can spoof. 842 00:34:20,840 --> 00:34:21,480 Mind you, 843 00:34:21,540 --> 00:34:23,500 when a machine crashes and you replace 844 00:34:23,500 --> 00:34:24,260 the Ethernet card, 845 00:34:25,700 --> 00:34:26,860 life will be bad. 846 00:34:28,420 --> 00:34:29,520 You'll have to go to every 847 00:34:29,780 --> 00:34:30,920 fucking machine and 848 00:34:30,920 --> 00:34:32,600 re-do your ARP table. 849 00:34:33,600 --> 00:34:34,840 But, good luck. 850 00:34:36,740 --> 00:34:37,680 And this doesn't 851 00:34:37,680 --> 00:34:39,800 quite work with transient networks, 852 00:34:39,960 --> 00:34:40,960 DHCP-based stuff. 853 00:34:48,640 --> 00:34:49,860 Yes and no. 854 00:34:49,980 --> 00:34:51,600 Most cards, 855 00:34:51,920 --> 00:34:53,680 most newer cards you actually have, the MAC addresses 856 00:34:53,680 --> 00:34:55,000 change usually with programming. 857 00:34:55,480 --> 00:34:57,840 By default, the MAC address is assigned to the card 858 00:34:57,840 --> 00:34:59,500 unless you use Sparks, which 859 00:34:59,780 --> 00:35:00,860 is bound to the CPU. 860 00:35:02,420 --> 00:35:03,540 So it's kind of a pain in the ass. 861 00:35:03,600 --> 00:35:05,300 If you put two Ethernet cards into the same 862 00:35:05,300 --> 00:35:07,460 Spark station, they both have the same MAC address. 863 00:35:07,840 --> 00:35:09,700 And if you connect them both to the same Ethernet 864 00:35:09,700 --> 00:35:11,700 for some various reason, things will get broken 865 00:35:11,700 --> 00:35:13,460 real fast. But, 866 00:35:13,460 --> 00:35:15,600 rule of thumb, it's bound 867 00:35:15,600 --> 00:35:16,540 directly to the card. 868 00:35:18,260 --> 00:35:18,860 In fact, 869 00:35:18,980 --> 00:35:19,780 let's see. 870 00:35:21,500 --> 00:35:21,900 . 871 00:35:24,300 --> 00:35:24,700 . 872 00:35:24,700 --> 00:35:25,440 . 873 00:35:25,440 --> 00:35:26,000 . 874 00:35:35,060 --> 00:35:35,340 . 875 00:35:39,380 --> 00:35:39,660 . 876 00:35:39,660 --> 00:35:39,860 . 877 00:35:39,860 --> 00:35:40,000 . 878 00:35:40,000 --> 00:35:40,020 . 879 00:35:40,020 --> 00:35:40,040 . 880 00:35:40,040 --> 00:35:40,060 . 881 00:35:40,060 --> 00:35:40,080 . 882 00:35:44,000 --> 00:35:44,280 . 883 00:35:50,660 --> 00:35:50,940 . 884 00:35:50,940 --> 00:35:50,960 . 885 00:35:50,960 --> 00:35:51,100 . 886 00:35:51,100 --> 00:35:51,120 . 887 00:35:55,440 --> 00:35:55,560 . 888 00:35:58,040 --> 00:35:58,760 . 889 00:36:00,500 --> 00:36:01,220 . 890 00:36:06,800 --> 00:36:07,520 . 891 00:36:07,520 --> 00:36:07,540 . 892 00:36:07,540 --> 00:36:08,460 . 893 00:36:08,460 --> 00:36:08,980 . 894 00:36:08,980 --> 00:36:09,060 . 895 00:36:09,060 --> 00:36:09,260 . 896 00:36:09,260 --> 00:36:09,360 . 897 00:36:24,680 --> 00:36:25,400 . 898 00:36:25,400 --> 00:36:25,420 . 899 00:36:25,440 --> 00:36:25,800 . 900 00:36:26,420 --> 00:36:26,900 . 901 00:36:28,980 --> 00:36:29,460 . 902 00:36:29,460 --> 00:36:29,700 . 903 00:36:29,700 --> 00:36:29,780 . 904 00:36:29,780 --> 00:36:29,800 . 905 00:36:36,060 --> 00:36:36,540 . 906 00:36:36,540 --> 00:36:36,600 . 907 00:36:36,600 --> 00:36:36,620 . 908 00:36:36,620 --> 00:36:36,820 . 909 00:36:38,960 --> 00:36:39,440 . 910 00:36:55,700 --> 00:36:55,740 . 911 00:36:58,100 --> 00:36:58,140 . 912 00:37:08,300 --> 00:37:08,340 . 913 00:37:08,340 --> 00:37:08,360 . 914 00:37:08,360 --> 00:37:08,380 . 915 00:37:08,380 --> 00:37:08,400 . 916 00:37:08,400 --> 00:37:08,420 . 917 00:37:08,420 --> 00:37:08,440 . 918 00:37:08,440 --> 00:37:08,460 . 919 00:37:08,460 --> 00:37:08,480 . 920 00:37:08,480 --> 00:37:08,500 . 921 00:37:08,500 --> 00:37:08,520 . 922 00:37:08,520 --> 00:37:08,560 . 923 00:37:25,380 --> 00:37:25,420 . 924 00:37:25,440 --> 00:37:25,500 . 925 00:37:25,840 --> 00:37:26,000 . 926 00:37:36,220 --> 00:37:36,380 . 927 00:37:36,380 --> 00:37:36,400 . 928 00:37:36,400 --> 00:37:36,420 . 929 00:37:36,420 --> 00:37:36,520 . 930 00:37:36,520 --> 00:37:36,540 . 931 00:37:36,540 --> 00:37:36,660 . 932 00:37:36,660 --> 00:37:36,680 . 933 00:37:37,500 --> 00:37:37,660 . 934 00:37:37,660 --> 00:37:37,680 . 935 00:37:42,280 --> 00:37:42,440 . 936 00:37:42,440 --> 00:37:43,960 . . 937 00:37:46,600 --> 00:37:47,120 . . 938 00:37:52,900 --> 00:37:53,520 . . 939 00:37:53,520 --> 00:37:53,780 . . 940 00:37:53,780 --> 00:37:54,060 . . 941 00:37:55,720 --> 00:37:56,320 . . 942 00:38:08,060 --> 00:38:09,100 . . 943 00:38:09,100 --> 00:38:09,520 . . 944 00:38:09,520 --> 00:38:11,140 . . 945 00:38:11,140 --> 00:38:11,360 . . 946 00:38:11,360 --> 00:38:11,640 . . 947 00:38:11,640 --> 00:38:11,720 . . 948 00:38:11,720 --> 00:38:12,420 . . 949 00:38:12,420 --> 00:38:14,660 Our host, DEFCON.org. 950 00:38:15,400 --> 00:38:16,260 Whatever you want it to be. 951 00:38:16,340 --> 00:38:17,320 All you need is one command. 952 00:38:19,780 --> 00:38:20,060 Follow? 953 00:38:21,000 --> 00:38:21,280 Questions? 954 00:38:25,420 --> 00:38:25,920 Now, let's see. 955 00:38:26,760 --> 00:38:27,920 Again, this is just an explanation. 956 00:38:28,420 --> 00:38:30,140 I wasn't going to print out the slides, but it's true. 957 00:38:30,180 --> 00:38:31,400 You can go to Kinko's and print them. 958 00:38:32,720 --> 00:38:34,540 These slides will all be available on the DEFCON webpage. 959 00:38:35,060 --> 00:38:36,280 DTO seems to publish these things. 960 00:38:36,980 --> 00:38:38,500 But this is just an explanation of what I just said. 961 00:38:39,220 --> 00:38:40,760 OS is now a randomizer of numbers. 962 00:38:40,840 --> 00:38:41,760 It makes it a little bit harder to do. 963 00:38:42,420 --> 00:38:45,540 It turns out that some of the randomizations were very weak. 964 00:38:46,680 --> 00:38:49,040 So, even though it looked random, it wasn't random. 965 00:38:49,460 --> 00:38:49,900 Whoops. 966 00:38:50,500 --> 00:38:51,840 Crypto login helps a lot. 967 00:38:53,360 --> 00:38:55,120 Because under crypto login, 968 00:38:55,300 --> 00:38:56,980 after you establish a three-way handshake, 969 00:38:57,060 --> 00:38:59,420 when you still need to be encrypted, 970 00:38:59,640 --> 00:39:00,760 especially SSH, for example, 971 00:39:00,920 --> 00:39:02,360 you still need to perform the key exchange. 972 00:39:03,020 --> 00:39:04,200 So it's more than one packet. 973 00:39:05,280 --> 00:39:05,720 Yes? 974 00:39:06,120 --> 00:39:09,240 In Solaris 2.6, there's two or three different options 975 00:39:09,240 --> 00:39:10,980 for randomizing your sequence. 976 00:39:11,800 --> 00:39:12,400 There are... 977 00:39:12,420 --> 00:39:14,180 There's one for standard stuff, 978 00:39:14,240 --> 00:39:15,920 which doesn't really randomize it. 979 00:39:16,280 --> 00:39:18,200 There's one for RFC. 980 00:39:19,320 --> 00:39:22,120 Some of the RFCs are basically 981 00:39:22,120 --> 00:39:24,440 in the documents that propose standards. 982 00:39:25,080 --> 00:39:27,980 And then there's one for randomizing the sequence. 983 00:39:28,240 --> 00:39:30,520 Do you know about those? 984 00:39:30,960 --> 00:39:33,300 I'm familiar with the different propositions. 985 00:39:33,320 --> 00:39:35,540 I recommend using the RFC or the randomized one, 986 00:39:35,620 --> 00:39:36,700 not the non-randomized one. 987 00:39:37,060 --> 00:39:37,920 It's up to you. 988 00:39:38,700 --> 00:39:41,020 I imagine that the RFC is a standard 989 00:39:41,020 --> 00:39:42,400 and the other one is a homebrew. 990 00:39:42,420 --> 00:39:44,100 I mean, if your network works, 991 00:39:44,160 --> 00:39:44,800 don't worry about it. 992 00:39:47,440 --> 00:39:49,400 And here we are, session hijacking. 993 00:39:49,580 --> 00:39:51,080 This is very similar to what I just did. 994 00:39:53,140 --> 00:39:54,080 Here's that slide again. 995 00:39:56,640 --> 00:39:58,100 Now, I'll save you the effort 996 00:39:58,100 --> 00:39:59,180 of seeing the three-way handshake. 997 00:39:59,200 --> 00:39:59,960 Let's just say it happened. 998 00:40:01,320 --> 00:40:03,360 You were happily logged into your ISP. 999 00:40:03,440 --> 00:40:04,340 You're on IRC. 1000 00:40:04,460 --> 00:40:05,240 I'll let it in. 1001 00:40:05,880 --> 00:40:06,600 Whatever else. 1002 00:40:07,820 --> 00:40:08,840 And what happens? 1003 00:40:10,480 --> 00:40:11,500 I spoof a packet. 1004 00:40:11,880 --> 00:40:12,400 I get it. 1005 00:40:12,420 --> 00:40:12,920 I hijack the session. 1006 00:40:14,600 --> 00:40:16,880 Basically, I know what your sequences are. 1007 00:40:17,660 --> 00:40:19,560 I jump into the conversation midstream. 1008 00:40:19,920 --> 00:40:21,240 We exchange a packet or two. 1009 00:40:22,360 --> 00:40:24,600 All of a sudden, your trusted host is out of sequence, 1010 00:40:24,800 --> 00:40:25,460 so it's going to be ignored. 1011 00:40:26,340 --> 00:40:27,960 And I now have your teleconnection. 1012 00:40:31,960 --> 00:40:32,980 The timing is tricky. 1013 00:40:33,080 --> 00:40:33,860 That's why you use software. 1014 00:40:38,100 --> 00:40:39,840 Now, once I send that, I can send lots. 1015 00:40:39,980 --> 00:40:41,600 Now, the problem is you're going to have an axe storm. 1016 00:40:42,500 --> 00:40:45,440 Because your target host is not going to get an acknowledgement 1017 00:40:45,440 --> 00:40:46,420 for a packet it sent. 1018 00:40:47,360 --> 00:40:49,300 And it's going to start streaming acts at each other. 1019 00:40:49,340 --> 00:40:50,580 Same thing for the trusted host. 1020 00:40:51,140 --> 00:40:52,780 And eventually, your connection will drop 1021 00:40:52,780 --> 00:40:54,260 because it's going to discover the axe 1022 00:40:54,260 --> 00:40:55,240 that was associated with that TCP. 1023 00:40:55,580 --> 00:40:56,140 And your kernel is going to go, 1024 00:40:56,240 --> 00:40:57,360 eh, something's screwy here. 1025 00:40:57,400 --> 00:40:57,820 Kill the connection. 1026 00:40:59,480 --> 00:41:01,400 Now, a partial hack might be to send an ARP 1027 00:41:01,800 --> 00:41:02,900 to the target host 1028 00:41:02,900 --> 00:41:04,940 and make it send its axe to Never Neverland. 1029 00:41:05,740 --> 00:41:06,860 That would be a pretty good one. 1030 00:41:06,920 --> 00:41:07,620 That helps a little bit. 1031 00:41:10,080 --> 00:41:11,240 So, quick explanation. 1032 00:41:11,240 --> 00:41:12,660 I desynchronize the connection. 1033 00:41:13,020 --> 00:41:15,220 Then I jump into the sequence that I established. 1034 00:41:16,240 --> 00:41:17,760 And you're typing along. 1035 00:41:17,820 --> 00:41:19,520 All of a sudden, your screen doesn't respond anymore. 1036 00:41:19,780 --> 00:41:21,020 And I've got the session on my notebook. 1037 00:41:22,480 --> 00:41:24,000 The software is published in FRAC. 1038 00:41:28,040 --> 00:41:29,000 Anybody feel... 1039 00:41:29,000 --> 00:41:30,240 Everybody going to use Telnet again? 1040 00:41:32,940 --> 00:41:34,940 Anybody who used Telnet before and not again? 1041 00:41:37,180 --> 00:41:37,660 Anybody? 1042 00:41:38,260 --> 00:41:40,080 And again, mortgage to house. 1043 00:41:40,360 --> 00:41:41,120 Piety certificate. 1044 00:41:41,240 --> 00:41:42,400 Buy decent network equipment. 1045 00:41:45,620 --> 00:41:46,200 Port scans. 1046 00:41:46,560 --> 00:41:47,380 We're all about them yet. 1047 00:41:49,040 --> 00:41:50,200 I'm going to go over them quickly 1048 00:41:50,200 --> 00:41:52,100 because that's actually what the next talk's about. 1049 00:41:53,280 --> 00:41:54,740 DNS cache poisoning is a fun one. 1050 00:41:54,920 --> 00:41:55,900 Did you notice that DEF CON 1051 00:41:57,160 --> 00:41:59,420 web page was down a few weeks ago? 1052 00:42:00,360 --> 00:42:01,320 DNS cache poisoning. 1053 00:42:02,740 --> 00:42:04,420 So, port scanning is kind of easy. 1054 00:42:05,060 --> 00:42:06,140 I'll kind of skip through this quickly 1055 00:42:06,140 --> 00:42:08,300 because this is actually what the next talk's about. 1056 00:42:09,080 --> 00:42:11,140 Basically, I send a port to connection one. 1057 00:42:11,240 --> 00:42:11,840 I get a reset. 1058 00:42:12,020 --> 00:42:12,600 It's closed. 1059 00:42:13,180 --> 00:42:13,620 Two. 1060 00:42:13,980 --> 00:42:14,420 Reset. 1061 00:42:15,760 --> 00:42:16,460 Port three. 1062 00:42:16,780 --> 00:42:17,220 Reset. 1063 00:42:17,240 --> 00:42:18,000 Skip to seven. 1064 00:42:18,740 --> 00:42:19,180 Open. 1065 00:42:19,660 --> 00:42:20,660 I got ports open. 1066 00:42:20,740 --> 00:42:21,040 Port seven. 1067 00:42:23,540 --> 00:42:24,380 Discard was open. 1068 00:42:24,600 --> 00:42:25,540 Eleven was closed. 1069 00:42:26,000 --> 00:42:26,440 Twenty. 1070 00:42:26,600 --> 00:42:27,380 FTP was open. 1071 00:42:28,240 --> 00:42:29,220 This is basically what happens 1072 00:42:29,220 --> 00:42:30,200 when you're on strobe or NMAP. 1073 00:42:34,360 --> 00:42:36,120 When you're on strobe or NMAP. 1074 00:42:38,920 --> 00:42:39,900 That's the next talk. 1075 00:42:42,800 --> 00:42:44,000 And I'm going to skip through this. 1076 00:42:44,020 --> 00:42:45,960 I don't want to really tread over modify. 1077 00:42:47,620 --> 00:42:49,020 And there's different types of options. 1078 00:42:49,280 --> 00:42:50,160 I'm going to skip through this 1079 00:42:50,160 --> 00:42:51,680 because, again, I don't want to 1080 00:42:51,680 --> 00:42:53,140 take the wind out of somebody's sails. 1081 00:42:56,300 --> 00:42:56,880 See what we're doing? 1082 00:42:56,940 --> 00:42:57,600 We're doing fine on time. 1083 00:42:58,480 --> 00:42:59,900 Basically, by the way, 1084 00:42:59,940 --> 00:43:00,820 you don't want to do resets. 1085 00:43:00,980 --> 00:43:01,920 I'm going to skip through this again. 1086 00:43:02,020 --> 00:43:02,700 I don't want to take the wind out. 1087 00:43:03,680 --> 00:43:04,680 You can spot this stuff. 1088 00:43:04,740 --> 00:43:05,460 Here's a few applications. 1089 00:43:05,820 --> 00:43:06,420 GCP log. 1090 00:43:06,660 --> 00:43:06,960 NetStat. 1091 00:43:07,140 --> 00:43:07,440 Abacus. 1092 00:43:08,180 --> 00:43:09,160 Those are little applications 1093 00:43:09,160 --> 00:43:09,920 you can run on your server. 1094 00:43:11,240 --> 00:43:12,480 Again, I'm skipping these slides. 1095 00:43:12,660 --> 00:43:14,160 It's all next hour. 1096 00:43:15,240 --> 00:43:16,160 Let's do a fun stuff. 1097 00:43:16,300 --> 00:43:17,160 DNS cache poisoning. 1098 00:43:18,560 --> 00:43:20,400 Everybody know about DNS or how it works? 1099 00:43:20,860 --> 00:43:21,660 I'll tell you. 1100 00:43:23,880 --> 00:43:25,320 Okay, here's the .server, 1101 00:43:25,380 --> 00:43:26,040 the .com server, 1102 00:43:26,160 --> 00:43:27,300 and the acme.com server. 1103 00:43:29,240 --> 00:43:29,980 And, of course, 1104 00:43:30,000 --> 00:43:31,180 legitimate client and DNS server. 1105 00:43:31,360 --> 00:43:32,980 Now, this is a normal, healthy situation. 1106 00:43:34,420 --> 00:43:35,440 Your client goes, 1107 00:43:35,540 --> 00:43:36,640 your local DNS server goes, 1108 00:43:36,780 --> 00:43:37,900 hey, where's acme.com? 1109 00:43:39,040 --> 00:43:41,100 We send a packet off to the root, 1110 00:43:41,240 --> 00:43:42,220 the overall internet called dot. 1111 00:43:42,480 --> 00:43:44,260 He goes, hey, who's acme.com? 1112 00:43:44,800 --> 00:43:45,420 I don't know. 1113 00:43:45,460 --> 00:43:46,340 Why don't you ask .com? 1114 00:43:47,720 --> 00:43:48,960 Hey, who's acme.com? 1115 00:43:49,400 --> 00:43:50,060 I don't know. 1116 00:43:50,160 --> 00:43:50,980 Why don't you ask acme? 1117 00:43:53,240 --> 00:43:54,420 Hey, who is this person? 1118 00:43:55,080 --> 00:43:56,360 Oh, the answer is, 1119 00:43:56,400 --> 00:43:58,760 yeah, it gets sent up with the proper IP address. 1120 00:43:59,960 --> 00:44:00,580 Simple, huh? 1121 00:44:01,340 --> 00:44:02,520 Now, it might seem inefficient, 1122 00:44:03,480 --> 00:44:05,040 but actually what happens is 1123 00:44:05,560 --> 00:44:08,160 your DNS server down here caches that information. 1124 00:44:08,420 --> 00:44:09,720 So next time somebody asks, 1125 00:44:09,800 --> 00:44:10,340 is it already in the cache? 1126 00:44:10,340 --> 00:44:12,040 A little bit more efficient that way. 1127 00:44:13,120 --> 00:44:15,300 Also, it causes some minor security problems. 1128 00:44:18,820 --> 00:44:19,600 Vulnerability to the cache, 1129 00:44:19,840 --> 00:44:21,260 you always insert erroneous information, 1130 00:44:21,700 --> 00:44:23,800 like where did that reply actually come from? 1131 00:44:26,820 --> 00:44:27,600 Here we are again. 1132 00:44:30,440 --> 00:44:31,900 As an outside person, 1133 00:44:31,960 --> 00:44:33,040 I go, hey, who's acme.com? 1134 00:44:33,240 --> 00:44:34,680 It goes, where is that? 1135 00:44:35,180 --> 00:44:35,800 I reply. 1136 00:44:37,600 --> 00:44:38,660 It sends me the answer. 1137 00:44:39,240 --> 00:44:40,320 That's obviously the wrong answer. 1138 00:44:40,340 --> 00:44:40,420 It sends me the wrong IP address. 1139 00:44:41,760 --> 00:44:43,320 Gee, could that be the same IP address 1140 00:44:43,320 --> 00:44:47,380 that www.defcon.org had maybe three weeks ago? 1141 00:44:49,460 --> 00:44:50,760 It had nothing to do with that. 1142 00:44:53,040 --> 00:44:54,420 So what happens later on? 1143 00:44:55,520 --> 00:44:56,680 Somebody else asks for it. 1144 00:44:57,380 --> 00:44:58,300 You get that reply. 1145 00:45:00,420 --> 00:45:03,500 Okay, what if we were talking Wells Fargo Bank? 1146 00:45:05,660 --> 00:45:07,980 And that IP address was my home web server? 1147 00:45:10,340 --> 00:45:12,940 What would happen when I ask for your password? 1148 00:45:13,720 --> 00:45:14,880 You type it in. 1149 00:45:16,560 --> 00:45:18,920 And what happens when I ask you about your account number? 1150 00:45:19,080 --> 00:45:19,840 You type it in. 1151 00:45:21,000 --> 00:45:22,020 Then what happens? 1152 00:45:23,400 --> 00:45:24,400 I go to jail. 1153 00:45:24,780 --> 00:45:24,820 Yeah. 1154 00:45:30,180 --> 00:45:32,100 I have to pay for my DEF contract. 1155 00:45:34,980 --> 00:45:39,200 But again, if you update the current versions to 8.something, 1156 00:45:39,200 --> 00:45:41,360 by Paul Vixie, I recommend that. 1157 00:45:42,700 --> 00:45:44,600 For the person who knows what I was talking about, 1158 00:45:44,740 --> 00:45:46,660 yes, I know there's several permutations to this. 1159 00:45:46,880 --> 00:45:49,020 It used to be, we were just having a little mess. 1160 00:45:49,260 --> 00:45:50,280 We just started doing it. 1161 00:45:50,400 --> 00:45:54,820 It used to be that DNS servers would only accept responses. 1162 00:45:56,300 --> 00:45:58,240 Well, actually, it would just accept a response, actually. 1163 00:45:58,360 --> 00:45:59,600 It wouldn't even care if it asked a question. 1164 00:45:59,700 --> 00:46:00,400 It would just accept it. 1165 00:46:00,840 --> 00:46:02,020 Oh, ah, it's fixed that. 1166 00:46:02,100 --> 00:46:05,720 So now it only accepted responses for questions asked. 1167 00:46:07,920 --> 00:46:09,180 Well, eventually, you realize, well, I don't know. 1168 00:46:09,180 --> 00:46:10,240 We'll just ask the question first. 1169 00:46:10,460 --> 00:46:14,600 So the DNS server goes, fine, we'll start sequencing our requests 1170 00:46:14,600 --> 00:46:17,180 and making sure the answer is the same sequence. 1171 00:46:18,080 --> 00:46:19,080 That didn't work. 1172 00:46:19,360 --> 00:46:21,160 The sequences were, A, very predictable. 1173 00:46:21,520 --> 00:46:26,720 B, you're able to send all the possible sequences within a minute anyway. 1174 00:46:27,120 --> 00:46:32,820 So, I mean, you know, the sequences are, how long does it take to send, like, 65,000 packets? 1175 00:46:34,220 --> 00:46:34,880 Not long. 1176 00:46:35,660 --> 00:46:36,780 And so they took care of that. 1177 00:46:36,820 --> 00:46:38,560 So now they're thinking about how to randomize the sequence. 1178 00:46:38,640 --> 00:46:39,100 But it turns out. 1179 00:46:39,100 --> 00:46:41,540 The sequence randomization is not that random. 1180 00:46:42,240 --> 00:46:44,200 Yeah, so it's a little thing going here. 1181 00:46:44,340 --> 00:46:45,240 But run the latest version. 1182 00:46:45,400 --> 00:46:45,980 It's a lot better. 1183 00:46:46,240 --> 00:46:48,040 And next version, we're actually going to have encryption. 1184 00:46:48,980 --> 00:46:49,800 That'll help a lot. 1185 00:46:51,380 --> 00:46:51,780 Yes? 1186 00:46:56,440 --> 00:46:57,840 Yes and no. 1187 00:47:00,700 --> 00:47:02,860 In this case, we assume you're actually going to ask it. 1188 00:47:02,920 --> 00:47:03,680 Yes, it will ask it. 1189 00:47:03,700 --> 00:47:09,080 But a lot of times, you'll send a packet out asking for, what's the current version of IPv6? 1190 00:47:09,100 --> 00:47:09,280 What's the IP address? 1191 00:47:09,420 --> 00:47:11,560 It's called the SOA record, which is a serial number. 1192 00:47:12,360 --> 00:47:15,000 And if I reply with a higher serial number, I can override it. 1193 00:47:15,840 --> 00:47:20,400 So when I say that little fake packet, it's going to have a serial number of 9,999,000, 1194 00:47:20,620 --> 00:47:24,800 just to, you know, some astronomical number, and with the expiration date, we'll never time out. 1195 00:47:25,060 --> 00:47:26,180 So that's going to be in your cache. 1196 00:47:26,200 --> 00:47:27,080 They'll power it on your server. 1197 00:47:28,380 --> 00:47:31,780 And eventually, yes, if it's already in your cache, I might not get it in. 1198 00:47:31,940 --> 00:47:35,020 But then, all I got to do is ask for another record that's not in your cache, 1199 00:47:35,100 --> 00:47:35,920 and I can probably slip it in. 1200 00:47:36,140 --> 00:47:38,980 One of the other exploits, of course, was piggybacking. 1201 00:47:39,100 --> 00:47:46,720 You know, so I run DISORG, that's my home domain, and I would, for example, get you to do a DISORG lookup, 1202 00:47:46,800 --> 00:47:50,460 and then my DISORG reply would piggyback a Wells Fargo reply. 1203 00:47:50,940 --> 00:47:52,740 That's another way of slipping past the gates. 1204 00:47:53,480 --> 00:47:57,680 And again, I can quite literally go on for an hour of just permutations of this one. 1205 00:47:58,220 --> 00:48:01,560 So, you know, in closing for this particular topic, we'll just say upgrade. 1206 00:48:03,060 --> 00:48:05,740 Even if you just installed Solera 7, upgrade. 1207 00:48:06,000 --> 00:48:08,020 Whenever you buy a commercial product, 1208 00:48:08,020 --> 00:48:09,520 download, install. 1209 00:48:11,780 --> 00:48:12,720 Same thing with SendMail. 1210 00:48:15,480 --> 00:48:20,140 So effectively, upgrade, fix padding, you know, modern version tracks, queries, et cetera. 1211 00:48:20,940 --> 00:48:22,420 BTP, anybody know what that is? 1212 00:48:23,700 --> 00:48:24,100 Yes. 1213 00:48:24,800 --> 00:48:25,980 This is a fun one. 1214 00:48:26,560 --> 00:48:29,840 We all heard about, what was it, killing the internet in 20 minutes? 1215 00:48:30,680 --> 00:48:31,540 Want to know how to do it? 1216 00:48:33,060 --> 00:48:36,080 Actually, DISORG has released some automated scripts for this one. 1217 00:48:36,540 --> 00:48:37,660 Okay, here's a little network. 1218 00:48:37,740 --> 00:48:38,000 We have a network. 1219 00:48:38,020 --> 00:48:38,540 We have an internal router. 1220 00:48:38,640 --> 00:48:39,180 We have a couple of peers. 1221 00:48:40,260 --> 00:48:43,080 Obviously, these people have got money since they have multiple connections to the internet. 1222 00:48:45,060 --> 00:48:49,640 Internal router establishes a BGP connection to the peer routers, or blue routers. 1223 00:48:50,120 --> 00:48:51,180 I'm on the outside world. 1224 00:48:52,460 --> 00:48:56,000 Me being a nasty sob forges reset and fin packets. 1225 00:48:56,440 --> 00:48:59,520 Mind you, the TCP connections, I don't know what the sequence is. 1226 00:49:00,320 --> 00:49:02,560 But there's only 65,000 of them. 1227 00:49:02,660 --> 00:49:03,720 How long is it going to take me? 1228 00:49:06,420 --> 00:49:08,000 Now, eventually, that network picks up. 1229 00:49:08,000 --> 00:49:08,280 It goes out. 1230 00:49:10,860 --> 00:49:22,820 When internal router and router A discover or drop a TCP connection, internal and A assume the other guy crashed, automatically rebalance their internal balance tree of routes. 1231 00:49:23,340 --> 00:49:31,360 And if you're anywhere near a large hub or large center of the universe, that can take a long time and a lot of memory. 1232 00:49:32,160 --> 00:49:36,920 And after it balances this, it reestablishes the connection, and then rebalances the tree. 1233 00:49:36,920 --> 00:49:39,020 After the tree is balanced, then your connectivity. 1234 00:49:39,600 --> 00:49:41,320 So your network can be down for up to 20 minutes. 1235 00:49:42,600 --> 00:49:44,800 This is an extreme case, but it takes a while. 1236 00:49:45,580 --> 00:49:47,860 So if a peer loses a BGP connection, you're screwed. 1237 00:49:48,880 --> 00:49:50,840 You no longer have connectivity if you have one peer. 1238 00:49:54,340 --> 00:49:55,240 Here's a blind attack. 1239 00:49:56,380 --> 00:49:58,660 I have a 1 in 65,000 chance. 1240 00:49:59,440 --> 00:50:00,140 Not a problem. 1241 00:50:00,660 --> 00:50:02,240 Better than the lottery, better than the slot machine. 1242 00:50:03,780 --> 00:50:04,220 Let's see. 1243 00:50:04,220 --> 00:50:09,320 The attacker may be able to keep the connection down infinitely by continuously resetting resets to zero. 1244 00:50:09,420 --> 00:50:10,880 Again, what's the first sequence number? 1245 00:50:11,100 --> 00:50:11,540 Zero. 1246 00:50:11,780 --> 00:50:14,420 Until we establish a sequence, it's assumed to be zero. 1247 00:50:15,080 --> 00:50:20,080 So when you send out the SYN, the reset is sequence zero, since we haven't really established a full sequence. 1248 00:50:22,260 --> 00:50:23,900 The attacker may keep things down. 1249 00:50:24,000 --> 00:50:28,440 And eventually, when the routing table is large enough, it can take a significant time to come back up. 1250 00:50:28,560 --> 00:50:31,820 So your network is up, what, three minutes every ten minutes? 1251 00:50:32,540 --> 00:50:33,280 Or worse? 1252 00:50:35,140 --> 00:50:36,300 Your site's out of luck. 1253 00:50:39,060 --> 00:50:41,180 You can really embargo a corporation this way. 1254 00:50:42,640 --> 00:50:47,420 And the network admins will go nuts because the routers are up, the routers are pinging each other. 1255 00:50:47,620 --> 00:50:50,920 Your Cisco discovery protocol says, yep, I see a router right next to me. 1256 00:50:50,960 --> 00:50:58,400 And you get the connection, it goes right back down, and they'll have to pull their hair out all day to hook up a proper network monitor. 1257 00:51:01,200 --> 00:51:03,860 And again, this attack is best fixed by filters. 1258 00:51:03,860 --> 00:51:11,200 Unfortunately, if I get to pick on Cisco some more, actually most networks, you lose about 40% of your bandwidth when you turn on IP filtering. 1259 00:51:13,520 --> 00:51:22,620 So since people only buy a big enough router that they need, nothing more, they discover they've turned on IP filtering, the router isn't big enough, but they just pay, they spend how much money? 1260 00:51:22,960 --> 00:51:23,900 So there's a problem. 1261 00:51:24,020 --> 00:51:24,260 Question? 1262 00:51:24,700 --> 00:51:24,980 Yeah. 1263 00:51:25,060 --> 00:51:26,760 How flexible can that be? 1264 00:51:29,280 --> 00:51:32,940 Well, since I'm probably spoofing, it's going to take a while. 1265 00:51:32,940 --> 00:51:34,700 You probably have to manually do it. 1266 00:51:35,620 --> 00:51:39,760 You really just can't say where this packet came from because the source address has the wrong stamp on it. 1267 00:51:39,960 --> 00:51:51,480 You probably have to call up each person in your chain of connections, hopefully not 255 hops, usually about 30, and get them to run a monitor and tell you where the packet's coming from. 1268 00:51:52,840 --> 00:51:55,200 How often do they get qualified to do that? 1269 00:51:55,360 --> 00:51:56,560 I don't know, I don't work there. 1270 00:51:57,720 --> 00:51:59,820 How often do they get qualified to do that? 1271 00:52:00,860 --> 00:52:01,700 It really depends. 1272 00:52:01,700 --> 00:52:02,920 I don't want a subpoena first. 1273 00:52:03,980 --> 00:52:06,720 It's all privacy versus workability issue. 1274 00:52:07,120 --> 00:52:09,260 It falls under Jennifer's, I guess, column. 1275 00:52:09,700 --> 00:52:10,880 But this is a fun one. 1276 00:52:10,960 --> 00:52:12,960 This one is really just way too much fun. 1277 00:52:13,240 --> 00:52:15,180 We have IP filters, so bam. 1278 00:52:17,940 --> 00:52:20,800 Again, the internet's getting overloaded. 1279 00:52:21,360 --> 00:52:25,000 The centralized hubs just don't have enough bandwidth to support filtering. 1280 00:52:26,120 --> 00:52:31,580 Most companies, the best thing you can do is if you run a company, you run an ISP, filter you up. 1281 00:52:31,580 --> 00:52:36,840 There's no reason a packet should leave your network if it's not from your network. 1282 00:52:38,160 --> 00:52:44,360 That being, have an outbound filter means that all packets leaving your net have a source address of your network.