I want to thank the lovely Michelle for switching the times for me. I was supposed to be speaking tomorrow but I'm actually going to be leaving tomorrow. My wife is not feeling good so I have to go do kid duty and all that good stuff. So my DEF CON trip is unfortunately shortened. Thanks so much for switching with me. I really can't thank you enough for that. Just a quick intro. I founded TrustedSec. It's an information security company. I was the chief security officer at Diebold. I testified in front of Congress twice and the Democrats really hate me apparently. Even though I hate them all. So I don't like anybody. So we're all good there. I've been on the news a lot. Fox News, CNN, CNBC, Bloomberg, Katie Kirk show. I authored the social engineer tool kit, fast track and a couple other tools out there. I was co-author of the penetration testers guide and I like to break a lot of stuff. There's the old me versus new me. I'm 87 pounds down so far so I got another 15 to go and I'll be done. It does, yeah. So if you look to the right, that's no joke. That's right after I got done with Fox News. I usually don't wear pants. It's the attire. No one ever knows. I'm still the sexiest man alive. I don't know if you saw that. It is not photoshopped. It is not photoshopped. Swear to God. It is not photoshopped. The funny story behind this one is I was on the Katie Kirk show. Have you ever seen the show Sherlock? The actor in there, his last name is Cumberbatch. It was saying up next one of the world's sexiest men alive. They moved it up next and hovered it there for five seconds for some reason. Of course all my hacker buddies take that and populate it. Now I'm the world's sexiest man alive but I'm keeping it. I love what that looks like. All right? This is me. This is me. I also ride unicorns on the side. That is not photoshopped either, by the way. So what I love about this talk is I get to figure out different types of exploits in zero days and things like that. What is really fun is going after a company and targeting them based on what I know their education awareness program is. Most of us do training of our users the same way. We teach them not to click links or hover over links to do certain things to look to see if it's fraudulent or not. As attackers we know this type of information ahead of time. Regardless if it's a rudimentary education awareness program all the way out to an advanced education awareness program. So taking what we learn or what our users learn and manipulating that to use that against them is something that is absolutely happening right now and something we like to use a lot of times. So this talk today is about talking about where we are today from a pen testing side. It's funny. I don't know about you guys but I was a computer guy back in the day. I'm sure that's surprising to everybody. I used to play EverQuest and MUDs and all this other stuff while people were playing football and other things in sports. I think we have these little things in the back of our heads that we want to relive those moments back when we were kids. When we do physical pen tests and breaking into buildings and piggybacking and stuff. We try to make it the coolest thing ever. We have to crazy high tech gadget or we are climbing over fences, going through helicopter pads and breaking into a window to get into things. All you have to do is walk in the front door. So we are going to be talking about how we do things today and what we need to do as an industry to talk about the education awareness piece. It's one that I think is really important. If you look at how attackers are busting in, it's predominantly through phishing and social engineering. It's probably one of the biggest concerns that I have today as far as the industry and how you fix it. There's nothing that's going to fix the human itself. Next generation firewalls aren't going to do it or application whitelisting or your fire eyes are not going to do anything to stop us as attackers. So how do we figure that out and change ourselves a little bit different to fix it? That's what today's talk is about. So here's how we hack today. This is as a hacker what we typically do and then I'll talk about what we teach our users and then we'll get around all that. So starting off, just a quick walk through what we talk and then we'll mess stuff up real quick. That's a true story. So today, has anybody gone through a phishing exercise before? Normally you do a few hundred users or a thousand users. May contain misspellings. I don't know if anybody's ever been through the first phishing exercise before in their organization. Is that not heavily political and people almost lose their jobs? People get so ticked off that you send phishing emails and you're targeting individuals they get so pissed. They get so upset that it really becomes a major issue. You might use something like a phish me or something like that to send certain things out. But in most cases, it's really not similar to what we see today. Now, what I usually do is I'm targeting a couple of people. Like one or two people, three or four max. Does anybody know the reason for that? What's the reason? I have less of a chance of being detected going after four people than I do 100 people in the organization. Just an example of this, I may have talked about this story before. It's one of my favorite ones. I was doing a social engineer for a really large manufacturing company. It was their 100‑year anniversary. I went to the website. The first thing I do when I'm about to hack a website or hack a company, I go to the website and learn about them. I want to figure out who they are so I can go after them. I go to the blog post and they're so excited. They're changing the logo on there saying 100‑year anniversary on the whole website. It's a big PR thing. The PR lady continues to post her name up there. She's the main person for all of it. I'm like, hey, I'll probably use this as an avenue to attack. I sent her an email. As soon as I sent her an email, I instantly almost got one back. I was impersonating a media news organization that wanted to do a story on them and how they were 100 years old, great company, all that good stuff. Our pretext was doing an iPhone giveaway. Free iPhones that we're going to give out to the company. The first 100 employees get free iPhones. That's what I was going to use as my attack. Just by her sending me an email back, does anybody know what that does? What's her sending me an email do? Establishes communication. What's the most important piece that I got from that? Why listen to spam? Filter possibly. Don't think technical. Not technical at all. Trust, but think about that email itself when it comes to you. How about how she signs her name and the fonts and the coloring and the phone numbers and everything that makes that email look legit. I don't want to trip any wires when I'm going to attack a company. I mimic that. I send an email out. We sent it out to four people at the time. Does anybody know how many shells we ended up getting back? How many people we compromised? It was like 75 because they're forwarding it to other people. And so the funny story about that is creating some sort of excitement and creating some sort of way of attacking a company definitely helps and works. What's crazy is if you customize it to the company itself, your success goes up significantly. I mean astronomically. Now, if you look at today's social engineering training. Now, the thing with social engineering training today. Sorry, I had to put that one in there. I told Chris this is the one slide that might be kind of not kid friendly. But after that we're okay. Training today sucks. Because, you know, we require users to literally go through next, next, next, next, finish. And they may have to take a little test at the end of it. Or they may have to go through some fishing exercise where they go to an online training. It's not fun and exciting. And it's not conductive of how we learn as human beings. If you look at today's social engineering training, maybe it's a one day training session if you're lucky. It's really boring. And maybe use a third party to fish you. Doesn't simulate real world stuff. If you look at real world training, you know, what is testing a fishing supposed to do? What is it supposed to test? What's that? Employee confidence. Okay? So the employee's portion, right? The person. What about the technology piece too? Do you have the ability to thwart some attacks a little bit or detect it so you can respond? It's a coupling of both people and education, right? And what we do for technology. And so when you look at what we're doing today, we're not testing that frequently. We're not looking at the technology we have in place to see if we can minimize some damage. And from there we rely on the users to do some other stuff. I'll talk about that in a little bit. Now, it's funny that we still do USB drops. I don't understand that. I think like we've been doing that since like 1998. And if USBs were out then, I don't remember. It's a long time ago. But anyways, I'm pretty sure they were out there. And Autorun has been disabled for years. We don't use Autorun anymore in any of our companies and we're still testing USB drops like finance, critical, you know, and then they put it in and all of a sudden it sends them. That's a waste of time. Why not use the mail system? I love the hand mail system. You know, like you actually write out a letter or whatever and you send it out. You can be anybody you want to in the mail system and people believe you. Especially if you put a letterhead on there and make it look official and stuff, people will do whatever you want to. You can be like, hey, I need you to put this virus on your computer because we're testing something out for your organization. Make sure you disable your antivirus first and then put it on. And they'll be like, what's in the letter? And it's signed. All right. You know? Especially sales people, they'll do anything. I mean anything. I was on one time and we wanted to see how far it would go because we had broken into a whole bunch of other places. I was on the phone with this guy and I'm explaining to him I was really interested in this product and everything. And somehow we got into the discussion of downloading my account information and what my company was about and so they can scope it and price it for me. And so I'm like, well, just go to this website. And I'm like, www.thisisavirus.com. And that's what I sent him. And what did he do? I still own this. But he downloaded it and he ran it and he installed it. And the best part was I had him before he did that disable his antivirus. So I'm going to just right click here because for some reason every once in a while it comes up. You can do whatever the heck you want to with people, especially sales people. They're the best. I love them. But another one I did a while back. So when I was at D bolt, there was a guy named Stacey Gregerson. He was like one of the most disgruntled DBA guy in your organization. He's like the guy that has the crazy hair and everything and he's got the Gandalf staff, you shall not pass before me type of guy. So Stacey was a bit like that type of real disgruntled guy. So we used to mess with him all the time. So we launched nerf guns at him. We came up with a really good prank. We disassembled his keyboard and we soldered together what's called a tinsy device. It's a little hardware manipulator. All it would do once we assembled it and put it back, it would move his mouse up to the left, far left of the corner, start clicking and randomly hitting keyboard sequences. So after the first day he starts swearing and you hear him hitting, you know, he's getting mad, right? Well, I figured my other buddy that was where Josh would let him know after a while that something was probably awry or he switched it out or whatever. I went on a business trip and I didn't come back for a week. Totally forgot about it. I get home and Stacey is literally on the verge of quitting. So he had worked at the help desk and they had swapped out his docking station, his laptop, the mouse, but everything but the keyboard and he was still doing it. And he's screaming and yelling and everything and it's just terrible. So I'm like, hey, Stacey, can I talk to you about the DBA stuff that we're doing for next year? He's like, oh, yeah, yeah. You can tell he's mad. So I had Josh swap out the keyboard and nothing ever happened. He still doesn't know to this day. So I like to keep it that way. Thank you. But mail systems are great. I always love using the mail. Today's SDN person. It's funny, again, we go more and more sophisticated as we go along. I feel like every talk I hear about the physical stuff is like, I was climbing in the mud and I dug a tunnel underneath this company and I was up in the data center and I planted a bug that uses the NSA's private satellite to communicate over with and that's how we get around it when the back door for the data center is open. That's how I feel like we've gone as an industry. Just as an example today, you make it simple and easy. And what's funny is we were doing a pen test, a physical pen test for a store location. You know stores you can go into like a grocery store or a Wal‑Mart. I'm not going to say who it was at all. I'm not going to mention the name we did work for. But it's a big store. One you probably frequent on a regular basis. One of the trophies, two of the trophies were getting access to the server room and the other one was being able to steal the point of sale slash cash register that has the cash in it. And I'm like, all right. I mean, that's fine. Does anybody know what I did to steal that cash register? So I walk in. Like this. Walk in. It's a cash register. Lock pick. Grab it. Walk out. I think it was heavy by the way. So I walk out of the store. And I put in my card and I open it up. There's like four grand in cash in there. I'm like, maybe I should go take it back or whatever. So I went back but I left the thing in the car and one of our guys was watching it. So I'm like, well, I'll see what else I can get into it. Because they probably know I walked out of the building with the cash register and they're probably freaking out of where the cash register was, right? So I walk back in and I walk to the server room. No one stops me or anything. And I start lock picking the server room. It's like cameras and stuff everywhere. I'm just like... open it up. Walk in. I'm in there for like 45 minutes. I'm like making noise. I'm like screaming. I'm like yelling. I got music. I got techno music jamming. Hey, someone's got to come over here. Nothing. That's the thing. People want to challenge you if you look like you belong. One of our guys, Paul, was doing a corporate headquarters location. And you walk in and there's badge access here with the card readers and everything. You might be like, oh, I might use a prox mark to clone the badge or whatnot. No, no, they didn't go that route at all. There's a window there that's got one of those little locks on it that doesn't allow the window to move. They're sitting there picking the window lock as people are coming in and out of lunch. They open it up and they boost each other up to get into the window. To get into this place. And people are like, hey, do you need any help? No, we're good. We're fine. It's ridiculous. You can literally get away with whatever you want to as long as you have confidence. It's all you need. It's like, hey, are you supposed to be here? Yep. Okay, cool. Prime example, you know, I did the whole black ops thing. I wanted to be that guy that was hopping over fences and stuff. So I had the camouflage outfit with the throw mic and I had the black beanie and I had lock picks in my hand. I'm like, literally, I created what burgers look like in this thing. I mean, I literally, if I would have had a little money bag in the back of my sack, it would have been me. So I do this whole black ops thing. I climb over the barbed wire fences. We put some rugs over. Get into this door. Get into the door. We're evading security. There's a security guard sitting there. We're in front of us. It's a two-level foyer. We're tip toeing across this guy. He can see us and we can see him. His back is to us. I can see us walking across the video monitor. So, you know, we were in for a while and everything. We go around and we're about to leave. Where we came in at, there's basically like a double side of doors that kind of go like this. There's a nice little gap in between there. I go to exit out. I look through and I'm like, oh, we're screwed. As soon as I said that, the security guard, there's a shift change. Security guard comes in. This guy must have been probably like 75 or 80. I felt so bad for him. Literally, the guy's like, whoa, what are you guys doing here? Who are you guys? He's got his flashlight there. I'm like, what are you guys doing here? I'm like, listen, man. I have a beanie on. I got lock picks in my hand. I got the throat mic. You can see the throat mic and the CIA wacky talky looking things here and everything. I'm like, listen, man, I'm in IT. This place blows. I'm like, I'm going to get out of here. He's like, oh, you guys scared the heck out of me. I didn't realize you guys were in here. He's like, have a good night. I'm like, all right, cool. Nothing sophisticated. You don't have to do anything sophisticated. You don't have to have throat mics. I never used them again. Stick to things that are easy. So what do we teach our users? Don't provide sensitive information, call ID checks, suspicious activity. What's funny about personal information is most people don't view corporate data as sensitive information. Although if you start challenging them on their birth date or possibly passwords or social security numbers, they get really defensive. And so, you know, not challenging them on certain things like, you know, their password and date of birth are good things. What I like doing is the whole phone spoofing thing, which is super simple. And, you know, phone spoofing, you can be whatever you want to and literally be someone super, super easy. Now, this one was funny because we didn't use phone spoofing in this case, but we basically broke into a corporate building and we're running around trying to find a conference room that we can get into that we can call the data center. And so we get to the conference room and I open, you know, I hit this conference room line and I dialed down to the data center and said, hey, you know, I'm James, you know, Webber or whatever, I'm just making up a name. I'm James Webber in security. I have these three auditors here, you know, can you let them down and sign them in and give them access to the PCI closets and all this other stuff. He's like, who'd you say you were? I'm like, James Webber. I did my homework, right? So, you know, the guy that was at the data center who I was impersonating was like, you know, completely like four states away. So it wasn't like I was saying somebody locally, right? I'm like, oh, just James Webber. He's like, I'm best friends with James Webber and you're not James Webber. I'm like, yeah, I am. I'm like, I got a cold. He's like, oh, you got a cold. So while I'm doing this, he's actually instant messaging this James Webber guy saying, hey, are you on the phone right now? So I'm like, listen, man, can you let these guys in? He's like, you're not who you say you are. You need to get out of here right now. You can hear him talking and mumbling in the back. I'm like, oh, God. Trying to be believable, phone spoofing works really well. Now, here's an interesting one. Here's what users are taught, which is really the hover. Is everybody unfamiliar with the hover technique, right? So hover over the link and make sure it's a legitimate link, right? Because if you hover over, it's got to be legit, right? Right? All right. We're going to defeat that. So one of my tools that I write is the social engineer toolkit. If you're not familiar, it's open source. It's a framework for testing social engineering. And, you know, it really allows you to create fast and effective ways of targeting individuals and going after them in real world scenarios. Some of the attacks are pretty darn sophisticated. Like the Java Apple attack that I use all the time. We have a 94% success rate with that one. Depends on the company itself. But in most cases, though, when we use it, it bypasses application whitelisting. It gets around next generation firewalls. It gets around your fire eyes and everything else out there, which is wonderful. And it compromises them and gives you access to their computer. So it's a good way of testing how well your technology controls are really working against real world stuff. Just a warning, this is just a tool. Using anything out of the box, you probably won't be successful. So you got to customize it. You need to do research about who you're going after. And most importantly, that's doing your reconnaissance and your homework. When we go after a company, we know exactly what technology to use. Anybody here not use LinkedIn? Not one hand. We got half a hand. Kind of thinking about it. We got one hand. All right. So LinkedIn is wonderful because we love to brag about ourselves, especially our experience. So we're like, hey, I'm the semantic firewall admin for SEP 12. Thank you. Appreciate that. Or hey, I use this type of firewall. I use this type of technology. I can profile your entire company and all this technology without even having to actually go and attack your organization to develop it in the first place. So as long as I know that, I can start to create my attacks based around your company that you have out there. Now in this case, let's do a quick demo here. I want to show you one real fast. Watching a movie over there? It's a movie? So what I'm going to do is I'm going to launch the social engineer tool kit. And I'm going to use what's called the web jacking method. I'll get started. And I'll just go ahead and clone something like accounts.google.com because it's an easy one. I need Internet access. Hang on. That would help. Internet access? Right there? That makes things easier, Chris. Thanks. Now let's go to this website. Now what I usually do in this case is I'll usually target a company that I find a website on the outside that looks legitimate. Whether it's a benefits website. I love going after healthcare because it's a good priority. Or other things that might be Internet accessible that they would be familiar with as a normal user. I'll create a website that looks familiar. It will look in every way, shape or form. I'll even throw security language in there. Make sure that the website itself is using SSL. Make sure you hover over the link to make sure it's going to a legitimate website. Tell them exactly what they need to do to refresh them. Use their education awareness against them. In this case I make the website look nice and pretty like it would be. Then they tell them to hover over the link. This is just a demo here. We'll hover over the link in a second. Hopefully if we tell them hover over the link it should be legit. It should be, right? What's that say on the bottom left? It's good, right? SSL, right? It's going to accounts.google.com, right? Everybody here think it's legit? You guys are saying no now, of course. As far as we know in our browser, it's owned by Google, correct? Okay. So we click this link, what should happen? It should go to accounts.google.com, right? It does actually. It will go there for a couple of seconds and it will replace the website with our malicious website really fast without the user knowing. Let's go and click it. No magic. Ready? Click. We're at accounts.google.com. Quick switcheroo. I'm going to do an update. Hang on. Username. Now when I enter my username and password it redirects them back to the legitimate Gmail site. And over here we have our username and password, right? We tell our users to hover over the link and that the link itself is holy and if you click on the link and verify you're good to go. In this case it's not the case. You know, what's great about exploits, right, is they work really well if you're the one that wrote them. But as soon as they're published you have a very small window of how often you can use them, correct? As soon as a new Internet Explorer zero day comes out and it's published in Metasploit all the antivirus vendors release signatures in two minutes so they can get detected. What? Oh, I don't know. Who knows. I was probably testing something. But in this case, what? Like you guys have never typed poop in the e‑mail field before? Just to see if it was working, right? That's not true, Chris, because I have all your accounts. No, I'm just kidding. No, but in this case it really takes advantage of how they are as users to trust that information and this one works really well. It's probably my favorite one to actually use during social engineering because it's really so impactful. People can't tell that they're redirecting to a different website, that they're seeing a different website and they usually use a lot of domain names and things like that. The next one, if you haven't seen it, I'll just do this really quick. And what I'm doing is I'm just going to create a malicious Java applet. Now, this new version in sets on version 6 when I redesigned it, does analysis on the machine itself. It looks to see what the best exploitation method is. And what it does is it actually goes and targets based on what they have installed. Now, is everybody here migrating off of Windows XP to either Windows Vista or Windows 7 or you're fully migrated? Thank you. As an attacker, thank you. The more you're upgraded, the better it is for me to hack you. So, please, keep upgrading as fast as you can. If you're using Windows XP, probably better off. Just throwing that out there. And the reason for that is this awesome thing called PowerShell. Everybody familiar with PowerShell? PowerShell does this amazing thing for us, which gives us basically a full fledged programming language at our fingertips. Don't get me wrong, PowerShell is amazing, but it's also extremely powerful. There's not a lot of protection around it. Just as an example, we did a talk a few years ago, and there's what are called execution restriction policies. Has anybody ever been to Microsoft's website and looked at what it says about execution restriction policies? When we did our talk, it said, execution restriction policies are a security feature to blah, blah, blah. After our talk, you know how they fixed our flaws that we found? Execution restriction policies are not a security feature. So PowerShell, you can basically run, once you get command execution, you can do whatever you want to with it. And a really great guy named Matthew came out with a really awesome attack, which allows you to inject PowerShell code into memory through PowerShell itself. And the technique circumvents execution restriction policies and a lot of other stuff. And so basically you get full command execution in the PowerShell process, which is what? What is PowerShell? A white listed application trusted, right? Because we have to run updates and things like that. If you disable PowerShell, you actually break Windows. It's wonderful. So let me show you this really quick. This is going to use the PowerShell injection technique. So we go ahead and run this. And we can make the name anything you want to, obviously. So in this case, we did go to corn bar. But you can make the name anything you want to. So I'm targeting a company. I'm going to make the company name look legitimate every way. As soon as I hit run, it automatically executes, finds the best exploitation method for this computer based on what we have installed. And from there, it doesn't get detected by anything in the rest of it. We get full access to the computer. So a really easy and fast way of cloning a website, grabbing it, bringing it in, and not getting attacked by any of the preventative measures that we have in place like next generation firewalls and all that good stuff. Doesn't do a lick of squat. Yeah, the reason for that is I have it in my configuration settings to pipe me two back just in case I lose one. Sometimes if you have one shell coming back and you lose it, then you don't have your reliable method. So I always get two sent back to me no matter what. Just as a fail back. The worst part you can possibly imagine is when you have a fallback and your shell closes or you accidentally type exit instead for some reason and you lose your shell and you have to re‑exploit them again. Sucks. You can call the sales guy up. It doesn't make a difference anyway. So some things to ponder on this. It's hard to protect against this because of we're actually going after users. Has anybody here... Chris, you trying to set the mood or something? Has anybody here implemented two‑factor authentication before? A few of us. Now, what's interesting is ones like phone factor, for example, they've really messed up an implementation. Does anybody know why they've messed up an implementation? It's not enrollment. It's how we train our users. Now, RSA granted how much you want to make fun of them or not, RSA had a proper technique for it. They had a physical device that they actually had to physically type in something in order to log in, correct? The way phone factor works is you go to log in, you type in your username and password, it will send you a text message or call you, right? From there you say, yes, I'm logging in right now. What is a user going to say every single time? Yes, I'm logging in. Just as a prime example. We're doing a pen test. This is the first time I ran into phone factor before. For the very first time. And I type in my official people and I type in the username and password, didn't realize they had two‑factor authentication. And it says, we're calling you. We'll let you know to verify who you are. I'm like, whoa. Uh‑oh. What do I do? What do I do? What do I do? They log me in. Whoa, what do I do? What do I do? I'm freaking out. I thought maybe it was a bug in their implementation. We started talking and figuring it out. I was pretty sure I was logging in somewhere. I don't know. My phone or whatever. I get these prompts every once in a while. It worked out really well. The crazy part about it ‑‑ well, it worked out for us really well, not for them. The crazy part about it is I've done phone factor about six times and I have not had a time where it did not work. Not once. That's crazy. 100% success ratio on two‑factor authentication, not good. All right? I mean, literally now, it's ‑‑ I'm like, username password. Thank God it's phone factor. I'm going to go get a beer. Come back. Cool, I'm logging. Sweet. All right. So, you know, implementation is really important with two‑factor authentication. And how you implement it is extremely important. Things to fix this are up‑to‑date software, uncategorized sites. If you haven't seen that, by the way, uncategorized sites, you actually have the ability in most of your content filtering software, whether it's blue code or scan safe or whatnot, to do what's called uncategorized or unclassified sites. And sites that aren't registered, like for like normal use or whatever, show up as uncategorized. That's going to be about 95% of your phishing sites out there. Now, in order to get categorized, it's extremely trivial, but most attackers don't do it. For example, one of the ones, I'm not going to mention which one it is, but if you actually clone their website, like their own website, like the content filtering company's website, they actually classify you as a content filtering company. It's like, okay, cool, thank you. So the technology behind classification isn't spot on in any way, shape, or form, but it's definitely another step, because most people don't submit their websites to anything like this. Obviously things like administrative rights. Has anybody ever used the enhanced mitigation experience tool kit before? If you haven't, you definitely need to check it out. It's for Windows. It's a free tool for Microsoft. And it literally profiles a lot of the different attack mechanisms that we use as exploit writers. For example, there's these things called ASLR, or data execution prevention, or DEP. Those are two common preventative measures in Windows. In order for me as an attacker to exploit something, my whole point is to crash something and then redirect it to my code. In order to execute my code, I have to get around the preventative measures in Windows. One of those mechanisms to do that is what we call return‑oriented programming, or ROP. What Emmet does is profiles those methods of how I do ROP or try to remove a lot of the protection mechanisms out there and stops them from working. So just as an example, all of the exploits that are in Metasploit right now don't work with Emmet. Now, that doesn't work, that whole statement doesn't work for Java because Java just sucks. Okay? So Java has, you know, the sandbox scapes aren't necessarily classified as exploits. So in most cases it's not going to stop those. But it will stop a lot of the zero days you saw out there. What's interesting is this is one of the exploits that was identified in the wild. It was a zero day active X control XML down that came out about a month ago. If you notice here, the link, it actually looks for the Emmet.dll. If it finds it, it actually kills itself and doesn't run. Really neat. Now, nothing is perfect. There's a researcher that did some research on Emmet and Cygnus as well from offensive security and they came out with ways of bypassing and circumventing Emmet. So just a heads up, it's not 100% full proof, there's ways of bypassing it. But Microsoft just released version 5 last week. So it's, you know, they're definitely making strides and continuing the product line. It's a big strategy for them. And what was crazy is when I was on the Katie Kirk show. Has anybody ever seen this one before? Has anybody not seen it before? A lot of people. All right. Let me just show you something really fast. It's well worth it. I had these people. So when I was on the Katie Kirk show. That's right. Look at that. If you have audio, that would be great. Works out great. Thank you. Perfect. So in this case, I had recommended Emmet to basically soccer moms and folks that aren't necessarily technological like grandmas and things. I sat on their forums and actually responded to every single person that had a question. It was like 600 of them. And I responded to every single one. But they were installing Emmet and had it installed and configured on their machines without me helping them. Period. That's a huge feat. That's a really big protection mechanism. But this one is funny because I actually felt really horrible doing this because I'm pretty evil. But it's fine. This is in stage, by the way. I understand that you believe unhackable. Why? Well, it's something that's really on my mind. I'm very concerned about it. I feel like all of my antivirus software is up to date. I've taken a lot of precautions. I have a computer consultant who comes into my home to check on these things. And so I really feel strongly that we have done everything possible to try and protect myself and my daughters. I mean, it's something that's really worrisome for me. Well, that's very impressive because you seem like you're extremely ahead of the curve. So we decided to put David to the test to see if your comfort level with your security is actually warranted. Tell us what happened. How did you do when we gave you the challenge of... What's that look say by the way? I'm like, I've been waiting for this all my life. Stephanie's computer. So Stephanie I would say was actually one of the top 5% of what I would say is being most secure. Everything up to date, really locked down, all those good things. So I literally had plugged in, opened up my computer, and less than ten minutes or so had a fully designed website that looked real in every way in shape or form of a website that you would visit every single day. And I sent an e-mail out. And as soon as I sent the e-mail out, it looks very believable in every way. She clicked the link. And then from there, again, less than ten minutes of setup time and hacking and all that stuff, I had full access to her computer, her web cam, got around all of her antivirus, everything completely. You are kidding me. Wow. Oh. Oh, it gets worse. Trust me. This is when I started feeling like I'm like, oh, I better scale it back a little bit, not be so cocky because I feel really bad right now. Tell us some of the things that you were able to see. Well, the first thing we did is we enabled her web cam and we were actually able to monitor everything that was going on in her house, everything from her daughter working on her computer to Stephanie actually walking through the house itself. We actually enabled the audio as well so we could actually hear everything that was going on at the same time. That's enough. I feel bad enough. It's on my Vimeo page. I can send it to you. If you look for the Katie Kirk show, you'll find it. Interesting enough, this is no joke. A week after I was on her show, they announced it was getting canceled. So I don't know if that's probably not related. You never know. No, that was a good one. What was interesting though, it really resonated with the people there and they were installing things like Emmet. Then I got a call from Microsoft, dude, we're the ones that developed Emmet and I can't believe you pitched it to soccer moms and it's working. That's amazing. That's awesome, right? Nothing against soccer moms, just technology centric folks, different demographic of people installing things that are traditionally probably pretty complicated. It worked really well. So again, there's a few different ways of disarming Emmet. I'm not going to get into these. The good news is a lot of these have been fixed in version 5. Jared DeMott's techniques are still not. We talk about fixing stuff. You know, I look at a couple of people chuckled because we're old now. It's weird, isn't it? Anyways, so we're using the same types of attacks that were literally crafted in the early 90s about the USB drops and the CD ROM drops. We're not evolving to what real attackers are doing on a regular basis. We need to start to look at continuing and going forward on education awareness, training people in a way that actually works. And for me, the most critical program period in a security program is education awareness. That and monitoring and detection are pretty close to each other. But in my case, when you can train your users, they may know what happens when you train your users on security. Does it become a lot more easier to implement security in your company? Because they understand why you're doing it? I mean, when we had an education awareness program, I implemented two‑factor authentication over a weekend. No problem. NAC, six months. You may have done a global company with 20,000 employees, NAC in six months. Pretty big feat. But it was cool with things breaking. I didn't want to get the guy that was crazy. They understood why we were doing it and the reasons why we were doing it. It was because of education awareness. I feel like if I didn't have that, my security program at that company would not be successful. Because people understood why I was doing it. That's huge. It's beneficial in every way. I went from four people in security to 55 people in security because of it. It's a pretty good deal. Actually having people to do the work. If you look at a program, Bruce Snyder said in one of his blog posts that security awareness doesn't work. And that it should be through attrition and it should be through, you know, basically, you know, what we do to protect the users. And I'll be honest, coming from someone that's actually implemented a program, that's absolutely inaccurate. There's no question about it. Education awareness 100% works. Users aren't stupid. They're not people that are just dumb and they can't ever learn things. Think about it. When we start a company, do we know certain things like how not to behave, like streaking down the office is probably bad, right? We learn certain things and what's acceptable behavior and what's not. It's the same thing on technology. We have to be able to communicate in a way that we can learn. To be honest with you, if our users are the ones that are being called stupid because they are clicking on things all the time, then we're the stupid ones for not communicating them in the right way. That's the truth. If we can't communicate to our users and teach them in a simple way, we're failing as security people in general. This is your number one exposure. Period. Number one. That's what we need to be focusing on. Not the next gen firewalls and the application tools and whatever is happening out there with APT's and cyber kill chains and all that other stuff we hear. It's our users. Our users are going to figure out things that we don't ever get to see. So the first thing I did at Diebold was basically sell it to my executives first of what I was going to do. That's the most important, right? Because no one cares about security unless you have buy‑in from certain people. That's what we did first in our campaigns and everything else. And then from there you build a program. When I used to do things, I would relate to people. For example, the target breach was huge because everybody was impacted by it. Hey, if you guys got compromised at target, here's the steps you can do. Here's the phone numbers to contact. If you're using a specific bank, here's the numbers to contact for that. Here's what we recommend. Boom. You're trying to help them again. Awesome. Hey, heart bleed happened. Great. What does heart bleed mean? What does it mean for your personal information? This is what it means. This is what we're doing to protect you. Here's who you need to contact if you're using because they're still vulnerable right now. Wow. Cool. Newsletter. How to protect your kids on Facebook. Fantastic. When you can relate to them in a certain way that actually relates back to their homes, they actually care. They actually want to do something differently. And you know, you just got to be willing to do it and spend the time to actually do it. Step three, testing the company. You know, actually going through and testing and seeing what happens and how users respond and if you're getting better. That's how you know it's effective. Whether or not your technology can kind of help with it as well. And last but not least, just maintaining. I mean, seeing where your current level is that you're happy with and just maintain from that. You just keep moving forward and maintain that program itself. Like if I need to implement ten character passwords, the user understands why I need to implement ten character passwords and what I need to do with that or two factor authentication or whatever it ends up being. You know, again, try to implement two factor that doesn't just say yes, you're okay to log in. Right? Anybody have any questions? No questions? Yes, sir. Have I ever done two factor authentication using chip and pin cards? Yes, I've seen that definitely implemented. Those are absolutely great. You know, something physical that's there that actually has to authenticate somebody is phenomenal. Obviously you have the same exposure as anything else. If I'm able to steal that and then the credentials, but your probability and likelihood is so much lower than me as an attacker remotely doing it. So I'm a huge advocate of physical devices, which is more of a pain in the butt to manage. Soft tokens are okay, too, as long as they physically have to copy and paste that number into that environment itself or whatever it ends up being. But I don't have any quarrels with that whatsoever. So the question was what happens when you're confident and that doesn't work, right? You go to jail. No, I'm just kidding. Try everything you possibly can or create different diversions or techniques in order to really try to get out of it. For example, you don't mess with law enforcement. If law enforcement are called, you definitely want to let them know what's going on. Just as an example, we're breaking into an energy company. We come out and law enforcement is there waiting for us. And we're like, hey, man, we're not going to lie to a police officer. We're hired to do this on behalf of this company. This is what I'm doing to let them know. And the police officer is like, oh, my God, that is so cool. Are you serious? Are you friggin' serious? He's like, is there any way? I can get a job. I'm like, dude, I'd be cool with that. Didn't ask us for an ID, didn't ask us for the get out of jail free card or anything. Just let us go, right? Just let us right go. So there's certain situations where, honestly, it may be the best policy depending on how deep you are. And there's ways of getting around everything. If you're persuasive enough, you have a good chance of getting away from it. But sometimes you just, I mean, sometimes you just fail. I mean, there's plenty of times I failed. I was doing a company in, I think it was like Minnesota or something like that. Still people there apparently. I'm just kidding. Just kidding. I'm from Cleveland. There's nobody there. So, you know, I was breaking into this building and I figured, hey, they're a big company. They're not going to have any of the door contacts, you know, triggered alarms because it's night time. I was going to go through the front door. So I go to the front door and I lock pick and I open it up and I get to the other door and I lock pick and I open it up and I'm inside and everything is great. Everything is fine. All of a sudden I see the cop cars coming. It's like three of them. I walk out and I'm just like, you know, listen, I ain't messing around. You mess up. Things happen. It's just a matter of telling the honesty when you do it, though. Any other questions? Over here? Yep. Sorry. Oh, sorry. Yeah. Yeah. It does. So there's a config option inside the tool kit for UNC embedding. As soon as they visit the website or you can send it through an email or not, it has the UNC path embedded into it and then it has the listener in the background. As soon as you connect to it, it automatically scrapes the user name and password field and then you get your NTLM challenge response. So it does have the ability to do that automatically for you, which is really nice. It's a great technique. Yep. It sends the email out. There's a phishing portion of it. What it will also do is it will track who clicked on it as well. It will create a unique link that as soon as they click it, it will track their name and everything else so you can go back and educate and stuff like that. You can send emails through the tool kit, which is great. Any other questions? Yeah. It is. It is. So all of the attack vectors now that go for exploitation use that PowerShell injection technique now. So for example, I just recently added PowerShell injection into Microsoft SQL. So you can do Microsoft SQL injection through PowerShell injection, which is really neat. So you can get remote code execution through Microsoft SQL. There's a lot of different techniques that are built into that now that's been redesigned and converted. 6.1 is almost out actually. So I do updates all the time. But version 6.1, which will be pretty much done next week, adds a lot more new applicability to the Java attack where it basically creates a polymorphic engine that dynamically changes everything every time with AES encryption. And I expanded on that a lot more to make it a lot harder to detect. Not at all. Especially because I wouldn't put an IP address up there. I would register a domain name. You can change the timing too. That was just for more demonstration purposes. As soon as you click it, you can have it go directly to your malicious website. Or you have it sit there for a little bit and flash it. It's so quick that you don't even notice it. I've never had anybody say, hey, this is suspicious. So you're not automatically signed into Gmail right now on your computer? Oh, well, you're like the 1% of the human population. Because the persistent cookies that are in there, everybody's logged in realtime for those. You'd automatically be logged into the machine. No, I've never seen that. I've probably used that technique probably a thousand times. I haven't seen one instance where someone's really picked it up, which has been great. Well, I guess I got it. Great for me. I agree. I mean, people can spoof those links and make the links look not legitimate. That's a big thing. We try to teach them the basics and that's understandable. But that's not one that we should rely on. No, that's the crummy part. It works on all browsers. It works on IE, works on all versions of IE, works on Firefox, works on Chrome, works on pretty much every browser specific. So it doesn't make a difference. Which is good. Again, good for us, bad for you guys. I sent Katie a letter of apology for getting her show canceled. She actually had me on a second time before her show got canceled and that went really well, too. But it still got canceled. So I guess it wasn't that good. Never send her a letter. Well, thank you all very much for having me. It was great. And hopefully you enjoy the rest of DEF CON. Thank you for having me. Thank you.