Anyhow, I don't think this guy needs any more introduction, but Dave Kennedy was like the CISO for a Fortune 100, left that to start his own business and now has a really awesome team doing penetration testing and all sorts of other fun stuff. And he's going to talk about some end user attacks. So, everyone, welcome Dave Kennedy. DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 DAVE KENNEDY, CISO FOR FORTUNE 100 I didn't know it until I was driving down the street to go to my office and I look over to my right and he's right there and this car is right next to me and he's just smiling like this. It's one of those things that jacks you up and you never get over it. I don't know. But I'll go into some of this other stuff. For me, when you look at where we're at today, if you look at a lot of the attacks that are happening out there, they really are originating from the human element or going after individuals. And it's funny because when Chris decided to start social engineer.org before he even started his own company and all those other things, Chris and I were in a chat room at an IRC and this is how the social engineer tool kit got started and Chris and I were good friends and that's a whole other story in itself how we became friends. And actually the heater story, he was mad at me and wouldn't even talk to me. This was like a sign of offering I was going to take him out to dinner and apologize. That's when I modified the seats to my car to burn his rear end. So that was our peace offering and then I ended up burning the rear end. And that's when I started my own company and that was the first time I did a friends that way. The funny part about Chris is he starts, oh my God, he starts hitting the X button to close out real quick and closes his IRC chat room. He comes back in 15 minutes later and he's like I don't know who that was but some real big idiot was on this website and he sent me to this really bad website and I'm like dude, don't worry, we kicked him. If everything's fine, just go to this other website and it will help you out. Right. Got him a second time. And then we were at SmooCon and Chris wanted to beat me up and I'm like Chris, listen, man, I'm sorry. I didn't have kids this time. I'm like hey, man, I got kids and everything. I'm like here's a picture of them and it was the same site and then I ran away. You know, so. So that's how Chris and I became good friends. But I homed in. I knew Chris was a special case and they needed to home in on him and treat him a little bit differently than others. But, you know, what's interesting with all of that though, you know, Chris was in a chat room and he's like, hey, man, I really think that social engineering and coupling technology is going to be a real big thing. This is like 2006. And I'm like, yeah, I agree with you. Let's start a little thing together and let's figure out social engineer.org and we can kind of get a group going and that's kind of how set ended up becoming created and that's how we created the social engineer tool kit. And so it's interesting to see how all of these attacks have kind of evolved because if you look at the past year and a half, the majority of them come down to phishing. They come down to targeting individuals and human beings and it's really a successful, you know, endeavor. And it's really, you know, if you look at an attack, it's a really low, I don't think I can go that far over. It starts ringing. Attacks are a low investment, high impact of what you actually do. So you don't need someone that's heavily sophisticated or somebody that's really good at what they do as far as attacking. You don't have to be a zero day researcher. You can get everybody the way that you want to right now and it's pretty easy to do. And I'm going to show you a demonstration. And if you've seen this, I apologize. But it's a thing that I did on the Katie Kirk show. And it's really resonant because literally I was going on the Katie Kirk show and Katie asked me, she's like, hey, can you just hack somebody live in the audience and then we'll videotape their reaction. You know, me being a hacker, I was like, hey, I can. I'm going to steal all of her stuff. I'm going to do this. I'm going to grab her social security number. And I was all like happy and excited about what I was doing. But I didn't really realize the impact that it had on this individual. So I'm going to show you a quick demo of what I did on the Katie Kirk show. And just a heads up, so who you're going to see is Big Dave. I'm Little Dave. I've lost about 115 pounds since I last went on the Katie Kirk show about a year ago. So this is Little Dave. Thank you. It's amazing what eating less and working less can do. It's amazing what eating less and working up can do for you. Turn it up. I caught him sleeping. Can you get up a little more? I understand that you believe your computer is unhackable. Why? All right. She has two teenage daughters. She lives in Connecticut. And Stephanie, I understand that you believe your computer is 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. So first of all, does anybody you know in your family have a computer consultant that comes in their house to make sure that they're up? You have a couple? Wow. That's amazing. Because I had never heard of one. So I'm like Katie picks the only person in the world that has a computer consultant that's going to lock her computer down. So I'm like, all right. Do I got to start whipping out some zero days or something like that for this one? But we're going to go see. To check on these things. And so I really feel strongly that we have done everything that's 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 doing this? So right there, you know. So to kind of show how I feel at this point in time because I'm confident in what I'm doing, actually I got a little video I can show you how I feel. And I like little animal memes. So this is a good one here. That's kind of how I feel at that point in time. That felt pretty good, right? To Stephanie's computer. So, you know, Stephanie, I would say, was actually one of the top 5% of what I would say is being most secure. So, you know, I'm pretty confident in what I'm doing. You know, everything up to date, really locked down, all of those good things. And so I literally had plugged in, opened up my computer up and less than 10 minutes or so had a fully designed website that looked real in every way and she performed 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, looks very believable in every way, she clicked a link and then from there, again, less than 10 minutes of set up time and hacking and all that stuff, I had full access to her computer, her webcam, got around all of her antivirus, everything completely. You are kidding me. Wow. So, you know, as a hacker at this point in time, I'm like, I'm still doing the, you know, I got everything, right? You know? And then I don't even think about what I'm doing. I'm just like, hey, man, I just own everything you have here, you know? So tell us something that you were able to see. Well, the first thing we did is we enabled her. Why not enable her webcam and spy in her house? We enabled her webcam 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. And we were able to monitor everything that was going on. We actually enabled the audio as well. So enable our audio and turn it into a tap device as well, too, so we can listen to conversations. You know, it sounds all good. We hear everything that was going on at the same time. So we can listen to conversations. From there, you know, we started looking at a lot of I won't let it keep going. It gets worse. But to say the least, you know, that was one of those moments where, like, you know, you realize, like, how impactful you are as an attacker and, like, the, you know, effect it can have on an individual. And, you know, the thing is, you know, for me to attack Stephanie took about ten minutes of time. You know, literally I went on her website, I checked, you know, her Facebook profile, her Twitter profile, saw that she at one point in time, like a year and a half ago, made a mention about an Amazon package delivery. So I just, you know, cloned Amazon's website. You know, I made a quick, you know, package distribution page and I sent her an e-mail saying, hey, you know, Stephanie, just so you know, your package was rerouted due to a, you know, inclement weather changes or whatever. Please click here when you can schedule a new delivery. And as soon as she clicked the link it compromised her computer, right? So it took about ten minutes to set all that up and hack her stuff. And it's something that is, you know, may seem stupid, but it works really well because I know that she shops on Amazon, right? So whenever you can establish some sort of trust with somebody, you have the ability to attack them in some way that is very personal that they expect. And that's what attacking humans are all about. It's about going after them in a way that you create a fantasy that's completely ridiculous, but it's believable to them. And what was interesting is, so you'll see something that's coming out soon with CNN, and it's not public yet, but I did a live hack on, you know, where I went after a company and I compromised, and the company gave me permission to do this. But I did, you know, I called the help desk up and, you know, I spoofed my phone number coming from inside of the company and I said, hey, just so you know, I'm having this weird problem getting to this website for this specific, you know, site itself. And they're like, oh, how can I help you? Because the help desk is supposed to help, right? I'm like, can you just go to this website and make sure I'm not an idiot, you know, and, you know, that it's not my computer? And it's like, yeah, yeah, what's the website? And I just go, you know, www, whatever it was, .com. As soon as they go to the website, it compromises the machine and I have full access to that help desk person's computer, right? But that's what they're designed to do. That's their function is to help. So if you can attack somebody in a way that is believable to them, that is understandable to them, and it doesn't trigger any barriers or misconceptions around something that's wrong, then it works, right? And it works really, really well. The things that you run into is when you don't spend your time to research a company and go after them, and you just do something that's like, hey, health benefits, or hey, this or that, you actually got to spend some time looking at the information and who you're going after to target things, and I'll talk about that. And I got a cool example of one we just did recently, which is really neat. So, you know, the premise of social engineering attacking humans is make something that's so believable to them that they're going to believe it and that it's not going to trigger any alarms, right? And really, it just comes down to normal human behavior. If you're like, hey, I'm a Nigerian prince, you need to get $10 million if you click this link, no one's going to believe that, right? It's ridiculous, right? However, if I do my research on an individual and I know that they're in a specific department in a specific organization, perfect example, sales, right? Actually, you don't even need to do research on sales, right? You can do anything you want to to sales. Like, hey, I'm going to buy from you. I got like $5 million. Can you tell me what antivirus you have? Well, that's kind of weird. But, yeah, I'm using semantics. Oh, that's cool. That's cool. Can you just type a couple commands, like telnet to this? I'm still going to get the sale, right? Yeah, yeah, absolutely. Okay, cool. What am I doing here? Okay, yeah, okay, sweet. Hey, I saw some flag of virus. Oh, just right-click and hit the save. Okay, cool. I'm still getting the sale, right? You know, what's interesting with people you target specifically, especially like sales, like if they're in an organization that's business-to-business, like going out and talking to other businesses, creating a fake business that's in their demographics and their market is perfect. Like, create a fake website that looks like a business that they would sell to. And then you call them up and you're like, hey, bro, I got $15 million and I got three days I got to burn it before my Q3 ends. I got to burn this $15 million in three days. Is there any way you can work on me? Yeah, yeah, yeah, absolutely. Everybody drops. You got the whole sales support staff. You're like, boom, fish him, fish him, fish him, fish him, shell, shell, shell, shell, shell, because you got the whole support staff, you know, just compromising everything, right? So, you know, you have to build your attacks off of a way that's going to be believable. And I'll show you an example of that here in just a second of some things that we did. And for us, you know, being a hacker is really about being and thinking outside of the box. You know, what's funny about when I first started in this industry, right? I started on that network. I started on that zero-day route, which is like, you know, building exploits and bypassing ASLR and DEP and ROP and all this other stuff. And I still do some of that, but it's hard. Like, building exploits nowadays, if you don't, like, focus on it, it's really hard to do. For me, social engineering is that same type of excitement and fun, because it requires you to put a puzzle together to figure things out in a way that you wouldn't before and come and figure out how you can attack somebody in a way that is unique. And it's literally like crafting your own zero-day, right? It's like literally trying to get around ROP and putting a puzzle together and putting a puzzle together because you have to put a puzzle of a human being together, which is way more complex. I mean, human beings act so crazily different depending on who you are or demographics or southern accents or British accents or females. You saw women have a much higher probability in social engineering and destroy based on culture. There's so many different things and variables that come into attacking a human. It's so fascinating to me. So we have to, you know, mature as an industry to do that because that's exactly what the attackers are doing. And, you know, what's interesting about pen testing, right? You hear a lot about pen testing, pen testing, and pen testing, and pen testing. The thing about pen testing is that it doesn't really simulate an actual attack against an organization. It's like, hey, we're going to compromise this thing and then we're going to get domain name in and then we just own everything and we're going to write a report on how we got domain name in. Here you go. Boom, right? It doesn't simulate an adversary. It doesn't simulate an attacker. It doesn't simulate anything that's going on. It's really just ‑‑ sorry, there's kids here. Oops. Forget about that one. Sorry. I forgot about that one. It's the only one in there that's bad. So we have to move more towards what is effective pen testing to me and that's really trying to understand what the business does, how they operate, and how can I attack that. Like, for example, manufacturing companies. Does anybody here do work for manufacturing companies or work in a manufacturing type organization? Is the actual product they make what's sensitive to them? No. But how they built that, the process around it, and how the chemical compounds and the suppliers that they source it out to in the hundreds of years that they've taken to mature the specific product, that's the intellectual property and that's what they're going after right now. Same thing for, let's just say, retail. You know, if you're going to get into retail, you're going to get into retail. Credit cards and customer information is number one, right? That's a given. If you start going into other demographics like medical research or, you know, the skate infrastructure and energy sectors and things like that, right, every single organization is unique in how they are unique or how they are different as a company, so it requires us to actually attack them in a different way that makes it some way in shape or form, simulating what's actually going to happen out there. So I talked about this, but, you know, if you look at what's kind of happening in the media right now, and this is one of the things that's, I guess, the scariest thing to me, is that companies that have neglected security forever, right, now can claim that they were hacked by China and that it was sophisticated, and all the years of neglect they now have an out, right? So we haven't funded security for ten years. We haven't given it the right path and it hasn't been structured in our organization, and some folks phished us with the most horrible phish ever and we fell for it, and all we have is antivirus on our end points and that's it. When we get compromised it was a sophisticated attack and we're not to blame for this. And that is a big issue for the security industry because it's not going to mature us and make us better, it's just another thing that we can blame, you know, to make things happen. What's interesting is if you actually look at most of the attacks that have happened, there are sophisticated attacks that happen out there, there's no question about it. If you look at, like, the Sony stuff with North Korea, right, you know, North Korea, that stuff, that malware was pretty rudimentary, right? It dropped, like, six or seven different types of pieces of binaries on there. It looked like something out of, like, 1982. It was a big issue. So if you can code, like, four lines of bash, you're now a sophisticated attacker in today's world. But it's everywhere. It's not Sony's fault. It's everywhere. Every single organization has the same problem, but we now have a crux for it and a way to blame other things that happen. And we didn't really see that with something like Target, right? Target, you know, they had the executives fired and everybody else out there because they lost all their credit card data. Even though they probably had a much better security program than almost anybody else out there at the time. So, you know, it's a different type of world we live in now because we can just blame things on attack. We can blame things on attack. We can blame things on someone being sophisticated and doesn't necessarily make a change. Now I'm going to show you or walk you through an example of a test I did recently. I'm going to show you some cool stuff, too. But we went after a manufacturing company recently. It was what we call a red team engagement, right? So it's, like, no holds barred. You can do whatever you want to. When I say whatever you want to, it's not like you can, like, walk up and hold somebody up at gunpoint or anything. But it's, like, you can pretty much do anything you want to, aside from, like, breaking stuff. Probably not a good idea. But the main focus of this was the focus on their R&D stuff, right? So what they were going to be doing in the future. And we had been doing work for this company for a couple of years, and it really focused on protecting their IP and focused on protecting the research and development of their next-gen products. So it was really, really important to them to see if we could actually get access to it. And so we had any method that we could possibly use, right? We could do physical. We could do social engineering. We could hack anything we wanted to. We could do whatever we wanted to. It was a full scope, right? Allowed us to do any type of thing that we wanted to actually do. And so what we decided to do was, hey, maybe we can go phishing first. But before we do phishing, maybe we can look for something first to kind of help us out with it. Because in order to get to some of these people, we're going to have to get pretty deep. And so we started looking, and we found an actual web application that had a file upload vulnerability in it, which allowed us to compromise a website, okay? We compromised this website, but we didn't really have permission to do anything. It was, like, you know, kind of locked in its own DMZ, couldn't do any type of lateral movement or attacks or anything like that. So it was really difficult for us to attack the system. But what we could do is create our own web pages. And so we could create a web page on a company or organization's web page, right? Which does what? Trust and credibility, right? So establishes credibility and trust for a specific website because we have already owned a specific website. So what we ended up doing is we made this whole website, and we sent it out to a couple of individuals in the sales department. And we ended up getting one of them, like, almost right away. So, you know, we had to log into this website, right? And we grabbed credentials. We didn't want to be causing a system because we didn't know what defenses they had in place. And so at this point in time, we had to figure out a way to actually go and attack them. And what we did is, you know, we, you know, phished them with a specific phish, logged them with a username password, and it was, like, a server they went through and did certain things. So what's great about Outlook Web Access, for some reason, corporations, they'll do two-factor VPN, you know, so if they do, like, a one-time pin or something for VPNs, but OWA, for some reason, is, like, always open. There's never any two-factor authentication, which is horrible because it has access to all of your, you know, email addresses. So we had to figure out a way to actually email and exchange data and everything else that's going on. And so what's interesting with this is when we compromised the sales individual, does anybody know what happens when you compromise an OWA infrastructure, like, just that one user? Even more trust, right? Because you have conversations with people that have already been talking to you. So usually what I do when I compromise OWA is I'll sit there for, like, two or three hours just reading through emails, just seeing which one is the perfect one for me to be able to send something back to them, right? And send something that's horrible. Well, not horrible. I mean, it's, like, good for me. But it's, like, good for me. So I'll sit there for, like, two or three hours just reading through emails. I mean, it's not like what I did to Chris. But, you know, send something back to an individual salesperson that establishes another part of trust and compromises the machine. And so, you know, what we had to look at is we ended up doing what was called an Excel injection. And I'll show you a quick demo of this really quick. Now, is anybody familiar, has anybody used the tool Unicorn before? A couple people, which is great. If you haven't seen it, the new version two is out, which came out about two or three weeks ago. And it has a lot of new tabs and attack vectors in it. Improved optimization of code. Metasploit, they got a much larger payload. So, like, whenever you generated payloads within Metasploit, it became much larger. And if you know anything about PowerShell injection, you have to keep it kind of small and compact in certain things. So I was able to strip out a large percentage of the new payload systems, and so it's all in one. But if you're not familiar with PowerShell, so to put it in perspective, like, every new operating system from Windows Vista and above has PowerShell installed on it. And PowerShell is a very specific type of attack vector because it allows you to do a lot of things. It allows you to basically do direct memory access and inject shell code directly into memory through PowerShell, which means that if you're using something like a bit nine or application whitelisting, you can circumvent that really easily and just inject your own shell code out there and never touch disk. And so I ended up creating Unicorn, which allows you to attack 32 and 64-bit platforms natively with it. And so one of the attack vectors that you can do now is through macro injection, which was one of the some individual added it to a get pull request, which is really cool. And I've improved it since then. And I've been using it for a lot of years. And what's nice about this, I just want to show you real quick. So any new hacker tool, by the way, has to have ASCII art as far as I'm concerned. So this has an awesome, it was funny, one of the, I was teaching my black hat class, and one of the students was like, it would be awesome if the Unicorn had red eyes. So at break time I coded in red eyes, so it has red eyes now. And it's all fun. But Unicorn, what it does is it allows you to generate a number of attacks. And so one of the ones that we're going to talk about today is, we're going to talk about the macro attack. And so first we need a payload. So we're going to specify like Windows interpreter, reverse TCP. And I'll just give it any type of IP address that I want to. And then it's going to specify macro, port macro. And it's going to go ahead and generate the code for us. And I use this all the time. And it's so effective, especially if you have a trust relationship. And so I'll go ahead and edit this. And it generates macro code for you that does power up your code. And it's going to generate a code for you that does power up your code. And it's generated a code for you that does power up your code. And it's going to generate a code for you that does injection natively. So when they open up the Excel document, it doesn't touch disk, it doesn't download anything else. It just injects shell code into memory for you. So it compromises the system, and it gets around a lot of the application type technology. And by the way, if you're using like what is called execution restriction policies, doesn't matter, because you're using what is called encoded command parameter. So it gets around any type of execution restriction policies you have in place, too. So if you're using AllSign or RemoteSign or anything like that, it doesn't make a difference. And so that will work. You execute that, it compromises your machine and it gives you a shell out of the network which I'll show you a demonstration here in just a few minutes. But it works extremely well. It's effective where I use a lot of the social engineering techniques. What was interesting though is we hear a lot about the types of technology like preventative measures that companies have like next gen firewalls and all this other stuff. I ran into a specific virtualization technology and I'm not going to talk about which one it is because I don't necessarily like bashing vendors or anything like that. They all do what they can. But I ran into a virtualization technology. Does anybody know how those type of technologies work? They, you know, a piece of malware comes in or something comes in and it doesn't look normal, right? They spin up in a virtual machine, right? And that virtual machine then looks at everything that's occurring. So it looks at the registry entries that gets made, the C2 type infrastructure, like if it's connecting out to the outside Internet. Is it making changes to the operating system for persistence or other areas? It's a neat technology. So I ended up sending this Excel document to the sales individual and all of a sudden it didn't work and I couldn't figure out why. And I was looking at it and I could see the initial connection but then after that it just died and it wasn't coming from the actual computer. So I'm like, ah, they're using some sort of virtualization technology. So I need to take a look at how to get around that. So if you want to bypass sandbox technology, I'm going to release this today. It's extremely, you know, it's taken me months of research, development, but I'm releasing this today for you all so you can see, you know, how to get past sandbox technology and all of them, which is great. And it's extremely difficult. So I'm going to show you all of the code right here. Just kidding, it's not really hard. It's three lines of code to get rid of. It's actually really bad. It's terrible. So the virtual machines all use very predictable sandbox containers, right? And a lot of them, a lot of the big ones will use two CPU cores or less or usually just less than one. So does anybody you know use one CPU core at all in your environment? No, right? So if CPU core is less than two, then just don't do anything and exit. So when it comes into play, you're going to have to listen to these sandbox technologies, right? It's like, hey, hey, hey, are you doing anything? Oh, I'm in one CPU. Don't do anything. Oh, you're not doing anything. You're good. Pass it off to the end user. It's cool, right? And they're like, oh, it came through, you know, this virtualization technology. I can double click it now. It's fine. Oh, I'm not in a one CPU environment. Okay, run the code and execute it. Everything's good. I got my shell. So, yeah, it works for pretty much any major one. What's interesting, the reason why I talk about this, by the way, is it's now being baked into a lot of the malware that you see out there today. Like, I know Dyer came out with it and now Dyer, you know, it's like, Dyer actually has it built into the malware itself. So it actually looks for sandbox environments. There's a whole bunch of different ways, though, to get around virtualization sandbox technology. This is just one of the many. Some people say time-based delays work. We used to use time-based delays for a while, but they've gotten a little bit smarter on that. The CPU core counts are extremely easy and works almost every time. There's a few other ones, too. So what was cool about that is, you know, we got past the virtualization technology and we compromised some boxes. And, you know, we bypassed the sandbox technology. You know, we ended up, like, looking at a lot of different areas that we can get and Excel injection ended up working for us with the PowerShell injection, which was awesome. So we had shells. We had access to, you know, a couple of individuals' machines, most specifically one that we were specifically targeting that we really liked. So what was interesting about this attack is they used proper network segmentation, right, which is really interesting to see. Most of the attacks that you see out there today is due to one person becoming compromised, right, or maybe a couple of people becoming compromised. And then that whole thing you hear about lateral movement, right? So they compromise one machine and then they spread out the rest of the network with information that they obtained from one system out to the other. Most companies kind of have an M&M syndrome, right? They're hard on the outside, soft on the inside. So once you get past that hard exterior and you go to the inside, you now have the ability to touch all the systems that you want, right? Well, what was interesting about this company is that they actually did pretty decent network segmentation. So it was really hard for me to even touch any of the individuals that were a part of R&D. I couldn't even get the R&D people that I needed access to, let alone get to the information that I needed access to to get it, which is really good. You don't see a lot of companies doing that, which is awesome. And so one thing I noticed is that on the ‑‑ when I was going through and attacking, one of the VLANs I was able to get access to had the physical security system on it. And if you don't know much about physical security systems, like the physical security manufacturers are so far behind the logical, I guess, folks that usually breaking into physical security systems are really easy. And usually the physical security guys don't, like, you know, handle good security practices in a lot of cases. So we ended up getting into this Internet site that was their physical security website for the company. And it listed, like, how to make a badge, right? Like, this is step one. So I'm like, oh, okay. So I go to this website. I enter this user name in. I enter this password in, right? And I'm in this ‑‑ now this badging system, right? And it's like, next, if you need to create a new employee, make sure you assign the roles that he needs access to. So I created myself a badge. So David Kennedy gets a badge, right? And I'm like, oh, I need access to R&D. Oh, it has a pin? Okay. I'm going to set myself a pin. Cool. And then I just, like, select all. I added myself to everything. Select all and just hit okay, right? So I added all this and everything. And it said, you know, usually the badge will print and everything and it will be ready for the new employee to pick up usually within an hour or two, something like that. So I waited a day. And so I dressed up. You know, it's live footage. But I ended up getting dressed up. You know, when you go to an organization, you want to play the part. You want to play who you're going to be going after. You don't want to arouse any suspicion. So this company specifically was more of like a, you know, tie type of company. So I had to wear a tie and everything. And I walk up to the front desk and the security guard is sitting there and everything. I'm like, hey, I'm a new employee. I have a badge. My name is Dave Kennedy. He's like, oh, okay. Oh, here you go. Here you go, Dave. Here you go. Sweet. Thank you. So I, you know, badge clip on. Exit in and I'm walking in the building, right? Everything's great. So, so far, so good. I'm at the point now where, hey, you know, I got in through engineering, kind of, but I didn't get all the way. But I used my, you know, initial method to get in. And so I started walking around and kind of, you know, trying to find different areas and trying to see if I could find the R&D area. So I find the R&D thing. And, you know, like, companies try to promote what they're doing as far as, like, research and development, right? So there's, like, this R&D center of excellence. And it's like, you know, tinted windows and, you know, security access and all this other stuff, right? And so I get to this area here. And, like, there's, like, a lot of, like, you know, I'm in a tie and everything. And I get to this R&D center of excellence. I'm, like, cool. I'm going to go in here and I'm going to try to get into this environment, this network segment so that I can hack the rest of the information I need to get access to. And so I walk in there. And I don't know if you've ever been in a situation, like, a clown situation where I walked into a bunch of clowns, right? Like, you don't belong. Like, I should not be in this room where there's a whole bunch of clowns, right? Same thing that happened this one. I ended up badging. I had my pen. I walk in. And it must have been, like, a massive R&D meeting. There was, like, 50 people in there. They all turn around and look at me. And I'm in a tie. They're all in, like, jeans and a T-shirt. And they're all looking at me, like, who are you and why are you here? So at this point you have two choices, right? You're, like, well, I can just back off and pretend nothing happened. I'm, like, oh, I'm sorry, wrong room, wrong room. Or you can be, like, let's see what happens and walk in. So I walk in, you know, and I just kind of go to the side a little bit. And everybody's kind of looking. And they go back to doing what they're doing, just, you know, standard business. And I guess they figure, hey, if I have access to this, everything's fine, right? So I'm walking. And I'm walking and walking. And I'm trying to, like, focus on them. And I'm trying to focus on the individuals. And I end up not seeing a trash can that's sitting there. And I'm walking. And I trip over this metal trash can, right? And there's, like, you know, there's, like, mustard all over me and food and everything. And I literally hit it hard. Like, I mean, I hit it and I'm, like, rolling. And being 6'4 and being, like, you know, starting to get into my, you know, mid-30s, when you fall hard, you fall hard, right? And you're, like, you're going to fall hard. And you're sore for, like, three weeks afterwards. You've got bruises everywhere. And you're, like, honey, I had a rough day at work today. And she's, like, I thought you were a computer guy. Why do you have bruises everywhere? I'm, like, you have no idea what I've been through. No idea. But, you know, what's funny is I made this huge noise and all this trash everywhere. You know, people pick me up and everything. Like, oh, my gosh, are you okay? I'm, like, yeah, yeah, I'm fine, I'm fine, I'm fine. I'm just going over here to try to get over here. Like, oh, okay, I'm so sorry this happened. We'll move the trash can. It's our fault. I'm, like, no, no, it's my fault, you know. I'm trying to not cry, you know, because it hurt, you know, a little bit. But I get over to the side and I see a computer there. And I'm going to be open sourcing this next week. And it's what I call it, it's what we call our tap devices, which if you're familiar with, like, Intel nooks, the little nooks, you can buy them for, like, 200 bucks, something like that. You go and you buy one of those and you get, like, 128 gigs out of state drive. Give it about 8 gigs of RAM. And then you can also buy an LTE drive. And you can also buy an LTE drive. And you can also buy an LTE card that fits in. And so what I did is I wrote some software and some code that will automatically establish a reverse SSH VPN. And Jeff also, one of our guys, is also back there, right, Jeff? Raise your hand. Also wrote the SSH VPN part of it, so I can't take all credit for that. But it basically establishes a reverse SSH connection out of the LTE network while bridging the other network that might be air gapped. And then it does a reverse SSH connection in and then you can VPN full tap device through an SSH connection into that environment. So you have full access to that computer. Full access to that network to get around it. What's nice about the tap devices and what I built is it's kind of like self healing. So if there's problems with the operating system or the connection, it tries to repair itself so it can get back out again. So, like, something goes wrong, it tries to fix itself and restore itself back to its original content. So I'll be releasing that. I've been working on it for actually about a year and a half. And I figured why not just open source it. It's been a fun project. It's most of my stuff. I'll get, like, halfway through a project and I'll forget about it. And then, you know, I'll come back a year later and kind of figure it out. But that's kind of how that works. Now, what's interesting with the implants themselves, you know, when I open source the code is it will literally, we've never seen it fail in an environment that we get access to, physical access to, right? So, you know, it can do things like impersonate the network that it's going on to and automatically clone a MAC address so that you can get around a lot of the 82.1X. Also I'm working on right now a module for it where it will actually sniff for, like, printer MAC addresses that are on the network and it will automatically change itself to one of those so that it gets into, like, the printer VLAN so you can at least get some access into an environment that may not have 802.1X in place. So there's a lot more stuff that I'm adding to that, which is really cool. I want to show you a quick demo here real quick. And I'm going to ask, is Chris still around? I got a demo for you I want to check real quick here. Do I have your permission first? Can I get your permission, Chris? I need your permission first. You just have to say yes. I'm first here, you're wrong. Well, we'll wait a minute. I got a demo here to do first. I have to see if I can still even get to it. But we'll try. So one of the attacks that I use a lot in social engineering is through a social engineer toolkit, right? And if you've used set, set is just a tool. All right? It's just a tool that can help you in what you're doing. If you're just running set, you're going to have to run a tool, then you're not going to be successful. However, if you actually go after an organization and do your proper type of attack, you're going to be successful in how you do it. Now, one of the new attack factors I just added into the social engineer toolkit, and special thanks to Justin Elzey for even leading me on to this, is what we call the HTA attacks. If you're familiar with most corporations, they still traditionally use Internet Explorer, right, as kind of their main method for browsing. I mean, compatibility, Oracle, everything else that comes along with the horribleness of Internet Explorer, right? So what you can do with that is you can run a bunch of things. You can do, and this actually works in Chrome and Firefox as well, but in most cases you're going to want to use this in IE, is what we call HTA files. And HTA files are a separate launcher that gets added to Microsoft and it gets called, and it's kind of a similar problem that we saw with Java applet attacks in the past. If you're not familiar with Java applets, it's a way of basically compromising a machine very easily if you have Java installed. It doesn't matter what version. It doesn't need to be zeroed in or anything like that. It just always works. But in this case, just how Java is just designed, right? But what I'm going to do is we're going to run the social engineer toolkit. I'll show you how easy this is. And this is version 652. It just came out recently. What's interesting about this version is I named it Mr. Robot. Has anybody seen the show Mr. Robot? Yeah. Good stuff, right? What was interesting is I was literally in bed sleeping, right? I had Mr. Robot recorded. And I'm like in bed and I'm all snuggling and I got my comforter on. I'm just getting ready to fall asleep. And all of a sudden my phone starts ringing and I'm like, yeah, yeah, whatever. It starts ringing again and again and again I start getting text messages. And I guess the social engineer toolkit was on Mr. Robot. So I actually used Mr. Robot to hack into someone's computer system through one of the SMS spoofing attacks, which is kind of neat. So I actually got to see my tool used in a TV show on hacking into things. So I named my next version Mr. Robot in honor of an awesome TV show, which is really sweet. But we're going to hit number one, social engineering attacks. And then I'm going to hit number two, the website attack vector. And then I'm going to do the Java applet attack method, which is number eight. And so this is a new attack vector that's in there right now. And then it's going to ask me for what my IP address is. So if I was actually doing this on the Internet, I would give them my external IP address. And what port I want to payload. I'll use meterpreter, reverse TCP, but you can use whatever you want to. Now, when you're doing this attack, right, what I usually do is I'll use something like RAR which is a great tool. RAR is great for reconnaissance. It's W-A-W-R. And what it does is it sweeps a whole externally facing network looking for, like, websites, right? And if you hit a customer's website and you look for those specific ports, you can see the website that's out there. You can start to kind of get an idea of maybe what type of pretext you're going to use for an attack. And so you can kind of sweep the network looking for, like, a different website that may look somewhat believable that you might want to clone. And so I'll go after that company's website, clone it, and make it look somewhat believable so that when I go after them, it's something that I'm familiar with. So we'll go ahead and hit site cloner number two. And I'll go ahead and just clone trusted stack as an example. And it's going to clone the website. It's going to automatically generate the PowerShell injection code. It's going to automatically wrap it out and create everything for you in a web application for the website. And then it's going to launch Metasploit for you for an actual listener. So it'll do all that for you automatically. And then we're ready to go for our attack. Well, next I would, you know, social engineer somebody ready to go to this website and do things. And what's funny is Martin, one of our guys on our team, Martin Boss was recently on a pen test and I've got to update you. This is my hack box anyway. I don't care. And, you know, the customer was, like, man, this is never going to work, right? This isn't going to work. No one's going to believe this. He had more shells coming in that he couldn't even type in, like, sessions, you know, to even interact with the shells because too many shells were coming in at a time. They get, like, 94 at the end of the day from a specific one. That's one thing, too, though. Customers sometimes want you to do, like, large volumes of attacks. But in a lot of cases, I really only recommend targeting, like, one or two people at a time. Just wait. Like, send it to, like, one person and just chill. Grab a beer or a Diet Coke or water or whatever you're into and just wait for that person to actually click on something before you compromise them. Right? Because, I mean, if you're targeting one person, it's a much less probability chance of actually getting attacked or detected in that type of case. So wait for one person and kind of wait and wait and wait and then maybe send it to a second person, wait and wait and wait and wait and eventually you get to a certain point. So I'm going to go to the next slide here. So you can go to this Web site. Let's just say I sent a pretext out or whatever it ends up being. There's a million of them that you can come up with. Get Windows 10. Nope. We'll go to this Web site. And you get prompted for a quick open, right? And so if you build this in your pretext, it's great. When you go to a Web site, you may say, hey, when you get to the Web site, you need to open the content to validate who you are as an organization or whatever. But as soon as you get open, what's interesting is it launches this warning banner. And this warning banner is great from a trust perspective because it's saying it's signed by Microsoft, right? The author is Microsoft publisher, and it's wanting you to open up this application. Would you trust this? Well, if it's signed by Microsoft, I probably would. Most people would, right? Now, as soon as you hit allow, oops. Over here, give it a sec. PowerShell injection takes a second. And there we go. We get our shell. So it's a very effective attack. You can use it pretty much on any corporation that's using Windows. If you're going after a company that's using more like Linux or OSX, I'd move more towards the credential harvesting type attack to get more from them because it's a little bit harder to pop them. Most companies don't install Java for OSX by default. Java is uninstalled by OSX, which is great. So, you know, in a lot of cases, if you're just targeting Windows-specific platforms, the HTA files are kind of the best. They're not going to be able to do that. They're going to be kind of the way to go now. I mean, Java exploitation is really good as well. But one thing I'll also do, just to kind of show you really fast, is I'll couple this attack with what we call web jacking. Anybody use the web jacking method before? Oh, man, this is like the worst one ever. In a good way for us, but bad for people. So let me show you the web jacking method really fast. So what I'll usually do is I'll send an e-mail out, right? I'll try to remove all barriers I possibly can. I'm just going to the web jacking vector. I'm going to hit number two. And I'm just going to enter my IP address in again. And I'll just clone Gmail as an example. Just because it has a username and password field on it. Now, the messed up part with web jacking is this. I didn't close that out right. That's why it crashed. Okay. So what I'll usually do is I'll create a Web site that looks similar to the company. Letter heads and everything. It has a nice Web site type design. And I'll do a pretext of whatever I want. So maybe it's, you know, a company survey or something like that, right? And I'll say, okay, make sure you're going to survey.trustedsec.com, right? If I'm attacking trustedsec, is company.trustedsec.com a valid domain that is owned by that company? Yeah, right? So if I'm going to survey.trustedsec.com, that's legit, right? So if I make a Web site that says make sure when you hover over this link it's SSL and then it's going to survey.trustedsec.com and when you hover over the link it's legitimate, you know, for anti-phishing purposes. So if I hover over this link and I make this Web site look good and I hover over this, what's that say on the bottom left? Can you read that? The address bar says HTTPS colon 404 slash accounts.google.com, right? So that's a legit address, right? So if I click that link in my browser, if I'm using Firefox, I don't know if anybody uses Opera anymore, Chrome or IE, I don't know if I use Google. Should my browser go to accounts.google.com? Yes, right? So watch what happens when I click this link, okay? This is one of the messed up ones because it takes advantage of what we do in education awareness around the hover, right? We call it the hover, right? We hover over the link to make sure the link is legitimate before you click the link. This defeats that, unfortunately. So what you're going to actually see here is when I click on this, it's actually going to go to accounts.google.com. The Web site is actually going to be the web site for a couple seconds and then it's going to do a fast switcheroo really quick and then we're going to be at our malicious Web site where we can capture using a password or whatever we want to do, like whether it's the HTA attack or anything else that you want out there. So when I hover over this, notice I'm not doing a trickery, right? It still says on the bottom left-hand side, accounts.google.com, right? So if I click it, no hands, I'm at accounts.google.com, right? Oh, quick switcheroo. Notice the URL bar on the top. Switch really fast. I'm actually at my malicious Web site, which is 192.168.179.161. Enter, this is my user. This is my user. My password goes in, redirects back to the legitimate sites, so they never knew that was a bad place in the first place. And then over here in my attacker's machine, I get my username password, right? I don't like hot seats. Don't like hot seats? So a very effective tactic that you can couple with other ones, right? . So you can use that in conjunction with the Java applet attack or an HTA attack or whatever else. But what's interesting is when I do most social engineers, I don't ever use an exploit. I don't use an exploit anymore. There's no reason for me to use an exploit that may get picked up by something like an Emmet or next Gen type thing. Just use how operating systems are designed to suck. Use Internet Explorer how it's designed to be bad. Use Java how it's designed to be horrible, right? You just use a property that's use those types of techniques that you can use because people are going to believe whatever you do when you actually go and do it. So this one for me is probably one of the most effective ones that I've had a good success rate on. Now I'm going to show you another one here. I'm going to take my screen off just for a second just to make sure I can get to it real quick. And if I can't, then I apologize. But one second here. Internet's been a little flaky for me to get into the VPN. So let me see if I'm good. So, Chris, do I have your permission? What's that? Well, it's just a good site. Oh, come on. All right, Chris, I promise you, I'm going to have you come up on stage here, okay? But hang on. I'm going to pull your date of birth, your home address, and then I'm going to show you your social security number and a bunch of other stuff, your full social. But I'm not going to put it on the screen. I'm not going to put it on the screen. I'm going to have you come and confirm it. All right? What did I do last year? Oh, no, I'm not going to put it on the screen. I swear to God, it's off the screen. All right, hang on. Did someone do it to you? No. Okay. Hang on a second. You see where I'm going? I'm not going to put it on the screen. All right. How long is it taking me? I had to log into my VPN really quick to get access to the database. But hang on a second. . Hang on. Does the beginning of your home phone start at 570? All right, hang on. I didn't know you were that old. Really? This can't be right. This can't be right. Is that you right there? Are you 42? Is that your full social? Okay. I didn't know you were that old, man. Congratulations. You look great. You look good. You look great. How are you proud of that? I got rid of it. It's done. There's no remnants of that. It's gone. Don't worry. If I wanted, I had it, obviously. So I mean. So if you don't know this, there are ways to get people's profiles. So if you don't know this, there are ways to get people's personal information and do a lot of reconnaissance on them. And that's great for getting down barriers. One of the things I like to do if I'm targeting individuals, I'll pull specific personal information about them. Like challenge questions or things that may be used for security questions or things like that. One of the big ones is social security numbers, right? Social security numbers are actually extremely easy to get if you know how to get them. So I just pulled Chris' full social. It wasn't his last four. It was his full social, right? And obviously I didn't say his full social because that would have been bad for anybody in the audience. I wouldn't like that. I thought it would have been funny. But he didn't want to find it funny. So I pulled Chris' full social. It wasn't his last four. It was his full social. So I actually did something recently where I was on a phone with somebody and I was trying to get some information from them. And what I used to get rid of that trust factor, as I said, I just want to confirm, you know, your last four. I'm going to prove to you that I know who you are and this is part of it. Your last four is this. Your home address is this. Here's your personal number here. And all these things. And the person on the phone is like, yeah, you got it. That's cool. Great. And I'm like, okay, I need this, I need this, I need this, I need this, I need this, and this. And he's like, okay, here you go, here you go, here you go, here you go, here you go, here you go, right? So any way you can alleviate any type of trust factor when you're going after somebody is very beneficial and very effective for when you actually go on target. Just as an example, last week one of our guys, Paul, was doing a physical. And he went to this big company, right, and they have multiple headquarters or multiple campuses and everything. And he had his phone on and he's looking lost and everything and he sees an employee with a badge. And he goes up to this employee and he says, hey, you know, I'm lost. You know, this is my phone. I'm here for a job interview. How do I get to the main building because I'm here for a job interview? And the employee was extremely helpful, as I would be, too, right? The employee didn't do anything wrong at all. Just was trying to help somebody that was trying to get to a main campus. Just normal conversation. Doesn't trigger anything, right? And the entire time, Paul is taking pictures of his badge, right? So he's, like, taking a whole bunch of pictures, right? Looking at his badge and taking a look at him and seeing what's actually going on. So as soon as he did that, we went to Kinko's, we made fake badges, and we walked right into the building, right? And you just piggyback somebody. You don't need to do a proxmark to clone a badge. You just take a look at it and see what's actually going on. You just walk behind somebody. If you have a badge, you look good. So you walk in and you plug into the network and then you hack away. It all comes down to making sure that you have a confidence level and that you alleviate anything that might happen with trust. And I guess that's really the big goal for social engineers. If you're looking at getting into this and this is something new for you, the biggest thing I can give you as far as tips, and I'm not the greatest social engineer. I mean, Chris could run circles around me. I'm actually giving you a compliment, Chris. I can out code you. . . . . . . . . . . . . . . . . . And when I say believable, the research that you did on an individual target or the company is believable. You can really pretty much pull off anything you want to. And it doesn't matter what that is or what you're trying to get access to. In most cases if you remove those barriers by talking to a person as a human being and being positive, I don't usually like using negative reinforcement or negative persuasion. If you're just positive, you can almost always get everything you want to. You have a very high success rate. If I can research my target for an hour or two, I have a very high percentage chance of being successful of who I'm going after. And that's very, very hard to protect against. So I appreciate everybody's time. That's all I got. Thank you. Sorry, Chris. We can do questions outside. Yeah. That would be great. We're running. Yeah, no problem. We ran so behind on time. We have our last talk. I'm suggesting all about the new phishing. We're going to get to the last talk. But don't forget to release the . It's going to be really exciting. But huge round of applause for Dave. Thanks, man. .