1 00:00:00,000 --> 00:00:04,580 So while we're still filtering in, the first slide you're seeing is just some silly stuff, 2 00:00:04,800 --> 00:00:06,800 but a little bit about the presenters. 3 00:00:07,200 --> 00:00:08,400 None of you probably know me. 4 00:00:08,520 --> 00:00:12,840 The last talk I gave at Nanog, or rather, DEF CON, was 11. 5 00:00:13,040 --> 00:00:18,380 We were still at the AP, and it was hot, and we were on the roof, and it was bad. 6 00:00:18,620 --> 00:00:19,440 And you almost died. 7 00:00:19,620 --> 00:00:20,140 I almost died. 8 00:00:20,380 --> 00:00:20,660 Oh, right. 9 00:00:20,720 --> 00:00:21,400 I really almost died. 10 00:00:21,540 --> 00:00:24,160 I wore yellow pants, even, just to be funny, and then no one got it. 11 00:00:24,380 --> 00:00:24,740 Yeah. 12 00:00:25,000 --> 00:00:26,100 I still don't get it. 13 00:00:26,180 --> 00:00:26,580 Exactly. 14 00:00:26,580 --> 00:00:31,500 And so I do inter-networking stuff. 15 00:00:31,740 --> 00:00:36,280 I like to know how routers work, think a lot about the inside guts, what's going on in code, 16 00:00:36,540 --> 00:00:38,140 what's going on in the logic they use. 17 00:00:39,020 --> 00:00:41,680 I run a co-location company in Wisconsin. 18 00:00:42,180 --> 00:00:44,420 My email address should let you find that. 19 00:00:44,800 --> 00:00:51,200 And we do a lot with anything that touches bits, facilities, power, networks, hardware. 20 00:00:51,760 --> 00:00:53,520 And Alex, I think, is much the same. 21 00:00:54,120 --> 00:00:54,640 Yep. 22 00:01:01,420 --> 00:01:02,760 So, are we good? 23 00:01:02,920 --> 00:01:03,880 Are we still coming in? 24 00:01:04,100 --> 00:01:04,860 We're still coming in. 25 00:01:05,000 --> 00:01:11,480 So, while we're still coming in here, I want to say something, and this comes from all the speaker staff and most of the goon staff. 26 00:01:11,920 --> 00:01:14,760 We actually like you, and we like you coming. 27 00:01:14,920 --> 00:01:19,260 So, thank you for coming, because I can't DEF CON if you don't come. 28 00:01:19,820 --> 00:01:20,880 So, thank you for coming. 29 00:01:20,920 --> 00:01:26,560 Thank you for bringing up with the bad food, the smells, both from yourself and others. 30 00:01:27,480 --> 00:01:33,640 Thank you for, you know, putting up with all the stuff that isn't so hot, for all the stuff that really is awesome. 31 00:01:34,200 --> 00:01:34,860 Thank you. 32 00:01:35,400 --> 00:01:36,260 It makes it. 33 00:01:40,460 --> 00:01:43,540 Sir, you have the con. 34 00:01:43,740 --> 00:01:44,580 I have the con. 35 00:01:44,860 --> 00:01:45,060 Enjoy. 36 00:01:45,200 --> 00:01:45,720 Thank you. 37 00:01:46,000 --> 00:01:47,500 This is going to fucking rock. 38 00:01:47,900 --> 00:01:48,380 Yeah! 39 00:01:49,140 --> 00:01:49,620 Yeah! 40 00:01:51,760 --> 00:01:52,240 Okay. 41 00:01:56,580 --> 00:02:01,600 So, we're here to talk about stealing the internet, as if you didn't know already. 42 00:02:01,880 --> 00:02:03,160 So, why does this stuff matter? 43 00:02:03,260 --> 00:02:03,880 Why is it relevant? 44 00:02:04,020 --> 00:02:13,360 I'm imagining that most of you can see quickly why it does, but we're going to go through a few points, just in case you're one of the media or someone watching who doesn't know this stuff intuitively or what. 45 00:02:13,840 --> 00:02:17,460 So, if someone can passively intercept your traffic, that's a big reason to care. 46 00:02:18,880 --> 00:02:26,280 We could also then, by knowing what's coming into your network, know what to possibly want to look at that you're sending things or receiving things from. 47 00:02:26,580 --> 00:02:34,120 So, if we seize packets from address X heading to Y, Y is you, we can also hijack X to see what you're sending to X. 48 00:02:34,280 --> 00:02:38,760 So, we can discover the other half of the communication and further this whole process. 49 00:02:40,200 --> 00:02:47,760 We also think this is a relative relevant thing for you, because once the data comes to our network, we can do anything. 50 00:02:48,000 --> 00:02:48,960 I mean, really anything. 51 00:02:49,120 --> 00:02:49,740 The sky's the limit. 52 00:02:50,040 --> 00:02:55,440 And then, the worst part about it, I guess, and one of the more concerning parts, is that as an end user with an end system, 53 00:02:55,520 --> 00:02:56,560 without access... 54 00:02:56,580 --> 00:03:02,480 or touching the core, you really can't, I use the word core wrongly, you really can't affect it, though, as an end user. 55 00:03:02,780 --> 00:03:07,400 If you see this stuff happening, if you can figure it out it's happening, as an end user, you really can't fix it. 56 00:03:09,480 --> 00:03:14,440 And if we do everything right, if the hijacker does everything right, you can't even really tell. 57 00:03:15,640 --> 00:03:18,180 And who can, who's using the DEF CON network today? 58 00:03:19,340 --> 00:03:21,600 Okay, since 12 o'clock, we've hijacked it. 59 00:03:21,780 --> 00:03:25,400 And we have a copy of everything you've done or received in New York. 60 00:03:26,580 --> 00:03:31,360 What we'll cover today is how that worked, and we'll explain how it worked through a little bit of understanding of BGP. 61 00:03:31,660 --> 00:03:36,560 Just to give me a consensus, I really don't want to go into all the details that we've had put into this presentation if I don't need to. 62 00:03:36,620 --> 00:03:40,960 Raise your hand if you've configured BGP, set it up with a neighbor, done some routing. 63 00:03:41,100 --> 00:03:45,640 Okay, it's minorities, so we're going to talk a little bit about the basic stuff, so you can appreciate some of the terms. 64 00:03:45,900 --> 00:03:49,140 It's not to bore you with BGP factoids and crap you'll never use. 65 00:03:49,280 --> 00:03:51,860 So, know the vernacular, know the terminology. 66 00:03:53,380 --> 00:03:56,400 We're going to also discuss some actual hijackings that are... 67 00:03:56,580 --> 00:04:02,380 interesting and have been well, well, uh, publicized, and you can find a lot more about, even more than what we'll mention today. 68 00:04:03,100 --> 00:04:05,100 Uh, then we'll get into the main monkey business. 69 00:04:05,760 --> 00:04:08,780 And we're going to talk about how our method is different from just hijacking. 70 00:04:08,940 --> 00:04:12,640 We're going to talk about how we construct the man-in-the-middle attack on the internet. 71 00:04:14,020 --> 00:04:15,500 And we'll show you some pretty pictures. 72 00:04:16,160 --> 00:04:18,280 We will then show you stuff in flight. 73 00:04:18,700 --> 00:04:19,060 Cool? 74 00:04:19,900 --> 00:04:20,260 Yeah? 75 00:04:21,340 --> 00:04:23,260 All right, so how does the internets work? 76 00:04:24,160 --> 00:04:25,120 There is no core. 77 00:04:25,280 --> 00:04:26,220 That's the first misconception. 78 00:04:26,580 --> 00:04:27,160 People say the core. 79 00:04:27,300 --> 00:04:29,520 When they say the core, they refer to a collection of networks. 80 00:04:29,700 --> 00:04:35,940 They refer to, like, uh, some number of them that say 15 or 20 that are considered what is called transit-free. 81 00:04:36,320 --> 00:04:37,640 Settlement-free networks, if you will. 82 00:04:37,720 --> 00:04:40,540 Where they do not pay to reach any other network. 83 00:04:40,700 --> 00:04:42,640 Either everyone's a customer or a peer. 84 00:04:42,980 --> 00:04:46,800 So they don't pay anything to get to Sprint if they're on U-Net and vice versa. 85 00:04:47,740 --> 00:04:53,920 Uh, the core, if you will, is made up of these largest of the large networks. 86 00:04:54,160 --> 00:04:56,120 They have thousands of edges, thousands of customers. 87 00:04:56,120 --> 00:05:00,680 And, uh, the interconnection between them becomes what we consider the core. 88 00:05:02,120 --> 00:05:07,580 Individual networks in BGP world, in the internet world, are identified by an autonomous system number. 89 00:05:07,840 --> 00:05:11,560 And this ASN is kind of just like a tag to say to another network, 90 00:05:11,740 --> 00:05:15,600 Hey, other network, I can reach IP address prefix X. 91 00:05:15,760 --> 00:05:17,080 I can reach block X. 92 00:05:17,260 --> 00:05:25,380 The IP, uh, information that you can, uh, convey to me is just tagged against or, if you will, indexed against that identifier. 93 00:05:25,380 --> 00:05:26,160 That ASN. 94 00:05:27,020 --> 00:05:29,920 Uh, it contains, again, the prefix we were talking about, the path. 95 00:05:30,140 --> 00:05:30,800 We get it. 96 00:05:30,960 --> 00:05:36,900 So we have this thing that's, uh, if you will, constructed as routes propagate through the net called the ASPath. 97 00:05:37,120 --> 00:05:38,000 That's part of an announcement. 98 00:05:38,640 --> 00:05:44,060 And this ASPath is simply a list of the networks the route has been learnt across. 99 00:05:44,720 --> 00:05:47,940 So if you are an end user looking at a route coming from Verizon, 100 00:05:48,640 --> 00:05:52,880 you might see your provider's upstream AS number of something with five digits 101 00:05:52,880 --> 00:05:55,360 because they're a newcomer and they're not that experienced. 102 00:05:55,380 --> 00:05:56,760 40,000 whatever. 103 00:05:57,060 --> 00:06:01,300 The next AS might be, you know, 6461 then 701 104 00:06:01,300 --> 00:06:02,800 because the customer comes from UNET. 105 00:06:02,920 --> 00:06:03,960 Okay? Example. 106 00:06:03,980 --> 00:06:05,680 The ASPath is a cumulative thing. 107 00:06:07,220 --> 00:06:09,500 And, uh, the reason that the ASPath is interesting, 108 00:06:09,720 --> 00:06:16,780 one final point before I go on, is that, um, it's what used in BGP to avoid having routing loops form. 109 00:06:17,020 --> 00:06:20,660 And our, uh, interesting method actually uses that to our advantage. 110 00:06:22,100 --> 00:06:25,240 So one of the important tenets to understand as well, uh, 111 00:06:25,380 --> 00:06:28,080 and I think we're all going to catch it, is that the longest prefix wins. 112 00:06:28,300 --> 00:06:32,280 The longest prefix is the most specific way to reach a certain collection of IP addresses. 113 00:06:32,880 --> 00:06:36,680 If you have a slash 16, that is less specific than a slash 18. 114 00:06:37,100 --> 00:06:40,740 If you have a slash 24, that is a lot less specific than a slash 30. 115 00:06:40,980 --> 00:06:47,300 And the slash denotes just the number of bits masked off in the network portion versus the host portion, if you will. 116 00:06:47,760 --> 00:06:51,820 So if a slash 24 was cut in half, a 25 would be the bottom half and top half. 117 00:06:52,060 --> 00:06:52,300 Okay? 118 00:06:52,640 --> 00:06:53,040 Uh. 119 00:06:53,040 --> 00:06:55,980 The 24 is less specific than the 225s. 120 00:06:57,060 --> 00:06:57,980 So, remember that. 121 00:06:59,640 --> 00:07:01,320 Now, this is a scribble I found for you. 122 00:07:02,900 --> 00:07:04,660 This is the internets on a whiteboard. 123 00:07:04,840 --> 00:07:08,720 And it happened to photograph well, and the guy at jungar.net put it up. 124 00:07:08,840 --> 00:07:09,600 So, thank you. 125 00:07:09,680 --> 00:07:10,740 You can look at this offline. 126 00:07:10,880 --> 00:07:11,500 This stuff is posted. 127 00:07:11,660 --> 00:07:13,060 We're not going to talk about all the elements here. 128 00:07:13,180 --> 00:07:17,000 But if you follow it through, it's showing an IBGP mesh in the bottom left, 129 00:07:17,140 --> 00:07:20,320 their provider giving a default route to AS100, 200, and 300, 130 00:07:20,420 --> 00:07:22,960 and they're renouncing their own prefixes back up to that parameter. 131 00:07:23,040 --> 00:07:23,240 So, we're going to go down to AS. 132 00:07:24,040 --> 00:07:24,460 Great. 133 00:07:26,260 --> 00:07:30,260 So, in BGP world, in network world, we have relationships between networks. 134 00:07:30,660 --> 00:07:32,560 And we're going to talk a bit about those here. 135 00:07:32,860 --> 00:07:35,900 The first relationship, which is kind of the crux of why this works, 136 00:07:36,040 --> 00:07:39,400 why can we get our route around different networks, is because they peer. 137 00:07:39,620 --> 00:07:41,100 They exchange that reachability information. 138 00:07:41,940 --> 00:07:48,120 Verizon needs to tell Sprint that, hey, I have a customer slash 24 or a customer slash 20. 139 00:07:48,400 --> 00:07:49,140 Here it is. 140 00:07:49,300 --> 00:07:52,100 Here is the IP next hop that you'll use to reach it. 141 00:07:52,100 --> 00:07:53,600 Install that to your routing table. 142 00:07:53,700 --> 00:07:54,460 Thanks, please. 143 00:07:54,760 --> 00:07:55,660 And it does so. 144 00:07:56,280 --> 00:07:58,640 And peers typically, at the level we're talking, 145 00:07:58,860 --> 00:08:02,040 the reason it works out is because if they had to pay each other, 146 00:08:02,080 --> 00:08:05,220 they would not want to deal with the volume of money required, 147 00:08:05,440 --> 00:08:06,640 and it would be senseless billing. 148 00:08:07,120 --> 00:08:10,600 So, in most of the core, most of the largest settlement free asses, 149 00:08:10,640 --> 00:08:13,000 the peering is always maintained close to one-to-one. 150 00:08:13,080 --> 00:08:16,000 They try to balance traffic out among multiple locations. 151 00:08:18,120 --> 00:08:21,760 And essentially, this is what forms the collective of reachability. 152 00:08:23,580 --> 00:08:26,420 The other relationship that's prevalent, which we're going to talk about 153 00:08:26,420 --> 00:08:28,980 from the perspective of how we get our routes into the network, 154 00:08:29,140 --> 00:08:30,380 is the customer aspect. 155 00:08:30,660 --> 00:08:34,340 If you're a customer relationship, you pay someone simply to take your announcement 156 00:08:34,340 --> 00:08:35,400 and give it to everybody else, 157 00:08:35,560 --> 00:08:38,800 and then also give you access on some amount of bandwidth, 158 00:08:38,920 --> 00:08:39,660 some amount of connectivity. 159 00:08:42,500 --> 00:08:46,360 Now, importantly, on the actual amount of information you're exchanging, 160 00:08:46,380 --> 00:08:50,140 the actual prefix, when we announce a route, 161 00:08:50,300 --> 00:08:51,740 we expect that it's going to get to the customer. 162 00:08:51,760 --> 00:08:54,280 We hand it off from our upstream provider to all other providers, 163 00:08:54,420 --> 00:08:57,540 and they won't step on it, they won't filter it, they won't reject it. 164 00:08:57,780 --> 00:09:01,740 And by expecting that, we engage the interesting trust model. 165 00:09:02,160 --> 00:09:06,280 And that means that once it gets towards these central networks, 166 00:09:06,360 --> 00:09:09,140 the largest, say, 10 or 20, that peer with everybody else, 167 00:09:09,380 --> 00:09:12,520 that if you get to one, you essentially get to all of them. 168 00:09:13,800 --> 00:09:18,760 This means that there is an interrelated chain of trust, 169 00:09:18,860 --> 00:09:21,420 but it doesn't necessarily mean anything about the address they've been given. 170 00:09:21,760 --> 00:09:24,880 There's no way for them to know that that's my IP address, necessarily, 171 00:09:25,100 --> 00:09:26,480 more than I can prove on paper. 172 00:09:26,940 --> 00:09:28,380 You can look at who is and say, 173 00:09:28,480 --> 00:09:32,540 okay, well, Tony from this e-mail address is asking to route a block registered to a different company. 174 00:09:32,800 --> 00:09:34,460 That's asking for a letter of authorization. 175 00:09:34,920 --> 00:09:36,020 And I could fake that, too. 176 00:09:36,480 --> 00:09:37,520 This is just how it is. 177 00:09:37,680 --> 00:09:41,820 And IP addresses have that as a fundamental property in the Internet routing world. 178 00:09:42,540 --> 00:09:48,500 How it works out is ICANN initially assigns slash-8s blocks to regional Internet registries. 179 00:09:48,880 --> 00:09:51,220 Aaron, Ray Bafranek, J.P. Nick, 180 00:09:51,220 --> 00:09:55,660 Lack Nick, whatever, assign them to their regions of customer handling, if you will. 181 00:09:55,940 --> 00:09:57,160 In this country, it's Aaron. 182 00:09:58,500 --> 00:10:02,360 And then RIR is assigned to ISPs or LIRs, like in ripe regions. 183 00:10:03,200 --> 00:10:07,540 So ISPs get their IP address assignments from Aaron in the United States. 184 00:10:07,680 --> 00:10:10,620 Aaron gets their blocks from ICANN. 185 00:10:12,420 --> 00:10:15,180 And interestingly, when you get an IP address range from Aaron, 186 00:10:15,220 --> 00:10:18,560 there is no direct association between that IP range and your ASN. 187 00:10:18,920 --> 00:10:20,920 Now, in some cases, like in our company's case, 188 00:10:21,220 --> 00:10:25,260 we happen to have an ASN that's got all of our contact information on it 189 00:10:25,260 --> 00:10:27,460 and registered to us and our IP blocks. 190 00:10:27,960 --> 00:10:31,180 In some cases, we take on customers who have their own IPs 191 00:10:31,180 --> 00:10:34,260 registered to their own companies, but they have no AS number. 192 00:10:34,460 --> 00:10:35,740 They have no network identifier. 193 00:10:36,180 --> 00:10:38,240 So we go ahead and announce that space for them. 194 00:10:38,440 --> 00:10:43,880 And no one says no because we just tell our upstreams, basically on a handshake, 195 00:10:44,640 --> 00:10:47,320 this is okay, and they have to really take it, 196 00:10:47,360 --> 00:10:50,280 or we don't get to send traffic to them. 197 00:10:50,280 --> 00:10:51,540 They can't bill us for the traffic. 198 00:10:51,640 --> 00:10:52,900 And no business is conducted. 199 00:10:54,500 --> 00:10:55,280 Do you want to say something? 200 00:10:55,520 --> 00:10:55,940 Okay. 201 00:10:56,220 --> 00:10:59,840 So because of these states, because of the way these things are, 202 00:11:00,300 --> 00:11:03,880 it creates interesting problems for the operational aspects of the network. 203 00:11:05,300 --> 00:11:08,260 And one of the ways to stop the problem that we're going to talk about 204 00:11:08,260 --> 00:11:10,320 is through filtering what you send to a provider 205 00:11:10,320 --> 00:11:13,600 and what they send to the customer and what providers send to providers. 206 00:11:14,220 --> 00:11:15,400 From a customer point of view, 207 00:11:16,000 --> 00:11:19,400 the problem we can see is that often your upstream provider 208 00:11:19,400 --> 00:11:22,180 doesn't do much at all, doesn't hardly filter anything. 209 00:11:22,540 --> 00:11:25,520 They might set a certain number of maximum prefixes. 210 00:11:25,600 --> 00:11:27,400 They might say you can only send us 300. 211 00:11:27,720 --> 00:11:30,100 They don't want you to leak them a full table, is what they're saying. 212 00:11:30,340 --> 00:11:32,840 They don't want you to give them 200,000 routes 213 00:11:32,840 --> 00:11:36,100 and flood them with a copy of the internet from your perspective. 214 00:11:37,340 --> 00:11:39,820 And sometimes they'll filter on the AS path. 215 00:11:40,140 --> 00:11:43,920 So they'll say we'll only take routes that claim to come from your AS number 216 00:11:43,920 --> 00:11:45,540 and not something beyond that, 217 00:11:45,680 --> 00:11:48,200 or not a set of hosts that we don't know beyond that. 218 00:11:48,340 --> 00:11:48,940 So this is normal. 219 00:11:49,400 --> 00:11:51,480 In smaller carriers, in smaller locations, 220 00:11:52,300 --> 00:11:54,860 they can often get away with a higher touch feature 221 00:11:54,860 --> 00:11:57,660 like individually allowing each IP address, static prefix lists. 222 00:11:58,440 --> 00:12:00,780 But generally as providers get larger, 223 00:12:00,940 --> 00:12:02,180 you don't see these types of things. 224 00:12:03,700 --> 00:12:05,200 Sometimes they'll even check you out 225 00:12:05,200 --> 00:12:07,380 if they have a person dedicated to doing it. 226 00:12:07,820 --> 00:12:09,760 And in larger carriers between them, 227 00:12:09,860 --> 00:12:14,120 they will typically have internet routing databases 228 00:12:14,120 --> 00:12:17,900 where you can build prefix lists, build filter lists between networks. 229 00:12:17,900 --> 00:12:20,940 And these kind of solve a lot of the problems, 230 00:12:21,060 --> 00:12:23,000 but don't address the ones we're going to pick at today. 231 00:12:24,420 --> 00:12:25,660 So when you peer with someone, 232 00:12:26,100 --> 00:12:27,600 this is even worse than a customer. 233 00:12:27,880 --> 00:12:30,200 Customers have some filtering, some sanity checks. 234 00:12:30,560 --> 00:12:32,000 But when you peer with another network, 235 00:12:32,120 --> 00:12:34,660 if you and that peers up with Telia, 236 00:12:35,340 --> 00:12:37,140 there's so many customers on both networks 237 00:12:37,140 --> 00:12:39,940 and a definite company and business interest 238 00:12:39,940 --> 00:12:41,580 in not exchanging all that detail. 239 00:12:41,840 --> 00:12:43,300 You don't want to know who's using who. 240 00:12:43,480 --> 00:12:45,320 They don't want to give that business information up. 241 00:12:45,960 --> 00:12:46,840 There's no interest then 242 00:12:46,840 --> 00:12:49,040 in building comprehensive, detailed filters 243 00:12:49,040 --> 00:12:51,300 to say, okay, you and that only have any routes 244 00:12:51,300 --> 00:12:53,080 that we know you have customers for 245 00:12:53,680 --> 00:12:56,280 and restrict the stuff that Pilo and TCAP 246 00:12:56,280 --> 00:12:57,180 are telling you that's wrong. 247 00:12:58,020 --> 00:12:58,940 They don't do that. 248 00:12:59,080 --> 00:12:59,940 It's really not tenable. 249 00:13:01,200 --> 00:13:02,700 So we have an avenue. 250 00:13:04,940 --> 00:13:07,700 Now, even better, if a provider happens to use 251 00:13:07,700 --> 00:13:09,280 a certain range of IP addresses internally, 252 00:13:09,680 --> 00:13:14,360 say they have 146.20 slash 16 253 00:13:14,360 --> 00:13:15,600 assigned to a bunch of web servers. 254 00:13:16,840 --> 00:13:18,600 Some providers will not be smart enough even 255 00:13:18,600 --> 00:13:21,360 to filter from other customers and other upstreams 256 00:13:21,360 --> 00:13:22,400 their own IP addresses. 257 00:13:23,540 --> 00:13:24,720 So imagine this. 258 00:13:24,760 --> 00:13:26,340 Imagine someone's got a 16 on the net 259 00:13:26,340 --> 00:13:27,960 and you go and announce a slash 20 260 00:13:27,960 --> 00:13:29,620 of IPs that they're using internally. 261 00:13:31,060 --> 00:13:33,480 So they would often accept this 262 00:13:33,480 --> 00:13:35,900 and pass out their own legitimate traffic out to you 263 00:13:35,900 --> 00:13:37,140 in lieu of their own internal machines 264 00:13:38,100 --> 00:13:40,700 just because they don't filter their own IP address on input. 265 00:13:40,880 --> 00:13:41,280 It's great. 266 00:13:42,580 --> 00:13:44,600 So the routing registries are my proposal 267 00:13:44,600 --> 00:13:45,760 that no one seems to like, 268 00:13:45,760 --> 00:13:46,820 and I don't blame them. 269 00:13:46,880 --> 00:13:47,620 That was a horrible book. 270 00:13:48,020 --> 00:13:50,880 So the way that registries work today 271 00:13:50,880 --> 00:13:53,480 is that people go and pop their entries into these databases. 272 00:13:53,860 --> 00:13:54,600 You go and say, 273 00:13:54,780 --> 00:13:57,780 hey, this company name, this AS, claims to have this stuff. 274 00:13:58,540 --> 00:14:01,240 And once you do that, it flies around the world. 275 00:14:01,320 --> 00:14:03,060 IRR servers mirror other servers. 276 00:14:03,160 --> 00:14:05,700 It's kind of a community of folks that do this. 277 00:14:06,820 --> 00:14:09,080 And filtering on this mechanism 278 00:14:09,080 --> 00:14:10,640 will help stop the macro problems. 279 00:14:10,880 --> 00:14:13,760 It'll stop Unet from leaking routes from Sprint 280 00:14:13,760 --> 00:14:14,460 when they shouldn't. 281 00:14:14,460 --> 00:14:16,860 Because it's clear who's got what general blocks, 282 00:14:17,080 --> 00:14:19,160 who's got what kind of interconnections happening. 283 00:14:19,260 --> 00:14:21,200 You should never see X behind X 284 00:14:21,200 --> 00:14:22,880 because you peer with them directly, for instance. 285 00:14:24,700 --> 00:14:26,820 But it doesn't get that far. 286 00:14:27,880 --> 00:14:30,240 So sometimes when you want to do this at a scale, 287 00:14:30,320 --> 00:14:31,520 you have certain problems. 288 00:14:32,220 --> 00:14:34,140 If you are a sufficiently large network, 289 00:14:34,300 --> 00:14:36,060 you're going to have tens of thousands of customer routes 290 00:14:36,060 --> 00:14:37,660 and perhaps hundreds. 291 00:14:38,340 --> 00:14:41,220 And if you wanted to have everybody else build filters 292 00:14:41,220 --> 00:14:43,680 to only accept what you tell them is actually a customer, 293 00:14:43,680 --> 00:14:46,440 they would have to put that and take that load on 294 00:14:46,440 --> 00:14:48,600 in every router in the network that touches your network. 295 00:14:48,780 --> 00:14:50,440 It could be 50. It could be 30 routers. 296 00:14:50,560 --> 00:14:52,080 It could be many, many sessions globally. 297 00:14:52,660 --> 00:14:54,460 And at scale, filtering aggressively 298 00:14:54,460 --> 00:14:56,140 is challenging because of that. 299 00:14:56,420 --> 00:14:58,340 Now imagine a filter list per peer 300 00:14:58,340 --> 00:14:59,900 at each router 301 00:15:00,700 --> 00:15:02,420 20 or 30 times over in your network 302 00:15:02,420 --> 00:15:04,320 just sitting there in config space. 303 00:15:04,660 --> 00:15:06,540 Cisco can't really hold this in NVRAM. 304 00:15:06,740 --> 00:15:09,180 You have to source them from a TTP server at boot often. 305 00:15:09,460 --> 00:15:10,580 It's kind of a conundrum. 306 00:15:10,900 --> 00:15:12,020 Juniper has some solutions, 307 00:15:12,020 --> 00:15:14,240 but no one's really deploying it broadly, to my knowledge. 308 00:15:16,200 --> 00:15:17,560 And the worst of this is 309 00:15:17,560 --> 00:15:19,820 IRRs aren't maintained terribly well. 310 00:15:20,020 --> 00:15:21,500 When people put a route in, 311 00:15:21,640 --> 00:15:23,100 they rarely ever remember to take it out 312 00:15:23,100 --> 00:15:23,900 when the customer's gone. 313 00:15:24,520 --> 00:15:24,960 Oops. 314 00:15:27,280 --> 00:15:28,420 And, even better, 315 00:15:28,540 --> 00:15:29,940 they are incredibly insecure. 316 00:15:30,760 --> 00:15:32,940 Almost anyone can just go toss anything into it. 317 00:15:33,100 --> 00:15:33,840 And we'll show you. 318 00:15:35,060 --> 00:15:36,800 This is how we've successfully gotten 319 00:15:36,800 --> 00:15:38,120 the route that DEF CON uses, 320 00:15:38,360 --> 00:15:41,920 24.120.56.0.22. 321 00:15:42,020 --> 00:15:43,140 Actually, wasn't it? 322 00:15:43,520 --> 00:15:45,200 Well, this is the 24 we registered 323 00:15:45,200 --> 00:15:46,020 and we hijacked. 324 00:15:46,640 --> 00:15:48,480 It comes from a parent 22. 325 00:15:48,720 --> 00:15:49,720 If you look in BGP, 326 00:15:49,860 --> 00:15:52,240 24.120.56.0.22 327 00:15:52,240 --> 00:15:54,040 is actually the bounding prefix. 328 00:15:54,580 --> 00:15:55,780 What you'll see here is 329 00:15:55,780 --> 00:15:58,700 on August 7th, 2008, at 9.48 p.m., 330 00:15:58,700 --> 00:16:00,920 we told AltDB, 331 00:16:01,260 --> 00:16:04,680 hey, AS26627 can route that IP address. 332 00:16:05,000 --> 00:16:07,080 And anybody who uses AltDB 333 00:16:07,080 --> 00:16:08,600 to build their filter lists 334 00:16:08,600 --> 00:16:09,660 now thinks that we're valid. 335 00:16:10,500 --> 00:16:12,040 We didn't even have to detect anything. 336 00:16:12,200 --> 00:16:12,540 It's not like we did 337 00:16:12,540 --> 00:16:13,360 social engineer shit. 338 00:16:13,720 --> 00:16:14,520 You just said it. 339 00:16:15,560 --> 00:16:17,240 It's like, hey, bank teller, 340 00:16:17,260 --> 00:16:17,980 how about a grand? 341 00:16:22,440 --> 00:16:24,140 So, this stuff gets you to the point 342 00:16:24,140 --> 00:16:25,560 of being able to announce IP space 343 00:16:25,560 --> 00:16:26,560 you don't belong to, 344 00:16:26,640 --> 00:16:27,580 you don't have the right to use, 345 00:16:27,680 --> 00:16:28,080 but you can. 346 00:16:28,320 --> 00:16:29,400 You can still do it. 347 00:16:29,420 --> 00:16:30,060 No one's stopping you. 348 00:16:30,320 --> 00:16:30,880 And further, 349 00:16:32,780 --> 00:16:34,700 you can do really cool stuff 350 00:16:34,700 --> 00:16:35,660 that we're going to show you in a bit. 351 00:16:36,160 --> 00:16:37,700 But there are other uses for hijacking 352 00:16:38,220 --> 00:16:38,960 where you don't, 353 00:16:38,960 --> 00:16:40,020 we do break things. 354 00:16:40,720 --> 00:16:41,840 And at one point, 355 00:16:41,860 --> 00:16:43,560 it was difficult to get address space quickly, 356 00:16:43,800 --> 00:16:45,440 and so folks would often just take it. 357 00:16:47,020 --> 00:16:48,420 People still use this stuff. 358 00:16:48,620 --> 00:16:50,500 People will announce IP space, 359 00:16:51,140 --> 00:16:52,360 use it for a few hours, 360 00:16:52,720 --> 00:16:53,700 send a bunch of spam, 361 00:16:53,840 --> 00:16:54,780 do a bunch of phishing sites, 362 00:16:55,220 --> 00:16:56,640 blast wherever they're going to blast, 363 00:16:56,720 --> 00:16:57,180 and go away. 364 00:16:57,660 --> 00:16:59,660 And the favorites here are using 365 00:16:59,660 --> 00:17:00,780 unallocated address space. 366 00:17:01,120 --> 00:17:02,860 So, things from blocks not assigned 367 00:17:02,860 --> 00:17:05,220 by ICANN to an IRR or LIR yet. 368 00:17:05,400 --> 00:17:07,020 Things that aren't assigned to ARIN yet. 369 00:17:07,020 --> 00:17:09,080 Can you think of some blocks, Alex? 370 00:17:09,320 --> 00:17:11,400 Like, what's it, 46 slash 8? 371 00:17:12,980 --> 00:17:14,220 What's a block unassigned yet? 372 00:17:14,220 --> 00:17:14,660 Like 46? 373 00:17:15,160 --> 00:17:17,540 Yeah, anything 46, 374 00:17:19,880 --> 00:17:23,580 like 77, I think, is not assigned. 375 00:17:23,820 --> 00:17:25,200 So there's a number of slash 8s 376 00:17:25,200 --> 00:17:26,400 that ICANN can assign to people 377 00:17:26,400 --> 00:17:27,100 that aren't assigned 378 00:17:27,100 --> 00:17:28,300 that you can go ahead and use 379 00:17:28,300 --> 00:17:29,540 and have almost no repercussions 380 00:17:29,540 --> 00:17:31,300 because there's no who-is entries for them. 381 00:17:31,440 --> 00:17:33,400 They point to ICANN. 382 00:17:33,540 --> 00:17:34,740 So who are you going to complain to? 383 00:17:35,560 --> 00:17:37,000 You know, who is it 384 00:17:37,020 --> 00:17:37,960 is the address from this block 385 00:17:37,960 --> 00:17:38,920 and it's not going to give you 386 00:17:38,920 --> 00:17:39,880 anything useful or actionable. 387 00:17:40,140 --> 00:17:40,900 And that's a good thing 388 00:17:40,900 --> 00:17:41,900 if you're a spammer, apparently. 389 00:17:43,040 --> 00:17:45,940 And also, you just can't get the complaints 390 00:17:45,940 --> 00:17:46,560 in the first place. 391 00:17:47,680 --> 00:17:49,940 So you can also use jacking to cause 392 00:17:49,940 --> 00:17:51,180 or hijacking of a prefix 393 00:17:51,180 --> 00:17:52,340 by announcing more specifics 394 00:17:53,440 --> 00:17:55,040 to cause a raw outage. 395 00:17:55,280 --> 00:17:57,560 And on certain types of industries 396 00:17:57,560 --> 00:17:58,500 or in certain industries, 397 00:17:58,700 --> 00:17:59,760 this is pretty popular. 398 00:18:00,020 --> 00:18:01,260 If you're an adult site 399 00:18:01,260 --> 00:18:02,940 that makes money on initial sign-ups 400 00:18:02,940 --> 00:18:04,140 and customers never come back, 401 00:18:04,340 --> 00:18:06,340 you really want to have 402 00:18:06,340 --> 00:18:07,560 most of the means you can have. 403 00:18:07,780 --> 00:18:09,300 And by keeping your competition 404 00:18:09,780 --> 00:18:11,060 away from the customer base, 405 00:18:11,240 --> 00:18:12,380 just by numbers games, 406 00:18:12,540 --> 00:18:13,040 you end up winning. 407 00:18:13,260 --> 00:18:14,800 So if you can hold them down 408 00:18:14,800 --> 00:18:15,700 for a few hours a day 409 00:18:15,700 --> 00:18:17,420 and not spend a lot of traffic on it, 410 00:18:17,460 --> 00:18:18,540 no denial-of-service attacks 411 00:18:18,540 --> 00:18:21,480 for botnets to have to do for you, 412 00:18:21,560 --> 00:18:24,660 this is a low-work way 413 00:18:24,660 --> 00:18:25,880 to hold them down. 414 00:18:26,120 --> 00:18:27,000 And this goes on. 415 00:18:27,080 --> 00:18:28,040 But it's not very popular. 416 00:18:28,180 --> 00:18:29,900 It doesn't get you something. 417 00:18:30,060 --> 00:18:31,420 It helps you if you've already 418 00:18:31,420 --> 00:18:32,740 got a process that benefits you 419 00:18:32,740 --> 00:18:33,820 by suppressing another. 420 00:18:36,400 --> 00:18:38,740 The best part of botjacking could be, 421 00:18:38,860 --> 00:18:40,280 if you didn't want to do 422 00:18:40,280 --> 00:18:41,520 any of the other nastiness, 423 00:18:41,720 --> 00:18:42,700 would be to put up fake websites 424 00:18:42,700 --> 00:18:44,340 for blocks that are in use. 425 00:18:44,700 --> 00:18:45,720 Like, for example, 426 00:18:46,600 --> 00:18:48,520 121.146.024. 427 00:18:48,800 --> 00:18:50,680 That slash 24 is for Twitter. 428 00:18:50,880 --> 00:18:51,940 I could think of a ton 429 00:18:51,940 --> 00:18:52,900 of better sites to put up. 430 00:18:53,480 --> 00:18:54,640 I mean, couldn't you? 431 00:18:54,780 --> 00:18:55,380 You were pressed. 432 00:18:57,180 --> 00:18:58,500 And so naturally, 433 00:18:58,860 --> 00:18:59,500 we have to wonder, 434 00:18:59,600 --> 00:19:01,460 what are we doing in terms of 435 00:19:01,460 --> 00:19:02,720 whether this is legal or not? 436 00:19:02,820 --> 00:19:04,640 Whose turf are we trouncing on? 437 00:19:05,080 --> 00:19:06,320 And the first step 438 00:19:06,340 --> 00:19:07,160 we have to ask is, 439 00:19:07,260 --> 00:19:08,200 if it's unused space, 440 00:19:08,680 --> 00:19:09,040 unallocated, 441 00:19:09,080 --> 00:19:10,100 and ICANN, quote-unquote, 442 00:19:10,140 --> 00:19:11,520 has authority by some ridiculous 443 00:19:11,520 --> 00:19:13,040 amount of paperwork proxies 444 00:19:13,040 --> 00:19:15,300 stemming from DARPA days, 445 00:19:16,460 --> 00:19:17,480 who really owns it? 446 00:19:17,680 --> 00:19:18,800 If no one's using it, 447 00:19:18,860 --> 00:19:19,700 who can notice to care? 448 00:19:22,120 --> 00:19:23,280 Further, it's just a number. 449 00:19:23,420 --> 00:19:24,200 It's not like it's IP. 450 00:19:24,380 --> 00:19:25,300 It's not a business process. 451 00:19:25,440 --> 00:19:26,780 You can't patent an IP address. 452 00:19:26,940 --> 00:19:27,620 You can't own them. 453 00:19:27,780 --> 00:19:28,580 As an end user, 454 00:19:28,740 --> 00:19:29,400 you're assigned them. 455 00:19:29,580 --> 00:19:31,020 And the provider that assigned 456 00:19:31,020 --> 00:19:31,500 you that address 457 00:19:31,500 --> 00:19:32,380 doesn't own it either. 458 00:19:32,520 --> 00:19:33,700 They got it from their IRR. 459 00:19:33,840 --> 00:19:35,520 Or rather, RIR. 460 00:19:37,380 --> 00:19:39,440 And so up and down the chain, 461 00:19:39,540 --> 00:19:40,800 there's no real solid ownership. 462 00:19:41,280 --> 00:19:42,400 And so that's confounding. 463 00:19:43,820 --> 00:19:45,000 And as far as we're aware, 464 00:19:45,180 --> 00:19:46,320 there's been no real prosecutions, 465 00:19:46,340 --> 00:19:49,020 no attraction in bringing anyone 466 00:19:49,020 --> 00:19:50,440 to some sort of justice at all. 467 00:19:50,560 --> 00:19:52,620 And people know the actors, 468 00:19:52,660 --> 00:19:53,480 yet nothing goes on. 469 00:19:54,340 --> 00:19:55,520 The worst case is that 470 00:19:55,520 --> 00:19:57,000 your bad stuff is seen, 471 00:19:57,100 --> 00:19:58,280 and they pull your pointers, 472 00:19:58,460 --> 00:20:01,080 and maybe your upstream's turning off. 473 00:20:06,940 --> 00:20:08,040 So the real cool stuff. 474 00:20:08,480 --> 00:20:09,460 How do you do it? 475 00:20:10,680 --> 00:20:11,760 So the first method, 476 00:20:12,580 --> 00:20:13,640 full-on hijacking. 477 00:20:14,300 --> 00:20:15,380 Back in the day, 478 00:20:15,440 --> 00:20:17,420 it was popular to go traverse 479 00:20:17,420 --> 00:20:19,960 Whois records for subnets 480 00:20:19,960 --> 00:20:21,820 and find any that didn't have 481 00:20:21,820 --> 00:20:22,620 a valid domain name. 482 00:20:22,740 --> 00:20:23,460 And programmatically, 483 00:20:23,520 --> 00:20:24,280 that was pretty easy. 484 00:20:25,040 --> 00:20:25,720 Scripts, right? 485 00:20:25,860 --> 00:20:26,660 Any annexed returns, 486 00:20:26,980 --> 00:20:27,840 want to look at those again. 487 00:20:29,240 --> 00:20:30,380 Go register that domain. 488 00:20:31,000 --> 00:20:32,180 Just go become that domain. 489 00:20:32,560 --> 00:20:34,300 Change the contact information with Aaron, 490 00:20:34,300 --> 00:20:35,400 now that you have the valid domain. 491 00:20:36,680 --> 00:20:37,860 Or just announce it. 492 00:20:38,540 --> 00:20:39,240 Just take it. 493 00:20:39,400 --> 00:20:40,180 Forget doing it proper. 494 00:20:41,620 --> 00:20:42,480 And in many ways, 495 00:20:42,500 --> 00:20:43,000 this is fine, 496 00:20:43,100 --> 00:20:44,200 because people just don't care. 497 00:20:44,320 --> 00:20:44,800 Enough to filter. 498 00:20:44,900 --> 00:20:46,120 We kind of covered the problems 499 00:20:46,120 --> 00:20:47,000 with doing it at scale. 500 00:20:48,200 --> 00:20:49,560 And anyway, they want to. 501 00:20:49,700 --> 00:20:50,880 They want to do business with you. 502 00:20:51,080 --> 00:20:52,140 Upstream providers want to 503 00:20:52,140 --> 00:20:52,880 route that IP space 504 00:20:52,880 --> 00:20:54,420 if they can reasonably guess 505 00:20:54,420 --> 00:20:55,760 and be sure that they're not going to 506 00:20:56,180 --> 00:20:56,840 just go out of business 507 00:20:56,840 --> 00:20:58,300 because of your one act, one need. 508 00:21:00,300 --> 00:21:00,940 Interesting history. 509 00:21:02,460 --> 00:21:03,460 Anybody remember this one? 510 00:21:03,580 --> 00:21:04,200 7,700. 511 00:21:04,300 --> 00:21:04,440 97? 512 00:21:05,220 --> 00:21:07,180 So this is back when the Internet 513 00:21:07,180 --> 00:21:09,700 was a handful of routes as it is today, 514 00:21:09,820 --> 00:21:10,780 maybe a few thousand routes. 515 00:21:12,880 --> 00:21:14,560 And we were using RIP internally, 516 00:21:14,880 --> 00:21:16,020 Routing Information Protocol, 517 00:21:16,320 --> 00:21:18,660 which did not understand classless stuff yet. 518 00:21:18,920 --> 00:21:19,880 Well, actually, no, it did in 97. 519 00:21:20,120 --> 00:21:20,700 RIPv2 did. 520 00:21:20,860 --> 00:21:21,520 But in this case, 521 00:21:21,960 --> 00:21:25,080 these guys somehow redistributed BGP into RIP, 522 00:21:25,080 --> 00:21:26,680 which cut everything off 24s, 523 00:21:27,160 --> 00:21:28,700 which wasn't what was in the real table. 524 00:21:28,780 --> 00:21:29,280 They were longer. 525 00:21:29,480 --> 00:21:30,860 And then they redistributed them 526 00:21:30,860 --> 00:21:32,460 back to BGP to sprint. 527 00:21:32,460 --> 00:21:34,900 And all the traffic for most of the Internet 528 00:21:34,900 --> 00:21:36,440 chose that more specific path 529 00:21:36,440 --> 00:21:38,180 through sprint, DOSing sprint, 530 00:21:38,480 --> 00:21:39,820 and overflowing router memory 531 00:21:39,820 --> 00:21:40,980 that couldn't handle that many routes. 532 00:21:41,240 --> 00:21:42,160 It was a great day. 533 00:21:43,980 --> 00:21:46,120 146.20, URI forged in steel. 534 00:21:46,380 --> 00:21:48,120 It was literally forged and stolen 535 00:21:48,120 --> 00:21:50,920 by a person that was then handing out 536 00:21:50,920 --> 00:21:52,440 slash 20s to a bunch of his friends. 537 00:21:52,720 --> 00:21:53,500 It's pretty cool. 538 00:21:55,220 --> 00:21:56,880 166.188 is an interesting story. 539 00:21:57,040 --> 00:22:00,180 The Chilean police actually got jacked twice 540 00:22:00,180 --> 00:22:02,020 by the most notable one, 541 00:22:02,020 --> 00:22:03,520 like the company in Nevada, 542 00:22:03,820 --> 00:22:05,280 the Caballeros de Chile LLC. 543 00:22:07,000 --> 00:22:08,340 So literally, people, 544 00:22:08,580 --> 00:22:10,380 it's thug-on-thug hate out there, 545 00:22:10,480 --> 00:22:11,660 even in IP jacking. 546 00:22:13,180 --> 00:22:14,980 Now, interesting, if you're interested 547 00:22:14,980 --> 00:22:16,520 in this kind of like tracking the bad guys 548 00:22:16,520 --> 00:22:18,400 kind of stuff, completewhois.com 549 00:22:18,840 --> 00:22:20,680 is a somewhat canonical resource. 550 00:22:20,940 --> 00:22:22,920 This guy's mission, it seems, in life 551 00:22:22,920 --> 00:22:25,100 is to track these things 552 00:22:25,100 --> 00:22:27,200 and for reasons that we suspect 553 00:22:27,200 --> 00:22:28,820 in the comment in the slide. 554 00:22:30,060 --> 00:22:30,840 And so, 555 00:22:30,840 --> 00:22:33,740 aside from direct interested stuff, 556 00:22:34,100 --> 00:22:35,640 this stuff does happen accidentally, 557 00:22:35,840 --> 00:22:38,160 like the AS7007 back in the day. 558 00:22:38,840 --> 00:22:40,340 And one of the more recent ones, 559 00:22:41,020 --> 00:22:43,640 that's interesting of note in accidental hijackings, 560 00:22:43,640 --> 00:22:45,200 we're going to go ahead for one sec, 561 00:22:46,940 --> 00:22:49,060 when YouTube went down in early February, 562 00:22:50,360 --> 00:22:53,000 so this one we'll only spend a few minutes on 563 00:22:53,000 --> 00:22:54,940 because we're getting kind of towards the bottom of the hour. 564 00:22:55,240 --> 00:22:57,620 The YouTube hijack was clever, 565 00:22:57,860 --> 00:22:59,600 or not clever, but interestingly, 566 00:22:59,600 --> 00:23:01,080 conveniently accidental. 567 00:23:01,860 --> 00:23:03,200 They announced a few prefixes, 568 00:23:03,380 --> 00:23:07,320 some 24s, 22, a 20, and a 19. 569 00:23:08,120 --> 00:23:10,320 So Pakistan government one day decides, 570 00:23:10,560 --> 00:23:11,820 hey, there's some bad stuff out here, 571 00:23:11,940 --> 00:23:13,160 we need to block a few IP addresses. 572 00:23:13,420 --> 00:23:15,280 And somehow that turns into blocking a whole subnet. 573 00:23:15,420 --> 00:23:16,400 We don't know how that happened. 574 00:23:17,720 --> 00:23:20,360 Then Pakistan Telecom, on request, 575 00:23:20,740 --> 00:23:22,120 nails up a more specific route, 576 00:23:22,260 --> 00:23:23,600 a 24 out of the 22, 577 00:23:23,840 --> 00:23:24,980 which happens to be where, like, 578 00:23:24,980 --> 00:23:27,360 I think the main content portal happens 579 00:23:27,360 --> 00:23:29,420 and then it redirects you to the actual video content, 580 00:23:29,600 --> 00:23:31,100 CDN nodes and whatnot, 581 00:23:31,280 --> 00:23:33,660 but the original input node lives in that 24. 582 00:23:34,480 --> 00:23:36,900 And so they nail it up to null zero to discard it, 583 00:23:36,960 --> 00:23:38,820 which is a fine way to filter it at your borders. 584 00:23:39,940 --> 00:23:42,180 Unfortunately, it somehow ends up in BGP. 585 00:23:45,460 --> 00:23:48,640 And even worse, because PCCW doesn't fucking filter, 586 00:23:48,820 --> 00:23:50,180 it ends up in their table. 587 00:23:50,620 --> 00:23:53,160 And because PCCW appears with all the big guys, 588 00:23:53,280 --> 00:23:54,540 it ends up in the whole fucking internet. 589 00:23:55,920 --> 00:23:57,740 So now YouTube is down. 590 00:23:58,060 --> 00:23:58,920 And they get nothing. 591 00:23:58,920 --> 00:24:01,220 They go to Pakistan and they get timeouts. 592 00:24:01,340 --> 00:24:01,880 It's great. 593 00:24:02,420 --> 00:24:04,420 If only they had thought about putting up a fake site 594 00:24:04,420 --> 00:24:06,480 with some useful content. 595 00:24:07,180 --> 00:24:10,220 So the response was to try to win by a longer prefix. 596 00:24:10,580 --> 00:24:11,720 They announce a 24. 597 00:24:12,080 --> 00:24:14,000 Again, they had a 22 previously to that. 598 00:24:14,160 --> 00:24:16,680 They announce a 24 to try to win the specificity. 599 00:24:16,720 --> 00:24:18,240 And they announce some 25s. 600 00:24:18,240 --> 00:24:20,980 And 25s will propagate on people who, again, don't filter. 601 00:24:21,860 --> 00:24:23,680 Most folks filter at 24 length. 602 00:24:23,760 --> 00:24:25,860 That's a standard practice going back for a while. 603 00:24:26,200 --> 00:24:28,220 But you can pay larger providers to, 604 00:24:28,220 --> 00:24:29,980 internally at least, take 25s. 605 00:24:29,980 --> 00:24:31,480 And so they try that, and it kind of helps. 606 00:24:31,760 --> 00:24:32,880 It doesn't solve the problem. 607 00:24:33,500 --> 00:24:37,040 So PCCW finally turns off Pakistan Telecom two hours later. 608 00:24:37,120 --> 00:24:37,940 It just shuts down the peer. 609 00:24:38,260 --> 00:24:39,620 And that seems to resolve it. 610 00:24:39,920 --> 00:24:42,780 And after things reconverge, everyone's happy again. 611 00:24:42,980 --> 00:24:45,340 They're back watching YouTube, fat and happy. 612 00:24:48,120 --> 00:24:49,880 You guys aren't any of those, so we're fine. 613 00:24:50,420 --> 00:24:52,320 So here's the actual notice from the government. 614 00:24:52,720 --> 00:24:54,840 It only names three IP addresses. 615 00:24:55,740 --> 00:24:57,980 Yet, again, that turns into a clusterfuck, 616 00:24:58,220 --> 00:24:59,260 internally, and becomes a 24. 617 00:24:59,500 --> 00:25:00,340 And it leaks to the world. 618 00:25:01,140 --> 00:25:02,680 So we think it was unintentional. 619 00:25:04,600 --> 00:25:06,940 So people who do look at hijacking, 620 00:25:07,040 --> 00:25:09,400 more interestingly, critically, than we do here, 621 00:25:09,940 --> 00:25:12,020 do exist, and they happen to go to NANOG, 622 00:25:12,160 --> 00:25:13,840 the North American Ops Group meeting. 623 00:25:15,280 --> 00:25:16,500 Anybody go to NANOG? 624 00:25:17,860 --> 00:25:18,800 Oh, I know you. 625 00:25:21,460 --> 00:25:22,760 So it's a great meeting. 626 00:25:22,900 --> 00:25:24,620 I recommend anyone who cares about it knows where to go. 627 00:25:25,500 --> 00:25:27,740 And with a little bit of help from our friends, 628 00:25:28,300 --> 00:25:31,540 I think we have some Bombay-type people, 629 00:25:31,620 --> 00:25:33,420 and Sapphire, and all that. 630 00:25:34,460 --> 00:25:38,460 We then have exercises emerge out of those moments. 631 00:25:39,040 --> 00:25:41,380 And so we tried some random shit recently. 632 00:25:41,580 --> 00:25:43,260 And one was to announce 1-slash-8. 633 00:25:43,340 --> 00:25:44,680 That actually got to most of the world. 634 00:25:45,720 --> 00:25:47,480 1-4-6-20, for old time's sake, 635 00:25:47,540 --> 00:25:49,960 got to pretty much all the world. 636 00:25:50,980 --> 00:25:53,360 And then we tried things just for the heck of it, 637 00:25:53,360 --> 00:25:54,000 longer than 24. 638 00:25:55,000 --> 00:25:56,920 And almost half, in some cases, 639 00:25:56,920 --> 00:25:58,560 down to an individual IP address, 640 00:25:58,620 --> 00:26:01,500 a slash-32 worked, globally speaking. 641 00:26:03,160 --> 00:26:04,620 We also tried some funky stuff 642 00:26:04,620 --> 00:26:07,060 to try to break routing table tree construction. 643 00:26:08,360 --> 00:26:10,760 I'm not sure if anybody knows a little bit about Ceph, 644 00:26:10,840 --> 00:26:13,180 but in some cases, the way the tree, 645 00:26:13,340 --> 00:26:15,640 the way the route resolution happens 646 00:26:15,640 --> 00:26:17,420 in this memory structure is indexed 647 00:26:17,420 --> 00:26:19,500 on the length of prefixes. 648 00:26:19,700 --> 00:26:21,380 By having a zero-length prefix, 649 00:26:21,640 --> 00:26:23,080 this resets the root of the tree, 650 00:26:23,200 --> 00:26:24,880 causing the entire thing to be recalculated. 651 00:26:24,880 --> 00:26:26,320 It's a big, heavy operation. 652 00:26:26,740 --> 00:26:28,540 And if you announce and withdraw that, say, 653 00:26:28,600 --> 00:26:29,340 every few seconds, 654 00:26:29,400 --> 00:26:30,480 you can really cause some problems. 655 00:26:31,140 --> 00:26:35,060 So we tried 0-slash-8 and 0-0-slash-16, 656 00:26:35,220 --> 00:26:36,180 and it got some place. 657 00:26:36,220 --> 00:26:37,360 It's only four or five routers. 658 00:26:37,480 --> 00:26:39,380 So things actually seem to not take it smart. 659 00:26:40,160 --> 00:26:41,520 We also tried AS0, 660 00:26:42,060 --> 00:26:43,020 which shouldn't work, 661 00:26:43,140 --> 00:26:45,700 and it used to crash some Junos stuff. 662 00:26:46,620 --> 00:26:48,120 That didn't get very far either. 663 00:26:48,260 --> 00:26:49,580 So it's been fun. 664 00:26:50,740 --> 00:26:52,220 This all means, really, 665 00:26:52,770 --> 00:26:54,220 that to deal with these problems, 666 00:26:54,880 --> 00:26:56,940 this is somewhat a complicated state of affairs. 667 00:26:59,360 --> 00:27:01,100 No one wants to go and push really hard 668 00:27:01,100 --> 00:27:03,520 for excessive amounts of work 669 00:27:03,520 --> 00:27:05,700 to do PKI or some sort of 670 00:27:05,700 --> 00:27:07,020 certificate chaining model 671 00:27:07,020 --> 00:27:09,480 to sign your routes or sign your ASN 672 00:27:09,480 --> 00:27:11,380 plus your routes and then wait to verify that. 673 00:27:11,640 --> 00:27:12,960 It adds a lot of extra work, 674 00:27:13,000 --> 00:27:15,200 and we're just ramming forward, scaling the net 675 00:27:15,200 --> 00:27:16,460 so fast and furiously, 676 00:27:16,680 --> 00:27:19,320 we just don't think we can do it collectively. 677 00:27:20,620 --> 00:27:22,660 And again, back to the weakest link problem. 678 00:27:22,860 --> 00:27:24,160 Unless everybody does it, 679 00:27:24,880 --> 00:27:25,560 just one ingress point, 680 00:27:25,760 --> 00:27:26,720 you're kind of screwed. 681 00:27:27,140 --> 00:27:28,680 And even if there are no ingress points 682 00:27:28,680 --> 00:27:29,660 and it's all well-filtered 683 00:27:29,660 --> 00:27:31,320 and you have these wonderful IRRs, 684 00:27:31,320 --> 00:27:32,440 now we have the whole trust problem 685 00:27:32,440 --> 00:27:34,080 of who can contribute to those lists 686 00:27:34,080 --> 00:27:35,320 in the first place. 687 00:27:37,760 --> 00:27:39,920 So to deal with it, we have some solutions. 688 00:27:40,200 --> 00:27:41,440 There are some automated systems 689 00:27:41,440 --> 00:27:44,960 that at least can watch announcements 690 00:27:44,960 --> 00:27:46,660 from various vantage points in the internet 691 00:27:46,660 --> 00:27:48,840 and tell you, hey, something has happened 692 00:27:48,840 --> 00:27:50,580 within the range of addresses that you care about. 693 00:27:51,080 --> 00:27:52,060 And they can let you know 694 00:27:52,060 --> 00:27:53,660 someone possibly is hijacking your space. 695 00:27:55,140 --> 00:27:57,820 The best bet today to try to do the right thing 696 00:27:57,820 --> 00:27:59,700 is to register your AS and prefixes 697 00:27:59,700 --> 00:28:01,460 in some sort of RIRs. 698 00:28:01,480 --> 00:28:03,500 And maybe eventually someone will start using it. 699 00:28:03,580 --> 00:28:04,440 But if no one uses it yet, 700 00:28:04,600 --> 00:28:05,500 it's never going to happen. 701 00:28:08,400 --> 00:28:10,080 The other problem with this little tack 702 00:28:10,080 --> 00:28:11,720 that we're going to talk about and show you 703 00:28:11,720 --> 00:28:14,260 is that you still, on an IP level, 704 00:28:14,380 --> 00:28:15,340 on a Layer 3 level, 705 00:28:15,500 --> 00:28:17,460 can be sub-visible. 706 00:28:17,640 --> 00:28:19,580 You can be essentially passive in the path. 707 00:28:19,980 --> 00:28:22,640 But your BGP aspects are still quite visible. 708 00:28:23,100 --> 00:28:24,740 So the hijacked route, 709 00:28:24,880 --> 00:28:25,780 to just have that work, 710 00:28:25,860 --> 00:28:27,380 necessarily has to be visible. 711 00:28:27,760 --> 00:28:29,660 Now it would be ultimately interesting 712 00:28:29,660 --> 00:28:30,700 to try to hide that. 713 00:28:30,800 --> 00:28:31,780 We haven't really thought through 714 00:28:31,780 --> 00:28:32,640 the whole problem space. 715 00:28:33,380 --> 00:28:34,420 But what we're doing today 716 00:28:34,420 --> 00:28:36,240 doesn't hide the fact in BGP 717 00:28:36,240 --> 00:28:38,480 we are announcing something within a larger range 718 00:28:38,480 --> 00:28:39,680 of somebody else's something. 719 00:28:40,700 --> 00:28:41,180 So... 720 00:28:41,740 --> 00:28:43,940 Did anybody notice anything strange 721 00:28:44,500 --> 00:28:46,200 happening around noon today 722 00:28:46,200 --> 00:28:48,000 with the DEVCON network? 723 00:28:49,180 --> 00:28:50,100 I think you told them already. 724 00:28:50,500 --> 00:28:51,260 I guess not. 725 00:28:51,380 --> 00:28:52,520 I guess nobody noticed. 726 00:28:53,080 --> 00:28:54,000 You keep that. 727 00:28:56,800 --> 00:28:57,800 And then further, 728 00:28:57,980 --> 00:29:01,920 if the security is interested in being tight, 729 00:29:02,120 --> 00:29:04,860 yet the stuff that we see that's popular 730 00:29:04,860 --> 00:29:05,940 doesn't actually cause any problems, 731 00:29:06,140 --> 00:29:07,660 was it of value to do in the first place? 732 00:29:07,720 --> 00:29:09,260 If it's working and no one's complaining, 733 00:29:09,500 --> 00:29:10,560 why are we spending money on that? 734 00:29:10,800 --> 00:29:12,320 Every executive asks the question. 735 00:29:12,480 --> 00:29:13,960 We can't tell them why other than that. 736 00:29:15,280 --> 00:29:17,000 So, say you do get hijacked. 737 00:29:17,160 --> 00:29:19,040 An interesting state of affairs is that 738 00:29:19,040 --> 00:29:21,380 once you find out you've been hijacked, 739 00:29:21,500 --> 00:29:22,500 you get to determine 740 00:29:22,520 --> 00:29:24,160 just basically yell at your upstreams. 741 00:29:24,180 --> 00:29:25,180 You could be an end user, 742 00:29:25,340 --> 00:29:27,680 end sprint on a T1 or a DS3 or something, 743 00:29:27,820 --> 00:29:29,680 and be part of a larger slash 16 744 00:29:29,680 --> 00:29:31,120 or an 18 in your region. 745 00:29:31,820 --> 00:29:33,960 And a narrow 24 around you 746 00:29:33,960 --> 00:29:34,960 and a couple other customers 747 00:29:34,960 --> 00:29:35,980 happens to be hijacked. 748 00:29:36,120 --> 00:29:38,700 Well, the entirety of the prefix is not disturbed. 749 00:29:39,160 --> 00:29:40,200 Nobody else is down. 750 00:29:40,280 --> 00:29:42,440 And if the actual revenue or the value 751 00:29:42,440 --> 00:29:43,680 of those connections isn't very high, 752 00:29:43,840 --> 00:29:45,180 it's hard to get a good response. 753 00:29:45,860 --> 00:29:47,160 It's just the nature of things. 754 00:29:49,380 --> 00:29:51,860 So, the scale of this stuff ranges from minutes 755 00:29:51,860 --> 00:29:53,800 to perhaps hours and weeks. 756 00:29:54,100 --> 00:29:56,180 If you're like a YouTube kind of consumer 757 00:29:56,180 --> 00:29:58,600 of resources, of bandwidth, of networking, 758 00:29:58,900 --> 00:29:59,940 you can get attention quick 759 00:29:59,940 --> 00:30:02,440 and in a couple hours find the right people. 760 00:30:02,560 --> 00:30:03,600 The communities are quite small. 761 00:30:03,860 --> 00:30:05,600 I see the Nanog shirt now and I understand. 762 00:30:06,320 --> 00:30:08,200 If you know people, and you certainly would, 763 00:30:08,800 --> 00:30:10,820 contacting the NOCs is easy to shortcut 764 00:30:10,820 --> 00:30:12,520 the customer service rigmarole. 765 00:30:13,180 --> 00:30:14,260 They're not going to help you. 766 00:30:14,280 --> 00:30:14,760 They're not going to understand 767 00:30:14,760 --> 00:30:15,720 what this stuff really means 768 00:30:15,720 --> 00:30:17,300 as much as someone who runs BGP. 769 00:30:19,920 --> 00:30:21,120 And so, you know, 770 00:30:21,120 --> 00:30:22,480 compared to something that's more relevant, 771 00:30:23,140 --> 00:30:25,360 trying to have someone stop botnetting, 772 00:30:25,360 --> 00:30:26,180 flooding your server, 773 00:30:26,320 --> 00:30:27,840 it's about on par with that. 774 00:30:28,300 --> 00:30:29,340 You know, ask them nicely, 775 00:30:29,440 --> 00:30:30,380 maybe you'll pay the ransom. 776 00:30:30,560 --> 00:30:30,980 I don't know. 777 00:30:32,620 --> 00:30:34,340 Okay, so, boiling it down 778 00:30:34,340 --> 00:30:35,880 for the first half hour of nonsense. 779 00:30:36,780 --> 00:30:38,220 This means that you can have 780 00:30:38,220 --> 00:30:40,420 a whole lot of laughs and lols. 781 00:30:41,680 --> 00:30:42,720 You can combine things. 782 00:30:43,060 --> 00:30:45,340 Dan Kaminski and Jay and a couple other folks 783 00:30:45,340 --> 00:30:46,200 even alluded to this. 784 00:30:46,720 --> 00:30:48,340 Imagine that if you had a man-in-the-middle attack 785 00:30:48,340 --> 00:30:49,340 using our mechanism, 786 00:30:49,340 --> 00:30:52,540 and could monitor the return traffic 787 00:30:52,540 --> 00:30:53,400 to a client. 788 00:30:53,680 --> 00:30:54,980 Imagine all the wonderful stuff 789 00:30:54,980 --> 00:30:56,600 you could insert in JavaScript land 790 00:30:56,600 --> 00:30:57,700 and images land 791 00:30:57,700 --> 00:30:59,780 and controls land 792 00:30:59,780 --> 00:31:02,180 and Flash, everything else, all of it. 793 00:31:03,120 --> 00:31:05,060 Even better, no reason to even 794 00:31:06,760 --> 00:31:08,400 try to set up a connection 795 00:31:08,400 --> 00:31:09,600 or poke at stuff actively 796 00:31:09,600 --> 00:31:11,420 if you have the packets in both directions. 797 00:31:12,560 --> 00:31:14,980 So, the other interesting point is 798 00:31:15,720 --> 00:31:17,340 this gives you a, again, 799 00:31:17,940 --> 00:31:19,320 a level of, you know, 800 00:31:19,340 --> 00:31:20,940 of invisibility, as you'll see, 801 00:31:23,200 --> 00:31:25,060 that isn't paralleled. 802 00:31:25,120 --> 00:31:27,160 Typically, if you want to be in line with someone, 803 00:31:27,260 --> 00:31:28,100 you have to go to the provider 804 00:31:28,100 --> 00:31:29,500 or somewhere near the edge, 805 00:31:29,600 --> 00:31:30,320 near the constriction. 806 00:31:30,540 --> 00:31:32,340 And it's even worse if that person 807 00:31:32,340 --> 00:31:33,300 you're trying to work on 808 00:31:33,300 --> 00:31:35,600 has multiple connections right to their edge. 809 00:31:36,000 --> 00:31:38,280 They could have a couple DS3s to their site. 810 00:31:38,360 --> 00:31:39,160 You have to monitor both 811 00:31:39,160 --> 00:31:40,280 or somehow work on both. 812 00:31:40,400 --> 00:31:41,300 You can't get in their building. 813 00:31:42,060 --> 00:31:43,820 So, this solves the problem 814 00:31:43,820 --> 00:31:44,840 in a far more elegant 815 00:31:44,840 --> 00:31:46,940 and very much less intrusive way. 816 00:31:48,340 --> 00:31:48,740 Um, 817 00:31:49,340 --> 00:31:50,720 so by man-in-the-middle-ing this stuff 818 00:31:50,720 --> 00:31:52,040 and hijacking prefixes 819 00:31:52,040 --> 00:31:52,920 and doing everything else, 820 00:31:53,040 --> 00:31:54,480 you can also discover passively 821 00:31:54,480 --> 00:31:55,360 who you're talking to. 822 00:31:55,680 --> 00:31:57,220 From a traffic analysis point of view, 823 00:31:57,300 --> 00:31:58,100 it could be very valuable 824 00:31:58,100 --> 00:31:59,040 to know about endpoints 825 00:31:59,520 --> 00:32:01,860 that are VPNing to you all the time. 826 00:32:01,980 --> 00:32:02,920 People at home, 827 00:32:02,960 --> 00:32:04,340 working from home on static cable 828 00:32:04,340 --> 00:32:05,580 or DSL or what have you. 829 00:32:05,940 --> 00:32:07,520 People that you have tunnels to 830 00:32:07,520 --> 00:32:08,800 on static office endpoints. 831 00:32:09,480 --> 00:32:11,100 Not knowing the particulars 832 00:32:11,100 --> 00:32:12,140 of the inside tunnel traffic 833 00:32:12,140 --> 00:32:12,960 is one thing, 834 00:32:13,020 --> 00:32:14,680 but knowing how you communicate 835 00:32:14,680 --> 00:32:15,680 what you're doing is another. 836 00:32:15,900 --> 00:32:17,180 Further, if you want to just 837 00:32:17,180 --> 00:32:18,900 break selective traffic this way, 838 00:32:18,900 --> 00:32:19,880 you certainly can. 839 00:32:20,120 --> 00:32:21,480 Again, half the communication 840 00:32:21,480 --> 00:32:22,380 comes through us. 841 00:32:22,600 --> 00:32:23,580 Pretty much every sort of 842 00:32:23,580 --> 00:32:24,340 protocol is two-way. 843 00:32:25,680 --> 00:32:27,100 So, if you want to really mess up 844 00:32:27,100 --> 00:32:27,620 a sales staff, 845 00:32:27,780 --> 00:32:28,980 maybe you take out IPSec 846 00:32:28,980 --> 00:32:30,080 and leave everything else working. 847 00:32:30,620 --> 00:32:31,260 I don't know. 848 00:32:33,740 --> 00:32:35,440 Um, best, global reach 849 00:32:35,440 --> 00:32:36,480 from a local perspective. 850 00:32:36,780 --> 00:32:38,580 You can hijack stuff from China 851 00:32:38,580 --> 00:32:39,260 to the US. 852 00:32:39,420 --> 00:32:40,560 You can do it the opposite. 853 00:32:41,480 --> 00:32:42,940 So, perhaps it's more concerning. 854 00:32:43,540 --> 00:32:45,480 And again, we've kind of alluded to this, 855 00:32:45,520 --> 00:32:45,980 but how do you know 856 00:32:45,980 --> 00:32:46,800 it's not already happening? 857 00:32:46,980 --> 00:32:48,400 It's something you can't even tell. 858 00:32:48,900 --> 00:32:49,540 Let's take a laptop right now 859 00:32:49,540 --> 00:32:50,420 who's on a computer. 860 00:32:50,860 --> 00:32:52,200 Try tracerouting to your address 861 00:32:52,200 --> 00:32:52,580 at DEF CON 862 00:32:52,580 --> 00:32:53,680 and out from DEF CON. 863 00:32:56,200 --> 00:32:57,060 Oh, you can... 864 00:32:57,560 --> 00:32:58,280 Oh, come on. 865 00:32:58,640 --> 00:32:59,600 That's so disappointing. 866 00:33:00,300 --> 00:33:01,140 Who's brave enough 867 00:33:01,140 --> 00:33:02,420 to put their damn Wi-Fi on? 868 00:33:02,900 --> 00:33:04,160 I mean, I agree. 869 00:33:04,300 --> 00:33:05,940 We have Evdo and a VPN over that. 870 00:33:06,140 --> 00:33:07,940 So, I mean, I don't blame you, 871 00:33:07,980 --> 00:33:09,560 but come on. 872 00:33:11,480 --> 00:33:12,360 Well, outbound's bad. 873 00:33:12,480 --> 00:33:13,200 Traceroute back in. 874 00:33:14,740 --> 00:33:15,440 You'll see what I mean. 875 00:33:15,580 --> 00:33:16,120 We're going to go on 876 00:33:16,120 --> 00:33:16,880 while you're doing that, though. 877 00:33:16,880 --> 00:33:20,340 So, well, you can go to 878 00:33:20,340 --> 00:33:21,400 whatismyip.com 879 00:33:21,400 --> 00:33:22,340 and get it yourself, please. 880 00:33:23,860 --> 00:33:24,280 Oh. 881 00:33:28,460 --> 00:33:30,680 That's the total Tor experience, isn't it? 882 00:33:31,380 --> 00:33:33,060 Okay, so what's new about this hijack? 883 00:33:33,120 --> 00:33:33,820 This is the good stuff. 884 00:33:34,060 --> 00:33:34,940 You start listening again. 885 00:33:36,280 --> 00:33:37,460 So, the change here is 886 00:33:37,460 --> 00:33:38,160 we originate the route 887 00:33:38,160 --> 00:33:38,900 like we always did. 888 00:33:39,060 --> 00:33:39,640 That's not the change. 889 00:33:40,120 --> 00:33:41,560 We went to the usual means 890 00:33:42,760 --> 00:33:43,940 through longer prefix, 891 00:33:44,080 --> 00:33:45,000 that is, more specific route 892 00:33:45,000 --> 00:33:46,020 or a shorter path 893 00:33:46,020 --> 00:33:47,440 if you have multiple places 894 00:33:47,440 --> 00:33:48,660 to announce the route from. 895 00:33:48,820 --> 00:33:49,680 We don't have to have 896 00:33:49,680 --> 00:33:51,060 a longer prefix. 897 00:33:51,360 --> 00:33:52,300 We can have the same 24 898 00:33:52,820 --> 00:33:54,000 and just win through numbers. 899 00:33:55,000 --> 00:33:55,620 That's rare. 900 00:33:55,860 --> 00:33:56,880 Not many attackers 901 00:33:56,880 --> 00:33:58,000 have a coordinated set 902 00:33:58,000 --> 00:33:59,520 of 16 data centers or whatever. 903 00:34:01,100 --> 00:34:01,780 Those are there. 904 00:34:02,400 --> 00:34:03,820 And so, as long as we attract 905 00:34:03,820 --> 00:34:05,360 a majority of the Internet to us, 906 00:34:05,440 --> 00:34:06,340 we consider that a win. 907 00:34:09,420 --> 00:34:12,100 And, yes, so our method, okay, 908 00:34:12,240 --> 00:34:12,940 this is the cool part. 909 00:34:13,040 --> 00:34:13,800 This is where it gets interesting. 910 00:34:14,220 --> 00:34:15,660 To do more than hijack 911 00:34:15,660 --> 00:34:16,900 and handle the traffic locally, 912 00:34:17,020 --> 00:34:17,800 pass it back out, 913 00:34:17,880 --> 00:34:18,480 you need to somehow 914 00:34:18,480 --> 00:34:19,560 get the packets you received 915 00:34:19,560 --> 00:34:20,800 back to the actual target. 916 00:34:21,140 --> 00:34:22,060 And for a long time, 917 00:34:22,100 --> 00:34:22,560 that was hard. 918 00:34:24,480 --> 00:34:25,460 We thought about it, 919 00:34:25,480 --> 00:34:25,780 thought about it, 920 00:34:25,800 --> 00:34:26,200 thought about it. 921 00:34:26,240 --> 00:34:27,480 Then this bright guy 922 00:34:27,480 --> 00:34:29,320 actually somehow came to this. 923 00:34:29,560 --> 00:34:30,460 You want to talk about that part? 924 00:34:31,880 --> 00:34:32,500 Well, right. 925 00:34:32,580 --> 00:34:33,940 So, the problem is that 926 00:34:33,940 --> 00:34:35,860 once you hijack the traffic, 927 00:34:35,940 --> 00:34:37,260 you get it back to you. 928 00:34:37,320 --> 00:34:39,080 How do you get it back to the target? 929 00:34:39,400 --> 00:34:40,500 So, the question is 930 00:34:40,500 --> 00:34:41,920 how do you tell the routers 931 00:34:41,920 --> 00:34:42,880 in the middle between you 932 00:34:42,880 --> 00:34:43,380 and the target 933 00:34:43,380 --> 00:34:44,940 not to take this route? 934 00:34:45,660 --> 00:34:48,020 And we use the BGP property 935 00:34:48,020 --> 00:34:50,600 that routers will not accept 936 00:34:51,460 --> 00:34:52,340 BGP advertisement 937 00:34:52,340 --> 00:34:54,680 with its own ASN in the path. 938 00:34:55,060 --> 00:34:56,300 So, what we do, 939 00:34:56,320 --> 00:34:58,420 we say that this route 940 00:34:58,420 --> 00:35:01,000 actually came from the target. 941 00:35:01,080 --> 00:35:01,880 Don't give it away yet. 942 00:35:03,560 --> 00:35:04,500 The other option, 943 00:35:04,520 --> 00:35:05,080 the other option 944 00:35:05,080 --> 00:35:06,120 was telling it back there. 945 00:35:06,220 --> 00:35:06,980 That's not so great. 946 00:35:08,640 --> 00:35:09,500 Reply path, yes. 947 00:35:09,540 --> 00:35:10,440 You got way too far ahead. 948 00:35:11,940 --> 00:35:12,820 So, anyway, 949 00:35:12,960 --> 00:35:14,660 we want to use zero as a reply path. 950 00:35:14,760 --> 00:35:15,640 If we don't use it 951 00:35:15,660 --> 00:35:16,160 as a reply path, 952 00:35:16,280 --> 00:35:17,540 this method doesn't work. 953 00:35:17,640 --> 00:35:19,300 We're back to where we are right now. 954 00:35:19,500 --> 00:35:20,280 You can jack a route. 955 00:35:20,400 --> 00:35:21,520 You can't make it keep working. 956 00:35:21,720 --> 00:35:22,460 You get noticed. 957 00:35:22,680 --> 00:35:23,520 Things get fixed. 958 00:35:23,660 --> 00:35:24,500 You're out of the loop. 959 00:35:25,800 --> 00:35:26,640 So, let's hack, 960 00:35:27,140 --> 00:35:27,840 hijack with them 961 00:35:27,840 --> 00:35:28,440 and the middle method. 962 00:35:29,020 --> 00:35:29,740 So, first, 963 00:35:29,800 --> 00:35:30,440 you got to know some stuff. 964 00:35:30,620 --> 00:35:31,360 We got to know 965 00:35:31,360 --> 00:35:32,060 what our current path 966 00:35:32,060 --> 00:35:32,900 to that target is. 967 00:35:33,320 --> 00:35:34,540 Does it go out from you 968 00:35:34,540 --> 00:35:35,860 to some ISP 969 00:35:35,860 --> 00:35:36,360 then some other? 970 00:35:36,840 --> 00:35:37,620 Certainly, it does, 971 00:35:37,720 --> 00:35:38,380 but you got to know that 972 00:35:38,380 --> 00:35:38,960 ahead of time. 973 00:35:39,040 --> 00:35:39,580 Track that. 974 00:35:40,040 --> 00:35:41,860 Then, figure out the AS number 975 00:35:41,860 --> 00:35:42,640 of each ISP 976 00:35:42,640 --> 00:35:43,220 that you've reversed. 977 00:35:43,440 --> 00:35:44,320 It might be two ISPs. 978 00:35:44,460 --> 00:35:45,440 Four could be six. 979 00:35:45,660 --> 00:35:45,760 Whatever. 980 00:35:46,620 --> 00:35:47,280 Record those. 981 00:35:48,540 --> 00:35:48,940 Then, 982 00:35:49,040 --> 00:35:49,740 as you announce 983 00:35:49,740 --> 00:35:50,580 the hijacked route, 984 00:35:50,720 --> 00:35:52,280 apply ASPath prepens, 985 00:35:52,440 --> 00:35:53,980 naming each of the ASNs 986 00:35:53,980 --> 00:35:54,420 you're going to use 987 00:35:54,420 --> 00:35:55,360 for the current reply path 988 00:35:55,360 --> 00:35:56,580 and on into the future. 989 00:35:57,020 --> 00:35:57,920 This means that 990 00:35:57,920 --> 00:35:58,860 the path you're forwarding 991 00:35:58,860 --> 00:35:59,360 in right now, 992 00:35:59,480 --> 00:36:00,320 which the Internet follows, 993 00:36:00,500 --> 00:36:01,400 is going to remain in place. 994 00:36:02,500 --> 00:36:02,900 Then, 995 00:36:02,920 --> 00:36:03,880 you nail up a static route 996 00:36:03,880 --> 00:36:04,380 for the prefix 997 00:36:04,380 --> 00:36:04,940 you're hijacking 998 00:36:04,940 --> 00:36:06,220 to that same neighbor tree. 999 00:36:06,820 --> 00:36:07,880 This, in Texas, 1000 00:36:07,960 --> 00:36:08,600 is a little bit dense. 1001 00:36:08,780 --> 00:36:09,300 So, done. 1002 00:36:09,380 --> 00:36:10,280 Now, you are 1003 00:36:10,280 --> 00:36:11,000 the man in the middle. 1004 00:36:11,080 --> 00:36:12,060 You are there. 1005 00:36:12,180 --> 00:36:13,260 You're announcing the hijack. 1006 00:36:13,340 --> 00:36:13,900 You're getting it 1007 00:36:13,900 --> 00:36:14,900 to you and back out. 1008 00:36:15,660 --> 00:36:15,820 You're worth 1009 00:36:15,820 --> 00:36:16,560 a thousand words. 1010 00:36:17,220 --> 00:36:17,900 So, first, 1011 00:36:18,580 --> 00:36:19,460 target ASN, 1012 00:36:19,580 --> 00:36:20,540 he's routing 1013 00:36:20,540 --> 00:36:21,320 10, 10 to 20 1014 00:36:21,320 --> 00:36:22,140 because he wants 1015 00:36:22,140 --> 00:36:22,700 to call his ma. 1016 00:36:23,180 --> 00:36:23,960 And so, 1017 00:36:23,980 --> 00:36:24,840 he announces that 1018 00:36:24,840 --> 00:36:26,080 to AS 20 to 30. 1019 00:36:26,220 --> 00:36:27,300 And that route propagates. 1020 00:36:27,360 --> 00:36:28,480 It propagates. 1021 00:36:28,540 --> 00:36:29,340 It propagates. 1022 00:36:29,460 --> 00:36:30,440 Random user sees 1023 00:36:30,900 --> 00:36:31,880 10, 10 to 20 1024 00:36:31,880 --> 00:36:32,260 through 1025 00:36:32,260 --> 00:36:33,720 this collection of crap. 1026 00:36:34,840 --> 00:36:35,700 If you were to look 1027 00:36:35,700 --> 00:36:36,700 at the forwarding databases 1028 00:36:36,700 --> 00:36:37,680 on the routers, 1029 00:36:37,740 --> 00:36:38,900 the actual forwarding entries 1030 00:36:38,900 --> 00:36:39,400 that say 1031 00:36:39,400 --> 00:36:41,060 where to put packets 1032 00:36:41,060 --> 00:36:42,280 to a certain dest out, 1033 00:36:43,040 --> 00:36:44,220 you'd see those blue lines 1034 00:36:44,220 --> 00:36:44,580 indicating 1035 00:36:44,580 --> 00:36:45,640 that the routers 1036 00:36:45,660 --> 00:36:46,100 are out taken 1037 00:36:46,100 --> 00:36:47,220 back towards 10 to 20. 1038 00:36:49,560 --> 00:36:50,540 So, we know that 1039 00:36:50,540 --> 00:36:51,260 we were forwarding out 1040 00:36:51,260 --> 00:36:52,420 from the attacker ASN 1041 00:36:52,420 --> 00:36:53,600 towards 10 and 20. 1042 00:36:54,460 --> 00:36:55,600 So, we're gonna plan 1043 00:36:55,600 --> 00:36:56,740 to use this reply path, 1044 00:36:56,960 --> 00:36:57,260 okay, 1045 00:36:57,300 --> 00:36:57,700 when we build 1046 00:36:57,700 --> 00:36:58,660 our hijacked route. 1047 00:37:01,440 --> 00:37:02,520 So, when we do this, 1048 00:37:02,620 --> 00:37:03,220 what we're gonna name 1049 00:37:03,220 --> 00:37:05,100 is the three autonomous 1050 00:37:05,100 --> 00:37:05,620 system numbers. 1051 00:37:05,700 --> 00:37:06,080 We're gonna name 1052 00:37:06,080 --> 00:37:06,540 AS 10, 1053 00:37:06,740 --> 00:37:07,360 AS 20, 1054 00:37:07,500 --> 00:37:08,100 and 200. 1055 00:37:08,740 --> 00:37:10,020 Now, why we would 1056 00:37:10,020 --> 00:37:10,940 want to have 1057 00:37:10,940 --> 00:37:12,320 AS 200 1058 00:37:12,320 --> 00:37:14,060 not take our hijacked 1059 00:37:14,060 --> 00:37:14,540 route as well 1060 00:37:14,540 --> 00:37:15,320 is a bit more subtle. 1061 00:37:15,660 --> 00:37:16,000 We'll get to that 1062 00:37:16,000 --> 00:37:16,460 in a moment. 1063 00:37:17,220 --> 00:37:18,220 But we minimally need 1064 00:37:18,220 --> 00:37:19,220 AS 10 and AS 20 1065 00:37:19,220 --> 00:37:20,420 not to forward to us 1066 00:37:20,420 --> 00:37:21,400 once we start hijacking 1067 00:37:21,400 --> 00:37:21,880 that route 1068 00:37:21,880 --> 00:37:22,620 or else we can't 1069 00:37:22,620 --> 00:37:23,480 get the traffic 1070 00:37:23,480 --> 00:37:24,320 back to the users. 1071 00:37:25,160 --> 00:37:26,300 We can't make it transparent. 1072 00:37:26,700 --> 00:37:27,380 So, let's set up 1073 00:37:27,380 --> 00:37:28,340 our actual hijacked route. 1074 00:37:28,600 --> 00:37:29,540 In Cisco LAN, 1075 00:37:29,700 --> 00:37:30,060 this is what 1076 00:37:30,060 --> 00:37:30,580 you'd look like. 1077 00:37:30,820 --> 00:37:31,600 A route map 1078 00:37:32,060 --> 00:37:33,020 that actually matches 1079 00:37:33,020 --> 00:37:33,660 our announcement 1080 00:37:33,660 --> 00:37:34,160 are 24. 1081 00:37:34,500 --> 00:37:35,220 Again, we're taking 1082 00:37:35,220 --> 00:37:35,980 a longer prefix 1083 00:37:35,980 --> 00:37:37,160 win here, 1084 00:37:37,300 --> 00:37:38,120 so we'll get 1085 00:37:38,120 --> 00:37:38,680 all the traffic. 1086 00:37:39,200 --> 00:37:40,160 We're then saying 1087 00:37:40,160 --> 00:37:41,340 in the route map, 1088 00:37:41,460 --> 00:37:41,940 which is probably 1089 00:37:41,940 --> 00:37:43,060 too small a font to read, 1090 00:37:43,060 --> 00:37:43,540 sorry, 1091 00:37:43,860 --> 00:37:44,740 this will be up online. 1092 00:37:46,100 --> 00:37:46,760 We're saying 1093 00:37:46,760 --> 00:37:47,620 prepend 10, 1094 00:37:47,720 --> 00:37:47,920 20, 1095 00:37:48,000 --> 00:37:48,240 and 200. 1096 00:37:48,780 --> 00:37:49,680 So, as our route 1097 00:37:49,680 --> 00:37:50,360 goes out to 1098 00:37:50,360 --> 00:37:50,840 AS 40, 1099 00:37:51,020 --> 00:37:51,680 AS 60, 1100 00:37:51,820 --> 00:37:52,420 and AS 10 1101 00:37:52,420 --> 00:37:53,500 and then propagates 1102 00:37:53,500 --> 00:37:53,880 outwards, 1103 00:37:55,260 --> 00:37:56,140 the actual 1104 00:37:56,140 --> 00:37:56,900 forwarding path 1105 00:37:56,900 --> 00:37:57,600 that emerges 1106 00:37:57,600 --> 00:37:58,560 is reversed. 1107 00:37:59,340 --> 00:38:00,360 So, as you see, 1108 00:38:00,400 --> 00:38:00,960 we suck in 1109 00:38:00,960 --> 00:38:01,460 all the data 1110 00:38:01,460 --> 00:38:01,920 from 40, 1111 00:38:01,980 --> 00:38:02,220 60, 1112 00:38:02,340 --> 00:38:02,580 30, 1113 00:38:02,700 --> 00:38:03,780 and 50 ASs 1114 00:38:03,780 --> 00:38:04,920 and then transparently 1115 00:38:04,920 --> 00:38:05,500 pass it back 1116 00:38:05,500 --> 00:38:06,440 to AS 10 and 20. 1117 00:38:07,040 --> 00:38:08,280 AS 10 and 20 1118 00:38:08,280 --> 00:38:09,120 keep forwarding 1119 00:38:09,120 --> 00:38:09,920 as they always did, 1120 00:38:13,060 --> 00:38:13,260 but we can't 1121 00:38:13,260 --> 00:38:13,880 hijack them. 1122 00:38:14,480 --> 00:38:15,340 So, that's a caveat, 1123 00:38:15,540 --> 00:38:15,740 clearly. 1124 00:38:16,000 --> 00:38:17,160 Anybody in the reply path 1125 00:38:17,160 --> 00:38:18,280 obeys the normal, 1126 00:38:18,360 --> 00:38:19,380 natural forwarding 1127 00:38:19,380 --> 00:38:20,300 towards that 22. 1128 00:38:20,920 --> 00:38:21,940 The people who actually 1129 00:38:21,940 --> 00:38:22,540 see our 24 1130 00:38:22,540 --> 00:38:23,060 are the ones 1131 00:38:23,060 --> 00:38:23,860 who don't cause 1132 00:38:23,860 --> 00:38:25,000 the AS path loop detection 1133 00:38:25,000 --> 00:38:25,800 to form in the router. 1134 00:38:26,140 --> 00:38:26,880 And that's it. 1135 00:38:26,980 --> 00:38:27,640 That's the piece. 1136 00:38:29,040 --> 00:38:29,540 What's that? 1137 00:38:30,580 --> 00:38:31,520 Of course it works. 1138 00:38:33,680 --> 00:38:34,640 So, this lets us 1139 00:38:34,640 --> 00:38:35,480 take in that 24 1140 00:38:35,880 --> 00:38:36,100 everywhere. 1141 00:38:36,420 --> 00:38:36,760 Basically, 1142 00:38:36,820 --> 00:38:37,700 this map can't show 1143 00:38:37,700 --> 00:38:38,460 all the ASs. 1144 00:38:38,500 --> 00:38:38,780 There's like 1145 00:38:38,780 --> 00:38:40,340 25,000 of them active. 1146 00:38:41,280 --> 00:38:42,400 So, you only have 1147 00:38:42,400 --> 00:38:43,420 two or three 1148 00:38:43,420 --> 00:38:43,960 between you 1149 00:38:43,960 --> 00:38:44,380 and the target 1150 00:38:44,380 --> 00:38:45,400 typically on the 1151 00:38:45,400 --> 00:38:46,240 well-connected internet 1152 00:38:46,240 --> 00:38:46,700 of today. 1153 00:38:47,500 --> 00:38:48,580 So, that's a small 1154 00:38:48,580 --> 00:38:49,180 number of people 1155 00:38:49,180 --> 00:38:50,000 not to catch 1156 00:38:50,000 --> 00:38:50,860 in your net 1157 00:38:50,860 --> 00:38:52,160 compared to the rest 1158 00:38:52,160 --> 00:38:52,520 of the internet. 1159 00:38:55,100 --> 00:38:56,120 So, once you have 1160 00:38:56,120 --> 00:38:57,100 that route jacked 1161 00:38:57,100 --> 00:38:57,580 and the forwarding 1162 00:38:57,580 --> 00:38:58,300 is kind of ready to go, 1163 00:38:58,380 --> 00:38:59,180 you put a static route 1164 00:38:59,180 --> 00:39:00,180 again back in 1165 00:39:00,180 --> 00:39:01,620 towards that neighbor 1166 00:39:01,620 --> 00:39:02,100 AS 10. 1167 00:39:02,280 --> 00:39:03,240 4, 3, 2, 1 1168 00:39:03,240 --> 00:39:03,720 in this case 1169 00:39:03,720 --> 00:39:04,380 is the far side 1170 00:39:04,380 --> 00:39:05,320 of a slash 31. 1171 00:39:06,440 --> 00:39:07,380 And that's it. 1172 00:39:07,480 --> 00:39:08,560 Those two configs 1173 00:39:08,560 --> 00:39:08,900 do it. 1174 00:39:09,500 --> 00:39:10,220 So, it's nice. 1175 00:39:10,340 --> 00:39:11,540 But, it creates 1176 00:39:11,540 --> 00:39:12,220 some interesting stuff. 1177 00:39:12,420 --> 00:39:13,080 If you trace route, 1178 00:39:13,320 --> 00:39:14,360 you see this big, 1179 00:39:14,400 --> 00:39:15,440 hairy list of paths 1180 00:39:15,440 --> 00:39:17,060 into this weird network 1181 00:39:17,060 --> 00:39:17,820 somewhere distant 1182 00:39:17,820 --> 00:39:18,320 from where you were 1183 00:39:18,320 --> 00:39:18,880 intending to go 1184 00:39:18,880 --> 00:39:20,080 and then back out. 1185 00:39:20,240 --> 00:39:20,820 And it just makes 1186 00:39:20,820 --> 00:39:21,840 the path look crazy. 1187 00:39:22,180 --> 00:39:22,720 And that would be 1188 00:39:22,720 --> 00:39:23,260 pretty obvious. 1189 00:39:23,800 --> 00:39:24,860 So, it's time to do 1190 00:39:24,860 --> 00:39:25,960 some PTL jack moves. 1191 00:39:26,560 --> 00:39:27,500 So, we want to do this 1192 00:39:27,500 --> 00:39:28,000 because we can learn 1193 00:39:28,000 --> 00:39:28,960 to hide our devices 1194 00:39:28,960 --> 00:39:29,600 handling the traffic. 1195 00:39:29,920 --> 00:39:30,580 And a lot of you 1196 00:39:30,580 --> 00:39:31,700 who know IP tables 1197 00:39:31,700 --> 00:39:33,100 or TC or whatever 1198 00:39:33,100 --> 00:39:33,620 on Linux 1199 00:39:33,620 --> 00:39:34,360 know you can 1200 00:39:34,360 --> 00:39:35,580 mangle TTL just fine 1201 00:39:35,580 --> 00:39:36,680 at any stage of the game. 1202 00:39:36,780 --> 00:39:37,200 Pre-routing, 1203 00:39:37,340 --> 00:39:37,880 post-routing, 1204 00:39:38,080 --> 00:39:38,540 whatever. 1205 00:39:40,340 --> 00:39:40,420 The idea here 1206 00:39:40,420 --> 00:39:41,400 was to add TTL. 1207 00:39:41,980 --> 00:39:42,380 So, 1208 00:39:42,500 --> 00:39:43,700 what's this do for us? 1209 00:39:43,840 --> 00:39:44,780 It hides all of our 1210 00:39:44,780 --> 00:39:45,360 inbound paths, 1211 00:39:45,620 --> 00:39:46,060 essentially, 1212 00:39:46,220 --> 00:39:46,800 and outbound. 1213 00:39:47,100 --> 00:39:47,660 So now, 1214 00:39:47,680 --> 00:39:48,100 you don't even know 1215 00:39:48,100 --> 00:39:48,680 we're in line. 1216 00:39:49,000 --> 00:39:49,560 We've attracted 1217 00:39:49,560 --> 00:39:50,800 your entire traffic set 1218 00:39:50,800 --> 00:39:51,840 for whatever we announced 1219 00:39:51,840 --> 00:39:52,960 and you just don't see it. 1220 00:39:53,020 --> 00:39:53,400 You might see 1221 00:39:53,400 --> 00:39:53,960 higher latency 1222 00:39:53,960 --> 00:39:55,100 that are further away 1223 00:39:55,100 --> 00:39:55,440 from you 1224 00:39:55,440 --> 00:39:56,280 than you normally would be. 1225 00:39:56,560 --> 00:39:57,880 But, you don't see our hops. 1226 00:39:58,100 --> 00:39:58,860 You can't call anybody 1227 00:39:58,860 --> 00:39:59,340 about it. 1228 00:39:59,820 --> 00:40:00,500 That's the point. 1229 00:40:00,860 --> 00:40:01,820 So, without jack moves, 1230 00:40:01,980 --> 00:40:02,480 you probably can't 1231 00:40:02,480 --> 00:40:02,900 even read that. 1232 00:40:03,560 --> 00:40:04,860 But, that's 23 hops 1233 00:40:04,860 --> 00:40:05,840 from Madison 1234 00:40:05,840 --> 00:40:06,980 to New York, 1235 00:40:10,360 --> 00:40:11,340 then out limelight 1236 00:40:11,340 --> 00:40:12,760 back to switchcom group, 1237 00:40:12,900 --> 00:40:13,680 which is the ISP 1238 00:40:13,680 --> 00:40:14,340 for the wireless 1239 00:40:14,340 --> 00:40:14,900 to the building. 1240 00:40:15,840 --> 00:40:16,720 23 hops. 1241 00:40:16,880 --> 00:40:17,100 So, 1242 00:40:17,160 --> 00:40:19,040 with TTL jackery, 1243 00:40:19,840 --> 00:40:21,080 we turn to 13. 1244 00:40:22,200 --> 00:40:23,120 10 of them go away. 1245 00:40:24,080 --> 00:40:24,980 That's kind of cool. 1246 00:40:25,260 --> 00:40:26,140 So, right there, 1247 00:40:26,240 --> 00:40:27,420 the traffic disappears 1248 00:40:27,420 --> 00:40:28,160 after SAVIS 1249 00:40:28,720 --> 00:40:29,780 and then just shows up 1250 00:40:29,780 --> 00:40:30,340 in switchcom group. 1251 00:40:30,820 --> 00:40:31,560 How's that work? 1252 00:40:31,820 --> 00:40:32,680 It's 50 milliseconds 1253 00:40:32,680 --> 00:40:33,460 further away. 1254 00:40:33,680 --> 00:40:34,360 It must be MPLS, 1255 00:40:34,580 --> 00:40:34,940 they'll say. 1256 00:40:36,800 --> 00:40:37,740 Those hidden hops, 1257 00:40:37,880 --> 00:40:38,400 they don't decrement, 1258 00:40:38,540 --> 00:40:38,700 right? 1259 00:40:38,820 --> 00:40:39,680 No PHP 1260 00:40:39,680 --> 00:40:40,320 or anything 1261 00:40:40,320 --> 00:40:40,780 reverse, 1262 00:40:41,000 --> 00:40:41,120 right? 1263 00:40:41,580 --> 00:40:42,600 And that's it. 1264 00:40:42,820 --> 00:40:43,560 Now, compare 1265 00:40:44,180 --> 00:40:45,160 the unjacked path 1266 00:40:45,780 --> 00:40:46,960 to the jacked path. 1267 00:40:47,160 --> 00:40:47,920 I'm going to read this off 1268 00:40:47,920 --> 00:40:48,380 because it's probably 1269 00:40:48,380 --> 00:40:49,220 too small to see 1270 00:40:49,220 --> 00:40:49,600 there either. 1271 00:40:49,820 --> 00:40:50,820 The providers you see 1272 00:40:50,820 --> 00:40:51,500 from Madison, 1273 00:40:51,620 --> 00:40:52,420 Wisconsin perspective 1274 00:40:52,420 --> 00:40:53,740 towards DEF CON, 1275 00:40:53,860 --> 00:40:54,500 towards this place 1276 00:40:54,500 --> 00:40:56,320 is through AT&T 1277 00:40:56,320 --> 00:40:57,320 to limelight 1278 00:40:57,320 --> 00:40:58,160 to switchcom. 1279 00:40:58,960 --> 00:41:00,260 With the jack in place, 1280 00:41:00,520 --> 00:41:01,620 it's AT&T 1281 00:41:01,620 --> 00:41:02,280 to SAVIS 1282 00:41:02,280 --> 00:41:03,200 to switchcom. 1283 00:41:04,080 --> 00:41:04,860 No different, 1284 00:41:04,980 --> 00:41:05,460 no weird. 1285 00:41:05,680 --> 00:41:06,760 SAVIS is a normal ISP. 1286 00:41:07,020 --> 00:41:07,460 Switchcom, 1287 00:41:07,520 --> 00:41:08,020 you know, 1288 00:41:08,040 --> 00:41:08,720 switchcom buys 1289 00:41:08,720 --> 00:41:09,340 from those guys. 1290 00:41:09,340 --> 00:41:10,420 So, it's not unexpected 1291 00:41:10,420 --> 00:41:11,340 that they couldn't 1292 00:41:11,340 --> 00:41:11,960 go through SAVIS. 1293 00:41:12,380 --> 00:41:13,580 And why it looks that way 1294 00:41:13,580 --> 00:41:14,440 for a certain 24 1295 00:41:14,440 --> 00:41:15,220 out of a 22? 1296 00:41:15,620 --> 00:41:16,360 As a user, 1297 00:41:16,480 --> 00:41:17,100 you just don't care. 1298 00:41:17,300 --> 00:41:17,820 You're not going 1299 00:41:17,820 --> 00:41:18,560 to investigate that, 1300 00:41:18,640 --> 00:41:19,120 most likely. 1301 00:41:19,320 --> 00:41:20,360 And very few engineers 1302 00:41:20,360 --> 00:41:20,880 even would. 1303 00:41:21,540 --> 00:41:22,640 I know several of them. 1304 00:41:23,120 --> 00:41:24,100 So, now it's time 1305 00:41:24,100 --> 00:41:25,220 for Donald Zitt 1306 00:41:25,220 --> 00:41:25,960 with PILO. 1307 00:41:37,000 --> 00:41:38,080 So, we had 1308 00:41:38,080 --> 00:41:39,320 this presentation 1309 00:41:39,340 --> 00:41:40,080 the traffic is hijacked 1310 00:41:40,080 --> 00:41:41,140 and the traffic redirected 1311 00:41:41,140 --> 00:41:42,780 to our Linux box 1312 00:41:42,780 --> 00:41:43,260 in New York. 1313 00:41:43,400 --> 00:41:44,360 And let's see 1314 00:41:44,360 --> 00:41:44,900 how much data 1315 00:41:44,900 --> 00:41:46,300 did we get collected. 1316 00:41:49,760 --> 00:41:50,780 Does this mic work? 1317 00:41:50,780 --> 00:41:51,140 This mic work? 1318 00:41:51,400 --> 00:41:51,840 Oh, yeah. 1319 00:41:51,840 --> 00:41:52,060 Okay. 1320 00:41:53,820 --> 00:41:54,440 All right. 1321 00:41:56,760 --> 00:41:57,800 So, he is 1322 00:41:59,260 --> 00:42:00,140 showing LS 1323 00:42:00,140 --> 00:42:01,720 with all of these 1324 00:42:01,720 --> 00:42:02,340 wonderful things. 1325 00:42:02,880 --> 00:42:03,840 And the file 1326 00:42:03,840 --> 00:42:04,360 at the bottom 1327 00:42:04,360 --> 00:42:04,640 named 1328 00:42:04,640 --> 00:42:05,680 DEF CON dot dump. 1329 00:42:05,780 --> 00:42:05,980 Can you guys 1330 00:42:05,980 --> 00:42:06,720 see that back there? 1331 00:42:07,280 --> 00:42:07,720 Okay. 1332 00:42:07,840 --> 00:42:08,400 This is 1333 00:42:08,400 --> 00:42:09,000 about 1334 00:42:09,000 --> 00:42:09,320 the 1335 00:42:09,980 --> 00:42:10,420 eight gigabytes. 1336 00:42:10,420 --> 00:42:10,620 see that? 1337 00:42:11,160 --> 00:42:12,060 The text, right? 1338 00:42:12,100 --> 00:42:12,560 Can you read it? 1339 00:42:12,620 --> 00:42:13,060 Is it all good? 1340 00:42:13,920 --> 00:42:14,540 Not too small? 1341 00:42:14,600 --> 00:42:14,740 Okay. 1342 00:42:14,980 --> 00:42:15,300 Yeah. 1343 00:42:15,340 --> 00:42:15,620 So, it's like 1344 00:42:15,620 --> 00:42:16,220 seven gigs? 1345 00:42:16,380 --> 00:42:17,040 Do a dash. 1346 00:42:17,060 --> 00:42:17,180 Yeah. 1347 00:42:17,180 --> 00:42:17,540 It's like H. 1348 00:42:24,920 --> 00:42:25,560 LS test. 1349 00:42:26,740 --> 00:42:27,060 Yeah. 1350 00:42:27,080 --> 00:42:27,580 I know how 1351 00:42:27,580 --> 00:42:28,200 to use this. 1352 00:42:28,220 --> 00:42:28,900 This is Unix. 1353 00:42:29,060 --> 00:42:29,560 I have it 1354 00:42:29,560 --> 00:42:30,000 in high school. 1355 00:42:30,040 --> 00:42:30,420 I know this. 1356 00:42:31,920 --> 00:42:32,420 Who knows 1357 00:42:32,420 --> 00:42:33,620 the Iris GL file? 1358 00:42:33,620 --> 00:42:33,800 Whatever. 1359 00:42:33,800 --> 00:42:34,100 You got it. 1360 00:42:36,880 --> 00:42:37,760 Shut the fuck up. 1361 00:42:38,320 --> 00:42:38,640 Okay. 1362 00:42:38,980 --> 00:42:39,300 So, 1363 00:42:41,620 --> 00:42:42,420 for example, 1364 00:42:43,200 --> 00:42:43,860 right now, 1365 00:42:43,960 --> 00:42:44,380 the packets 1366 00:42:44,380 --> 00:42:45,000 are going out 1367 00:42:45,000 --> 00:42:45,580 through the 1368 00:42:46,000 --> 00:42:46,400 ETH1 1369 00:42:46,980 --> 00:42:47,580 on this 1370 00:42:47,580 --> 00:42:47,800 bug. 1371 00:42:47,980 --> 00:42:48,400 So, let me 1372 00:42:48,400 --> 00:42:49,200 back up, Alex. 1373 00:42:49,300 --> 00:42:49,980 So, what happens 1374 00:42:49,980 --> 00:42:50,980 is the routes 1375 00:42:50,980 --> 00:42:51,400 are announced 1376 00:42:51,400 --> 00:42:51,940 from a router. 1377 00:42:52,060 --> 00:42:52,660 They get to 1378 00:42:52,660 --> 00:42:53,100 that router. 1379 00:42:53,220 --> 00:42:53,800 It's static 1380 00:42:53,800 --> 00:42:54,660 over to a PC, 1381 00:42:55,200 --> 00:42:55,600 right? 1382 00:42:55,840 --> 00:42:56,240 Yep. 1383 00:42:56,700 --> 00:42:57,660 And the PC 1384 00:42:57,660 --> 00:42:58,180 is just doing 1385 00:42:58,180 --> 00:42:58,740 TCP dump 1386 00:42:58,740 --> 00:42:59,740 into writing 1387 00:42:59,740 --> 00:43:00,220 the packets 1388 00:43:00,220 --> 00:43:00,900 into the file. 1389 00:43:01,080 --> 00:43:01,400 And then it 1390 00:43:01,400 --> 00:43:01,760 comes back 1391 00:43:01,760 --> 00:43:02,220 out the PC 1392 00:43:03,580 --> 00:43:04,180 on another 1393 00:43:09,300 --> 00:43:09,520 hijacked 1394 00:43:09,520 --> 00:43:09,960 return path. 1395 00:43:10,300 --> 00:43:10,700 So, 1396 00:43:10,740 --> 00:43:11,300 go for it. 1397 00:43:11,560 --> 00:43:11,960 Right. 1398 00:43:12,040 --> 00:43:12,440 So, 1399 00:43:12,480 --> 00:43:13,400 this is your 1400 00:43:13,400 --> 00:43:13,940 traffic, 1401 00:43:13,940 --> 00:43:14,500 you know. 1402 00:43:14,560 --> 00:43:15,200 This is all 1403 00:43:15,200 --> 00:43:16,020 your packets, 1404 00:43:16,220 --> 00:43:16,740 you know. 1405 00:43:20,620 --> 00:43:21,060 Let's look 1406 00:43:21,060 --> 00:43:21,860 at port 53. 1407 00:43:22,260 --> 00:43:22,660 Yep. 1408 00:43:23,220 --> 00:43:23,620 So, 1409 00:43:23,620 --> 00:43:24,440 this is the, 1410 00:43:24,980 --> 00:43:25,380 whatever, 1411 00:43:25,520 --> 00:43:25,900 the... 1412 00:43:25,900 --> 00:43:26,280 Let's suppress 1413 00:43:26,280 --> 00:43:27,200 the IP addresses 1414 00:43:27,200 --> 00:43:27,740 for the heck 1415 00:43:27,740 --> 00:43:27,960 of it. 1416 00:43:28,080 --> 00:43:28,280 I mean, 1417 00:43:28,300 --> 00:43:28,600 those aren't 1418 00:43:28,600 --> 00:43:28,800 interesting. 1419 00:43:28,900 --> 00:43:29,120 We know 1420 00:43:29,120 --> 00:43:29,380 where they're 1421 00:43:29,380 --> 00:43:29,540 going. 1422 00:43:29,540 --> 00:43:30,060 Well, 1423 00:43:30,280 --> 00:43:31,440 I have no idea 1424 00:43:31,440 --> 00:43:31,820 how to do 1425 00:43:31,820 --> 00:43:31,980 that. 1426 00:43:36,200 --> 00:43:36,680 Let's just 1427 00:43:36,680 --> 00:43:36,920 look through 1428 00:43:36,920 --> 00:43:37,240 the file, 1429 00:43:37,320 --> 00:43:37,460 you know. 1430 00:43:37,520 --> 00:43:38,700 Let's do 1431 00:43:38,700 --> 00:43:39,920 some graphing 1432 00:43:39,920 --> 00:43:40,840 around and see 1433 00:43:40,840 --> 00:43:41,480 what we can 1434 00:43:41,480 --> 00:43:41,840 find. 1435 00:43:44,540 --> 00:43:44,980 So, 1436 00:43:45,000 --> 00:43:45,260 we found 1437 00:43:45,260 --> 00:43:45,840 some MIME 1438 00:43:45,840 --> 00:43:46,060 attachments 1439 00:43:46,060 --> 00:43:46,700 coming in 1440 00:43:46,700 --> 00:43:46,940 earlier 1441 00:43:46,940 --> 00:43:47,940 on POP 1442 00:43:47,940 --> 00:43:48,360 with no 1443 00:43:48,360 --> 00:43:48,660 encryption. 1444 00:43:50,220 --> 00:43:50,780 That was 1445 00:43:50,780 --> 00:43:51,000 cool. 1446 00:43:55,060 --> 00:43:55,500 Expected, 1447 00:43:55,560 --> 00:43:55,740 though. 1448 00:43:57,160 --> 00:43:57,600 Well, 1449 00:43:57,600 --> 00:43:58,000 there are 1450 00:43:58,000 --> 00:43:58,360 some... 1451 00:43:58,940 --> 00:43:59,920 The sessions 1452 00:43:59,920 --> 00:44:00,720 that you see 1453 00:44:00,720 --> 00:44:01,400 here is 1454 00:44:01,400 --> 00:44:02,380 only one-way 1455 00:44:02,380 --> 00:44:02,720 traffic, 1456 00:44:02,840 --> 00:44:03,220 but it is 1457 00:44:03,220 --> 00:44:03,880 fairly trivial 1458 00:44:03,880 --> 00:44:04,560 to see, 1459 00:44:04,680 --> 00:44:05,600 to make it 1460 00:44:05,600 --> 00:44:06,160 intercept 1461 00:44:06,160 --> 00:44:07,580 packets and 1462 00:44:07,580 --> 00:44:08,780 convert this 1463 00:44:08,780 --> 00:44:09,180 one-way 1464 00:44:09,180 --> 00:44:09,560 conversation 1465 00:44:09,560 --> 00:44:09,940 into 1466 00:44:09,940 --> 00:44:10,880 two-way 1467 00:44:10,880 --> 00:44:11,240 conversation. 1468 00:44:11,600 --> 00:44:12,500 We just didn't 1469 00:44:12,500 --> 00:44:13,060 want to deal 1470 00:44:13,060 --> 00:44:14,140 with the law 1471 00:44:14,140 --> 00:44:14,560 enforcement 1472 00:44:14,560 --> 00:44:15,360 looking at us 1473 00:44:15,360 --> 00:44:16,060 and looking 1474 00:44:16,060 --> 00:44:16,600 at the passwords 1475 00:44:16,600 --> 00:44:17,320 that we would 1476 00:44:17,320 --> 00:44:17,820 have captured. 1477 00:44:18,260 --> 00:44:18,820 So, 1478 00:44:18,820 --> 00:44:19,780 in our case, 1479 00:44:19,900 --> 00:44:20,300 we are not 1480 00:44:20,300 --> 00:44:20,920 capturing the 1481 00:44:20,920 --> 00:44:21,280 passwords, 1482 00:44:21,760 --> 00:44:22,400 but we are 1483 00:44:22,400 --> 00:44:23,100 capturing... 1484 00:44:23,100 --> 00:44:24,120 If you 1485 00:44:24,640 --> 00:44:25,360 checked your 1486 00:44:25,360 --> 00:44:25,800 e-mail 1487 00:44:25,800 --> 00:44:27,160 over wireless 1488 00:44:27,160 --> 00:44:27,780 and it was 1489 00:44:27,780 --> 00:44:28,200 not encrypted, 1490 00:44:28,620 --> 00:44:29,360 we see it. 1491 00:44:29,900 --> 00:44:30,460 In New 1492 00:44:30,460 --> 00:44:30,680 York? 1493 00:44:30,940 --> 00:44:31,180 Yeah. 1494 00:44:31,920 --> 00:44:32,360 That's 1495 00:44:32,360 --> 00:44:32,540 important. 1496 00:44:34,600 --> 00:44:35,040 What? 1497 00:44:36,580 --> 00:44:37,020 Yes, 1498 00:44:37,080 --> 00:44:37,380 we could. 1499 00:44:38,020 --> 00:44:38,460 Sure. 1500 00:44:41,900 --> 00:44:42,560 This is 1501 00:44:42,560 --> 00:44:42,960 actually going 1502 00:44:42,960 --> 00:44:43,240 through the 1503 00:44:43,240 --> 00:44:43,600 7-gig 1504 00:44:43,600 --> 00:44:43,980 file on 1505 00:44:43,980 --> 00:44:44,180 disk, 1506 00:44:44,300 --> 00:44:44,600 so it's a 1507 00:44:50,480 --> 00:44:51,060 little 1508 00:44:51,060 --> 00:44:52,360 with hijacking 1509 00:44:52,360 --> 00:44:52,660 of port 1510 00:44:52,660 --> 00:44:53,060 53, 1511 00:44:53,340 --> 00:44:53,920 essentially, 1512 00:44:54,000 --> 00:44:54,720 if you 1513 00:44:54,720 --> 00:44:55,280 have looked 1514 00:44:55,280 --> 00:44:55,660 at Google 1515 00:44:55,660 --> 00:44:56,340 and if 1516 00:44:56,340 --> 00:44:56,500 we 1517 00:44:56,500 --> 00:44:57,020 bother 1518 00:44:57,020 --> 00:44:57,220 to 1519 00:44:57,220 --> 00:44:57,460 settle 1520 00:44:57,460 --> 00:44:57,760 DNS 1521 00:44:57,760 --> 00:44:58,620 spoof... 1522 00:44:59,540 --> 00:45:00,300 You can 1523 00:45:02,280 --> 00:45:03,000 see some 1524 00:45:03,000 --> 00:45:03,180 actual 1525 00:45:03,180 --> 00:45:03,500 text. 1526 00:45:03,500 --> 00:45:04,160 Who knows 1527 00:45:04,160 --> 00:45:04,800 regexps? 1528 00:45:04,800 --> 00:45:05,060 You want 1529 00:45:05,060 --> 00:45:05,480 to tell us 1530 00:45:05,480 --> 00:45:05,640 some? 1531 00:45:06,680 --> 00:45:07,260 Yeah. 1532 00:45:22,000 --> 00:45:22,580 So, 1533 00:45:24,860 --> 00:45:25,140 we could 1534 00:45:25,140 --> 00:45:25,640 have... 1535 00:45:25,640 --> 00:45:27,160 Since we 1536 00:45:27,160 --> 00:45:27,780 control this 1537 00:45:27,780 --> 00:45:28,080 traffic, 1538 00:45:28,200 --> 00:45:28,640 the traffic 1539 00:45:28,640 --> 00:45:29,480 comes 1540 00:45:29,480 --> 00:45:30,700 through us, 1541 00:45:31,260 --> 00:45:32,200 whatever the 1542 00:45:32,200 --> 00:45:33,080 responses for 1543 00:45:33,080 --> 00:45:33,460 Google, 1544 00:45:34,040 --> 00:45:34,600 whatever, 1545 00:45:34,920 --> 00:45:35,980 we could have 1546 00:45:35,980 --> 00:45:36,980 returned any 1547 00:45:36,980 --> 00:45:38,000 IP address that 1548 00:45:38,000 --> 00:45:38,400 we really 1549 00:45:38,400 --> 00:45:38,820 wanted. 1550 00:45:39,280 --> 00:45:39,840 So, 1551 00:45:40,000 --> 00:45:41,160 forget the 1552 00:45:41,160 --> 00:45:41,700 race conditions. 1553 00:45:42,800 --> 00:45:43,360 Yes. 1554 00:45:45,500 --> 00:45:46,340 If you 1555 00:45:46,340 --> 00:45:46,920 trust DNS, 1556 00:45:47,280 --> 00:45:47,640 and you 1557 00:45:47,640 --> 00:45:48,120 probably do, 1558 00:45:48,280 --> 00:45:49,720 the responses 1559 00:45:49,720 --> 00:45:50,200 you get to 1560 00:45:50,200 --> 00:45:50,640 an A or 1561 00:45:50,640 --> 00:45:51,120 a C name 1562 00:45:51,120 --> 00:45:51,840 are going 1563 00:45:51,840 --> 00:45:52,080 to be 1564 00:45:52,080 --> 00:45:52,560 whatever we 1565 00:45:52,560 --> 00:45:52,760 want. 1566 00:45:52,760 --> 00:45:53,360 So, 1567 00:45:53,860 --> 00:45:54,120 that could 1568 00:45:54,120 --> 00:45:54,300 work. 1569 00:45:55,520 --> 00:45:56,080 So, there's 1570 00:45:56,080 --> 00:45:56,560 a lot of work 1571 00:45:56,560 --> 00:45:57,200 involved in 1572 00:45:57,560 --> 00:45:58,120 EtherCap and 1573 00:45:58,120 --> 00:45:58,480 things that 1574 00:45:58,480 --> 00:45:59,280 do easy 1575 00:45:59,820 --> 00:46:00,520 man-in-the-middling 1576 00:46:00,520 --> 00:46:00,860 work. 1577 00:46:01,020 --> 00:46:01,560 We couldn't 1578 00:46:01,560 --> 00:46:01,780 get the 1579 00:46:01,780 --> 00:46:02,080 dependencies 1580 00:46:02,080 --> 00:46:02,560 met for 1581 00:46:02,560 --> 00:46:02,800 some of 1582 00:46:02,800 --> 00:46:03,140 that shit 1583 00:46:03,140 --> 00:46:04,240 and gave up 1584 00:46:04,240 --> 00:46:04,440 on a 1585 00:46:04,440 --> 00:46:04,800 development 1586 00:46:04,800 --> 00:46:05,160 box. 1587 00:46:05,440 --> 00:46:05,740 So, 1588 00:46:05,800 --> 00:46:06,360 don't sue 1589 00:46:06,360 --> 00:46:06,560 us. 1590 00:46:07,640 --> 00:46:08,000 But, 1591 00:46:08,080 --> 00:46:08,420 this is 1592 00:46:08,420 --> 00:46:08,600 the proof 1593 00:46:08,600 --> 00:46:08,980 of concept. 1594 00:46:09,240 --> 00:46:09,480 So, 1595 00:46:10,520 --> 00:46:11,080 don't tell us 1596 00:46:11,080 --> 00:46:11,520 IPs you 1597 00:46:11,520 --> 00:46:11,720 want to 1598 00:46:11,720 --> 00:46:12,260 have hijacked. 1599 00:46:12,300 --> 00:46:12,760 Don't tell us 1600 00:46:12,760 --> 00:46:12,920 what you 1601 00:46:12,920 --> 00:46:13,120 want us 1602 00:46:13,120 --> 00:46:13,260 to work 1603 00:46:13,260 --> 00:46:13,420 on. 1604 00:46:13,520 --> 00:46:13,980 We can't. 1605 00:46:14,180 --> 00:46:14,580 You can 1606 00:46:14,580 --> 00:46:14,880 figure it 1607 00:46:14,880 --> 00:46:15,060 out. 1608 00:46:15,740 --> 00:46:16,220 Probably take 1609 00:46:16,220 --> 00:46:16,460 care of 1610 00:46:16,460 --> 00:46:16,480 it 1611 00:46:16,480 --> 00:46:16,700 yourself. 1612 00:46:19,100 --> 00:46:19,400 Thanks.