1 00:00:09,960 --> 00:00:18,220 Straight to the tool. No slides. Fuck it. Test, test. I'm Beetle. I'm with the Schmoo Group. 2 00:00:18,420 --> 00:00:23,040 This is Bruce Potter with the Schmoo Group, founder of the Schmoo Group. And if you caught 3 00:00:23,040 --> 00:00:29,840 his cool blue sniff tool or front end to Red Fang the other day, make sure you get 4 00:00:29,840 --> 00:00:33,520 to the website and help him out with some Mac addresses for the blue sniff tool. 5 00:00:34,600 --> 00:00:38,800 Disclaimer is going to be coming up. Example hotspots set up and weaknesses. Rogue APs 6 00:00:38,800 --> 00:00:43,500 101, basically. And then a demo of Air Snarf. And then if we have time, we might tell people 7 00:00:43,500 --> 00:00:46,000 how they could probably mitigate some sort of risk here. 8 00:00:48,820 --> 00:00:52,100 Disclaimer. Behave yourself. Next slide. 9 00:00:56,420 --> 00:00:58,600 Test, test. Example hotspots set up. 10 00:00:59,460 --> 00:01:01,000 Basically, how a hotspot is set up. 11 00:01:04,260 --> 00:01:10,040 So I can turn this way, but I can't turn that way. All right. Basically, how example 12 00:01:10,040 --> 00:01:15,480 hotspots are, or any hotspot, real hotspots are, you visit the hotspot provider usually 13 00:01:15,480 --> 00:01:15,960 before you. 14 00:01:24,740 --> 00:01:27,900 Test, test. There we go. 15 00:01:29,100 --> 00:01:33,260 Basically, you visit the hotspot provider's website. Before you ever actually visit the 16 00:01:33,260 --> 00:01:36,940 hotspot, you create a username and password. In some cases, you tie this to a credit card. 17 00:01:37,840 --> 00:01:41,360 Then you visit the actual hotspot with a wireless device, either a PDA or your laptop 18 00:01:41,360 --> 00:01:47,420 with an actual Wi-Fi card in it. Power on, you associate. You get an IP from DHCP server, 19 00:01:48,860 --> 00:01:53,820 DNS, default router, all that stuff. Then when you open up a web browser, what usually 20 00:01:53,820 --> 00:01:57,620 happens is there's a local redirect. It brings up a nice little splash screen that says username 21 00:01:57,620 --> 00:01:58,120 and password. 22 00:01:58,180 --> 00:01:58,560 It brings up a nice little splash screen that says username and password. Please enter. 23 00:01:58,560 --> 00:02:02,940 Here. At that point, you're kind of authenticated to the local hotspot, and they open up a little 24 00:02:02,940 --> 00:02:06,980 hole in the firewall, or their local firewall for you, and they no longer force you to redirect 25 00:02:06,980 --> 00:02:10,780 to the splash screen. They actually let you do web browsing and that sort of stuff. There's 26 00:02:10,780 --> 00:02:15,080 usually some sort of cache or timeout value associated with the IP and MAC address, but 27 00:02:15,080 --> 00:02:20,320 for the most part, you're free to do what you want there. Remember, when you log in, 28 00:02:20,460 --> 00:02:24,480 there's back end authentication, some sort of radius server. It can be a global radius 29 00:02:24,480 --> 00:02:30,440 server that covers the entire nation, such as the case with T-Mobile, Starbucks. When 30 00:02:30,440 --> 00:02:34,760 you authenticate, remember your credit card that you gave at the beginning when you logged 31 00:02:34,760 --> 00:02:38,720 in or created your username and password is tied to that login and will be charged 32 00:02:38,720 --> 00:02:43,040 if you're doing pay-for-play or if you're doing a monthly sort of flat fee and you're 33 00:02:43,040 --> 00:02:44,420 just using it every month. 34 00:02:45,900 --> 00:02:49,140 Question is, is this secure? You guys want to answer? 35 00:02:49,460 --> 00:02:49,860 No. 36 00:02:51,880 --> 00:02:52,680 That's great, man. 37 00:02:53,720 --> 00:03:01,340 All right. Here's a little graphic foo. First, we have an access point with an SSID of good 38 00:03:01,340 --> 00:03:07,540 guy. We have our client card come in with an SSID basically set to any or default. What 39 00:03:07,540 --> 00:03:11,200 usually happens is that they associate to the SSID or the access point with the SSID 40 00:03:11,200 --> 00:03:17,900 of good guy, and their SSID effectively becomes good guy. Now, what happens here if a stronger 41 00:03:17,900 --> 00:03:21,380 or closer access point comes within range of the Wi-Fi card here? 42 00:03:21,520 --> 00:03:22,660 . . . . . . . . 43 00:03:22,680 --> 00:03:28,000 Basically, depending on what signal-to-noise ratio is in play here, they can actually be 44 00:03:28,000 --> 00:03:33,060 disassociated from the access point of good guy and re-associate to the SSID or the access 45 00:03:33,060 --> 00:03:37,620 point with the SSID of bad guy, and their SSID effectively becomes bad guy. This can 46 00:03:37,620 --> 00:03:41,560 and does happen without the user's knowledge. Now, what's really interesting is that if 47 00:03:41,560 --> 00:03:47,200 the bad guy decides to set his SSID to good guy, well, at that point, all bets are off 48 00:03:47,200 --> 00:03:49,400 because the user definitely won't know what's happening. 49 00:03:50,880 --> 00:03:54,400 So, here are some other screenshots that we took while we were over at Black Hat, and 50 00:03:54,780 --> 00:03:58,960 you have your client card in some sort of utility that shows you signal-to-noise. A 51 00:03:58,960 --> 00:04:02,880 better utility for graphing signal-to-noise, believe it or not, Net Stumbler. If you actually 52 00:04:02,880 --> 00:04:06,300 click on a MAC address under Net Stumbler, you'll actually get the signal-to-noise ratio 53 00:04:06,300 --> 00:04:07,620 in a nice little graphical format. 54 00:04:09,180 --> 00:04:14,200 Here is the hallway sitting at Black Hat and the access points there at Black Hat. As you 55 00:04:14,200 --> 00:04:17,880 can see, that's a pretty good signal. Receive sensitivity for most cards or really good 56 00:04:17,880 --> 00:04:23,500 cards around negative 68 dB. And basically, the stronger the signal from the access point 57 00:04:23,940 --> 00:04:28,500 as opposed to the noise, as you see, this is up here about negative 60 dB. As we go 58 00:04:28,500 --> 00:04:32,620 higher and higher up into less negative numbers and then positive numbers, obviously, that's 59 00:04:32,620 --> 00:04:36,860 a better signal. And the card will pick that out of the air and say, great, I'm hooked 60 00:04:36,860 --> 00:04:37,020 up. 61 00:04:38,160 --> 00:04:43,820 Well, this is our rogue access point, and we're sitting in the hallway here, and the 62 00:04:43,820 --> 00:04:45,200 guy that's sitting next to me goes, fuck! 63 00:04:48,140 --> 00:04:52,020 Because basically, what we have here is a rogue access point running at negative 30 64 00:04:52,020 --> 00:04:55,920 dB when the closest other access point in terms of a Black Hat access point is at negative 65 00:04:55,920 --> 00:05:02,120 60 dB. Just for reference, every 3 dB is basically a two times increase in power. 66 00:05:03,940 --> 00:05:09,440 We're talking about 30 dB difference here. And a little side joke here, we were at the 67 00:05:09,440 --> 00:05:13,360 racetrack last weekend, and they have this thing called sound control at the racetrack 68 00:05:13,360 --> 00:05:17,820 because the locals, well, they really don't like the race cars running around. Well, sound 69 00:05:17,880 --> 00:05:24,240 control says that the maximum sound on your car can be 103 dB. Well, one guy runs around 70 00:05:24,240 --> 00:05:27,440 and comes back off the track, and they say, they black flagged him, actually, pulled him 71 00:05:27,440 --> 00:05:33,980 off the track. He was at 109 dB. Well, you try and explain to somebody that's, well, 72 00:05:34,020 --> 00:05:39,520 like myself, a redneck that likes to race, and say, you're running at 109 dB. The max 73 00:05:39,520 --> 00:05:46,380 is 103 dB. Shit, man, it's only 6. I can fix that. Wrong. You've got to take the motor 74 00:05:46,380 --> 00:05:46,760 out of it. 75 00:05:47,880 --> 00:05:51,860 All right. Looking again here at NetStumbler, we're actually looking at the access points 76 00:05:51,860 --> 00:05:56,300 and the MAC addresses, and you see our black hat rogue access point is actually just a 77 00:05:56,300 --> 00:06:01,800 Netgear card in host AP mode. And basically, sitting there, bump the power up or anything 78 00:06:01,800 --> 00:06:05,180 like that, but the closer you are to somebody, they're basically freaking out because they've 79 00:06:05,180 --> 00:06:09,240 been bounced off of the network. It can be a graceful bounce in that you have the same 80 00:06:09,240 --> 00:06:12,420 IP address scheme, and they won't actually notice that they're moving over to another 81 00:06:12,420 --> 00:06:15,820 network. It's really nice that people can migrate from one network to another like that. 82 00:06:15,820 --> 00:06:21,160 And sometimes, or most of the times, actually, since you don't have the same IP address scheme 83 00:06:21,160 --> 00:06:23,780 or they have an ARP cache, that they don't actually recognize that they're going to the 84 00:06:23,780 --> 00:06:28,880 same default router anymore. These individuals will say, damn, I can't get to the network. 85 00:06:31,380 --> 00:06:36,180 Oh, man. Okay, this is some itchy and scratchy foo, the 86 00:06:36,180 --> 00:06:41,160 other day. Don't worry about it. Basically, I wanted to show you that regardless of where 87 00:06:41,160 --> 00:06:44,420 the actual signal is in, say, a building, if you have strong signal in a building, you 88 00:06:44,420 --> 00:06:47,500 you have marginal signal outside the building, and you say, I'm good because I have great 89 00:06:47,500 --> 00:06:50,500 signal inside my building, and nobody's going to bother me if they bring a rogue access 90 00:06:50,500 --> 00:06:53,880 point just to the exterior of my building, because it'll never overpower the signal that's 91 00:06:53,880 --> 00:06:56,160 inside the building. However, there are things called amps. 92 00:06:58,080 --> 00:07:01,680 Rogue access points. Let's talk about rogue access point 101. Basically, a rogue access 93 00:07:01,680 --> 00:07:07,160 point is an unauthorized access point. Traditionally, we're talking about corporate backdoors, or 94 00:07:07,160 --> 00:07:10,900 employees that decide they're going to fire up an access point in their office and allow 95 00:07:10,900 --> 00:07:15,580 anybody that's within range to basically get on the intranet without any type of authentication. 96 00:07:16,700 --> 00:07:20,680 Also, corporate espionage. You pay the janitor 20 bucks, he goes up into the next floor or 97 00:07:20,680 --> 00:07:25,460 the next building and drops an access point on the actual intranet for you. Cheap corporate 98 00:07:25,460 --> 00:07:29,280 espionage at that. And from that point, you simply either aim your antenna at the floor, 99 00:07:29,380 --> 00:07:33,940 and you're picking up your competitor at the next floor, or you aim the antenna at 100 00:07:33,940 --> 00:07:37,760 the building across the street, and you're picking up their network there. Thank you, 101 00:07:37,800 --> 00:07:38,260 janitor. 102 00:07:38,960 --> 00:07:39,560 Hot spots. 103 00:07:40,900 --> 00:07:44,060 Rogue access points for hot spots. Well, we're talking about denial of service for 104 00:07:44,060 --> 00:07:48,240 one. If you set up an access point, well, we actually had something not too recently 105 00:07:48,240 --> 00:07:54,520 as far as personal telco and Starbucks guys. I believe somebody was cramming somebody 106 00:07:54,520 --> 00:07:58,280 else's channel or something like that. But denial of service occurs with just regular 107 00:07:58,280 --> 00:08:02,780 Wi-Fi. But if you were actually setting this up in a protest mechanism, you could set up 108 00:08:02,780 --> 00:08:05,820 a rogue access point, and anywhere that you went for those hot spots, if you didn't like 109 00:08:05,820 --> 00:08:09,080 that hot spot provider, you just send everybody to a redirect that says, save the moose. 110 00:08:10,200 --> 00:08:10,840 Theft of users. 111 00:08:10,900 --> 00:08:14,760 User credentials. That's really what we're talking about today. And the idea is, if you 112 00:08:14,760 --> 00:08:18,900 pull up a rogue access point, and you give the same sort of splash screen for the users 113 00:08:18,900 --> 00:08:22,980 that are actually entering that hot spot provider's area, they're going to see the splash screen, 114 00:08:23,100 --> 00:08:27,460 and they're not going to know any better. Because basically, there's no authentication 115 00:08:27,460 --> 00:08:32,620 mechanism between the actual station and the actual AP. So they say, I'm on an AP, I've 116 00:08:32,620 --> 00:08:35,940 got my IP address, I've got a splash screen, it's asking me for a username and password, 117 00:08:36,160 --> 00:08:40,880 and I'm going to give it to them. AP cloning, that's kind of what we're talking about. 118 00:08:42,940 --> 00:08:47,440 Hotspot rogue AP mechanics. Okay, so how do you build a hotspot rogue access point, 119 00:08:47,540 --> 00:08:52,680 or a rogue access point in general? Basically, you're creating a competing hotspot. The access 120 00:08:52,680 --> 00:08:57,100 point can actually be another AP, and then you back in it with an actual Linux or OpenBSD 121 00:08:57,100 --> 00:09:01,940 box, whatever your flavor. Or you can actually run a card in host AP mode, and then the 122 00:09:01,940 --> 00:09:02,980 card actually becomes the AP. 123 00:09:04,420 --> 00:09:10,820 You create or modify a captive portal behind the AP. If you're familiar with NoCatAuth or YCAP or other types of 124 00:09:10,900 --> 00:09:15,780 tools that are captive portals, basically they are redirectors that bring you to a splash screen and 125 00:09:15,780 --> 00:09:19,460 request a username and password, at which point you're then authenticated and allowed through to 126 00:09:19,460 --> 00:09:24,220 the network. So you can create or modify a captive portal to instead of actually doing any back-end 127 00:09:24,220 --> 00:09:28,820 authentication or actually concerning people with actually giving them access, you instead just 128 00:09:29,460 --> 00:09:34,720 capture usernames and passwords. So you redirect the user to a splash screen, denial of service we 129 00:09:34,720 --> 00:09:39,520 talked about, saving the moose, and theft of user credentials. Now a bold attacker, somebody with 130 00:09:39,520 --> 00:09:40,880 big brass ones, they're going to be able to do that. They're going to be able to do that. They're 131 00:09:40,900 --> 00:09:47,040 going to walk straight to ground zero and actually flip open their laptop and actually fire up host AP and 132 00:09:47,040 --> 00:09:51,520 actually snarf usernames and passwords right there at the hotspot while they're drinking coffee. Somebody that's 133 00:09:51,520 --> 00:09:58,260 not so bold is going to drive by with their truck and a big antenna and either a 1 or maybe 4 watt amp if 134 00:09:58,260 --> 00:10:03,940 they've got military access and basically blast the entire hotspot as they drive by. They can either knock 135 00:10:03,940 --> 00:10:07,760 people off or they can just grab new users. They might be able to park, at which point they just go through 136 00:10:07,760 --> 00:10:10,880 the entire metropolitan area gathering new usernames and passwords from each hotspot. 137 00:10:10,900 --> 00:10:38,920 They never actually have to go inside. Air Snarf. Air Snarf is nothing special. It is a shell script. Basically what we're doing here is we're simplifying the process of setting up a rogue access point. We have host AP, HTTPD, DHTBD. We're using a NetDNS Perl module and a script that I wrote basically just as local resolving of DNS and basically an IP tables rule. It's simple example rogue access point and we're going to demonstrate it now. 138 00:10:41,600 --> 00:10:43,780 While I'm just firing this up, Bruce is going to talk about defense. 139 00:10:47,520 --> 00:10:57,920 Howdy. So here's the deal. I like to talk about defense because I like to think there's some good to be had out of all this. So if you don't want to listen to defense and you just want to think about attack, just watch what he's doing and just kind of zone me out. 140 00:10:58,820 --> 00:11:10,500 There's been a couple of talks here at Black Hat this year that have been really refined attacks, advanced and refined attacks against wireless networks. The technology and everybody sitting here kind of walks out the door and understands this stuff. 141 00:11:10,900 --> 00:11:21,760 But here's the deal. It's basically the same technology we had three or four years ago. We're just getting better as an attacker community to say, look, here's the whole thing in a package. Just pull the bow off and go rape everybody around you. Excellent. 142 00:11:23,180 --> 00:11:26,700 It's ridiculous that there's still infrastructure out there that's vulnerable to this type of thing. 143 00:11:27,400 --> 00:11:38,340 So what we need to do as the professionals, the security professional side of the world, is deploy more secure infrastructures. This problem of rogue access points is really one of authentication. 144 00:11:40,020 --> 00:11:40,880 Right now, I'm going to show you some examples. 145 00:11:40,900 --> 00:11:47,500 Two years ago, there was no reasonable way to authenticate people at the network level, at the link level. 146 00:11:47,980 --> 00:11:55,000 So what ended up happening is people punted it all the way up to the top and said, hey, the default authentication token is a web browser. 147 00:11:55,260 --> 00:11:59,200 So we'll make all these fricking web portals and drive everybody to them and take their credit card numbers. 148 00:11:59,380 --> 00:12:03,580 And we just kind of ignore all the weaknesses that are lower down and hope they don't get screwed in the process. 149 00:12:05,120 --> 00:12:08,840 So technologies have been developed, namely 802.1X. How many people have heard of it? 150 00:12:09,920 --> 00:12:10,880 How many people have deployed it? 151 00:12:11,900 --> 00:12:12,260 Excellent. 152 00:12:14,320 --> 00:12:16,480 802.1X is a link-level authentication protocol. 153 00:12:16,700 --> 00:12:19,300 I won't bore you with a talk on that right now. 154 00:12:19,480 --> 00:12:21,060 I gave a speech on it last year at Black Hat. 155 00:12:21,280 --> 00:12:23,420 It's a good starting point with lots of references and whatnot. 156 00:12:23,520 --> 00:12:24,040 Go to the website. 157 00:12:24,340 --> 00:12:25,000 There's the plug. 158 00:12:26,260 --> 00:12:30,360 802.1X gives you link-level authentication, and it allows you to do it in an extensible way. 159 00:12:30,560 --> 00:12:34,540 So you can do it with, say, just a password scheme, something that's pretty easy to deploy. 160 00:12:34,800 --> 00:12:36,980 Or you can do more complex certificate-based schemes. 161 00:12:37,160 --> 00:12:39,700 And importantly, you can do bidirectional authentication. 162 00:12:39,700 --> 00:12:41,120 This is critical. 163 00:12:41,820 --> 00:12:47,000 Right now, the problem is the access point's really worried about authenticating you or the backend application, 164 00:12:47,360 --> 00:12:49,580 but you're not authenticating anything beyond that point. 165 00:12:49,800 --> 00:12:53,040 Unless it throws up an SSL error in your browser, you don't know a damn thing's wrong. 166 00:12:53,820 --> 00:12:59,300 So 802.1X and the kind of Uber god that's coming out of 802.11i, 167 00:12:59,440 --> 00:13:04,920 which is the new wireless security specification that's got new link-level encryption and new link-level authentication, 168 00:13:05,140 --> 00:13:08,740 including 802.1X, is really going to be the future of where we're going to go 169 00:13:08,740 --> 00:13:10,500 and where these attacks are going to stop. 170 00:13:10,720 --> 00:13:13,820 If you have a corporate network today, and you have things you want to protect, 171 00:13:14,620 --> 00:13:15,420 deploy 1X. 172 00:13:15,620 --> 00:13:19,920 Deploy mutual authentication through something like TTTLS, or there's only two Ts in that, 173 00:13:20,360 --> 00:13:23,340 or some other EAP mechanism that gives you that capability. 174 00:13:24,080 --> 00:13:27,240 Otherwise, just forget about it and go home and get drunk. 175 00:13:29,160 --> 00:13:29,700 You ready? 176 00:13:30,520 --> 00:13:31,140 There you go. 177 00:13:31,800 --> 00:13:32,560 Does it fit in here? 178 00:13:32,700 --> 00:13:33,860 Nah, it doesn't fit in there. 179 00:13:33,940 --> 00:13:34,100 All right. 180 00:13:36,340 --> 00:13:37,320 Can you fly this up? 181 00:13:37,440 --> 00:13:37,680 It is. 182 00:13:43,600 --> 00:13:44,640 Stretch in here. 183 00:13:50,320 --> 00:13:55,660 All right, so basically, if you get to an actual hotspot and you see this, 184 00:13:55,720 --> 00:13:57,880 that's probably somebody experimenting with Air Snarf. 185 00:14:03,140 --> 00:14:05,440 So that's just FYI for all you here. 186 00:14:06,980 --> 00:14:11,720 What we're doing here is we're simulating a redirect. 187 00:14:12,340 --> 00:14:16,200 And basically, anything that I enter up here, and this is kind of difficult, 188 00:14:16,320 --> 00:14:17,660 because I don't have it locally displayed here. 189 00:14:21,680 --> 00:14:24,100 But if I go into anywhere, Christ. 190 00:14:27,440 --> 00:14:32,740 If I go to ESPN or I go to any other type of site, and oh, that's why I created these buttons. 191 00:14:32,900 --> 00:14:33,500 Yeah, yeah. 192 00:14:34,320 --> 00:14:35,420 CNN or something like that. 193 00:14:35,420 --> 00:14:38,400 Basically, I'm just getting the same page over and over and over, just like a local redirect. 194 00:14:40,120 --> 00:14:41,460 We enter our username and password. 195 00:14:47,040 --> 00:14:47,980 And then we log in. 196 00:14:48,380 --> 00:14:48,880 Yeah, yeah. 197 00:14:51,960 --> 00:14:53,100 So we get an error message. 198 00:14:53,260 --> 00:14:54,660 Usually, this is what the error message will be. 199 00:14:54,740 --> 00:14:55,600 The network's not available. 200 00:14:55,820 --> 00:14:56,400 Please try again. 201 00:14:56,860 --> 00:14:58,280 Give me another username and password. 202 00:15:01,340 --> 00:15:03,720 Now, what we can do is we can actually switch this around. 203 00:15:03,720 --> 00:15:07,720 So we all know with Apache, we can do virtual hosting. 204 00:15:08,120 --> 00:15:16,940 So not only are we doing, say, something for just this URL, but we can dynamically change it. 205 00:15:17,040 --> 00:15:22,480 So let's say we don't want to actually give people the local redirect or the AirSnarf redirect. 206 00:15:22,840 --> 00:15:31,760 We want to do something like if anybody goes to PayPal, we give them a PayPal logo and a username and password prompt. 207 00:15:36,260 --> 00:15:37,200 The same thing applies. 208 00:15:37,980 --> 00:15:42,020 Like I said, we can do it for another popular site, Hotmail. 209 00:15:42,820 --> 00:15:45,580 And people are going to say, username, password, Hotmail prompt, yeah. 210 00:15:45,760 --> 00:15:46,840 Or I just got disconnected. 211 00:15:47,040 --> 00:15:50,340 In some cases, these people are just going to be disconnected from somebody firing up a rogue access point. 212 00:15:50,660 --> 00:15:54,660 And the next site that they're going to try and visit, or maybe even they were in the middle of a Hotmail session, 213 00:15:54,940 --> 00:15:56,920 the next time they pop up, it's going to say username and password. 214 00:15:57,160 --> 00:15:59,740 And you can make these webpages really pretty and convincing. 215 00:15:59,920 --> 00:16:01,020 These are kind of dumb. 216 00:16:02,160 --> 00:16:02,480 But... 217 00:16:03,920 --> 00:16:08,560 Now let's say you actually wanted to do something like Starbucks. 218 00:16:09,460 --> 00:16:10,260 Do we have that there? 219 00:16:12,360 --> 00:16:14,720 So we pull up the URL for a Starbucks T-Mobile site. 220 00:16:14,840 --> 00:16:16,920 And somebody's going to look at that and they're going to say, username, password, sure. 221 00:16:19,020 --> 00:16:21,040 The idea, though, is that you can actually use this for good. 222 00:16:22,060 --> 00:16:28,840 Let's say you're a government person and you're interested in finding out where the local bad guys or terrorists 223 00:16:28,840 --> 00:16:31,660 are actually doing their coffee drinking and that sort of thing. 224 00:16:31,660 --> 00:16:34,100 And you want to grab their username and passwords while they're on the internet. 225 00:16:34,660 --> 00:16:35,680 Yeah, we got something for that. 226 00:16:37,160 --> 00:16:42,740 So every time they go to Slashdot, now they log in at their local Al-Qaeda coffee joint. 227 00:16:45,380 --> 00:16:46,100 Where is that? 228 00:16:52,480 --> 00:16:53,760 There we go. Al-Qaeda coffee. 229 00:16:55,340 --> 00:16:57,220 Every time they log in here... 230 00:16:58,900 --> 00:16:59,260 Osama. 231 00:17:04,300 --> 00:17:06,700 We're going to grab a username and password and give them a little message. 232 00:17:07,080 --> 00:17:10,320 Now, let me see if I can't move to one of the other screens. 233 00:17:12,600 --> 00:17:13,340 Give me a second. 234 00:17:14,400 --> 00:17:16,040 I'll show you where the actual passwords are stored. 235 00:17:17,320 --> 00:17:19,960 Now, in one version of AirSnarf, we've got a mail to root. 236 00:17:20,180 --> 00:17:24,660 So obviously you're running this on your local box, urroot, and you can look at everything there. 237 00:17:28,940 --> 00:17:31,420 In this case, we actually have Apache. 238 00:17:31,420 --> 00:17:35,360 We're running it just with a log sent out, and it's in CSV format. 239 00:17:35,620 --> 00:17:37,580 So later on, and it rotates the logs, too. 240 00:17:37,640 --> 00:17:40,820 Each time you fire up AirSnarf, it rotates the logs so that you have just this running list of logs. 241 00:17:42,160 --> 00:17:45,280 So we've actually got somebody logging into CNN, username and password, 242 00:17:45,440 --> 00:17:47,440 and Osama apparently likes boys. 243 00:17:47,900 --> 00:17:48,540 Bring it on. 244 00:17:50,140 --> 00:17:50,680 All right. 245 00:17:51,800 --> 00:17:53,380 Here's the interesting point of all of this. 246 00:17:53,520 --> 00:17:54,680 You can do this with a laptop. 247 00:17:55,020 --> 00:17:56,240 And you can do this with HostAP. 248 00:18:05,140 --> 00:18:06,400 That's what it's running on right now. 249 00:18:11,360 --> 00:18:16,580 This is right now running on a Zorus, which means this is my rogue access point. 250 00:18:23,280 --> 00:18:29,980 Basically, I can go into a Starbucks anywhere in the nation, put it in my pocket, turn it on, order my coffee, 251 00:18:29,980 --> 00:18:32,600 and walk out with my coffee and my usernames and passwords. 252 00:18:41,500 --> 00:18:43,340 That's what you got the recharger in the car for, man. 253 00:18:46,540 --> 00:18:48,200 Let's get back to the slides real quick. 254 00:18:48,560 --> 00:18:49,360 We'll wrap this up. 255 00:18:55,700 --> 00:18:56,060 Damn. 256 00:19:04,100 --> 00:19:04,860 Don't do it. 257 00:19:05,180 --> 00:19:06,040 God, no. 258 00:19:09,900 --> 00:19:11,020 And you guys have seen this. 259 00:19:11,080 --> 00:19:12,500 Replay, replay, replay, replay. 260 00:19:17,680 --> 00:19:20,820 Bruce talked about defense strategies, other defense strategies that we'd just like to recommend. 261 00:19:21,260 --> 00:19:23,860 For the guys that are actually running hotspots, local AP awareness. 262 00:19:24,080 --> 00:19:27,320 And individuals that are in corporations that are concerned about people setting up rogue access points 263 00:19:27,320 --> 00:19:29,960 and directing usernames and passwords to corporate credentials. 264 00:19:29,960 --> 00:19:33,520 What you want to do is be aware of the local access points. 265 00:19:33,720 --> 00:19:34,680 Be aware of your MAC addresses. 266 00:19:34,840 --> 00:19:36,120 Be aware of the actual access points. 267 00:19:36,260 --> 00:19:38,260 Yes, you can fake MAC addresses. 268 00:19:38,600 --> 00:19:41,960 Yes, you can run around with fake AP even and freak out people that are running like, you know, 269 00:19:41,960 --> 00:19:43,500 Air Magna, Air Defense, or something like that. 270 00:19:44,500 --> 00:19:45,740 Another thing is customer education. 271 00:19:46,280 --> 00:19:46,820 That's key. 272 00:19:47,040 --> 00:19:50,340 You have to make your users aware that this threat exists. 273 00:19:50,880 --> 00:19:53,900 Anybody else that's out there at an actual Starbucks, they don't know that this can happen to them. 274 00:19:54,000 --> 00:19:56,560 So they're just going to walk in there and be vulnerable to something like this. 275 00:19:57,080 --> 00:19:58,460 One-time authentication mechanisms. 276 00:19:59,100 --> 00:20:03,000 I don't know if it's true, but at one point, the rumor was that McDonald's and their hotspots, 277 00:20:03,080 --> 00:20:05,680 they were going to set it up so that when you actually ordered your Big Mac, 278 00:20:06,000 --> 00:20:08,100 for an extra buck, you could get, like, Wi-Fi access. 279 00:20:08,260 --> 00:20:11,040 And at the bottom of your receipt, it would print, like, a little pin that you would use. 280 00:20:11,240 --> 00:20:13,860 Just like when you go up to the gas station and you get, like, a full tank of gas, 281 00:20:13,960 --> 00:20:16,120 you pay an extra buck, and they give you, like, a car wash. 282 00:20:16,240 --> 00:20:17,640 And you get a one-time authentication for that. 283 00:20:17,920 --> 00:20:18,740 Well, it's the same thing. 284 00:20:19,000 --> 00:20:22,640 If you use one-time authentication here, and you're only charging a buck for the actual access, 285 00:20:23,040 --> 00:20:27,880 if somebody actually does grab the actual pin here for authentication purposes, what are you out? 286 00:20:27,960 --> 00:20:28,440 You're out of business. 287 00:20:28,460 --> 00:20:28,700 You're out of buck. 288 00:20:28,780 --> 00:20:30,880 You're out of buck, or the customer's out of buck. 289 00:20:32,380 --> 00:20:36,120 My personal belief is that for hotspots, you should be charging for hotspot access. 290 00:20:36,460 --> 00:20:38,840 It's bad enough you're charging me $5 for a cup of coffee. 291 00:20:38,920 --> 00:20:40,100 Now you want to charge me, like, five bucks. 292 00:20:45,080 --> 00:20:49,700 What we're talking about here is that Wi-Fi access should be a value-added feature to your business. 293 00:20:49,860 --> 00:20:53,020 And it's going to attract people there, and they're going to sit there, and they're going to buy more coffee. 294 00:20:53,100 --> 00:20:56,440 They're going to buy more little bagels and donuts and all that other sort of... 295 00:21:01,260 --> 00:21:01,620 Yeah! 296 00:21:03,680 --> 00:21:08,760 And the idea is that you don't actually need to charge for it in order to actually make up your losses, 297 00:21:08,880 --> 00:21:10,120 because they're really not that big. 298 00:21:11,560 --> 00:21:12,380 Here are some links. 299 00:21:13,040 --> 00:21:15,100 Airsnarf will be at airsnarf.shmoo.com. 300 00:21:15,260 --> 00:21:19,600 Right there, there's a placeholder there. 301 00:21:21,880 --> 00:21:25,120 But here, I'll show you the website, actually, in existence in a minute. 302 00:21:25,360 --> 00:21:27,060 Host AP, there's a link for Host AP. 303 00:21:27,060 --> 00:21:29,640 Some people think that Host AP is hard to set up. 304 00:21:29,680 --> 00:21:33,100 For Red Hat, there's actually a kernel or an RPM that you can set up for the kernel. 305 00:21:33,200 --> 00:21:34,260 So it's just an RPM command. 306 00:21:35,200 --> 00:21:38,380 If you're looking for hotspots, www.hotspotlist.com. 307 00:21:38,860 --> 00:21:42,400 Other wireless portal software, Personal Telco has a list of wireless portal software. 308 00:21:42,540 --> 00:21:45,520 So if you're not interested in, like, using Airsnarf for your purposes, 309 00:21:45,740 --> 00:21:49,080 you can go grab yourself some other portal software and try and modify it for your purposes. 310 00:21:52,520 --> 00:21:54,260 I actually want to underscore that. 311 00:21:54,900 --> 00:21:57,040 You know, this has all been a security talk so far. 312 00:21:57,040 --> 00:21:59,300 And, like, how to subvert portals and things of that nature. 313 00:21:59,640 --> 00:22:03,280 Anyone that's actually set up a wireless portal, there's some software out there that people have been using. 314 00:22:03,480 --> 00:22:06,420 Things like Ycap and NoCat and things of that nature. 315 00:22:06,620 --> 00:22:10,380 This actually makes a dandy little wireless portal if you're into setting that kind of thing up. 316 00:22:10,620 --> 00:22:11,580 It's pretty straightforward. 317 00:22:12,180 --> 00:22:12,920 Works great. 318 00:22:13,000 --> 00:22:14,700 Has all the redirections, virtuals built in. 319 00:22:14,820 --> 00:22:17,840 I mean, this is the good use and not the evil use. 320 00:22:18,080 --> 00:22:20,040 So, you know, whatnot. 321 00:22:20,240 --> 00:22:20,700 Try it out. 322 00:22:21,600 --> 00:22:23,260 The website basically looks like that. 323 00:22:23,360 --> 00:22:24,860 There's a link for the actual presentation. 324 00:22:25,440 --> 00:22:27,020 There's the actual tarpaulin. 325 00:22:27,020 --> 00:22:28,100 There's a tarball for Red Hat Linux 9. 326 00:22:28,700 --> 00:22:30,420 We did that for the masses there. 327 00:22:30,840 --> 00:22:34,360 And if you really want to just mess around with your Zorus, 328 00:22:34,460 --> 00:22:36,400 and I'm telling you, it takes a little bit of work to actually get it done, 329 00:22:36,540 --> 00:22:39,880 but we've actually put a tarball up there for the Zorus version, 330 00:22:40,040 --> 00:22:43,720 and we've actually cross-compiled dbcpd for the Zorus so that you don't have to. 331 00:22:45,180 --> 00:22:45,880 Thank you very much. 332 00:22:45,980 --> 00:22:47,040 Well, actually, any questions? 333 00:22:47,680 --> 00:22:48,940 We've got about five minutes, I think. 334 00:22:49,080 --> 00:22:49,780 Goons, five? 335 00:22:51,020 --> 00:22:51,380 All right. 336 00:22:51,480 --> 00:22:52,340 You fire it. 337 00:22:52,960 --> 00:22:53,320 Yes. 338 00:23:02,020 --> 00:23:02,820 Go ahead. 339 00:23:02,900 --> 00:23:03,900 Portable rogue access point. 340 00:23:04,040 --> 00:23:04,460 No, sir. 341 00:23:04,540 --> 00:23:05,200 You're okay. 342 00:23:08,120 --> 00:23:12,480 For your portable rogue access point, do you use any amplification for the signal 343 00:23:12,480 --> 00:23:16,560 in order to stomp out Starbucks? 344 00:23:18,160 --> 00:23:20,780 You can use an amp and it's going to stomp over somebody. 345 00:23:20,960 --> 00:23:21,800 There's no doubt about it. 346 00:23:22,560 --> 00:23:25,500 It's also helpful to send de-authentication packets to the clients 347 00:23:25,500 --> 00:23:26,960 to get them to kick the hell off the preview. 348 00:23:26,960 --> 00:23:28,360 That's the previous access point. 349 00:23:28,500 --> 00:23:31,800 I believe there's a tool that was presented earlier today or yesterday that did that. 350 00:23:32,460 --> 00:23:35,960 That could be integrated in pretty effectively to get people to just bounce forcibly. 351 00:23:36,940 --> 00:23:39,100 Other questions while the din is rising? 352 00:23:39,600 --> 00:23:40,260 Yes, sir. 353 00:23:40,260 --> 00:23:41,760 All the way in the back because I'm looking for a challenge. 354 00:23:45,760 --> 00:23:46,700 Any other questions? 355 00:23:49,000 --> 00:23:49,480 Yes. 356 00:23:49,560 --> 00:23:49,880 Yes. 357 00:23:50,440 --> 00:23:54,560 What about access points that use SSL for authentication on their splotch pastries? 358 00:23:54,940 --> 00:23:55,360 All right. 359 00:23:55,360 --> 00:23:59,580 Here's the crazy thing is that when the user actually logs in the first time, 360 00:23:59,600 --> 00:24:01,560 sometimes they're redirected to an HTTPS site. 361 00:24:02,460 --> 00:24:06,100 If they're really concerned and they actually are paying attention to the lock icon, 362 00:24:06,380 --> 00:24:10,460 you could create an entire SSL-based Apache website, 363 00:24:10,600 --> 00:24:14,840 but I'm saying it's not that difficult to just trick people into actually authenticating right with you. 364 00:24:14,920 --> 00:24:16,400 They're not going to pay attention to the lock. 365 00:24:17,560 --> 00:24:24,260 Well, you said a lot of good things about 802.1X, but in HostAP Demon, 366 00:24:24,260 --> 00:24:28,980 the user end demon, there is actually a support for little authentication server, 367 00:24:29,120 --> 00:24:31,320 which can obviously support 802.1X. 368 00:24:31,580 --> 00:24:36,380 So do you think you will implement fake in 802.1X authentication, 369 00:24:36,620 --> 00:24:40,480 at least for EAP MD5 or something like that in the future version? 370 00:24:41,020 --> 00:24:42,620 Oh, in the future version of Ericsson? 371 00:24:42,660 --> 00:24:48,440 I'll have to trick out the question here is basically there are certain 1X authentication mechanisms 372 00:24:48,440 --> 00:24:49,540 that are only one way. 373 00:24:49,620 --> 00:24:51,940 Just because you do 1X doesn't mean you have bidirectional authentication. 374 00:24:52,400 --> 00:24:54,240 So if people are raising the bar, 375 00:24:54,260 --> 00:24:57,960 and using unidirectional authentication, i.e. all they're doing is verifying the client, 376 00:24:58,000 --> 00:25:00,760 the client isn't verifying the network, you can still spoof that. 377 00:25:00,980 --> 00:25:06,120 So the EAP MD5 mechanism is basically a challenge response, 378 00:25:06,300 --> 00:25:09,400 and you can just respond back with, yeah, that was a good password, welcome to the network. 379 00:25:09,880 --> 00:25:13,960 So yeah, that's something that I think as we see the demand, we'll get integrated in. 380 00:25:13,960 --> 00:25:16,840 It looks like one line of code, and that's that basically. 381 00:25:16,860 --> 00:25:17,180 Yeah. 382 00:25:17,300 --> 00:25:19,720 What I've also considered as far as a future version of Ericsson, 383 00:25:19,760 --> 00:25:23,360 if we were going to work on it, is the idea of actually integrating the de-auth portion, 384 00:25:23,360 --> 00:25:26,300 and actually bumping people off of the wireless network, or something like AirJack. 385 00:25:26,540 --> 00:25:30,800 So you can combine this with other different types of utilities, certainly. 386 00:25:31,700 --> 00:25:32,640 Any other questions? 387 00:25:34,160 --> 00:25:36,140 What about the amplification issues? 388 00:25:36,280 --> 00:25:41,060 You said that in order to be a rogue point, you need to be much more powerful than the original one. 389 00:25:41,620 --> 00:25:46,340 Is it something that comes out of the books, or is there anything you should apply for that? 390 00:25:48,280 --> 00:25:52,020 I think the question is why do you need to be stronger than the other access point? 391 00:25:53,360 --> 00:25:54,300 How do you actually amplify? 392 00:25:54,440 --> 00:25:58,260 Well, in some cases, the cards actually support bumping up from their normal transmission rate, 393 00:25:58,340 --> 00:25:59,520 or transmission power rate. 394 00:26:01,340 --> 00:26:03,400 The Cisco cards are obviously an example. 395 00:26:03,560 --> 00:26:04,900 They can run at 100 milliwatts. 396 00:26:04,900 --> 00:26:07,640 The Sineo cards, they run at 200 milliwatts. 397 00:26:07,840 --> 00:26:11,120 Normal access points are usually, in the cases of the commercial ones, 398 00:26:11,200 --> 00:26:15,460 they're using Orinoco AP2000s, which are only running at about 30 milliwatts per card. 399 00:26:15,700 --> 00:26:19,140 Nice cards, nice access point, but if you show up with a Cisco 352, 400 00:26:19,380 --> 00:26:22,040 you've got 100 milliwatts right there, and you're obviously higher. 401 00:26:22,040 --> 00:26:24,880 If you go with a Sineo 200 milliwatt, then you're obviously higher. 402 00:26:25,100 --> 00:26:30,140 If you use an Orinoco and then take a pigtail off the Orinoco cable into a 500 milliwatt amp 403 00:26:30,140 --> 00:26:34,580 and then straight onto an ATB Omni, then you're obviously going to overpower the local hotspot. 404 00:26:35,660 --> 00:26:36,340 You're right. 405 00:26:38,280 --> 00:26:42,840 Hey, I was wondering, is there any possibility of doing a true man-in-the-middle attack 406 00:26:42,840 --> 00:26:46,940 by spoofing the MAC address of the default router that they thought they were connecting to 407 00:26:46,940 --> 00:26:51,160 so that you could maintain a connection and they would never realize they'd been hijacked 408 00:26:51,160 --> 00:26:52,260 and you could sniff their traffic? 409 00:26:52,500 --> 00:26:56,160 Yes. All the nice tricks that you might have seen at Black Hat 410 00:26:56,160 --> 00:26:59,280 when the guys from Italy were talking about EaterCap and man-in-the-middle attacks, 411 00:26:59,500 --> 00:27:01,860 all those things apply here on the wireless network as well, 412 00:27:01,980 --> 00:27:04,040 as long as you can associate to the local access point. 413 00:27:04,200 --> 00:27:09,740 In fact, at Black Hat, they were telling everybody to make sure they put static ARP entries in for the default router. 414 00:27:11,600 --> 00:27:14,380 We're done here. Thank you very much, and if you have any other questions, see us. 415 00:27:14,820 --> 00:27:17,220 Make sure you clear on out of here as fast as you can. 416 00:27:17,260 --> 00:27:19,360 We'll go with you, and we'll be outside if you have questions.