So, thanks everybody for showing up. I am Luis, this is Nelson. We're going to be talking about A2 that Nelson wrote. I'm here just because I'm funny, kind of. Not really. I gave him some ideas on that. So let's get to it. So we're going to get a little bit of boringness and a little bit of Brazilian accent this morning. So have some coffee. So we're going to go over the agenda. It's going to be like who are we, what we do, kind of, for a living. I'm going to do a brief introduction about wireless attacks, something that probably you guys know better than I do. But it's going to be really quick, just to get you in the mood for Beholder. Then I'm going to just mention some attack tools, existing solutions for wireless attacks. Then I'm going to pass it over to Nelson. Nelson, who's going to talk about the development of Beholder, what does it do, what it doesn't do. We're going to run you from some diagrams, some scenarios on how to implement the Beholder. And we're going to try to do a demo at DEF CON. If it doesn't go well, we have a few videos to show you. But hopefully it's going to go well. And then we're going to go over the futures of Beholder and also wireless attacks. So, I guess... Let's do it. So, who the hell are we? I am Luis. I've been working with wireless for quite a while now. Actually, if you have somebody to blame the network, the wireless network here, that's me. So, boo me or buy me a beer later. I'll take it. And pretty much, that's how I pay the bills. It's working with wireless. Nelson? Nelson? Nelson, this is the man. The guy who flew all the way here. The guy who flew all the way from Brazil. He gave with the idea of coming like a few months ago. So, let me do a brief introduction here. A few months ago, Nelson told me, I want to write something like this and that. I'm like, dude, that's so freaking lame. Right? Everybody does that already. There are like 10,000 wireless tools, one a day. And he said, no, I want to do something a little different. And since you've been working with this for a while, too, maybe you're going to have a few ideas. And let's try to do a talk at DEF CON. And here we are now. So, here we are. He wrote the whole thing. I'm just like, oh, this sucks. Oh, put this there. Oh, man, you don't know how to do anything. So, this guy, he wrote a book. He has like a couple of books published in Brazil. He's the author of the Czech Brutkite. So, that's the guy. So, this is the man. Like a few years ago, one of the first wireless talks that I've seen was from him. So, big props to this guy here. Thank you. Okay, so this is the boring part, okay, so I'm going to try to be really fast. So, we're going to talk about wireless attacks, Wi-Fi attacks, things that we've seen for the past since, what, DEF CON 8. We've seen things all around. So, I put the slides in an order that is kind of like an evolution. Could be wrong. I'm going to forget some stuff. Actually, I have my cheat sheet here. So, let's see if I don't forget, okay? So, the very first thing I'm going to do is I'm going to put this in a folder. So, the very first one, DOS attacks. What are DOS attacks in wireless networks? DOS attacks could be like different things. Could be from packet types of sending packets, deauth packets to clients, deauth packets to access points, faking beacons, trying to steal associations, or simply just attack the network, even like from layer one, from like the wireless. If you use a jammer like this that you can buy for 200 bucks to actually like throwing rocks. That's at access points. Access points is something that actually, wireless is good. Wireless works well. That's, again, how I pay my bills. But it's, you have, you don't have the wire there. Other problems that it might have is interference. Interference sometimes acts just like jamming. 2.4 gigahertz, as you guys know, it's an open frequency. So, everything, sorry. So, everything there is pretty much free for all. So, that's a problem. Man-in-the-middle attacks, usually it's used in combination with some sort of DOS attack or packet injection as well. So, you have a client that is connected to a valid access point. You want the password from that guy at Starbucks. You run your laptop and you do a man-in-the-middle and you steal whatever you want from that guy. If the guy doesn't yet use encryption. Impersonation. That means you have one guy with a laptop. So, there are three scenarios here. One, the guy has a laptop and he wants to pretend he is a valid user to gain access to the network. In an open network, in a Starbucks or some airport, that's okay because there's no encryption. Then people thought, oh, let's put encryption on. And then it gets a little harder and we're going to get into it. But the second one is when... Sorry. When the attacker, he wants to act like a valid access point. So, the valid user is going to connect to that guy and then most likely to be a man-in-the-middle or like karma. We're going to talk a little bit about karma in a little bit. But it could be different things. And lastly is some device, most likely an AP, that is going to be acting as a valid AP as well. Surveillance is just a matter of like packet sniffing. So, you have your wireless network. Somebody is on the outside sniffing packets. That could be encryption. Yeah, but encryption today is pretty much the only way to block that. You cannot stop the packets from going through the windows and things like that. Some of the wireless IDS vendors, they're doing some pretty neat stuff actually to install antennas outside the building. And try to block the signal. But again, you're just sending more wireless packets. But apparently, it is effective. I didn't try to test that myself yet. Packet injection, I talked about that. Most likely used in combination of the other ones. So, when you do man-in-the-middle, first you have to deopt the valid user to connect to you. Or you send like... Or you do packet injection to... To simply break the network. Send deopt packets to everybody and things like that. Crypto cracking. That web, we all know that web has been broken forever. That's why they created WPA. Then Josh and some other guys, they came over and they broke WPA. So, WPA in theory is still kind of secure. But not totally. So, go on the internet. Again, I'm not here to preach to the core. Go to the internet and probably you know how to make your Linksys router at home safe. Or kind of. Client-side attacks. Either ad hocs. How many here flew like open your laptop in an airplane and look for networks? Although the FAA say you cannot use wireless devices on board. But that's okay. So, you'll see free public Wi-Fi on the airplane. Is there an access point there? Of course not. Is there an attacker there? Maybe. Especially flying out of DEF CON. But usually what happens is there was, for example, a bug on Windows that the client searched for networks. If it doesn't find any of the networks in the preferred list, it starts advertising the last one it connected to. Simple Nomad presented this at ShmooCon two years ago, I think. And lastly, of course. Client attacks on the same network. You're at Starbucks. You run Nmap. You see that guy has certain ports open. You try to do something on those ports. Rogue access points. This could be a whole talk by itself. Because when you say rogue access points, what could be a rogue access point? Not her. But rogue access point is any malicious access point. So, from a vendor perspective. Some vendors, they classify a rogue access point as an access point that is plugged into your network. Which is true. So, somebody went to Fry's for lunch. Doesn't feel like working. So, like, oh, let me test this router that I bought for home. And he plugs it in and he's chilling out there. Suddenly, somebody, oh, we have a meeting. Oh, let's go. And the guy has, they have the best wireless network using 802.1X, WPA2, the whole nine yards. But guess what? Now you have a Linksys open network in your office. So, that's not cool. And other things, too. That we're going to talk, I think, right now. Oh, more about rogue access points. So, when you talk, when you, we think about wireless IDS systems. Rogue access points, you think, the one that you buy at Fry's, the 802.11a, the 802.11bg. Things like that. But you still can buy, and I bought one at eBay. Not too long ago. A really old access point from Cabletron or digital, like a ROM about. It's not 802.11b or a. Some are 802.11 already in the 2.4 gigahertz range. But some, they're 900 megahertz. So, if you have sensors that only work in 2.4 and 5, guess what? You're not going to see that guy. So, if you can find this old stuff on the internet, that's, there you go. Then you have wireless bridges. This is not a wireless bridge. This was actually in Aruba, the island, the natural bridge, the largest natural bridge existent. But guess what happened to it? It turned into a wireless one. Because it doesn't exist anymore. But they still do tours to that. So, you get on a bus, you go, let's go see the bridge. And halfway, they say, oh, the bridge doesn't exist anymore, by the way. So, that's a ripoff. Impressionation 2.0. What is Impressionation 2.0? So, people came with just names. We, as security folks, are turning pretty much into marketing people. Because, say, oh, now we have the evil twin. Yes, it is a new attack. But guess what? It is just impersonating a valid access point. So, everybody knows what the evil twin attack is, right? Okay, good. Or, even better, just run Karma. Karma is whatever you want it to be. It's like you're at DEF CON. You're drunk. You go out on the street. It's like, oh, she's beautiful. Yeah, she is. So, it pretends it is whatever you want it to be. We talked, I mentioned, I didn't talk about. I mentioned crypto cracking. But then you have faster crypto cracking. Is Hikari here? Most likely not. So, Hikari, he implements any type of, like, crypto breaking into FPGAs. So, guess what? Through rainbow tables implemented in FPGAs. They can break him and Branderman and Johnny Cash. All these guys, they did, like, some awesome work about, like, WPA cracking. And that's how it goes. That's Josh Wright. One of the guys that know just a little bit more than all of us together here about wireless. And his last talk, his last finding that he told us about is rogue radio servers. So, everybody knows how 802.1X works, right? A little bit. You have a radio server in the back end, usually. So, everybody keeps saying, 802.1X with WPA2. Yeah, it's secure. Yeah. And then a few years ago, we found out that, well, if the client is configured to use beep and does not validate the server certificate, guess what? It's not secure. So, then people start doing that. Then Josh came with the idea, okay, if you want to validate a check for a valid certificate, I'll do a fake access point. I'll do a fake rogue, a fake radio server. And guess what? I'll put a valid certificate on that thing. And then, so there are other options that, of course, mitigate that. So, search on the internet for his video. It's really cool. And so, Josh is one of the bad guys. So, I just want to say there's a lot of people that, in the past few years, put a lot of work to make wireless more secure breaking in. So, big props to all these guys. That's that guy who's sitting there. Stand up, Eldon. See, you thought you were going to make me ashamed. Big hands for Eldon. He did a pretty good research on wireless IDS a few years ago. Ditto from Wi-Fi Club, the Shmoo Group, Hikari, RenderMan, Mike Kershaw, Dragorn from Kismet. And that guy is Ken Caruso. He just drinks. He doesn't do anything. About tools. So, we all know about, like, there are several tools that you can use. You can use to make bad things. And most of them you can find here. From the stuff that all these guys, like, backtrack is an awesome live CD. You should know that already. So, let's do solutions. So, we talked about the attacks. How to break it. How do we fix that? Well, some of the stuff, as you know, there's a way to fix it. You cannot, like, matrix-style dodge the packets that the evil APs are sending. Or the evil attackers are sending. So, what can you do? There's wireless solutions. So, I'm going to do an introduction to wireless IDS and put you to sleep. But I'm just kidding. So, I'm just going to talk a little bit about wireless IDS so we get into the mood for Beholder. So, WIDS is not that I did a search on Google and found that guy. I'm like, oh, he looks excited talking about wireless. So, imagine the guy on the left. He is the integrated wireless IDS. What is an integrated wireless IDS? That's the guy who's sitting there. You buy from a vendor a solution that you deploy all the access points. And you want wireless IDS that is already implemented on that system. And then you have the lady on the right. She is the overlay one. That means you have your wireless network. But that doesn't have any wireless IDS capability. So, you buy from a vendor sensors and a total solution that is going to put their sensors along with whatever you have already. So, you have two separate systems. Which one is better? I don't know. It depends on the situation. But both products do really neat things. Usually, from one perspective, it's good to have something that is always there, not serving clients, just watching for the network. So, maybe that would be a better solution. Do I have anything else to say about this? And, of course, you have wireless IPS systems. Usually, the same systems. But, of course, once they detect something, they're going to attack back. Usually, in wireless, this is interesting because you could be dozing yourself. If you say, I don't want any ad hoc networks here. Guess what? If you're not that close from the AP, if two laptops are close to each other, they're transmitting. The sensors are going to start attacking those guys to say, disconnect. But it's on the same channel that your wireless network could be using. So, that's a problem. So, keep that in mind. But, again, I'm not here to say bad things about wireless IDS. I think if you have a wireless network, you need to have some type of IDS. So, you have some tools out there that help you find networks. Even Windows, crappy Windows does that. So, you have NetStumbler as well. You have Kismet that not only does that, but what does it tell you? It says there's a network or the network went away. There's no, they were not intended to be a wireless IDS. And that's the idea that Nelson got. So, from a wireless, from a free wireless IDS perspective, the only thing that I know, Rogue Scanner, Network Chemistry released Rogue Scanner a few years ago. That was a free tool to search for rogue access points in your network. It's, they got bought out by Aruba Networks. So, I think Rogue Scanner is somewhere on the internet. It's really easy to find. And not on the wireless IDS, but something that helps not only pen testing. Of course, you're going to use WICRA from the Midnight Research Labs to do pen testing on wireless. But again, if you have a wireless network, most likely you better do some type of pen test every once in a while to see if it's working the way it's supposed to. So, before we get Nelson here, just going to talk a little bit about 802.11 beacons. Beacons are management frames. Beacons are the packets that the access point sends saying, hey, I'm here. I am T-Mobile. I'm hotspot, whatever. And some people have the wrong perspective. So, here are the beacons. You cannot see crap, can you? No. But most likely, the good things that it say, it says the data rates that wireless network supports. It says the name of the SSID. It says the speed. Speed, I already said that. But it says the transmit power. And all those values that it is really important for the client to know why to connect to that network or not. Guess what? It lets everybody know about that as well. So, one of the things that people say, oh, I'm going to make my wireless secure. So, I'm going to configure my AP not to send the name of the SSID. Is it good? Eh. Of course, you turn on NetStandard or Kismet, and you see there is an AP. But I don't know what that AP is. What SSID that is. But guess what? Once a valid user connects to that AP, the AP has to say, yeah, I am that guy. So, guess what? Now you know the wireless network name. This is not new. This is actually kind of lame. But on the beacon, and you might be able to see on the top left, some vendors, they actually send some information about, because they want to make a neat network kind of thing, right? To help management and things like that. They send some information that is really important that probably you should not need to know. Like this one here. In this case, yeah, it sent the SSID name. But not only the name, it gives the ability for the network admin to put an AP name. So, even if you didn't have an SSID, or if you're trying to find an AP, that one on the one, two, three, four, on the fifth row says AP name. So, it says, AP 11 Laguna something. I was in Cancun, Mexico when I did this. So, I'm like, oh, awesome. So, I might not know what SSID name is, but if I want to steal that AP or do something to that AP, I know it is close to Laguna 2F or 2P, whatever that is. Number of clients connected and things like that. So, of course, this is going to get more and more populated along the years. So, Beholder pretty much is based on beacons right now. And I'm not going to get ahead of myself. And without further ado, Nelson Borrello. Hi, everybody. Thanks, Luis. Okay, let's go some about Beholder. Beholder is right in CNC and based on WIDS wireless tools. You know? That too. Linux environment. There's Windows here. Yeah. Just another network scanner. But Beholder changed same changes in IP, SSID, MAC, mode, many changes. This is okay, no? And meaningful sign of variations. I will talk about that. And the cool feature is syslog support to large networks. You can use many sensors, behold sensors in your large environment and all reports to one syslog, centralize it. I will talk about that. That's cool. That's a nice feature. But it's not so cool. This is better, right? This is better. Look at Martini on his hand. He's ready for . Yeah. Beholder can be detected karma. I will show to you. And can use rejects, regular expression to select what exactly you can be alerted. And detect if access point suddenly disappear too. For example, see if somebody uses jamming. Sino. But things Beholder don't do. Beholder don't put... Any interface in monitor mode. Don't sniffing the wireless traffic. Don't cracking at all. And don't detect anything about client. Beholder is just for... Just detect signal, beacon signal. Just does that. OK. Some design challenger. Beholder is... Can be easy to use, install, and maintain. Could be comprehensive to understand, to implement new features. And some issues. Scanning, time, difference per adapter. Beholder can use any... Any wireless adapter in Linux environment. If you have your... Net, you can use it for... For Beholder. For use Beholder. Medi Wi-Fi caching. It's a problem because if... If access point disappear... Maybe delay to detect that. And... Don't use... Any libraries. External libraries. Just choose... Choose source code. Do you make and... That's OK. For now... Just for Linux. And the future... I don't know. Maybe... Let's... Let's check the technical details. How Beholder detects karma? Beholder sends random SSID request. And wait for response. If... If they get response... Probably... Probably... Probably karma is running. I can send one... I change the... SSID random. And wait for response. That... That mode to detect karma in environment. So how many SSIDs do you create? Like, three? Or two? I don't remember now. Better... Better versions... Just one. Just one. But I plan... Change to... To three. Before the... Is it clear, right? How it works? He randomly creates an SSID and says, Hey, I want to connect to this. If karma sends back, Hey, yes. I'm XYZ. So it's probably karma. Because it's totally random SSID. So it's really easy and... Neat thing that he put in. OK. That's... That scenario is to check if... Some... Access points disappear. I have... My net... My nets... And... Another net. I don't care about that net. So I use... Beholder... Dash... My nets... Interface... And if... That... That SS... That SSID disappear... Beholder, I don't care. But... If my nets... Disappear... Beholder... We will alert about that. Another scenario. I can use regular expression both the case. In missing... Disappear or... To check if some... To check if some... If some similar... SSID appear in the environment. That's my nets... Appear... That... That SS... SSID appear... I don't care. But... If someone... Created... My nets... Wi-Fi... That... Match... My... My regular expression... Beholder alert about that. So if you ever configure a wireless IDS system that you have... Imagine that you can think of anything similar to your SSID name. It's a pain in the butt to freaking do it. So this is a really neat thing to do. You put like something that is going to be similar. So DEFCON, if you have a zero instead of a no. Yeah, that's an easy one to think about and configure on your wireless IDS system. But what... How many O's can somebody... How stupid is a user... To connect to a network that is kind of similar... Has a kind of similar name. That's all. Okay. Thanks, Luis. And the last scenario. If you have large networks... You could combine some... Sensors. And I'll use Syslog server to centralize the information. For example, you can use S-Watch to select what kind of message do you... Want to get. Okay. Time to demo. There we go. DEFCON live demo. Let's see. Is it better? It's better? Okay. That's... One moment. That's the basic, the normal use of build world. Some rogue API. The first one. DEFCON, DEFCON, DEFCON. Some DEFCON networks. If you want API... Is add the list. But the nice feature is that... So, okay. What Nelson is going to be doing here... He will be connecting as an USB access point. And he's going to connect that access point... With a network with a similar name of DEFCON. And he's going to do... Put Beholder to watch for any name similar to DEFCON. So, right now he's typing the regular expression. He's going to... Something happened there. It's not working, Nelson. No, it's not working, Beholder. So, let's wait for the API to come up. Tension. There we go. No, not yet. . . So, we see the regular DEFCON ones. Yeah, we got a shitload of APIs here. Okay. So, you can see up there, highlighted. It says... What's the SSID? I cannot read that. It's all lowercase, DEFCON, right? So, the name is no lowercase, DEFCON, or something similar to DEFCON. And so, it says it matches a pattern. So, again, in distributed systems, what you can do, you can have many laptops running and send everything to a syslog server and then have a decent syslog message parser or something to look for the Beholder stuff. So, now it's totally the opposite. He's going to tell Beholder to watch for the networks. So, in this case, he's saying, I care for any networks, all the APIs that match this. And he's going to unplug the AP and his AP. And Beholder is going to say that the access point went away. So, again, that's something that Eldon mentioned on his talk at ShmooCon a few years ago that many IDS vendors didn't do that. So, if he sees an attack, he's like, woo, I saw an attack. But if all the APs go down, it's okay. That's okay. That's not a problem. So, if you see there at DEFCON with a no and stuff, Beholder says it disappeared. And now he's going to plug it back and then to say, so you don't freak out, and it's going to say, yeah, it's okay. Your AP is back. Or your APs. So, it could be more than one AP. And, again, with the regular expression, you can search for any APs. So, it doesn't have to be your AP. If you're concerned about your neighbor's APs, just in case you use it, you can monitor those, too. Somebody's DOSing the wireless network. That's awesome. Love DEFCON. Is my jammer on? No. There we go. See? So, it says, relax, your AP is back. So, go back to bed or something like that. So, that's what we have for the demo, right? Okay. So, this is a great picture he found. So, there are many tools out there. Beholders, and, again, this is just the beginning. So, again, we're going to release this tomorrow, right? Tonight we're drinking. So, tomorrow this is going to be on the website. And... You have many things out there. You can use all the tools possible to make your life better on the wireless network. So, Beholder is going to help you a bit, as Buddy Jesus says. And what is next on Wi-Fi attacks? Wi-Fi attacks, everybody, there was a big hype a while ago about 802.11n. And, well, at least Beholder works with that. Just get an 802.11n wireless card that fries and pop in your Linux system. Beholder works with that. I tested that. But I think there's... We kind of got stuck into a really interesting phase of wireless in the past few years. Because either anything coming out now is going to be a type of a DOS attack, which is kind of lame, but really effective. But we have 802.11n now. So, some people said that 802.11n APs were a problem. Just like I mentioned the 900 megahertz was a problem. That no other sensor would get it. Either the AP that I got at Fry's, 802.11n, is broken, because with an 802.11b, I can... Even when I put in Greenfield mode, when I put it to work only on 802.11n, I think the beacons and management frames are still hurt by 802.11b devices, B and G. So, I don't know if that's my AP with problems or if that's the way it should work. Another thing that I... And the wireless bridges kind of thing that I mentioned before. It's a problem if you have a bridge that... It's not really an AP, so the packets are different. There are two fields, one that's called from DS and the other one to DS, that says 1 and 1. Meaning it's from wireless IDS to a wireless distributed system as well, to a WDS to WDS. Some tools, they don't get that. And with 802.11n going as fast as in real life, 120, 150 megabits per second, it's freaking fast already. So, if people want to suck stuff from your wired network using wireless bridges, it could be a problem. Or even rogue APs, right? So, tomorrow, not today, tomorrow, beholderwireless.org is going to have the tool. You're going to have a contact email, right? If people want to contribute to the... Yeah, and this is GPL, free, all that stuff, right? So, yeah, so you guys can help out as well. So, before we take questions across there, on the other room, I want to thank you all for coming. Thanks for the patience. And I want to thank our one beta tester who gave us feedback, Kevin350. So, thank you.