Good afternoon, everyone. Welcome to the day two and a half, whatever we are in DEF CON. I've kind of lost track. I'm Null. Crash went to get more beer for us, so I think that's a good thing. So a round of applause for Crash when he gets back in. Over to my right here, we have I Like Sheep. My left, we have R-Snake and Hacks are the Matrix. And last but not least, we have The Hoff, who will be doing a special interpretive dance for us today on keyboards. Indeed. Do you want to introduce your thing? Oh, no, you just go through the slides. OK. I Like Sheep? It's actually been established very eagerly. Thank you for admitting in public, though. I really like sheep. You do, and this is what happens when you don't show up for the prep meeting. Woo! Thank you, Crash. Crash. So you should know that this isn't going to be the most serious talk. So take it for what you will. So I've been asked to read this by Chris. Thanks to a certain journalist who didn't interview me correctly, but to enact what I said at Black Cat, I'm not speaking today, but I enjoy making my mortgage payments. And his voice is, in fact, totally fucked. So he could be laying at the pool at Caesars, enjoying some naked girls. Only one of the screens is like that. That's good. It's cool. So instead. We were talking with Chris and I were talking a couple weeks ago, and on his blog he often posts poetry. And he claims that he can do it live, and most of his posts come up in about 15 minutes or so. So today, Chris isn't going to talk at all. Instead, well, he's going to heckle the rest of us via text. We're calling it the Def Con Poetry Jam. And the theme today is failure. There's been a lot of talk about, you know, being a protecting data, keeping it protected. And really, we came to a conclusion as we were talking on the phone a few weeks ago that failure really isn't an option in this industry. In fact, it's actually inevitable. So the theme today is pretty much get over it, you're going to get fucked, whether you're a researcher, whether you're a commercial, you know, corporate security person, whether you're a manufacturer of security software. So the best plan is to plan for failure and move on from there. So I was going to talk about some other stuff today, but really, earlier today, for those of you who haven't heard, the Massachusetts Bay Transportation Authority sued some speakers who were supposed to be speaking tomorrow because they felt that their research was a violation of assorted federal codes, including the Computer Crimes and Abuse Act. So they got their restraining order, and the speakers have pulled out. They pulled out their talk. Yet, the MBTA missed a couple of key points, like 7,000 CDs that have been handed to all of the attendees here with the speaker's slides on them. Hey, does anybody remember CiscoGate? Does anybody remember CiscoGate? Yeah. So, you know, the one lesson I think people should have taken away from that is that once you've turned your press... ...presentation over to someone else, you can't really reel it back in, no matter how many pages you tear out of a book or how many CDs you have shredded. It's on BitTorrent already. It's on BitTorrent. Yes. So, and actually, as part of... Actually, I'll get back to that in a second. So, as part of the paperwork that the MBTA filed with the courts in Massachusetts, they included several exhibits that are actually publicly accessible and publicly available to anyone who wants them. You can see where this is going. Two of the exhibits they included were, one, the presentation. So it's now in the public domain. And two, an academic-style white paper that it describes in more detail than the slides did, the nature of the research and the attacks they did. So, if you know someone who has access to online legal documents, just have a little chat with them, and you can see the slides if you lost your CD. Or you can see the slides if you lost your CD. Or you can see the slides if you lost your CD. Or you can see the slides if you want the white paper is out there. It's in the public domain and it's freely accessible. So all I can say to the MBTA is, there are about 7,000 to 8,000 people here, and you've now convinced three people they're not allowed to talk about it. But, well, the rest of us are. I'm not going to go into a lot of details because we have a lot of other stuff going on, but... The rest of us can talk about it. Take a look at the slides, and meanwhile, well, MBTA, you're today and everywhere. But we can talk about four other things here on the panel. full of fail. Next, we have our snake to talk about his stuff. Thank you. Hey, don't they owe $120 to the content? Not if they sue him for it. Hey, everybody. I want to talk a little bit about just kind of how we're trying to solve problems that are kind of bleeding edge. They're really interesting. We're all really excited about them, but we really haven't fixed anything. Have you all noticed that everything's still broken? People are still getting owned all over the place with wireless networks. It happened like two or three times at this conference, not including the wall of shame and everything else. I'm going to talk a little bit about authentication on the web and how it's totally broken and how there's a whole bunch of vendors out there selling stuff that doesn't work. I'm going to tell you why you're going to pay for it anyway, which is pretty lame. Let's get on with it. Second factor off, how many people have one in their pocket right now? Four? This is a security conference? Really? Okay. Really? Okay. Is it because you just didn't bring them? Okay. All right. This is my favorite way to get around it. Please mail us your username, password, and token. There are users out there right now who will fall for this. I've actually met them. You go to an eBay live conference, you meet some average human beings. They're not like us. They'll do pretty much anything you ask them to do. In fact, I like this picture. Why am I showing a picture of the back? Because if you say, enter the token number, that's the number they're going to type in. They don't know to flip it around and look at the other side. That one's the one changing. That's too hard. Banks won't federate. They say, we're not going to work with one another. We're not going to work with the industry. Without banks, no one wants to do a whole federation concept. The reason why that's kind of a big deal is people are going to have to carry around multiple tokens. Why am I going to have five tokens to do all of my banking? Banks won't even talk to me on another. The reason for that is they're worried that one central repository is going to get compromised, which it may or may not. We've done a fairly good job of securing CAs and stuff, so I think we can get around that. It's sort of a least common denominator. Whichever one's the least secure is the one that they're going to go after. If you want to hack some lame little porn site that happens to use federated tokens, they can also let you get into the bank. That turns out to be a problem. People lose them. They type them in wrong. They put them in backwards, like I said. It hurts the ability for consumers to interact quickly with websites. Consumers don't really understand the value of the tokens themselves, so they'll give people their keychains and walk away with them and just all kinds of stuff. Event-based tokens, if you've seen them, they have little buttons on them. Kids love to press those things, and they get out of sync. They don't want to press those things. You have them in your purse, your wallet. They get pressed just kind of sitting around, so they don't work. Just kind of a pain in the butt. Really terrible for consumers. Time-critical functions. I ran into one guy from the U.S. Mint, and I was talking to him about this exact topic. He said he carries 13 around at the same time. 13. Can anyone beat that? Is there anybody who has more than that? Right. Okay. Good. We have a record. If anyone beats that, I'd be curious to hear it. It's just ridiculous, right? How do you carry that around at the same time? Of course, he's got a bag full of keychains to log in, right? Other ones like bank TLDs. I've talked a little bit about it on my blog, but I'm super annoyed at this whole concept. Why have an entire TLD just for... People are going to say, oh, well, if it's not a bank TLD, I know it's a phishing site. Well, the problem is if you tell people that you need to go log into this bank, it turns out that people actually have to read. The URL bar for that to work, and phishers don't even use domains a lot of time. They use IP addresses, and consumers fall for it all the time. I don't see why that's going to change anything, but I could be wrong. Not to mention, you're going to have to have this huge migration plan to move everything over. Everyone's going to say, well, I'm not a bank, but I want to be secure, too. I do transactions. I'm a real... Some gigantic real... What am I trying to say? You know what I'm talking about. Real... Real estate. No, that's not right. Retailer. Thank you. Mom and Paws are going to thank you. I'm a little hungover. It was late night. You guys hear about PDP? No? Really? No one heard about that? Wow. Go read Full Disclosure. It's pretty interesting. It'll get me up until 1.30 just reading that. No one knows it? Okay, so PDP got compromised a couple days ago. We made it in Full Disclosure. They put his personal docs, pictures of his business, wife. It's pretty nasty. We don't know how it happened. It was Gmail. It may or may not be an exploit in Gmail. They're looking into it. Basically, we're just building another version of EV certs, another version of SSL, another version of all the same crappy authentication that really never told a user where they were to begin with. People are going to fall for it in the same way they fell for everything else. We haven't even slightly solved the issue of using bank TLDs. I think it's just a terrible idea. It'll never get implemented properly. We have a huge migration plan. It's just a bad, bad idea. People are going to do it anyway, even though I tell them not to, but I'm just letting you know ahead of time. Speaking of EV certs, phishers don't use SSL. It turns out that if they don't use EV certs, it works pretty much the same way. They just don't implement it. It magically doesn't do that. It's prohibitively expensive for the small customers, the little guys out there who want the same authentication, so one thing is green, one thing is... It's just a huge pain. Look for the lock messaging, which I'll show you a little bit later. This is Gridmark. This is literally the worst-looking authentication flow I've ever seen in my life. I see a lot of really bad implementations of authentication, but it's a good thing. It's a really good thing, but this one is particularly bad. What you have to have is a password and a direction, so upper right, upper left, lower right, lower left. You just pick a direction and a password. If my password were the number zero and I pick upper right, it would be, in this case, six. I can hardly see it. Then you type in six, and therefore, if someone was in the man in the middle, they wouldn't be able to tell what your password is. Wait, wait, wait. This is real? Yeah, yeah. I didn't make this up. You didn't make this up? No, no, no. This is absolutely real. This exists. No, no, no. I didn't make this up. It gets worse. Here's a different implementation, same product. It's using a two-digit series. It looks kind of secure, right? You're like, wow, I wouldn't know what to do with that thing. It's awful. Consumers, I tried. It took me 15 minutes to log in the first time. I'm like, what am I doing? That's just because you were waiting for the numbers to change. Yeah, no kidding. What is it? Captcha? What do I type? This is my password. It looks pretty secure, right? Yeah. It's a random string of digits. You can't tell what it is. I'm going to show you how to break it by hand. No, nothing up my sleeve, no calculators. You're going to do it by hand. It turns out that this is just a couple sets of digits. You just take them apart piece by piece. You say, okay, where's 01? That gave me two pieces of information. It gave me the direction, and it also gave me the first letter of my password, which is pound. How can you not see the letter that it's on? Come on, guys. Oh, you guys can't see it. That's right. I'm sorry. I apologize to this side of the audience. You're still idiots over here. You picked the wrong side that I'm just sitting on. It's the letter I. Come on. You got it? Can you see why it's the letter I? Because it's over the letter I. Yeah? Okay. There's a big purple circle over there. That big purple circle, that's I. Got it. Okay. You're going to get the next one, I promise. Now it's... Thank you. All right. All right. It also turns out that the second letter of my password is... Thank you. All right. The next one's more complicated. It actually falls all over the place. For some reason, this... I screwed it up now. What's that? I totally, totally blame Rich Mogul for this. Anyway, it falls all over the place, but it turns out that there's only one place that matches that direction, and that's right there. My password is... Yeah. I-S-S-A. Right. You can do it by hand. It turns out that the longer your password is, the more secure you want to be, the easier this is to break, because you just find that there's more places that it couldn't have been the other direction. Literally, you can do this by hand. I suggest you try it if you ever get stuck in the middle, and you're like, oh my God, I don't know what I'm doing. Just try to do it by hand. That's total snake oil, and it's crap. I see this kind of stuff all the time. Psyche, which is actually semi-implemented into Gridmark, by the way, is also a tool for a terrible security mechanism. There's an MIT study, for those of you who don't know about it. People didn't even notice when their Psyche, their little image that was... It's the image of a puppy that they uploaded or whatever. When it wasn't a picture of a puppy, they still didn't notice. When you just kind of got rid of it, they still didn't notice. In fact, consumers were more confused by it than they were actually helped by it, it turns out. It's just total snake oil. It doesn't do anything for security at all. It's also a pretty vulnerable to man-in-the-middle attacks, because if I know your username, I'm going to use your username, which you gave me before. That's why I know how to deliver you the Psyche password, or picture, rather. Then, see, I'm totally hungover. I'm sorry. Ask him how long he spends on his hair every day. What's that? What's that? How long does he spend on your hair every day? Oh, well, that kept me up all night. What are you talking about? So ultimately, phishers can just say, I lost my password. What is it? I don't know. I don't know. I like goatsy. I really hate this panel. I don't like any of these guys at all. All right. The hair thing really threw him. He doesn't know how to recover. Yeah. Yeah, exactly. Yeah, I got a text message while I was sitting here. Yeah, hey, you want to come over to this other speech? I think I'll stay at this one. Thanks. We appreciate that. Yeah. Yeah, exactly. Are you reconsidering that decision now? No, I'm reconsidering. I really am. But anyway, all the sites are still vulnerable to all this other crap, so it doesn't really matter. You have this great authentication system that's super amazing and you paid millions of dollars to implement it across your huge enterprise or whatever, but it doesn't matter. You're still vulnerable to everything else. We do a lot of audits, and I really rarely find a site that's actually locked down. I'm sure they exist. No one's asked me to look at it. This is Semantic's website. They've got a crosstomain.xml file. They have a lot of open. That's just sad. Like Paris Hilton, who can't spell, this is pretty useless. Yeah, that's not how you spell your. Most enterprises, they don't use any sort of email encryption. They don't encrypt their faxes. All their phones are all open, so physical security issues are just wide, wide, wide open for their clients when they're sending off, hey, log into this site or do this or whatever. All that stuff's wide and clear. I'm sure you guys all know this stuff, but we've never fixed any of this stuff. It's not done. There's a very, very select few people out there who are doing this stuff, but not enough to actually make a difference. Brute force detection is one of the weird pseudo-sciences of the authentication world. Not a lot of people talk about it, but there's four different ways to do brute force, and maybe one of them is usually covered by sites who actually care about this stuff, and that's vertical password checking. It's like username, password. The same username, password. You know, same username, different password. Same username, different password, and so on. It also works if you switch that up and say different username, password, different username, same password, and so on. Then you can do diagonal and then three-dimensional with different IP addresses and so on. You can mix it up. There's also credential-based brute forcing, which really no one ever talks about. We actually do find it in the wild fairly regularly. It's really bad. I mean, no one's fixed any of this stuff. There's very, very few sites who are dealing with this stuff appropriately. Ultimately, it's really bad. It's really, really hard problem. They don't force strong passwords. There's no auto-logout. Everything is broken. You can log into anybody's account because they store the credential in the database. They never wipe it out. It's a mess. We have downloads over HTTP still. People are downloading executables all the time. You're going to end up using all this stuff anyway, even though I just told you not to. There's a reason for it. There's kind of the bear run. You need to run faster than the guy standing next to you. You don't need to outrun the bear. You just need to outrun this other guy thing. He's here till Sunday, guys. Have the steak. I actually really hate this analogy because it implies that that actually does anything for your security. It really doesn't change anything. If you're running faster than the guy next to you, just use the same analogy, and he eventually gets eaten, who's the bear going to go after next? You're sitting right there. You're like, hey, that's my buddy. What are you doing? You're still going to get eaten. It's just a matter of time. Let's say there's two banks in the world, just to make this simple. One bank is using this new cutting-edge piece of security, and the other bank isn't. The new cutting-edge piece of security that actually isn't security at all, but it looks nice and fancy, is starting to reduce the amount of attacks over time because the bad guys just realize it's easier. I'm just going to ignore him. Sorry. I just can't deal with him. They're going to move over to the other guy, and it's going to look. Their fraud ratios are going to drop off. The other guys are going to get worse. They're going to say, hey, look. You've got case studies to prove that this is working. All this fraud is dropping off. This other is going up. It's perfect. The other guy implements it. The same thing happens. This guy's fraud goes up over time because the bad guys move over and so on. Everyone thinks, hey, this is a great security product. It worked, and we have metrics to prove it, but in the end, the bad guys are just shifting around and just trying new exploits and figuring out that their scripts just work differently on different pages. How you doing, Hoff? Good. Oh, there we go. See? Someone does love me. Oh, yeah. Basically, just plan to fail because you're probably already doing it. I don't mean to hurt anyone's feelings, but there's a lot of crap out there, and I have to deal with it. Cheers. It's pretty obvious that there's a lot of easy, dumb shit that still works really, really well. For the next part, Larry and I are going to talk a bit about some stuff that's basically taking attacks we've known about for years. It's going to be some wireless stuff. We have a demo and all sorts of things going along with it. To be honest, I don't care if you've got the biggest OD in the world. I don't need it. There's just so many other more effective, easily effective things that get the job done. For this next section, we're going to go talk about building the perfect evil twin attack. We're going to do a combination of rogue access points and evil twins, just because we combined a bunch of our work stuff. It is distracting. Oh, it's the short. The plane. The plane. Is he Jewish? We can't be really... Well, anyway. Hey, don't you just want to grab Rich and make him tell you where the pot of gold is? On that note, I'm going to switch over to Larry for a bit. He's going to talk about doing all sorts of wacky shit with access points that you wouldn't... Well, let's just say they're internally motivated. Wait. Before he starts, I have to make an announcement. I actually stopped drinking and one of my co-presenters just gave me a beer. The first person who can answer a funny question, Rich is going to ask. I'm going to be honest with you. I'm going to ask you a question. If you can have a beer, maybe you can have this beer. How many people think Dave Maynard sleeps with goats? Your hand was up first. You get the beer. Enjoy it. There's a goat sperm in it. I do believe his answer was, who wouldn't? Sir, what you do in your own time is your own business. It takes all kinds. All right, so Rich is going to be talking about hiding some evil twin sort of wireless access points. I've got some creative ideas on where to hide these things and how we can get back access to some of the data. So I had a little bit of inspiration for the folks for this stuff, and it was RenderMan. He's probably up in the wireless village right now. So, RenderMan's first hack appeared at ShmooCon 2005, was known as TeddyNet. He walked around with a teddy bear on his back, which is rather unusual, or maybe not at a hacker convention. Well, not if you're a Japanese schoolgirl. Not if you're a Japanese schoolgirl? No. So... Can you start drinking again, Dave? Because it wouldn't help. So, no one seemed to notice that... So, this panel is also epically failing right now. Okay, so they're taking my slides away. Okay, so I can keep talking anyway. So, no one seemed to notice that RenderMan was walking around with this teddy bear, and every once in a while an SSID would pop up called TeddyNet. What does that say? Fantastic. Little did you know, before Rich worked for Gartner, he was actually the Teddy Ruxpin model as well. I want to love you. You can sit right there. Thank you very much. All right. So, I thought about this, and I said, well, that's pretty neat. Hide and Axis point into something that seems rather innocuous. So, he initially built this. So, I thought about this, and I said, well, that's pretty neat. Hide and Axis point into something that seems rather innocuous. So, I thought about this, and I said, well, that's pretty neat. So, I thought about this, and I said, well, that's pretty neat. And he took it to ShmooCon to test. And I thought, well, I'm not going to find too many teddy bears in an office when I'm doing a penetration test or trying to own some companies. So, he actually ended up coming with this, known as Evil Bastard. It's a broken APC UPS, that he removed the batteries from, added some wiring, put an Axis point into it. in it, reuse the existing Ethernet ports so that he can now plug this into the network. Looks like it's supposed to be there until the power goes out because now your PC shuts down because there's no batteries left. But it works. Works well. So I thought about this and I said, all right, so what can I do with this? But using a WRT54G is kind of large, so let's pick something a little smaller. I've used the La Finera, the phone, the original one, with OpenWrt installed. Here it is out of its case. I am definitely not Jewish. So when you take this out of the case, remove the antenna, it's about the size of my wallet, so it's actually pretty small and we can actually fit this in some good stuff. However, we do have a problem. Part of my wanting to be able to hide these things is to keep the host device functional. So, whatever we put this in, I want to make it continue to work. So it looks like it's supposed to be there and we're not having people call the help desk saying, oh, my X doesn't work. Can you come fix it? The technician comes out and finds my access point. I want to avoid that. So part of the problem with the La Finera was we only have one Ethernet port. So again, help desk calls, my device isn't functioning. So in the long short of it, we need another couple of ports. So we're going to take a Netgear EN104 out of the case. I've got a couple of ports. I've got some lines drawn on this for those of you that can see it. Take the Dremel to it, remove a bunch of traces, re-put them back on with jumper wire, make it a little bit smaller, take all the Ethernet ports off, and off we go. So we've got a couple more challenges with hiding some of these rogues. We want to make sure that, again, the host device is functional. Some of these things we're not going to have a lot of size to deal with, a lot of room to put these in. Okay. Is it something? Anything I said. Okay. Potentially, if we're in a more robust environment, we're going to have to deal with network access control, but maybe not, because some of these devices that we'll be inserting access points into don't necessarily support the client, so they're on an open segment that doesn't have NAC. We also need to find a sacrificial device, and depending on what it is, may be rather expensive on your budget, so you better be billing for time and materials. And we've got a few other things, too. So we do end up needing to do some creative soldering in order to make some of these devices small. We can actually remove all the Ethernet ports, and I actually found out that I can't, so fail. We can lay down the capacitors where we need, trim the boards, jumper the bits we remove, and we can do both of this for La Funera and the host as well. How much have you spent so far? A couple hundred bucks. You could do this with an iPhone. Yeah. But then you can't even... But that's not nearly as much fun. The problem is is that the iPhone does not have an Ethernet port, so I'm plugging into an Ethernet jack somewhere and adding a rogue access point and grabbing data off of their network. You could do it with an EPC. Very true. Still much larger, and you'll see why. So from my experience with this, one of the most difficult parts was the Ethernet ports. I figured when I started this, great, I'll just desolder the Ethernet port from the board, solder the wires directly to the board. And off I go. Well, what I failed to remember was that Ethernet ports are designed electrically isolated from the actual device, so that if there's a stray voltage spike coming down the wire, it doesn't fry either your switch or the device. Yeah, and I wanted to retain that, because I want to keep some of the stuff. So the problem that I run into is now I'm taking apart the devices, soldering directly to the pins on the Ethernet jack. And as my wife says, I end up looking like a dork, because I spend a couple of hours wearing one of these. Wait. That's what made you look like a dork? Sounds like a dork? Well, that too. OK. So one of the other problems is finding power. So technically you can do this on an iPhone when you leave it in a cab. So one of the other things that's a challenge also is powering these access points and or the switch hub if we need it. we both need five volts DC to power both of these and again I don't want it to go discovered for very I wanted to go undiscovered for quite some time so I don't want to have someone walk up to a printer for example and see that 110 mains power plugged into the printer and also a wall wart because that's kind of unusual and you know someone who's a little bit more sophisticated if a tech is walking by they'll note that well that's kind of strange that shouldn't be in that configuration and take a look at it hopefully so let's find power internally tap from it and and deal with that now we're not going to find matching voltage all the time so we're going to have to build small circuit to deal with that is that our diode and we're off so once we've hidden it ritual get into some more about being able to retrieve some of your data in my instance I'm doing it via Ethernet I'm deploying it in a customer's network or I'm deploying it in some organization that I don't want them to find it I'm never probably going to see this device again because you think it was a rush hiding this device yeah now return to the scene of the crime and go get it so I had a thought about getting the data back and because I'm installing open work on these devices it's all Linux based so now I can take a cron job run the cron job it's a 3 a.m. to change my wireless settings so that it sets up a wireless access point that I know about and I can park out in front of the building connect to it pull my data off shut it back down after 10 minutes now ask your guys that monitor your wireless intrusion detection systems and your rogue access point detection to find that at 3 a.m. for 10 minutes they're not going to be happy and you'll see why so you're saying wireless IDS vendors like airtight would not provide you any benefit here I did not say that could you say that you're just going to drive your admins nuts because they're going to get it for 10 minutes every day so yeah it will pick it up it's going to give them some pretty darn good ideas as to where it's going to be but you're going to see why they're going to draw it go nuts when you see where I'm hiding them are you hiding in their desk what's that are you I think I might hiding it in my ass we'll get to that don't give away the punchline yes there you go randomize the cron job too but then again I need to know when it's going to be there so that I can go back and collect the data so I need to know what the randomization is now I'm sending it and that have it email me now I'm sending traffic from a device that shouldn't be emailing anyone outbound from the customers network they may pick up on that and now they have a device that's not going to be able to look for because it's coming from an IP address and can locate it via switch port if I had an iPhone and didn't leave it in a cab like guys that we'll get to that yeah so we'll get there so now we have our requirements I'll see you later here's my room key so what can we find here's my room key so what can we find in an office environment we can start hiding the gers rogue access points in and it's now time to get more evil and more bastard but remember every time you hide a rogue homer eats a kitten so printers one of the most ubiquitous pieces of tech in most office buildings I've seen a facility where they had a printer overrun they had three printers for every person in the building don't ask I don't know all right so let's start in the beginning the HP Mio okay so yeah looks pretty big it looks like we should be able to fit both the devices in there there's one slight problem with this because where do you find these printers that support HP Mio no Quentin you don't find it in that kind of storage you find it in dead printer storage so I found these printers at a customer site in storage so unless you work for somebody that doesn't have a lot of money and maybe a community college you probably have a bad time finding these devices so we're gonna fail on that one that's the that's that is the theme of this presentation after all so let's upgrade to the EIO great looks good it's a little bit smaller we're gonna have to get really creative with trimming and soldering and all that good stuff the problem is is that EIO the best I can tell us based on PCI 3o which only delivers 3.3 volts and we need 5 so now we have to you know build circuit to increase 3.3 volts to 5 volts and we don't have that enough that much space so no luck there yeah you want to hold this for me are your hands clean so what about external print servers yeah well these places these are you know we can find these but will it fit yeah it looks like we've got some pretty good rock luck well I heard someone laughing so I know I have to look I'm nervous but you may be asking me oh Larry these things are really old technology well I took this picture six months ago it prints multi-part medical forms think about that the type of stuff if we had a rogue access point in line in a hub that we could get off of this can you say identity theft Paris Hilton's medical records Paris Hilton we already know what she's got so now you may be noticing in that picture that there's a little sign up there and yeah it's the warning because it's in an area that's protected by FM 200 which is fire suppression because it's behind locked doors well I've also seen these types of things in unsecured areas that print checkpoints and stuff like that so I'm going to go ahead and do that in a moment so if you don't have a thanks checks thank you okay so what next see anything interesting here that I might want to hide an access point in the cocaine the cocaine I'm sorry that thing toner all right so what about multi-function devices sure they've got Ethernet it's about the same as an EIO form factor unfortunately this printer is directly across the hall from my office and I would have have had an office full of mad people if i decided to take this out and start uh soldering stuff to it so you're saying that you weren't willing to sacrifice for this presentation i can only sacrifice so much start with a goat okay what's that start with a goat start with a goat dave can i borrow your goat yes you're not getting them back or wash it out first wash it out for never mind okay so now so now after you know we talked about grabbing print jobs from printers being in line with a hub now we can also grab print jobs copies sent over the network scan documents over the network faxes you know think about when you go to your office every day the types of stuff you scan fax and print that might be very difficult to do but you can also grab print jobs and print very useful to an attacker or me what do you see here that we might want to hide a rogue access point in pretty close the clock not the clock but that's a good opportunity because some of the clocks that i've encountered are actually controlled centrally by time server but not via ethernet so that would be interesting i'd like to find those you can buy an ntp clock pretty close pretty close so yes on this sign has a little box that converts serial to ethernet this one's really simple it's a little box that converts serial to ethernet and it's pretty small but the same manufacturer make ones that are about the same size as an hp mi e i o okay that's probably a pretty good idea so how about here fire alarm panel yes some of these fire alarm panels are ethernet enabled not to mention that these switches are also fire rated powered by multiple sources so that's a pretty good idea so i have to make a warning of advice i don't condone this distraction you're gonna start a fire yeah you know either start a fire doing this or again messing with this fire type system puts people's lives in danger and uh yeah i i'm not about that but it's possible so don't do this what about here besides the ibm servers lieber potentially yeah exit sign climate control system how's that you say larry it has a lock on it go talk to the guys in the wi-fi uh in the the lockpick village still make swiss cheese out of it about 30 seconds what about here the doctor we'll get to that whatever yeah time clock excellent i've taken the time clock out of it i'm gonna go ahead and get these photos off of ebay uh... the one on the right dentists current forty five hundred uh... time clock Read branded with a D P uh... world's largest uh... payroll processing so what are the chances you're gonna find the somewhere the company room to hide stuff about the forty five hundred actually even has the optional model to have battery backup great now lance latina the online available documentation uh... also instruct us on how to color these still slaughter replace one in take it off the wall you clone the configuration to your new device you put the new device back thanks made my job easy so I also go to a lot of these what do you see here besides maybe the Ethernet ports and the desk or the table the lamp I'm not listening to Dave anymore how about the projector this particular Sony model actually already has Wi-Fi built in so maybe a wire a signal coming from this particular conference room might go unnoticed because they expect it to be here what about here in the Furby this looks promising what about here yeah how about voice over IP telephone think about what you might want to record or listen to over that let's take a look at the inside oh great the phone that was sitting on my desk in that first slide to Ethernet ports break we have one does a vert we also have power but it doesn't have a power brick it gets power via power Ethernet so now you're gonna ask what Larry power of Ethernet based on 802.3 AF requires special signaling you know now you have to build a device that plugs in you know handles all that signaling to tell you what power you need and all that type of stuff no let the phone do it grab it downstream so we have another device that I'll be getting to in a second that actually does that so we have a do all that you power conversion does all the AF negotiation and then we grab it 48 volts off the center diode and then we split it presenter diode for ourselves so now the next question is Larry those phones are in a secure area you know they're obviously in your your office you're there or you lock your door when you leave well what about keeping your guests happy they show up to the facility they'll walk in the front door they meet the receptionist they sit down the telephone they meet the receptionist they sit down Yeah, guess what? There's a phone sitting right there on the table. What would it take for me to walk in and swap out that phone unnoticed? Now here's my favorite. Even this three-com net jack can turn into this standard-sized wall-mount jack, wall-mount box with the La Funera stuffed inside and it put back in front. So that power for Ethernet pulling the power is actually this device that we pulled power from and I have this working at home. It's powered via power over Ethernet with an access point in a wall jack. Dave, this is why you're going to drive your admins nuts because they're expecting that that device to be there with stuff plugged into it and it not being an access point and it's stuffed in the wall. Ouch. So we've covered a bunch of office technology, hard-wired stuff that may be a little unusual, but how about putting an access point in an access point? Oh my God, that's as bad as tunneling DNS over DNS. There's Dan Comiskey in here. Oh my God, that's as bad as tunneling DNS over DNS. Okay, so just a few that I encountered. The Lucent Proxim, Orinogo, AP1000 and 2000s. I actually saw these in a law school a couple months ago, still in use. So we probably get enough room to hide one in there. We also get external power, good voltages. Linksys WRT54G. We're probably only going to find these in smaller businesses and those types of things, but smaller businesses have types of data that we may want. I also looked at the Trapeze thin AP. It belongs to my employer. It has security screws and someone borrowed my security bit set and didn't return it. So I wasn't about to take this into the shop and get the drill press out. Again, sorry Dave, I can only sacrifice so much. Let me ask you a question. How much of this presentation has your employer seen? All of it. So they were totally okay with you taking your office phone apart? No comment. They didn't know about it until much later, so oh well. All right. So conclusion, yeah, we've got plenty of stuff in an office we can hide things in. Good places for APs and how many of our admins monitoring wireless intrusion detection and rogue access point detection and potentially evil twin detection are going to find this type of stuff in a timely fashion? So let's think about this a little different, just for fun. again, sort of along that evil twin type of attack. So let's use OpenWrt, the open-source Linux distribution for the Laughan era, and create WDS or WET, so we're bridging wireless to another wireless network. We can extend the distance, so now we can gain access from a different stuff from a different area, or do karma and some other things we'll get to, and don't know what to do then, and then we can profit from it. So now we don't need Ethernet. We just need power. Now we have endless possibilities. Like an iPhone? What's that? Like an iPhone? Yeah, like an iPhone. And if nothing else, we can always power it via battery and stick it in the plant. Okay, so now we've got a couple just for fun. And Dave, you're going to like this, because I told you we were going to get to this. So we're going to bridge wireless. We're going to rebroadcast it for ourselves. Take a small battery in some cases, and we turn it into a GOATC AP. I told you the Laughan era was small, and well, now you're not hiding it on a person. You're hiding it in a person. Told you, Dave. So how many have heard about the 1960s CIA project called Acoustic Kitty? Acoustic Kitty. Wow, this is going to be fun. All right, so in the 1960s, the CIA had a project called Acoustic Kitty, and I have a quote from Victor Marchetti, which I'll read for those guys who can't read it over there, that was, they slit the cat open, they put batteries in him and wired him up. The tail was used as an antenna. They made a monstrosity. They tested him and tested him. They found he would walk off the job when he got hungry. So they put in another wire to override that. Finally, they're ready. They took it out to a park bench and said, listen to those two guys, those two guys being Russian nationals at the Russian consulate in Washington, D.C., just down the street from the Warman Park Marriott. They take it out to the park bench, listen to those guys. Don't listen to anything else, not the birds, no other cats, no dog, just those two guys. So they have a wireless transmitter in the cat. Cool. They push the cat out of the van and is promptly run over by a taxi. Your tax dollars hard at work. It cost the CIA millions of dollars in the 1960s to come up with this project. So I thought, self, if the CIA can do it, so can I. So we have some early feedback. We have some field trials of Wi-Fi kitty. No animals were harmed during the course of this experiment. Was it monitored by PETA? What's that? Was your experiment monitored by PETA? No. But you'll just have to take my word for it. Because if I did anything to this cat, my wife would have killed me and I would not be here. So wait, can you produce a cat today to prove that? Yes, I can. Do you have it with you? Not with me, but I can show you pictures. And if you'd like to call and talk to my wife, wait a minute, I shouldn't say that, should I? But she's going to put the cat on the phone? Yeah, she'll put the cat on the phone. And no, not like that. All right, so let's bring this full circle for fun. So you remember RenderMan's teddy net? Teddy bear with an access point intended to be given to his friend's young girl? Yes. It was a PETA joke. So, the teddy bear did finally make it to the little girl. She now is in possession of it. So I thought, sorry Render, if you can do it, I can do it better. So we take one baby. This is my daughter, who's now 10 months. She's three months old at the time. We could take a diaper, an access point, and power. We add the baby. Priceless. Is this waterproof? Yes, she's wearing another diaper. No real babies were harmed during the course of this experiment. So, now I tend to find that I think about seeing access points all over the place. And I gave this talk really quick at ShmooCon. And Mr. Hoff and a good friend, Jack Daniel, were across the street at the Irish pub and took this picture. I am not a RenderMan. This is a rogue access point, Larry. All right, so now I'm going to turn it over to Rich to talk about his evil twins. So if you think about what Larry's doing, he's hiding rogue access points, plugging them into the local Ethernet to be able to capture that data, and then sending it out so he can grab it by driving by or whatever else. Well, there's some other kinds of interesting things we can do with wireless access points. And the biggest one, or, the one that I like the best is the evil twin attack. This is basically, if you think about, all right, everybody hold up their iPhones. Oh, come on. How many people have ever taken their iPhone and connected it to an access point called Linksys, Tsunami, Default, Clearwire, any of those common things? Once you do that, unless it's an encrypted network, it's in memory. Any time your iPhone gets near any of those again, it's going to go ahead and connect to those again. Or the other thing you can do is, hey, I'm just going to go and connect to those again. I'm just going to go into a Starbucks and I'm going to set up my evil twin access point. So, if I walk in and I walk in with something that's going to be more powerful than whatever crappy thing that Starbucks has put in and I say, this is AT&T or T-Mobile, depending on which Starbucks you're going to go into, the odds are people are going to go ahead and connect to me. They've got no idea. They don't think about these kinds of things. And once they connect to me, I have the ultimate man in the middle. I basically have hijacked their entire network connection. I don't have to sniff anything locally or anything else like that. I'm connected. Make them forced to connect to me. Just throw out a bunch of deauth packets that's going to go ahead and knock everybody off and they're going to have to go ahead and reconnect to you. So, what I try to do is take evil twin and do it a little bit on steroids. Instead of, lots of times people do this with their laptops. You throw in one or two wireless cards. You can even bridge the local wireless network or EVDO or something along those lines. Instead, I wanted something I could just kind of make and leave someplace for as long as I needed it to. So, what I try to do is go ahead and create something that was self-contained, high powered, drop it and leave it and, you know, I don't just want to sniff their traffic. I'd kind of like to exploit them any time they connect into that system. And I can do all sorts of weird exploit stuff. I can go ahead and I can nail them with their browser with any browser vulnerabilities that are there. I can sniff, do man in the middle traffic. You can run on these things. You can do almost anything that you need to. Maybe even inject HTML, drop images, imagine Air Pwned for a wired network, those kinds of things. Oh, I get worried when he goes, ah, got it. So, I'm going to go ahead. I'm going to do my best attempt to do a demo. Remember, I'm a former Gartner analyst. So, the odds of this succeeding are pretty much fucking slim to none. Let me go ahead and get out of PowerPoint here. What I'm going to do is I have a vulnerable virtual machine. Now, this is all wireless but it's not currently running as wireless right now. I've got it running as wired because Dave and Rob threatened to screw me up with some fuzzing, wireless fuzzing, so I wouldn't be able to do this. It's a blatant lie unless you can reduce documentation to support that claim. Yeah. So, what I've got running over here, I have one virtual machine that is, you know what, let me just switch my display options here. That'll be a little bit easier. That's Richard's boat, everybody, by the way. Is that the one that Beaker hacked? Yeah. All right. Everybody remember where you clicked the, there we go, mirror displays. All right. So, what I've got here is one virtual machine. I'm running Core Impact on this one. You can do it with Metasploit. I actually set this up to run both a Metasploit exploit and a Core Impact exploit on the splash screen but just to make sure the demo was slightly more reliable, this is my unpatched virtual machine. Now, the biggest problem I had with this is this thing is so unpatched, even like half the exploits crashed it completely. Go ahead, run Internet Explorer. So, what I've done here is this is the wired connection. It's as if I've already gone ahead and hijacked that wireless connection. I'll show you how I've done that. This is all going to that access point. That access point is set to go ahead and call out when, again, back to whatever computer I'm running, which could be remotely or could be attached into that local network. I'm doing it all locally and wired right now, again, just for demo's sake. All right, so, I have my Evil Squirrel Enterprises public wireless access point and that just crashed because if I switch over into Core Impact, which is this one, you'll see that I now have an agent in the system. And, again, you can do this with Metasploit or whatever and I can go ahead and browse the files and everything else. What I did in this case is the actual splash page itself had those exploits so I own that system as soon as they connect to that access point and think they're flowing through. Now, I said Evil Squirrel Enterprises. This could, of course, be anything like, oh, I don't know, AT&T's page or T-Mobile's page to make it look exactly the same. So, the next series of exploits that run, suppose their browser has passed, there's other interesting stuff I can do. So, these next sections are courtesy of our snake. He found all sorts of very interesting URLs and such over on Google and Yahoo and other places that when you connect to them, it's going to go ahead. Not only are you going to be able to sniff cookie credentials and such, but you can get things like my entire Google address book, which is what's showing here, my entire Yahoo address book, which is showing here, and these are the links that are actually embedded in the redirect page. So, I hit the splash page, I hit continue, it goes to another redirect page that right now is on hackers.org, but you could actually run locally, we just had a little bit of timing issue. On that page, it kicks these off as, they weren't eye frames, you use them as image tags, right, in the back end. The user never sees this is happening and it's making all of these connections to all their sites. And in the process, it's pulling in all of that information. Here's one from maps.yahoo, if you have any saved location in maps. Yeah, that's my old address where I grew up. Over here, we've got, what's this one? I don't even remember what this one about to come up is. It's another Google one. Oh, here's a Google address book. So, these are my Google contacts, dmanor at goats.com, hoff at pimps.net, rsnakeydevilbastard.com, those kinds of things. So, I can take control of anything. Why can I do this? Because they all have their cookies set on their system already. And once they have those in those sessions, I sniff all of that information in the background. Now, the way this is set up on the access point, what I've done, and I'll switch back over to the presentation here. And yes, all of that was running live right now. Those weren't cached or anything else. Whoops, wrong one. Does anybody else love that techno music? Sweet, sweet satisfaction. All right, let me get over here so I can hit play again to go through the rest of this. So, the sequence for the connection is, I have the splash page with the exploits. If I don't get them with the exploits, I get the redirect page where I get all of their credentials. If I don't get all their credentials, then I'm capturing all of their traffic because on that access point, I'm running tcpdump and every 30 minutes, it writes it all down to local storage and then every 30 minutes, it FTPs that back to my server at home. So, I don't have to be anywhere. I can take this and plug it in. And of course, as Larry showed, there's lots of easy ways to hide things. This one's in those couple of fake books that are sitting on the desk right now. The kinds of things you see in any, say, you know, like internet cafe or whatever where they have the nice lamps and the comfy letter chairs and those kinds of things. Take a lamp, put it on the top, run the cord in the middle, run the cord into the wall, nobody's gonna think about it. Now, what's inside of this to make it the ultimate evil twin is a couple of things. it connects to a cradle point router which is connected up to my EVDO card. The reason I want the EVDO is I want this self-contained. I don't want it to screw with the local wireless. I don't want it to screw with an ethernet cable going into the wall. I just want this entire thing to be able to go ahead and run on its own. And connected to that is a 500 milliwatt boosted power. The average access point, Larry, it's what? It's about 29 to 50 milliwatts, I think. Something like that. Many of them max out no more than 250. This is at 500. And it's got a 7 dBi antenna and you can put but I ran out of space. Underneath it is power so everything's contained when you go ahead and plug it into the wall. And then you can also make it portable. That's a 5-volt battery. I'll pull out of here in a second. You just connect that up to a car charger and you just plug everything in, stick it in your backpack and you're good to go. This is the one that's been running on here as we've been going along. So Rich, I knew something was up. You don't read books, especially books that big. So something like this 5-volt battery here will run this for about 2 1⁄2 hours. You take this. The stuff that's in there would actually get a little bit smaller. Stick it in your backpack. You're good to go. Walk into your cafe. You don't even have to have your laptop connected to it or anything else. It's going to sniff all that traffic, everything it captures, either store it on the USB or send it back over to your home server. So there's some future projects. There are some things I wanted to do with this but I ran out of time because Dan Kaminski called me up about a week before July 8th and said, hey, I've got this bug on DNS. I need some help getting the word out and it really fucked up my schedule and time to build my demo. These things are fully capable of running Metasploit natively on them. I had a little bit of trouble getting the Ruby libraries and those kinds of things to work, so I just gave up on it. Core Impact actually has a Python agent and maybe we can talk HD into coming up with a Nix-based agent or a metaterpreter that we can go ahead and link in. Fail. Fail. Yeah. So we can go ahead and run it. And what that gives you is one of the things I found is that when you try and turn this server so I can connect into it remotely and do whatever I want, that a lot of that traffic actually gets blocked by Verizon. So if you go ahead and you set it up so it'll actually connect back to you at home and send the traffic across, you'll be able to go ahead and do that. You can do other stuff. Man-in-the-middle it with Ettercap. You can... Car Metasploit is now working with... You don't need to use the mad Wi-Fi... No, no. They got it to work with the mad Wi-Fi. I can't remember. HD made some announcement a few days ago. Got it. And so what Car Metasploit will do, it will accept any SSID probe and anybody will connect into you and then you can run all the Metasploit exploits on it automatically. So assuming we can get the wireless driver set, there's no reason that that can't be running on here and then you don't even have to fake to be AT&T. You can fake to be... Well, it's just gonna connect any connection to anything. The other thing that's not in that is the bridge to the Internet itself so the user doesn't realize they've been owned. Yeah, I'm next. Now why does all this matter? Nothing new here. You guys have all seen this kind of stuff before. It's just combining a couple of simple attacks. It's combining the usual Metasploit stuff or Core Impact stuff with wireless sniffing on the background with some of the browser-based vulnerabilities that actually pass those credentials across so you can capture all of those things and go. And then finally you can get whatever you want. So that's pretty much all I've got for this section and turn it back over to Larry to go ahead and plow through the problems with metadata. And I'll turn the wireless on later but I didn't want anybody fuzzing it while I was up here or like compromising my access point and fucking up my demo so, but it's all in here. Pardon me while I whip this out. I gotta go piss. Dave, you're up. Oh, am I up? Sorry. I was busy. All right. So you know it's gonna be a good DEF CON presentation when it has a farting warthog. Or maybe it's just me. All right. So I've been doing some looking into... Hold on a second. Now that Rich is gone, we will auction off his wireless gear starting at $20. Who has $20? Do I hear $20? $30. Do I hear $30? Anyone $30? $40? $40? Do I hear $40? $40? $50? At the very minimum we need to get into the strip club. So... Ooh. It's not a nice strip club either. All right. So I've been doing some research into how metadata and some common document types that we can find on web servers out there can lead to getting you owned. So, ignore this slide. So what is this metadata stuff? It's some information hidden in files that they're not revealed typically to the user. It's additional data for searches, filing, routing, even for potential file processing. Lawyers' offices are great for using this for doing content-based searches, those types of things. So, if you ever go to the FAIL blog, you'd know that Secret Nuclear Bunker, this is something that should have been some metadata and hidden, but no, it's sitting on the sign. We can find some pretty interesting stuff in here. So let's take a look at some metadata that might get populated in a Word document. And my good friend Paul Asadorian is sort of the butt of this joke. So this is the preference, sorry, the options tab from Microsoft Word on my Mac. And we're filling in a bunch of stuff. My manager is allegedly Paul. It's some potential exploits. And we've got some tests of the emergency metadata system. We also have some page counts and Word counts and all that good stuff. We can also add custom options. I've included my email and a fake telephone number. So now, if we find this document on my Mac, out on a web server somewhere, through Google, whichever, we can run that through strings and find some concatenated output that includes thank you, sir. This is a test. This is a test metadata document. Paul is my manager. We also have the version of Word that created it. About halfway down it says Microsoft Word 12.0.1. So you used Office on OS X to do this? Yes. Did you find any differences in Windows? No difference. I did not find any. So one of the other things that can get revealed in some of this stuff is if you edit a document with track changes on and then turn track changes off and publish it, all of those changes get stored in the metadata. So now you download the document, you've got all those changes. And Microsoft actually got bit by this a couple of times and they had some stuff in there talking about some customers and how they evaluated and what they replaced and that type of stuff. So that may be some handy information for some attackers to know because in one of these instances they said they evaluated both and they crossed out 126 Windows 2000 servers. Hmm. Okay. Might be helpful to know. How about Adobe Acrobat? So again here's the options screen for an Adobe Acrobat document. We've got some information filled in. We can do some more descriptions. My name, what shows up in PDF metadata. And again we'll be really and do a string that says things on testmedidata.pdf that I created and that may be out on a web server somewhere in your organization. So we get a bunch of stuff here as well. We get the distiller that created it Acrobat distiller 7-0 on Windows. We get keywords. We get the author. And we get some dates as to when it was created and last modified. Now why is that important? So if I find this document out on a web server somewhere I know when it was created. I can likely determine when the last time it was created. So if Rich were to post a PDF document out on his web server that was created two days ago chances are he probably hasn't patched his machine and if there's if this version of Adobe Acrobat is vulnerable I can deliver him a vulnerability for something that I know that he has on his system right now. Interesting. It's not vulnerable because I use a Mac. Mr. Mogul has had a little bit too much to drink today. Or not enough. All right. So picture this. This picture was in an AP news story of a hacker named 0x80. Okay. So this was included in a story that he wanted to remain anonymous for. He admitted to potentially committing some felonies. When it was submitted to the AP it had some metadata for XF and a bunch of other stuff in it. It was syndicated. It got left. So if you do a strings on this particular image which is still available via Wikipedia we get some information that it was taken with a Canon EOS 20D. It was processed with Adobe Photoshop CS2 on the Mac by Sarah Vosen when it was done. And it has some location information. So for someone that wanted to remain anonymous they gave up his location of Roland, Oklahoma. Is there anyone from Oklahoma here? I guess nobody. Oh great. So that's apparently the reason why because Roland, Oklahoma is a town of about 2,000 people. What would it take for someone to show up in Roland, Oklahoma and ask who's the kid who's about 19 years old smokes cigarettes and is into computers? Owned. So not so anonymous. So if we can do that federal authorities can do that especially when he cops the crimes in a news article. I've got a couple of tools that I used to come up with some stuff other than strings because all this stuff is manual download manual search and a manual extract. First one I looked at was Gulag which is a cool tool from the CDC. Takes all the Google dorks and starts scanning stuff. Breaks Google's terms of service. It includes unicorn chasers. However it wasn't the right tool for this application because it wasn't actually looking at any of the metadata. So this one was a fail. So was this gentleman the image is called militia.jpg. I don't want him in my army. Oh dear God. There's a series. And why do you know this? All as I know is I must possess them. All right so another tool that I discovered was metagoofil from edge security. It does automated Google queries for common document types Word, PDF, JPEGs and so forth. It does automatic extraction and reporting. It picks up user IDs, document paths in some of the older versions of Word even Mac addresses. So now if you think about that if you find a Mac address that's for a Dell laptop what kind of wireless drivers were shipped with a Dell laptop? Dave? Both Rodcom and Atheros. Mine currently has a Rodcom driver. How about Intel? Is that an option too? Yeah but you have to pay more for that. Yeah well you never know. But so Intel wireless cards in laptops. Dave are there any exploits for Intel drivers? There are. There's actually the reason why I'm not on the network here is there's a zero day for Rodcom and I'm not even trying to take that chance. Exactly. So now you know that there's a Dell machine that processed this particular document through this Mac address that has potentially drivers that are vulnerable to wireless attacks that don't even need to be connected to networks. Okay. That's some information gathering through Google. How about that? There's some problems with this on OS 10. They're working on it. So here's an example of a report. I picked a document from Paul and it shows that his username is P. Asador. Cool. And it was created one of the documents was created with Adobe Acrobat PDF Writer 5.0 for Windows NT. That's old. All right. So let's take all this stuff that we've been talking about and put it together because this is how you get pwned. It's also similar to something I think I may have seen at the Hacker Pimps party last night. Dance fail. So I came across this tool called Maltigo. No, not a tasty malt beverage such as this. You may have heard H.D. Moore and Val Smith talk about this. These are the guys who created and this thing is really cool. So you give it some place to start a name a web URL an email address and it will go take all of its search type of bits in the background go through all sorts of social networking sites indexes you name it it goes and finds it. It will also find documents to extract metadata. So when I'm going through these I'm going to keep with the theme of this presentation that failure is inevitable. I failed at this because I have information disclosure out there. We'll see. So I did a search on my good buddy Paul Asadorian and for those of you who can't see it on the far side of the room I've got a bunch of email addresses. We've got a phone number that actually isn't his. We can see that he's associated with SANS and that another person shows up Roger Dingledine. So I asked Paul Paul why does Roger Dingledine show up? And he told me well a couple of years ago I met Roger in Boston and he signed my PGP key. So obviously Paul must trust Roger. So now we have someone whom we can potentially spoof email from this sounds kinky okay yeah alright so now we know someone that Paul apparently trusts that we can potentially spoof email from to Paul and deliver an attack via the document that we know that may be vulnerable. I can't even read this slide so I don't even know why it's here. Good question. Alright so some of the documents that turned up we can now use MetaGoof sorry we can use Maltego to pull the metadata out of these documents directly. Right click there we go. A couple of them that Paul had revealed that his username was Piasador. We also note that there's a document linked to Paul's website that has me involved and reveals some information about me. Sexual orientation? Maybe. And the goat. So for that I give myself a fail. Oh I'm sorry let me cover that up for you. Oh no wait a minute this part. Alright so what do we know about some of this stuff about Paul? Dave missed it. Do you want to see it again Dave? It's finally silent. This? Alright so what do we know? Paul uses word and even a possible version with a certain time frame. See I can look down here he doesn't have to take it off the screen. Fail. So Paul uses word and possible version with certain vulnerable version within a certain time frame. He creates PDFs with time frames output DLL so we know what types of attacks to deliver. We know his email addresses we know some potential log in IDs we know what his website is so we know where he is and we know some people that he trusts so that we can spoof some contacts and send him over some documents. I'm sure we can find some exploits for those. And what is this called? Sexy ladies in leather. Oh spear fishing. So now we have all the information that we can use just through document metadata to conduct spear fishing attacks as well as some Google searches. Okay so clean up your act limit your exposure. If it's on the internet it's already too late so fail. At least take care of the stuff that's new. Clean up your Office 2003 docs don't put the metadata in on documents you're publishing on the internet. If you want to use it internally great go ahead. Just configure Office not to do this to begin with and you can also use the Microsoft remove hidden data add on works pretty well. You can use some metadata extraction for some other stuff infracrobes, bachitsu, the rev and hackwire metadata. I haven't had a chance to play with a lot of these but I'm told they work pretty well. There's two available tools for PDFs too. This particular one is advanced PDF tools. I still need something better because I think this one was a trial version and I'm not willing to pay for it just yet. JPEGs great XF tool is free runs on our Unix and it's real easy to remove all the stuff. Okay. Why do we have no more slides? Okay. That's it. Thank you. Hey before we go could you give us some more information about that tool you're using, Montego? Before you go could you give everybody some more information about the tool you're using, Montego? Sure. Because I've never heard of it so I assumed that a lot of people know. Really? So yeah, quick Google search for Maltego, M-A-L-T-E-G-O. You'll turn up the tool and of course I can't remember the name of the company that is doing it. It's by Rolof Teming from South Africa. Peterva. Peterva. It's on the Backtrack 3 CD. Rolof was kind enough to give a license to the Backtrack 3, Backtrack folks to include that. So check it out on there too before you go and download it. It is a pay-for tool now. It's still, for the type of powerful tool it is, it's very inexpensive. You heard it. Where is the demo? Podcasters Meetup. Okay. Howdy. I'm from the South and I'm when we get on stage people in the South we always say howdy. We're wearing cowboy boots but I'm not quite that gay. Not quite. Epic fail. Epic fail. Oh my. Window Vista screen. Yay. Don't forget my desktop. Awesome. Slideshow. So, I make a lot of jokes. yesterday I was heckling everybody because yesterday I actually gave a presentation and I'm going to I have to rant a little bit before we start. I have to rant a little bit before we start because I don't know if everybody might not know a couple years ago I found some problems in the Apple computers and the problem with finding anything in Apple computers is that Apple zealots will then instantly try to tear everything apart. So yesterday because I used an iPhone and the general principle was the same kind of stuff Rich and Larry were talking about. You take an iPhone you put it in a box and you ship it somewhere. While it's sitting there in somebody's mail room because you're supposed to send it to a non-existent person so it doesn't get delivered somebody opens the box and thinks it's a bomb. So, while it's sitting there in the mail room generally for pen tests in the past we've had access to you know their internal network. So using a connect back program on the iPhone we can actually connect to the iPhone then use the Wi-Fi interface on the iPhone to attack you know the network. So you know I started getting all kinds of hate mail last night that started off with who the hell would take an iPhone you just ship them and start using it? You can you can just right there in the Guinness Bottle. The Guinness Bottle. Right there Use the bottle. Use the force. So you know it always annoys me because half of the security problems that you've seen or talked about today in this panel are because people think they're experts who really aren't. So if anyone asks me I'm not really an expert in anything. But for some reason I get emails from administrative assistants who are Mac fans telling me why my attack can't possibly work and that's kind of annoying. So I'd like to call upon everybody today to start the cult of the non-Mac user. If you see a Mac user who is professing to be an expert in anything please hit them with something. Preferably their Mac. Except Rich. Rich is a good guy. Alright. Alright. We'll have to add a disclaimer then. No pygmy mutilations. So I have a blog called eretasite.blogspot.com and I occasionally before I stop drinking would drink something then get an idea in my head that I could probably do something. At one point I thought I might be able to be an Olympic athlete in drinking. Um but a couple of months ago I was like I can be an artist. I read XKCD. I can do that. So the funny thing about this is that this is my epic fail because apparently I don't do it very well. But this is an actual conversation I've had with somebody. You know they have a bunch of security tools. They run the security tools and if it's not on their checklist it's not a problem. So this is this is my attempt at humor because literally somebody had an open SMB share that had PeopleSoft payroll data on it. So basically you could connect with no authentication grab the PeopleSoft data and see what everybody in the company was being paid. And I told the CSO this. He goes well our our ISS scans don't show anything. Like well that doesn't matter it's right there. He goes well according to compliancy we're compliant. So this is the kind of stuff that actually really keeps me up at night because these are the kind of people that are protecting you your enterprise even your consumer information. No I didn't write ISS. No Chris Klaus wrote ISS. You can you just get really sucked in up here with this. So this is basically what's wrong with security. Everybody here has a web browser right. Now I'm going to tell you a funny story. Personally I've been an identity theft victim twice. The last time was in February where someone I got a call from my bank on a Saturday morning like 6 a.m. like excuse me sir where are you. You know being a smart ass I was like I'm in bed. And they're like no sir what country are you in. At this point I'm irate because it's 6 a.m. and I had a hangover. I was like what country do you think I'm in. You just called me. So they they started getting irate with me like sir this is a fraud department. I'm like oh crap what did I do last night. They're like no sir we show you have activity on your credit card in Guatemala. Have you been to any chicken restaurants in Guatemala. And I found this to be utterly hilarious because I didn't know there were specifically chicken restaurants in Guatemala. Like Polo Leoco or something like that. So long story made much shorter. Somebody spent $2800 for my credit card in 5 hours on a Friday night in Guatemala. And I can only think what the hell can you buy for $2800 on a Friday night in Guatemala. Somebody must have had a hell of a good time. So I was like I'm careful. I don't really shop online that much. I don't throw receipts away. I shred everything. I follow everything everybody tells me to do. And you know more to the point I do this for a living. So I know what pit falls to avoid. How the hell did this happen to me? It happened to me because many people don't know this. I actually like guns a lot. I actually build custom long distance shooting rifles and stuff like this. And the site I had bought a custom stock from had apparently been compromised. Visa told me it was a point of convergence. And if anybody knows what that means, that actually doesn't really mean anything. That just means that some fishers were using it to verify whether the credit card data was real or not. So I started getting an idea. So I've worked for security of this panel. So if you don't know who David Caruso is, that's really funny. It wasn't me. So the point is I've worked for security companies that made every kind of security product you can imagine. And there's one thing that we'd always get done. And I don't know if anybody has ever seen a sales pitch from a security company. If you haven't, I highly recommend doing it at least once. It's kind of like getting your hands dirty. You throw out a joke like that thinking you're just going to go on and then you feel uncomfortable suddenly. That's not what you said last night. To Hoff. I got nothing. I've got nothing. Some things are just better left unsaid. So a typical sales pitch from a security company, you know the sales guy would come in in his smoozy, buy those sell high. Don't worry about it. I've got a polo shirt. I'm trustworthy. And he'll bring with him a sales engineer. And a sales engineer is a guy that's going to answer all your sales questions. So being, you know, formerly being an engineer in an actual sales company, I look at sales engineers as sales guys that have a sheet with answers on them. Now if you're a sales engineer and I'm offending you, I am sorry. So you can hide your sheet of questions and answers before anybody sees them and we won't make fun of you. Hey. Howdy. You're actually pretty cute. How you doing? That's right. I have to be honest. This story sounds far more interesting than this talk. Wait a minute. There's women at DEF CON? When did this happen? So the point is, and I've had to do this before, is they'll always bring in something that shows you why they're better than competitors. That's why they're there. They're there to explain to you the differences. Otherwise this could be just like the Amazon of security. You'd be like, you need some IPS? Fortinet's got the lowest price. I'm going to go with them. So what they want to do is they want to explain to you why you're going to pay twice as much for a product that does half as much. So what they'll always do is they'll bring demos with them that says, hey, look at this. This is like the MS03026 DCRPC exploit. Tipping Point doesn't catch it, but our product does. So what they're not telling you is that someone at some point like me went through and analyzed all the other competitors' signatures and has come up with a demo that will evade everybody but our product. So it's kind of disingenuous. I have to be kind of honest about that. So the point is that any security product with enough time can catch or fail at anything. So I used to work for ISS and if you spend enough time you can get almost any attack past them. Same thing for Tipping Point. Tipping Point is a little bit easier than ISS, but it's still there. All these things. So one of the problems is most people, like my mother, this is, are we telling mother jokes now? No, just keep going. Oh, I can't spell. That's actually my dirty secret. I never learned to read. I can read Hex, but once I translate to Hex in ASCII, I don't know what the hell it says. Rich, how much do you have a seat? You know it's bad when the analyst is talking. So, going back, you know, bringing this full circle to the story of how I got owned in somebody in Guatemala, I had a hell of a night at my expense. I was thinking why the hell isn't everyone armed? I mean, to be honest, everybody uses a Wild West metaphor for the Internet anyway. You know, I'm sure if you Google Wild West Internet, you'll find nine million stories written by CNET reporters about how the Internet is a wild, wild West and you should buy Kaspersky antivirus or something like that to keep you safe. Say again? Gartner analysts? I'm sure. I do not work for Gartner anymore. So, on Monday of actually two days from today, Arath Security, the company I work for, will be releasing a tool. It's basically a toolbar that runs in Internet Explorer that will actually do a vulnerability scan on every site you surf. And there's a reason for this. I mean, we're not looking for deep inspection stuff like Arsenic would look for. We're looking for the low-hanging fruit. Like, you can do easy PHP includes or you're easily susceptible to SQL injection. The stuff that script kiddies are looking for. And the reason that we're releasing the tool to do this is it's really going to piss every security vendor in the world off. Because what's going to happen is once you start surfing all these sites, all these security tools people bought are going to light up like Christmas trees. Because the signatures that are written aren't very good. So, everybody that uses this tool and surfs to the site will look like an attacker. Suddenly, Amazon will have nine like you. So, we're going to call it barrier because I'm actually a dork and I love ghosts in the shell. So, this is the actual plan. So, the reason we're doing this is for some reason security companies don't think end users should have the ability to determine whether a site is good or not. I mean, even the Google stuff goes, hey, send it back to us, we'll analyze it and then we'll tell you via toolbar whether it's good or not. We like to put the power to do that into the user's hands. Now, I know this is a bad idea from people who are still trying to find the any key. This might be akin to giving, you know, kids AK-47s. It's working out in Kuala Lumpur. I mean, it might work out here. So, that's what we're going to do. So, I can actually run a demo because somebody here does have... Somebody here does have Broadcom Wireless O-Day and I'm not turning on my laptop. No, no, thank you. No, thank you. Oh, no, you can't do it over here. You can do it over in EVDO. The interface is different so you have to just have the adapter. But this is what it looks like. This is what the interface looks like. This is the... So, if you've ever run any of our tools before, you know, I always have... We have two other tools called Looking Glass and Axpan. And Looking Glass basically looks and see how compatible an application is with Microsoft's SDL. And Axpan will actually just go through and look for all the known bad ActiveX controls. So, we always have this information screen and this down here will give you information from us. It'll be a web page. But, basically, this is the scan... So, you won't actually have to worry about this because this is going to be populated from your address field. But, basically, when you run this tool, you'll be running a vulnerability scan on every site you visit. And, like I said, I attribute this... Or, I kind of compare this to arming everybody in the Wild West because I really do believe neighbors with guns make good neighbors. So, it... Somebody likes that idea. Not a lot of rewards. Not a lot of NRA members here, huh? No. No. I'm not going to plug anything you get me in. Do I look that crazy? So, Dave works with Rob Graham who came up with hamster and ferret, the side jacking tools. And, it took about... How many... Nine months before you stopped using your Gmail when Rob was sitting across the table? No. I have actually stopped using Wi-Fi altogether. It was kind of like heroin. I went cold turkey. I don't even use Wi-Fi in my home anymore. I have a... I have a... I have a... I have a built-in HSTPA card. But, for some reason, Christopher Hoff killed my HSTPA card with those sunglasses. So, that's basically my portion of the presentation, aside from the heckling, is that on Monday, if you want, you'll be able to download a toolbar. So, to answer a question before anyone asks, we decided to do it as a toolbar because we want to be able to evaluate SSL data as well after it gets rendered. So, we need access to the DOM. And, we didn't really want to do it in such a way that it would be in such a way that it's a proxy. And, right now, it is just Internet Explorer only. So, if you're a Firefox fan, you're probably safe anyway. Or Safari. So, without further ado, I will turn this back over to Mr. Mogul, who I'm going to capture after this and make him tell me where the pot of gold is. Does anybody ever think Pokemon? Pikachu. Pikachu. I'm a leprechaun, dude. Come up with a good one. Short, red hair, look like I'm Irish Jewish, but I married an Irish chick, so it works out. You didn't tell us you were going to have clip art, man. Okay. We've got about ten minutes left for Q&A. Look, we've covered a lot of different things today. We've roamed all over the map. And, to be honest, some of that was trying to figure out how the fuck we could put all this stuff together into one panel and have a little bit of fun. And, we probably utterly failed. But, I think the goal of this is a lot of the things we show are simple. You know, you take this grid app thing that's supposed to be this incredibly hard, convoluted, mathematical impossibility, and our snake cracks it in like two minutes by hand on stage with the short password and one long password to make it easier. And, really bad keynote skills. And, that's because our snake is a pimp. Do not give me crap for my keynote skills. We had to convert his stuff from PowerPoint. You know, Larry learned how to hide things in his baby, which we are worried about. In most states, that would get you arrested, so. We've got a question right there. Shout it out. So, his question was, because we're recording this, doesn't the tool make you, Dave, look like a hacker or whoever's using it to the site? Yes, but there's a method to this madness. In reality, before you leave home, you, you know, you lock your door and you check it to make sure it's locked. You know, if you walk up to a business and, you know, they're closed and you try to open the door, the door's locked. You, you know, you by default have interrogative techniques to, to, to, to know if the places you are are safe. For instance, if you're going to a strip club and there's guys with guns outside, it's probably not a strip club you want to go to. I use a lot of strip clubs in my metaphors. So, the problem is, is that the Internet has become a place where any activity to determine whether you're safe or not looks bad. And this is because security companies are very lazy and they want to want a generic signature to cover a wide range of attacks. So, yes, you will look like an attacker. Does that mean that I would look like an attacker to my own bank? Yes. Yes, you would look like an attacker to your own bank. The problem is, is that as more people use tools like this, the profile of what an attacker is has to change. The, the, the three people who are going to use that tool. My, my mom's going to use it. Yeah. Dave, Rob, and Dave's mom. In fact, my mom's been using it for quite some time. She just doesn't know it. have any other questions. This is a long one. We feel, we thank you for staying through it when we're drinking and leaving to go to the bathroom and you didn't. What? What? All right. That's gone way too far. I'm sorry. Thank you all for joining us today. We're going to get the hell off this stage. Bye, guys. Enjoy the rest of DEF CON.