I'd like to thank you, everyone who showed up for the talk. The talk is KonKonFu, Defending Yourself at DEF CON. My name is Rob. A little bit about myself, I've been in the IT industry for about 14 years and security for about 10. I'm just a technical guy like you, so I thought I'd try to give back to the community a little bit. But I've been coming to DEF CON for about six years now and I've enjoyed every minute of it. I hope you find this talk interesting. Some of the things that I want to get across to you today, some things that I learned, some things that I think you can take away from this and put to use right away. Some ways that wireless networks are subverted commonly, not necessarily here at DEF CON. Some have been used in the past effectively. There are some methods in place now to prevent that, but still there's a lot of shenanigans that happen here at DEF CON as usual. The other thing is give away some T-shirts. The good people at Jynx donated a few T-shirts today, so they're going to be setting up shop tomorrow. Please go by and pick up some of their stuff. They've got great stuff. And we'll be going through. We've got three trivia questions throughout the presentation, so we'll just throw those out there. And the first one to answer correctly will get a T-shirt. Thank you. You can go pick them up tomorrow from Jynx. All right, so last year I was attending this conference here, and I was just like you. I was sitting in one of those chairs, and I was surfing Slashdot and doing my thing. I go into a Linux shell, do some more stuff, screw around a little bit, and I see my scrollbar, my Firefox scrollbar going up and down, up and down, right? Going to pages, going to websites that I'm not going to refer to right now, if you know what I mean. I didn't like it too much. I shut down right away, all right? So Firefox was definitely possessed. It was taken over. Subsequently, I took a closer look at things. Back at the office, there was a master boot record virus Trojan installed for command and control. Trying to load a live CD. Only let me load from certain parameters, not all. Also, millworm.lzm, it was slipstreamed into my boot sequence. You can do that by using live mod, at least in Backtrack, some other distros too, but you can slipstream right in on the fly, right while the OS is running. This happened every time. Millworm would, or the sequence would be, you'd get an IP address, Millworm would automatically update, and then a command and control channel would be established through a back channel. So, yeah. So one of the things that I determined was the cause of this was DNS redirection from my wireless, from a wireless interception that I was using here at DEF CON. So there's a lot of ways to do this, but the end result was most of my logs were wiped. Most of my system binaries were compromised. They weren't the same ones they are. Typical stuff, right? We've seen it a lot before, but it happened to me and it didn't feel so good. All right. So air hijacking can be accomplished a few ways. And by the way, I'm talking kind of fast. I've put an hour of stuff worth to 20 minutes, and we've got the trivia stuff, so I'm going to move along pretty quickly here. So sorry if I'm talking real fast. Entercap has been around for a long time. Real tried and true, real good tool. Doug Song's DSNF package, DNS spoof, some other real good tools. Aircracker and G Suite, of course. And then the Karma Car Metasploit package, which is just awesome. AP impersonation with Metasploits. Automatic exploiting features. And then Airpone. We're going to talk a little bit about Airpone, because that's really, really sweet. So Airpone doesn't even require you to be associated with the AP. It can rip traffic right out of the air and inject it or substitute it. So I was going to do a live demo. I don't have time to do that, so we're going to diagram it a little bit here. So we've got your typical wireless client and your wireless router here. So the wireless client is connecting to the wireless router. And he's going to say, all right, I need to go to a web page. The web page is going to show up. I'm going to go up to the router. The router needs to find out what the DNS record is. So he goes to DNS, asks for what the IP address is. They tell him. He goes up to the website. What I'm trying to get to you here is there's a lot going on before the web request even goes out to the internet. So while this is happening, we have a wireless attacker sitting in the stream of traffic saying, hey, I know what your request is. I can give you whatever I want. So he's listening. He's listening to this. And he knows exactly what's requested. The web request is going to go through two different routers, especially if you have Comcast like I do, and you get eight different routers in there. So he's getting ready JavaScript or some kind of other malicious code to insert into this traffic stream. And when the inherent latency of the internet is around 31 milliseconds, and the local LAN latency for this wireless attacker is going to be much lower, less than a millisecond, he's always going to beat you to the punch. There's no way you're going to beat him. So he's always going to be able to, if he knows what your request is, he's always going to be able to feed it to you before you can get back from the internet. So he goes and he throws in something before you get your web request back. And he can do things such as URL redirection. He can subvert your traffic session to his own laptop running his own website. Or he can throw in some malicious JavaScript just in the page that you requested. So you see Facebook, or you see Hotmail, or you see whatever. And behold. Behind the scenes, you're getting a malicious JavaScript code executed on your system. Now this doesn't even take any root compromise on the box. But you can already impair the box. So this makes our attacker very happy. He now has, he can do whatever he wants. And that's what happened to me. All right. So we've got trivia. If anybody knows what that... Oh, you're a friend of mine. Good. I'm glad to see you. Okay. So we've got trivia. So the trivia question is, first one is, and raise your hand or shout out or something. I'll try to catch whoever says it first. But forgive me if I don't. The first one is, in the 1983 movie War Games, what computer did the character David Lightman use to access Whopper? You with the baseball cap and the gray shirt. Yep. Stand up. Yep. Stand up. No. All the way back. Yes. Come on up. Okay. Good. It was an MSI 8080. All right. Nice computer there. And that's actually a picture of the original one that was used. . All right. So what you should have done before coming here. . left your laptop at home right alright but no one's gonna do that what fun is that alright so the other things you could have done broadband wireless card now I'm not saying any of this is gonna protect you from getting owned alright because as we're all gonna see this week there's a lot of stuff you can subvert any technology updates patches before you come here oops laptop with no important data on it not your work laptop something that you don't care about that you can throw in the garbage on your way to the airport or use a VM VMs are really good you can just nuke them again you know start up a new VM from a snapshot or something alright comprehensive hardening some good stuff here security templates from Windows you know they'll get you started anyway Bastille Linux by Jay Beale great tool that he made several years ago real good cocoon for your Linux system and I host intrusion prevention systems lots of lots out there OS X some other stuff you can lock down your BIOS your master boot record now some BIOS's don't allow this there are some third party tools to do but check out your BIOS settings there's some good stuff in the new ones configuration changes you want to block all inbound connections to use your host firewall on your Windows workstation or your your Etsy your host.deny file all all to block all incoming close all services you're not using obviously change your password if you haven't done that you shouldn't be bringing a laptop anywhere use your antivirus automatic update signatures before you come here use conky to check out conky's great tool if you haven't used in Linux before to check what connections are inbound outbound and any other processes are running depending on how you set up hard set your DNS servers protect your logs real real important there's some good tools out there to do that one of the things that's easy to do is you can just tail your logs while you're working you know just put them in the foreground your auth log and sys log windows a little bit hard to do that you have to have a stupid GUI open all the time run audit D great tool really neat all your logs should be owned and readable by root only all right check that that's usually the default but sometimes it gets switched log check another good tool for keeping an eye on your logs and swatch that's just probably SSH proxying so this is one of the probably the best bang for your buck you can do when you're you're at a coffee house or DEF CON convention or anything else you can set up a tunnel tunnel Firefox over that tunnel now there's some considerations here you have to have a SSH proxy established before you get here with lone star org or free shell or something that gives you four four three forwarding and you have to know that SSH key before you get here because if you do it while you're here you're not going to get the right key you can get somebody else's key you're gonna be going to Romania all right Firefox hardening no script awesome tool great tool for this blocks JavaScript it's always updated really good use known grid proxy oh and the DNS about doc config in Firefox turn that to true because that will allow your proxy to resolve DNS and you're already got a problem if you're gonna use IE use IE 8 there's some mild improvements don't use IE I'll run snort okay great awesome tool I think everybody knows that here it's a little bit cumbersome to initially set up but there's some great signatures get some great wireless shenanigans going on it gets you a little to a lot of stuff kismet I think it's a great tool for networking and networking and I think it's a great tool for networking and we'll alert you on deauthentication and dissociation floods attacks and it's really good links to let's built into most everything run air snare from with it for Windows to I've been using for about two months now nice little gooey thing that shows you a lot of stuff on the network blah blah blah do not check email do not go to LinkedIn or Facebook all right if you want to prove go over the wall of sheet because you'll see it all up there starting tomorrow thing I don't know if it's up there already but one thing to know is even if you go into SSL a lot of the stuff isn't going to be unencrypted after login page like you go to hotmail you go back to an HTTP page now your messages are going to still be encrypted but there's a lot of stuff ads and stuff they're not encrypted so you can just slipstream something right in there and you won't even get a warning port scan detection the orders and maps network scanning book awesome resource the more you know about scanning the more you know how to detect and prevent it page 238 283 and this will be all in the slides and I'll be updating them to the update on website scan log D and Port Century two really great tools for Linux workstations will automatically block some attacks in which could leave you susceptible to a DOS against yourself but you can whiteness some sites that you never want to get blocked so these are really cool tools really easy to get up and running quick zone alarm for Windows tried-and-true and peace out an oldie but a goodie it still works check it out okay so a trivia question is what was depicted on the DEF CON 8 human badges okay let me give you a clue the year is 2000 and it was just after the matrix nothing huh all right well okay good no no that's a good good guess out there the answer is the red pill but there's there's a backup question all right who's the dopest DJ in the galaxy right behind the monitor yep you got a DJ Jackalope come on up should be spinning some tracks this weekend all right do you think all right so you want to check out you want to make sure that and you're not sure if you got owned, you know, you want verification. So check your logs. We talked about tailoring your logs. If you still got them, check them. High network utilization, funky processes, and yes, Goetze. So Airplane was introduced in DEF CON 12 here at DEF CON, and the originators ran it here and inserted all images coming through people's web pages through their browsers with Goetze. So they went to all their favorite web pages and saw Goetze. There was a lot of puking that day. Check your MD5 hashes. If you have some known good binaries, you can MD5 them and make sure they're the same ones you put on there originally. Forensic utilities on backtrack and system rescue CD and so forth, good ones to have. Connection monitors. Curve ports for Windows are really good. It allows you to disconnect a connection that you don't like. So I like that one if you run Windows. Monitor your Etsy services and Etsy items. I like that one. I like that one. I like that one. So strike back. It's the most hostile network in the world. Be part of it. Jump in there. The things that I don't recommend you doing for a variety of reasons, but I'm going to mention a couple here. Do not DOS the wireless network or these guys will come and get you. No matter how much you accomplish in life, you will never be as awesome as this. Ninjas with guitars. Do not screw with the APs or general DNS or this guy will come and get you. Now this was as painful for me to put in this PowerPoint slide as it was for you to see. So don't let this guy come and get you. All right. You want to have tools ready to terminate access as soon as you see it and you think it's suspicious. Win10T and IcePick. Some older tools, but still useful. Again, a few of those network and map book. ScanLogD. Ports entry. Again, these will block offenses and block the ports until you open them up again. And we got another trivia. All right. Okay. Since we're in Vegas, this might be a tough one. Since we're in Vegas, what casino was used for the Vegas scene in the movie Swingers? No. There's two answers. Go ahead. White shirt. No. Not the Flamingo. Was it? No. Not Caesars Piles. Was it? Stardust. Good one. Yes. This guy right here. Stardust. So it's now demolished, but they used it for the outside scene when they're walking by. Come on up. All right. All right. All right. All right. All right. All right. Conclusion. Am I doing all right for time? Anybody know? All right. Cool. That was faster than I thought. All right. So have a blast here. This is the most fun I have all year. You guys are going to enjoy the heck out of it if you haven't been here before, and you're going to enjoy it again if you have been. But one consideration. if you have the inclination put the laptop down laptop down for a while and try to meet some people because when you come back to a conference and you see old friends that you made before it's even better than you know if you just happy on your laptop that the whole time so even if you can talk about laptops talk to somebody if you go on network monitor everything you can keep your pulse on everything that's going on assume that you're gonna get owned okay assume that something's going to happen and no matter what you think happened move your laptop when you get home just totally wipe it rebuild the master boot record just consider it a trash laptop in all regards a couple of support shots I'd like to throw out there on the EFF support the the summit's tonight please go up there they're defending our rights against government intrusion and corporate entities so please go up there and support them um I hackers for charity Johnny Long's doing great stuff down Africa and Big Fix is donating dollar for dollar right now I think so go and I support that but please if you're going to donate don't do it from here okay thanks very much any questions yeah go ahead in the in the tap so the question was how was I welcome to the conference and how was I welcome to the conference and how was I running my in what mode was I running in when I was running my Linux distro as running as a normal user I wasn't running as root but doesn't it a lot of the stuff's not going to matter once you get a web session owned so there's going to be a lot of privileged privilege escalation attacks that can happen after the fact yeah I thought we were gonna get a CD though we haven't passed but I guess did you get a CD oh you did okay so it should be on there I've updated these some, so on the website, they're going to post all the updated slides, so anything that's changed will be up on the website after the con. Oh, it's not on CD. No, it says look later. Look later. Yeah. Okay. Okay, so it will be up on the website. Did somebody else? Okay, that's it. Thanks very much for attending. You guys have been awesome.