Straight to the tool. No slides. Fuck it. Test, test. I'm Beetle. I'm with the Schmoo Group. This is Bruce Potter with the Schmoo Group, founder of the Schmoo Group. And if you caught his cool blue sniff tool or front end to Red Fang the other day, make sure you get to the website and help him out with some Mac addresses for the blue sniff tool. Disclaimer is going to be coming up. Example hotspots set up and weaknesses. Rogue APs 101, basically. And then a demo of Air Snarf. And then if we have time, we might tell people how they could probably mitigate some sort of risk here. Disclaimer. Behave yourself. Next slide. Test, test. Example hotspots set up. Basically, how a hotspot is set up. So I can turn this way, but I can't turn that way. All right. Basically, how example hotspots are, or any hotspot, real hotspots are, you visit the hotspot provider usually before you. Test, test. There we go. Basically, you visit the hotspot provider's website. Before you ever actually visit the hotspot, you create a username and password. In some cases, you tie this to a credit card. Then you visit the actual hotspot with a wireless device, either a PDA or your laptop with an actual Wi-Fi card in it. Power on, you associate. You get an IP from DHCP server, DNS, default router, all that stuff. Then when you open up a web browser, what usually happens is there's a local redirect. It brings up a nice little splash screen that says username and password. It brings up a nice little splash screen that says username and password. Please enter. Here. At that point, you're kind of authenticated to the local hotspot, and they open up a little hole in the firewall, or their local firewall for you, and they no longer force you to redirect to the splash screen. They actually let you do web browsing and that sort of stuff. There's usually some sort of cache or timeout value associated with the IP and MAC address, but for the most part, you're free to do what you want there. Remember, when you log in, there's back end authentication, some sort of radius server. It can be a global radius server that covers the entire nation, such as the case with T-Mobile, Starbucks. When you authenticate, remember your credit card that you gave at the beginning when you logged in or created your username and password is tied to that login and will be charged if you're doing pay-for-play or if you're doing a monthly sort of flat fee and you're just using it every month. Question is, is this secure? You guys want to answer? No. That's great, man. All right. Here's a little graphic foo. First, we have an access point with an SSID of good guy. We have our client card come in with an SSID basically set to any or default. What usually happens is that they associate to the SSID or the access point with the SSID of good guy, and their SSID effectively becomes good guy. Now, what happens here if a stronger or closer access point comes within range of the Wi-Fi card here? . . . . . . . . Basically, depending on what signal-to-noise ratio is in play here, they can actually be disassociated from the access point of good guy and re-associate to the SSID or the access point with the SSID of bad guy, and their SSID effectively becomes bad guy. This can and does happen without the user's knowledge. Now, what's really interesting is that if the bad guy decides to set his SSID to good guy, well, at that point, all bets are off because the user definitely won't know what's happening. So, here are some other screenshots that we took while we were over at Black Hat, and you have your client card in some sort of utility that shows you signal-to-noise. A better utility for graphing signal-to-noise, believe it or not, Net Stumbler. If you actually click on a MAC address under Net Stumbler, you'll actually get the signal-to-noise ratio in a nice little graphical format. Here is the hallway sitting at Black Hat and the access points there at Black Hat. As you can see, that's a pretty good signal. Receive sensitivity for most cards or really good cards around negative 68 dB. And basically, the stronger the signal from the access point as opposed to the noise, as you see, this is up here about negative 60 dB. As we go higher and higher up into less negative numbers and then positive numbers, obviously, that's a better signal. And the card will pick that out of the air and say, great, I'm hooked up. Well, this is our rogue access point, and we're sitting in the hallway here, and the guy that's sitting next to me goes, fuck! Because basically, what we have here is a rogue access point running at negative 30 dB when the closest other access point in terms of a Black Hat access point is at negative 60 dB. Just for reference, every 3 dB is basically a two times increase in power. We're talking about 30 dB difference here. And a little side joke here, we were at the racetrack last weekend, and they have this thing called sound control at the racetrack because the locals, well, they really don't like the race cars running around. Well, sound control says that the maximum sound on your car can be 103 dB. Well, one guy runs around and comes back off the track, and they say, they black flagged him, actually, pulled him off the track. He was at 109 dB. Well, you try and explain to somebody that's, well, like myself, a redneck that likes to race, and say, you're running at 109 dB. The max is 103 dB. Shit, man, it's only 6. I can fix that. Wrong. You've got to take the motor out of it. All right. Looking again here at NetStumbler, we're actually looking at the access points and the MAC addresses, and you see our black hat rogue access point is actually just a Netgear card in host AP mode. And basically, sitting there, bump the power up or anything like that, but the closer you are to somebody, they're basically freaking out because they've been bounced off of the network. It can be a graceful bounce in that you have the same IP address scheme, and they won't actually notice that they're moving over to another network. It's really nice that people can migrate from one network to another like that. And sometimes, or most of the times, actually, since you don't have the same IP address scheme or they have an ARP cache, that they don't actually recognize that they're going to the same default router anymore. These individuals will say, damn, I can't get to the network. Oh, man. Okay, this is some itchy and scratchy foo, the other day. Don't worry about it. Basically, I wanted to show you that regardless of where the actual signal is in, say, a building, if you have strong signal in a building, you you have marginal signal outside the building, and you say, I'm good because I have great signal inside my building, and nobody's going to bother me if they bring a rogue access point just to the exterior of my building, because it'll never overpower the signal that's inside the building. However, there are things called amps. Rogue access points. Let's talk about rogue access point 101. Basically, a rogue access point is an unauthorized access point. Traditionally, we're talking about corporate backdoors, or employees that decide they're going to fire up an access point in their office and allow anybody that's within range to basically get on the intranet without any type of authentication. Also, corporate espionage. You pay the janitor 20 bucks, he goes up into the next floor or the next building and drops an access point on the actual intranet for you. Cheap corporate espionage at that. And from that point, you simply either aim your antenna at the floor, and you're picking up your competitor at the next floor, or you aim the antenna at the building across the street, and you're picking up their network there. Thank you, janitor. Hot spots. Rogue access points for hot spots. Well, we're talking about denial of service for one. If you set up an access point, well, we actually had something not too recently as far as personal telco and Starbucks guys. I believe somebody was cramming somebody else's channel or something like that. But denial of service occurs with just regular Wi-Fi. But if you were actually setting this up in a protest mechanism, you could set up a rogue access point, and anywhere that you went for those hot spots, if you didn't like that hot spot provider, you just send everybody to a redirect that says, save the moose. Theft of users. User credentials. That's really what we're talking about today. And the idea is, if you pull up a rogue access point, and you give the same sort of splash screen for the users that are actually entering that hot spot provider's area, they're going to see the splash screen, and they're not going to know any better. Because basically, there's no authentication mechanism between the actual station and the actual AP. So they say, I'm on an AP, I've got my IP address, I've got a splash screen, it's asking me for a username and password, and I'm going to give it to them. AP cloning, that's kind of what we're talking about. Hotspot rogue AP mechanics. Okay, so how do you build a hotspot rogue access point, or a rogue access point in general? Basically, you're creating a competing hotspot. The access point can actually be another AP, and then you back in it with an actual Linux or OpenBSD box, whatever your flavor. Or you can actually run a card in host AP mode, and then the card actually becomes the AP. You create or modify a captive portal behind the AP. If you're familiar with NoCatAuth or YCAP or other types of tools that are captive portals, basically they are redirectors that bring you to a splash screen and request a username and password, at which point you're then authenticated and allowed through to the network. So you can create or modify a captive portal to instead of actually doing any back-end authentication or actually concerning people with actually giving them access, you instead just capture usernames and passwords. So you redirect the user to a splash screen, denial of service we talked about, saving the moose, and theft of user credentials. Now a bold attacker, somebody with big brass ones, they're going to be able to do that. They're going to be able to do that. They're going to walk straight to ground zero and actually flip open their laptop and actually fire up host AP and actually snarf usernames and passwords right there at the hotspot while they're drinking coffee. Somebody that's 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 they've got military access and basically blast the entire hotspot as they drive by. They can either knock people off or they can just grab new users. They might be able to park, at which point they just go through the entire metropolitan area gathering new usernames and passwords from each hotspot. 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. While I'm just firing this up, Bruce is going to talk about defense. 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. 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. 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. It's ridiculous that there's still infrastructure out there that's vulnerable to this type of thing. 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. Right now, I'm going to show you some examples. Two years ago, there was no reasonable way to authenticate people at the network level, at the link level. 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. So we'll make all these fricking web portals and drive everybody to them and take their credit card numbers. And we just kind of ignore all the weaknesses that are lower down and hope they don't get screwed in the process. So technologies have been developed, namely 802.1X. How many people have heard of it? How many people have deployed it? Excellent. 802.1X is a link-level authentication protocol. I won't bore you with a talk on that right now. I gave a speech on it last year at Black Hat. It's a good starting point with lots of references and whatnot. Go to the website. There's the plug. 802.1X gives you link-level authentication, and it allows you to do it in an extensible way. So you can do it with, say, just a password scheme, something that's pretty easy to deploy. Or you can do more complex certificate-based schemes. And importantly, you can do bidirectional authentication. This is critical. Right now, the problem is the access point's really worried about authenticating you or the backend application, but you're not authenticating anything beyond that point. Unless it throws up an SSL error in your browser, you don't know a damn thing's wrong. So 802.1X and the kind of Uber god that's coming out of 802.11i, which is the new wireless security specification that's got new link-level encryption and new link-level authentication, including 802.1X, is really going to be the future of where we're going to go and where these attacks are going to stop. If you have a corporate network today, and you have things you want to protect, deploy 1X. Deploy mutual authentication through something like TTTLS, or there's only two Ts in that, or some other EAP mechanism that gives you that capability. Otherwise, just forget about it and go home and get drunk. You ready? There you go. Does it fit in here? Nah, it doesn't fit in there. All right. Can you fly this up? It is. Stretch in here. All right, so basically, if you get to an actual hotspot and you see this, that's probably somebody experimenting with Air Snarf. So that's just FYI for all you here. What we're doing here is we're simulating a redirect. And basically, anything that I enter up here, and this is kind of difficult, because I don't have it locally displayed here. But if I go into anywhere, Christ. If I go to ESPN or I go to any other type of site, and oh, that's why I created these buttons. Yeah, yeah. CNN or something like that. Basically, I'm just getting the same page over and over and over, just like a local redirect. We enter our username and password. And then we log in. Yeah, yeah. So we get an error message. Usually, this is what the error message will be. The network's not available. Please try again. Give me another username and password. Now, what we can do is we can actually switch this around. So we all know with Apache, we can do virtual hosting. So not only are we doing, say, something for just this URL, but we can dynamically change it. So let's say we don't want to actually give people the local redirect or the AirSnarf redirect. We want to do something like if anybody goes to PayPal, we give them a PayPal logo and a username and password prompt. The same thing applies. Like I said, we can do it for another popular site, Hotmail. And people are going to say, username, password, Hotmail prompt, yeah. Or I just got disconnected. In some cases, these people are just going to be disconnected from somebody firing up a rogue access point. And the next site that they're going to try and visit, or maybe even they were in the middle of a Hotmail session, the next time they pop up, it's going to say username and password. And you can make these webpages really pretty and convincing. These are kind of dumb. But... Now let's say you actually wanted to do something like Starbucks. Do we have that there? So we pull up the URL for a Starbucks T-Mobile site. And somebody's going to look at that and they're going to say, username, password, sure. The idea, though, is that you can actually use this for good. Let's say you're a government person and you're interested in finding out where the local bad guys or terrorists are actually doing their coffee drinking and that sort of thing. And you want to grab their username and passwords while they're on the internet. Yeah, we got something for that. So every time they go to Slashdot, now they log in at their local Al-Qaeda coffee joint. Where is that? There we go. Al-Qaeda coffee. Every time they log in here... Osama. We're going to grab a username and password and give them a little message. Now, let me see if I can't move to one of the other screens. Give me a second. I'll show you where the actual passwords are stored. Now, in one version of AirSnarf, we've got a mail to root. So obviously you're running this on your local box, urroot, and you can look at everything there. In this case, we actually have Apache. We're running it just with a log sent out, and it's in CSV format. So later on, and it rotates the logs, too. Each time you fire up AirSnarf, it rotates the logs so that you have just this running list of logs. So we've actually got somebody logging into CNN, username and password, and Osama apparently likes boys. Bring it on. All right. Here's the interesting point of all of this. You can do this with a laptop. And you can do this with HostAP. That's what it's running on right now. This is right now running on a Zorus, which means this is my rogue access point. Basically, I can go into a Starbucks anywhere in the nation, put it in my pocket, turn it on, order my coffee, and walk out with my coffee and my usernames and passwords. That's what you got the recharger in the car for, man. Let's get back to the slides real quick. We'll wrap this up. Damn. Don't do it. God, no. And you guys have seen this. Replay, replay, replay, replay. Bruce talked about defense strategies, other defense strategies that we'd just like to recommend. For the guys that are actually running hotspots, local AP awareness. And individuals that are in corporations that are concerned about people setting up rogue access points and directing usernames and passwords to corporate credentials. What you want to do is be aware of the local access points. Be aware of your MAC addresses. Be aware of the actual access points. Yes, you can fake MAC addresses. Yes, you can run around with fake AP even and freak out people that are running like, you know, Air Magna, Air Defense, or something like that. Another thing is customer education. That's key. You have to make your users aware that this threat exists. Anybody else that's out there at an actual Starbucks, they don't know that this can happen to them. So they're just going to walk in there and be vulnerable to something like this. One-time authentication mechanisms. I don't know if it's true, but at one point, the rumor was that McDonald's and their hotspots, they were going to set it up so that when you actually ordered your Big Mac, for an extra buck, you could get, like, Wi-Fi access. And at the bottom of your receipt, it would print, like, a little pin that you would use. Just like when you go up to the gas station and you get, like, a full tank of gas, you pay an extra buck, and they give you, like, a car wash. And you get a one-time authentication for that. Well, it's the same thing. If you use one-time authentication here, and you're only charging a buck for the actual access, if somebody actually does grab the actual pin here for authentication purposes, what are you out? You're out of business. You're out of buck. You're out of buck, or the customer's out of buck. My personal belief is that for hotspots, you should be charging for hotspot access. It's bad enough you're charging me $5 for a cup of coffee. Now you want to charge me, like, five bucks. What we're talking about here is that Wi-Fi access should be a value-added feature to your business. And it's going to attract people there, and they're going to sit there, and they're going to buy more coffee. They're going to buy more little bagels and donuts and all that other sort of... Yeah! And the idea is that you don't actually need to charge for it in order to actually make up your losses, because they're really not that big. Here are some links. Airsnarf will be at airsnarf.shmoo.com. Right there, there's a placeholder there. But here, I'll show you the website, actually, in existence in a minute. Host AP, there's a link for Host AP. Some people think that Host AP is hard to set up. For Red Hat, there's actually a kernel or an RPM that you can set up for the kernel. So it's just an RPM command. If you're looking for hotspots, www.hotspotlist.com. Other wireless portal software, Personal Telco has a list of wireless portal software. So if you're not interested in, like, using Airsnarf for your purposes, you can go grab yourself some other portal software and try and modify it for your purposes. I actually want to underscore that. You know, this has all been a security talk so far. And, like, how to subvert portals and things of that nature. Anyone that's actually set up a wireless portal, there's some software out there that people have been using. Things like Ycap and NoCat and things of that nature. This actually makes a dandy little wireless portal if you're into setting that kind of thing up. It's pretty straightforward. Works great. Has all the redirections, virtuals built in. I mean, this is the good use and not the evil use. So, you know, whatnot. Try it out. The website basically looks like that. There's a link for the actual presentation. There's the actual tarpaulin. There's a tarball for Red Hat Linux 9. We did that for the masses there. And if you really want to just mess around with your Zorus, and I'm telling you, it takes a little bit of work to actually get it done, but we've actually put a tarball up there for the Zorus version, and we've actually cross-compiled dbcpd for the Zorus so that you don't have to. Thank you very much. Well, actually, any questions? We've got about five minutes, I think. Goons, five? All right. You fire it. Yes. Go ahead. Portable rogue access point. No, sir. You're okay. For your portable rogue access point, do you use any amplification for the signal in order to stomp out Starbucks? You can use an amp and it's going to stomp over somebody. There's no doubt about it. It's also helpful to send de-authentication packets to the clients to get them to kick the hell off the preview. That's the previous access point. I believe there's a tool that was presented earlier today or yesterday that did that. That could be integrated in pretty effectively to get people to just bounce forcibly. Other questions while the din is rising? Yes, sir. All the way in the back because I'm looking for a challenge. Any other questions? Yes. Yes. What about access points that use SSL for authentication on their splotch pastries? All right. Here's the crazy thing is that when the user actually logs in the first time, sometimes they're redirected to an HTTPS site. If they're really concerned and they actually are paying attention to the lock icon, you could create an entire SSL-based Apache website, but I'm saying it's not that difficult to just trick people into actually authenticating right with you. They're not going to pay attention to the lock. Well, you said a lot of good things about 802.1X, but in HostAP Demon, the user end demon, there is actually a support for little authentication server, which can obviously support 802.1X. So do you think you will implement fake in 802.1X authentication, at least for EAP MD5 or something like that in the future version? Oh, in the future version of Ericsson? I'll have to trick out the question here is basically there are certain 1X authentication mechanisms that are only one way. Just because you do 1X doesn't mean you have bidirectional authentication. So if people are raising the bar, and using unidirectional authentication, i.e. all they're doing is verifying the client, the client isn't verifying the network, you can still spoof that. So the EAP MD5 mechanism is basically a challenge response, and you can just respond back with, yeah, that was a good password, welcome to the network. So yeah, that's something that I think as we see the demand, we'll get integrated in. It looks like one line of code, and that's that basically. Yeah. What I've also considered as far as a future version of Ericsson, if we were going to work on it, is the idea of actually integrating the de-auth portion, and actually bumping people off of the wireless network, or something like AirJack. So you can combine this with other different types of utilities, certainly. Any other questions? What about the amplification issues? You said that in order to be a rogue point, you need to be much more powerful than the original one. Is it something that comes out of the books, or is there anything you should apply for that? I think the question is why do you need to be stronger than the other access point? How do you actually amplify? Well, in some cases, the cards actually support bumping up from their normal transmission rate, or transmission power rate. The Cisco cards are obviously an example. They can run at 100 milliwatts. The Sineo cards, they run at 200 milliwatts. Normal access points are usually, in the cases of the commercial ones, they're using Orinoco AP2000s, which are only running at about 30 milliwatts per card. Nice cards, nice access point, but if you show up with a Cisco 352, you've got 100 milliwatts right there, and you're obviously higher. If you go with a Sineo 200 milliwatt, then you're obviously higher. If you use an Orinoco and then take a pigtail off the Orinoco cable into a 500 milliwatt amp and then straight onto an ATB Omni, then you're obviously going to overpower the local hotspot. You're right. Hey, I was wondering, is there any possibility of doing a true man-in-the-middle attack by spoofing the MAC address of the default router that they thought they were connecting to so that you could maintain a connection and they would never realize they'd been hijacked and you could sniff their traffic? Yes. All the nice tricks that you might have seen at Black Hat when the guys from Italy were talking about EaterCap and man-in-the-middle attacks, all those things apply here on the wireless network as well, as long as you can associate to the local access point. In fact, at Black Hat, they were telling everybody to make sure they put static ARP entries in for the default router. We're done here. Thank you very much, and if you have any other questions, see us. Make sure you clear on out of here as fast as you can. We'll go with you, and we'll be outside if you have questions.