Testing. Howdy. How are you all doing? I am David Maynor and we are here to talk about bringing sexy back. However, if you're expecting to see Justin Timberlake, I am sorely disappointing you. You'll just have to see me topless, which I think will be just as good. So, if you don't know me, my name is David Maynor and I'm with a small company out of Atlanta called Arata Security and this gentleman to my right is Robert Graham. He's the CEO. And Rob's famous for a lot of things like inventing IPS. That's pretty much about it. But what we're going to be talking about today is we as a company do a lot of pen testing and we don't do traditional pen testing because that's kind of boring. You know, everybody runs their vulnerability scanners. That gets kind of old and repetitive and there's actually no real return on investment in there. So, we actually always seem to end up with clients that want weird custom things done and we're going to talk about two of the custom things we've done. But we've got a few of them. First of all, I have a question, has anybody had sex with a hooker today? Has anybody been rejected by a hooker today? You know, we've got more hands for that one, that's kind of good. So, without further ado, I'm going to turn this over to Rob and I'm going to heckle him. If you can help me heckle Rob, that would be great. Rob Scheinbaugh, So, what this talk is about is getting creative with pen tests. First of all, I want to mention the fact that pen tests enjoy a huge amount of brain power. general are supposed to be boring. So Dave and I used to work for internet security systems before they were bought out by IBM. And ISS did a lot of pen tests. ISS was also... That's a nasty rumor, by the way. There's no actual proof we ever worked for internet security systems. So ISS would also have the X-Force group, which is well known for finding zero-day vulnerabilities. So everyone assumed that ISS would use their O-days on pen tests. But the reality is that ISS never did. Because the point of a pen test is not to see if I can pop you with O-day, which in most cases everyone sort of accepts that that's true. The point of a pen test is to say, are my defenses adequate for the likely sort of attacks I'm likely to get? So for most corporations, their likely attacks are from script kitties, or from this well-honed industry of phishing and script kitties and crawlers coming against their sites. So the tests that most pen testers do are very simple. There you port scan it, you run a vuln scanner against it, you do some password cracking, you try some cross-site scripting attacks with automated tools, you run your automated tools looking for SQL injection. And that's the height of the threats that most corporations are going to be affected with. Now one of the interesting things we've noticed is that anytime you do a pen test, you know the first time you want to figure out anything, you just put it into Google, right? Googling your client should be part of a pen test, but I have yet to see any reports that actually include it. Just doing like, you know, finding out everything that Google has indexed from your client is a lot easier than, you know, trying to find everything manually. And you know, as you've seen from Johnny Long's talks and things like that, you can actually find a lot of interesting things just from Google. So that's the kind of stuff we're going to be talking about, weird and interesting things. So the next question is when creativity is good. And that is for the small subset of customers that realize that they're not just under attack from your standard script kiddies, but they've actually got serious people that are motivated to get them. And really they fall into two primary categories. One is financial firms, Wall Street firms. They've got a lot of money. Hackers are trying to get it. The other is government agencies. Everyone in the world outside the United States in the United States, actually inside the United States too, when they go to bed at night dreaming about who am I going to attack tomorrow, they're dreaming about the Department of Defense. I dream about Cindy Margolis. So that's when creativity is good, is the more fearful organizations that have got reason to fear, that they fear a well-funded, determined adversary. So one thing we've looked at for a lot of our customers over the years of if you want to be a business, you want to have a guaranteed return on investment. Imagine that you're a venture capitalist firm, but you're not funding venture capital startups in Silicon Valley. You're funding Russian crime bosses to go after American financial firm to hack. So how much would it cost for a Russian crime boss to hack an American corporation? We estimate that it would probably be about a million dollars. They would hire a few hackers. They would spend a year scanning the site. Reverse engineering their applications and doing lots of strange things. And over that year, they would gradually work their way into the network and then find things like, okay, if we grab $100 million from this company, how do we avoid tripping financial controls? A good example of this is a French firm recently, in the last six months. One of their traders was previously involved in setting up their financial controls to detect if massive amounts of money are being transferred illegally. Since he worked on that system, when he became a financial trader himself, he nearly bankrupted the company, losing billions of dollars trading things that he wasn't supposed to. Now, he wasn't trying to steal the money. As it turns out, he had just made some bad trades and then kept doing more trades to try to recover and get back to his original position. We are all here in Vegas, so we know how that is. We lose $10. Well, if I keep playing, maybe I'll win that $10 back. And I go $20 down, $100 down, $1,000 down. And now I have to walk home instead of driving. So this guy had bypassed the internal controls. So that's the sort of thing you need to start thinking about from creative attacks. If I'm a well-funded adversary, and I'm trying to emulate a well-funded adversary against a corporation, I need to start thinking creatively. As a disclaimer for this slide, we're not singling out Russian crime lords. It also works with Brazilian crime lords, Japanese crime lords, Indonesian crime lords. If there is such a thing. So one of our ideas that we came up with that we've used is iPhone in the Box. And that was sort of the impetus for the title for the talk. What's the title of the talk? Getting Sexy Back? Getting Sexy Back. Unfortunately, Dave Maynor here is the Justin Timberlake fan. And so I'm not really up on Justin Timberlake as Dave is. But Justin Timberlake did a sketch for Saturday Night Live. I don't know, last year at Christmas or two years ago. Which sounds like iPhone in the Box. So the idea is simple. You get a box. You put your iPhone in the box. And you mail the box. In case you were wondering, this idea literally came from a drunken night while watching that Justin Timberlake video. So step one, you have to get a box. We use the original iPhone box because if you're shipping an iPhone in an iPhone box, that doesn't really look all that suspicious. So it's the perfect size for everything because under the little plastic tray that the iPhone comes in, there's all this space. And you know what would fit perfectly in that space? It's a battery. So this is all the material we used. That's the iPhone box. That's the iPhone itself. And that is the APC battery. And we have one actually right here on stage. Unfortunately, due to a mishap, we don't have ours. But we were able to borrow Rich Mogul's. So we're going to have to do something bad to it before we give it back to him. So Dave did a lot of work to get his iPhone, actually my iPhone, packaged up. And before we took the flight here, we FedExed it to the hotel here. It arrived fine. It was carried up to his room. We then showed it to a bunch of reporters. And then this morning, Dave wants to bring the box here. We're media whores. He wants to bring the box here for the presentation, which was the whole point. And he leaves it in the cab. So somewhere, somebody's enjoying a... You know, I should get the pony for epic fail. I know, I know, I know. And the sad part about that is it's my iPhone, not his. This is his iPhone. So let's talk about some interesting things. That APC battery that we were talking about. On a standard, not to 3G, because the 3G sucks battery life like crazy. But on a standard iPhone, we found out with it fully charged, with the battery fully charged, you put it in the box and send it somewhere, it can stay on for about five days. Which means that, you know, you have about five days to scan and do basically whatever you want from the iPhone. Which is enough to FedEx it overnight somewhere, let it sit in somebody's receiving facility, let them figure out that there's no one there named Jack Me Off, then have them send it back. So, so far, we've always returned, gotten the iPhone back, and it's still running. An iPhone? Yes. Yeah, ours was lost in the cab, so. And it's in the original, was it UPS or FedEx? So actually what we're worried about now is somebody's going to look at that and see there's an iPhone with a battery and think it's a bomb. So if you guys see a bomb scare tonight, don't tell anyone it was us. Let's just keep it between us. And one of the things we haven't done yet, and I'm kind of disappointed Dave lost the box, because I wanted to see what it looks like through an x-ray machine. So my first thought was, oh, that's cool. Okay, I'm going to carry it through the x-ray machine and take a picture of the x-ray as it goes through to see if it looks like a bomb. Then I thought the better of it in thinking that Dave should do that. So as a little back history, last year we were at a conference and Rob was reading a paper in Seattle, and he said that you have to get tased now in the state of Washington to buy a taser. He goes, you know what we should do? We should have a poll on our website to see which one of us gets tased. Knowing full well I was going to lose, so I ended up getting tased. So basically when it comes to RATA and things where you can almost get arrested or more than likely, I seem to end up getting the short end of the stick. So by the way, just as an offside, is that this APC battery pack, I've never really heard much news about it, but it's very light, and it really lasts actually a fairly long time. We're being sponsored by APC. No, we're not. So this is actually really cool. If you're thinking about using mobile devices to hack with, this is actually a fairly useful device. It's great because it charges via USB, and the other end of the iPhone is just USB, so you plug it in and you're ready to go. No soldering, no hacking required. This could be almost GripKitty hardware hacking. So it's just got USB in and USB out, and it rocks. So since we don't have the box to show you, here's the original picture of the box. And as you can see, it's got a nice little slot to hold up the iPhone, and underneath it, it's got a great place to put the iPhone. It needs a little bit of cardboard hacking to actually cut a hole in it so that you can fit in the, get all the cables in. So here's pictures of Dave taking his box and cardboard hacking. And here you can see the little... We actually had to end up cutting a slit right there so the battery and the cables and everything would fit, but when you put the top of the box back on, it looks just like a regular box. And that's it running. So one of the things you have to do is when the phone goes into auto-lock mode, like a lot of the interactive stuff you have running on it will stop running. So we recommend that you turn off auto-lock and make sure it doesn't automatically power off. And fortunately, the iPhone is shipped to you as a mobile device. So Apple's very concerned about powering off as often as it can to avoid sucking down all the battery. But we want to use it as a Linux machine or a free BSD machine, and so we had to actually turn off all these wonderful, nice user features that Apple has just to make the free BSD stuff work. So this is the gayest picture of me ever taken. This is my tinker pose. If you actually look at some ads for some gay bars here in Las Vegas, you'll find that this is not the gayest picture of David ever taken. This was my audition photo for Thunder Down Under. So after you do this, and if you work for Apple or their law firm, please cover your ears. The first thing you have to do is jailbreak the iPhone. I assume everybody here has a jailbroken iPhone. So you know, after that you saw the SSH and BSD subsystems. And I've gotten a lot of flak like this week already from Mac zealots that are like, oh my god, why are you doing this with an iPhone? You can do this with any phone. Well, it's actually really hard to do with a Windows mobile phone because Windows mobile doesn't have a Unix-like interface right underneath it. So I suppose you could do it with a Symbian, but if you've ever tried to use that SDK, it'd be better just to do it with the iPhone. So for disclaimer purposes, you can pretty much do this with any device if you have a network connection to something like AT&T and a Wi-Fi connection. It's just a lot easier with the iPhone. Right, I mean, Dave's notebook, like this notebook right here has an HSDPA connection built into it. So in theory we could do the same thing with this notebook and ship it to a customer. Because I don't trust the Wi-Fi network here, and I hope you don't either. But it's a lot heavier, it costs a lot more to ship, and it's not quite as sexy. So there's a bunch of stuff you have to do. For example, we use the AP logger to keep the Wi-Fi interface going. Otherwise the Apple software wants to turn it off. So we want to have TCP dump running by capturing all the packets, all the Wi-Fi raw packets. We also have to do a little bit more custom stuff. One of the problems we have is the SSH demon. You can't actually SSH to an iPhone across the internet, because AT&T's network has firewalls that block all incoming connections. We also have the problem of not knowing exactly what the IP address of the iPhone is. And there's also issues that it's not always actually on. When it's flying in the airplane going from the FedEx facility to the hotel or something, the internet connectivity is not on. Now we'd like to point out that our device is not on while the plane is flying, because that would be illegal according to the FAA. So we have an application that uses the accelerometer to detect when it's going faster. Just for FAA purposes. So we just set up a cron job. And we just have a cron to a little reflecting app we've got that simply takes an incoming TCP connection and reflects it on back so that we SSH into the reflector. You can use Netcat probably for this. We do, actually. I assumed you wrote something. So you SSH into the reflector. You can tell when someone gets into management. They're like, you know, I just assume we do this and I just assume we do that. . So you SSH into it and you basically wait an hour for the connection to come back in and then you've got your nice little SSH prompt that you start running your utilities from. Now there's two things that we like to do, and that's Ferret and Metasploit. Ferret is the tool that I wrote last year and I've given presentations at it at Black Hat and stuff. It pulls down all sorts of information that notebooks are leaking. So if you sniff right now on the Wi-Fi coming here, you'll find out lots of information about people they're broadcasting about themselves, such as their names. So there's lots of people here that think that their hacker is evading the FBI or something and they're coming incognito, but then their Apple MacBook is saying it's broadcasting out saying that this is John Smith's computer. So the FBI just listens on the Wi-Fi and they know everyone who's here. And the last access point they connected to was John's secret lair. So in our Ferret tool, all sorts of corporate machines are leaking the same information. So that's a great tool to run on the iPhone because you're sniffing the raw packets from the Wi-Fi packets. So imagine a corporation that's done the right thing for pen testing and they have no access points that we can access. We can still listen in on these notebook broadcasts and find out a lot about the corporation. One of the biggest things we found is that most computers go through a list of all the previous access points that they've gone to. So you can map out, for example, where the sales guys have gone if the CEO has gone to Microsoft and logged onto their Microsoft internal corporate network access points. Then you know if they've been to Microsoft and why is the CEO going to Microsoft and maybe they're getting bought out. Or if the CEO has gone to DEF CON. So that's one tool that we find that is great for doing a site survey and finding out a lot about the internal corporation even before we start thinking about hacking access points. Of course, now the main thing we want the iPhone for is to find out does the company have open access points. And if they do, we're going to log onto them and then we're going to start hacking with other tools. One tool, for example, that we like a lot is Metasploit. One of the cool things, Dave's added lots of codes like Wi-Fi fuzzing to Metasploit. One of the cool things we found, we tried to do this with the latest 3G iPhone, but it sucks batteries so it actually doesn't work as well. So they go from running from five days to about a day and a half. Which means by the time FedEx delivers it, it's bad. So as a side note, one of the interesting things we've noticed about this and we've tried this with DHO, with UPS, and with FedEx, internally to all these companies, they seem to have a lot of access points that are not locked down. So as your package is traversing this carrier company, Yeah, it's sort of the inadvertent pen testing. We wouldn't actually do that because that would be unethical. But one thing we found is that We shy away from unethical. When you grab the latest iPhone stuff, the latest jailbreak stuff, and all the little tools and stuff, you can actually download a Metasploit package for it. I don't know, did you try it and see if it ran? Yeah, no, it runs. You can get the little mood banner. That's my favorite Metasploit startup banner. Now let's hear what your favorite Metasploit app is. No? No one? Alright, well. So once again, we're back to gay pictures of me. So strangely, if you're ever in Atlanta, that's a really good Thai restaurant. So as you can see, this picture, the picture on the side is the finished version. As you can tell, if you were looking at it, it doesn't look any different than the picture on the right. In fact, we told everybody at all the stores where we were, FedExium, so you can't FedEx from a UPS store, but we told everybody we were shipping them from that somebody had won an eBay auction and we were sending them an iPhone. You know, we didn't need to tell them that. It just felt like, you know, people were staring at you, you feel weird and you want to tell them why you're doing this. And we're hacking your network didn't seem like a good idea. So I don't know if you've noticed this, I've actually lost a lot of weight. That's back when I weighed 250 pounds and now I'm down to 205. That tells you how long we've been doing this. Although I'm wearing almost the exact same outfit. I wash my clothes, I swear. So another thing we've been working with is Oh, wait, wait, there's some more stuff. So the thing that we found out about this is when it gets to a receiving facility somewhere, it will just sit there for a while. Especially if you're in a restaurant so people will accept, I don't know if you've ever worked in a mailroom or seen how a mailroom works or anything like that, but generally when UPS, FedEx, or DHL comes to a company, you'll get a whole lot of packages. You'll sign for them all and then somebody will sit and sort through them all. And then they'll be like, hey, there's nobody here named Jack Mion. We've got to send this back. There's no one that's ever worked here. While that package is sitting there in their mailroom, generally which has an access point, generally for nothing more than the symbol technology like readers, for inventory control systems and things like that, you can then connect to the iPhone and use the Wi-Fi interface to start scanning for different types of packets. You can associate to the access point or you can just basically start collecting data you can use to crack passwords with tools like and things like that. So that's basically the gist of the entire thing that we were doing here is this is a way to get past all the firewalls and crap that people were buying because, I mean, who here has ever implemented a DLP system? So something like this would completely bypass your DLP system and allow us to grab credit cards while it's sitting in your mailroom. If there's a point-of-sale terminal close to your mailroom. So the other thing that this really comes in handy with, and I don't know if anyone here has ever done it, but if you ever talk to a SCADA guy or somebody who runs SCADA systems, they get very uppity about security. Like, we have guys with guns. No one can get near our wireless access points. We'll have them shot. It's like, does a FedEx guy come in? Oh yeah, he comes in every day at 10 a.m. Well, that's that then. I was talking to a reporter about one of the benefits of this is that you don't have to sit outside in your car and be typing on your laptop, which is very suspicious. And the reporter said, yeah, that he actually has been detained by the police before because when he writes stories he often sits outside in a car typing on a laptop in a place where the police come by and say, why is that guy doing that? It's suspicious. Let's, you know, detain him. So doing this means that you don't have to get arrested for being physically close to your target. Another thing is, is from a pen testing point of view, which is much cheaper, pen testers, as part of a pen test engagement, they'll negotiate with us and say, hey, we want you to come by, you know, our five different sites in the United States and do a site audit, a pen test. I don't mean a wireless pen test. Well, it costs us a day of travel time there and back that we have to bill the customer plus, you know, a couple hours on site, which kind of sucks. Especially when you're going to a place like Wisconsin. I don't mean to offend anybody if anybody here is from Wisconsin. You see what I mean? So, and so, of course, when we do that, that's the sort of boring part of the pen test, so that's the job I delegate to David. I'm a bitch. He doesn't want to do that, so he figures out a reason why he doesn't have to go. So, but thinking about it from a point of view of hacking, you know, if the site gets this and they figure out, hey, this is actually probably something hostile, maybe the X-ray ray it and think it looks like a bomb, or they pull it open and say, why do we have a running iPhone? So one of the questions we have is anonymity. How, you know, maybe they want to track back who sent them this hostile device. And, well, since you've already jailbroken the iPhone, it means you can put in pretty much any SIM you want. Which means you can go to Czechoslovakia, get a prepaid phone there, pull out the SIM, stick it in your iPhone, and it'll be perfectly anonymous. So that you sent an iPhone to a site, and there's no clear backtracking back to the person who sent it. Unless, of course, you get a picture taken at the FedEx or Kinko's location you sent it to. In which case you should smile. So the software for this is going to be released open source. We're trying to set up a repository right now where you can just hit one button and, you know, have your iPhone on a go. But if you check our website next week the software should be up. It would be up right now if we had the iPhone. But some cabbie right now, I'm sure, has the power to take down the CIA. You know what's funny? I was thinking about that. We should actually just have a listener and wait for it. And fortunately our listener is back at home when we're here at DEF CON. Like I said, epic fail. Epic fail. We also think, unfortunately, we didn't have an email client set up. So we can't email naked pictures promising the cabbie things if he brings the phone back to us. We do have a young Nubile intern that we were offering up in exchange for the iPhone. So, you know, the original iPhone doesn't have very good GPS. It's got that cell tower, locational crappy stuff where you can find you within 400 meters. If you walk out on the street and look around 400 meters how many cabs are there? Hey you in the cab, stop! So the second thing we did is we came across a client that was like hey, you know, we've had people do these penetration tests before. We never get anything out of it. And we've done some studies. 80% of the malware that we get in our network comes from secretaries. And I'm not being derogatory. Secretaries clicking on things. So they wanted to see how you could test phishing without actually, you know, being phished. So basically what we did was set up a VMware image, you know, Linux, you know, basically a LAMP set up with a fake website on it. And do you know how easy it is to get certificates to make your fake website look authentic? Rob, how easy is it? So, that's a couple slides from here. Oh, I'm sorry, I'm getting ahead of ourselves. So one thing is, is that I was talking to a reporter and he was saying, you know, with this Dan Kaminski thing that one of the things... Can we get a hand for Dan Kaminski? The DNS thing? That was pretty awesome, wasn't it? So... Wait, did anybody use that to do anything bad or malicious? For good things. So Dan's stuff, the reporter was saying how, and one of the things that Dan mentioned is that this yet again shows some of the weaknesses with SSL. Because, of course, when you're spoofing these websites you're sending things back through to the wrong website and SSL really doesn't really help you out. And that was one of the points he made about our talk, too, is that this yet again shows some of the weaknesses of SSL. It doesn't quite work as well as we thought. The way that SSL works is is that a root certificate authority like VeriSign verifies that you are who you say you are. So we've got certificates from Arata Security and so VeriSign verified that we are actually Arata Security. And the way they do that is they go and do a Dun & Bradstreet report. When you are a company, Dun & Bradstreet verifies that you're actually a legitimate company. And you have to pay them some money to prove that you're actually verified, that you're actually a company. So it's kind of like Equifax for companies. And it's really kind of simple. If you can afford the $395, you're probably legitimate and not living out of your grandmother's basement. Like Chris Klaus. So to create a legitimate company it's usually going down $29 to the local county's office and say that you're now a bad company. You spend a little bit of money. Usually you even do it for free. You've got a domain name. You go to Dun & Bradstreet, you give them $400 and then you get your SSL certificate from VeriSign or somebody for $700. We're also sponsored by VeriSign. Or another thought or something. So now that you're a legitimate company so that when people go to Arata Security they'll have a nice little padlock icon that says this connection is now trusted. And people will tend to trust that. And Arata Base Control is signed. And so you apply that to spear phishing. Spear phishing is the idea of you target somebody. So like an internal corporation. So instead of broadcasting out to everyone in the world, you get a mailing list. So let's say every public mailing email address for a corporation. Or you could send an iPhone to the shipping department and then enumerate all the usernames on the Windows domain. So that's spear phishing. But when you do a phishing attack you often send it back to a website that is fundamentally untrustworthy. And the SSL will tell you at this site you can't trust. Do you want to continue? Now phishing works because enough people will continue that you get to break in. This is a true story. How many here has ever heard a story like this? Where some guy is very indignant and they're like, I would never download malware. I'm like, really? With your secretary? And then they go, oh. That happens to us generally on a daily basis. Now having been an executive at a security company, we quickly realize that the secretaries are not security knowledgeable. You think that for an average security company. Imagine a five-man consulting company and they've got a secretary and she still does not know anything about security. So SSL gives you a warning but people ignore the warning. But imagine that you train people to pay attention to that warning. If you go through this process you'll get no warning and people will trust you. So one question about this I put a larger number here for creating a real company is that it comes back to you so you'll get caught if you're actually doing this maliciously. That's why you date a lawyer and have her do it. I won't divulge whether it's a him or a her. So one thing you do for a company though is you can anonymize it. You hire a lawyer who will then act as the officer of the corporation your one-man corporation and you'll have a nice full board of directors of other lawyers in the law firm and they now are the public face of your company and people can't really easily penetrate that. Now law enforcement can give a warrant but actually for the average private investigator or normal investigators they can't penetrate the corporation and find out who you are within your one-man corporation. So a lot of people actually do this. For example, I own a home but my home is not owned by Robert Graham it's owned by my corporation. A corporation exists solely just to own the home. And I do that for privacy reasons so people can't look up in the county's assessor's office to look up my social security number what they find instead is the tax ID of the corporation. Doesn't due diligence just sound dirty? So you might want to anonymize the company so people can't find out who actually you are. So between one and two thousand dollars you enter the system of trust the circle of trust. We've all seen that movie Meet the Parents where the ex-CI agent is like grilling his new son-in-law or soon to be son-in-law and talking about the circle of trust. Starring Robert De Niro and Ben Stiller. Sponsored by Warner Brothers as well. For two thousand dollars you now enter the circle of trust. You now become the man and all the other the men trust you as the man. And now you're on the inside and now all your SSL is good all your ActiveX is good. So basically you know the secret handshake and you have a key to the executive washroom. Now there are some ways to do it cheaper. If you don't want to spend seven hundred dollars for an ActiveX control signing key you can actually steal someone else's ActiveX control. There have been a number of ActiveX controls in the last couple of years that you can actually serve them from your own website. You can serve a flash ActiveX you can serve other stuff from your website that people will then run on their computers. And it's vulnerable. It's signed by a well-known corporation but it's vulnerable and you can hack into it. A lot of ActiveX controls we bought we actually make a tool and we make it available for free called Axpan. That actually will kill a bit bad ActiveX controls we know about. And a lot of the bad ActiveX controls we've tested don't check to see where it's instantiated from. So you could literally host it on your own site. A good example is a recent one about three months ago I think. The HP info center ActiveX control and it was part of HP laptops. So if you have an HP laptop you have this ActiveX control. Don't worry, Dell, Toshiba, and Sony all have similar issues. Luckily Apple doesn't though. Apple doesn't have security issues. So I've been told that by lawyers. So it exported a couple of good things like you can write arbitrary register values and that's enough to break in registry values. But also this launch app method that we export so with a little JavaScript programming you say launch app and you can launch any arbitrary app you want like CMD download some hostile code via FTP and then CMD run that hostile code. And now you own the box with a botnet. And it's signed by Hewlett-Packard Corporation, which everyone trusts. Hewlett-Packard is good. So now imagine a more advanced spear phishing attack. First of all you get an email address list which you can Google. You get a large list. You can also do other stuff and then you've got your email addresses. Then you spoof an email address from HR at whatever corp that you're hacking. And then you have a message saying we've now changed four 1K providers. Now you need to go to your new website and log in with your corporate credentials. And you'd better do it before the next paycheck cycle otherwise you won't get your deduction done correctly. And you won't get your matching four 1K money. Also be very careful to follow IT security guidelines. We remind you again that you should check the padlock to make sure that you've got a secure SSL connection and that no one's been spoofing your man and middling you. And then if you're the man though you have a trusted SSL connection you have a nice little padlock and they'll come to your website and it looks like a nice corporate IT website or outsourced IT website and then they log on with their corporate credentials. A nice touch is on your fake website you set up under the news section write an article about how whatever corporation you're targeting has just partnered with this company to provide their 401K services. That always looks legitimate. Now I've worked with companies now for a long time that send out these emails that look just like this. We used to get them at ISS. ISS changed their 401K provider and they told us to go out and log on to this website. Basically the email that I have right here. How many people have received emails like this saying go to an outsourced provider for HR stuff and log on with your credentials? That's more people than had sex with a prostitute in Vegas this time. So that's a fair number of people here that their own corporations have essentially phished them. Now it was a legitimate thing to do I mean they were sending out saying here's your credentials but that's indistinguishable from phishing. And so the second thing we then add once we've got their corporate credentials is add the ActiveX control to it. And saying okay now to actually change your 401K you need to run this ActiveX control. So what's funny is the ActiveX control is presented as a security feature to enhance the security. So what we'll actually find out is people will say yes and install the ActiveX control then they'll get to the part where they have to put in their credentials. You're like it doesn't really matter you've installed the ActiveX control at that point you're owned. So we'll just take your credentials it doesn't matter. So the upside is that phishing attacks are actually pretty darn lame. I follow phishing attacks I don't have an account at B of A so I'll gladly click on a link to B of A website to enter in some credentials because I know it's not B of A but I know they're not my credentials. That's actually how I end up with most of my identity fraud You wake up in the morning find out someone spent $2800 in Guatemala you're like what the hell I've never been to Guatemala and what's POIL? So but when I go to those sites I can tell that they're not secure I mean they're going through a botnet that's got spamming all these IP addresses everywhere SSL does not work and they're pretty well done visually they look like B of A or whatever and they look very good. Server-siding clues are your friend. But when it says bankofamerica.fu.tk or something .defcon.org you know it's not actually Bank of America. But with this we were going to in our example we told them go to ArataCorp because ArataCorp is now we're outsourcing our 401k to it so they see ArataCorp.com and according to SSL it's actually the certificate it's actually the name of the email aside from the press release is you have to come up with a catchy slogan for the fake company like ArataCorp we're watching your money and then you can laugh every time you own somebody because you really are watching their money But it's also one of those things if you go to these outsourced HR human resources websites they always have a bunch of you know very well looking good looking people in suits shaking hands with each other Nobody from this room does that. So it's stock photography and it's amazing how when you see two people wearing suits it's kind of like the SSL analogy is when you see people wearing suits you automatically trust them if you see people wearing Che Guevara t-shirts you tend not to want to give them your money So that's the logical equivalent of what we're doing here is for a certain amount of money you now have the cyber equivalent of a suit and people trust you So to continue Rod's point you can actually Google stock photography you can buy all that stuff to make your site look legitimate for like a buck Maybe two So that's the fishing and the iPhone in the box We've also done some other stuff that's actually pretty boring but we find it interesting One financial firm used an ActiveX control to provide security to their site So we reverse engineered the ActiveX control and we found out that they had secrets embedded that they assumed no one would be able to access so we were able to reverse engineer that we were then able to use to help get into their site Reverse engineer? Who does that? Only illegal hacker kind of people There was another customer they had a software application that would update itself via FTP and we just put a sniffer on the wire to watch the software application and it would just FTP to an FTP site it would give a secret password that only they knew in clear text of course and it would then look for a new newer version of the software just by the date on doing the FTP date on the directory listing True story, that's a security application And it was a security application by the way And so we logged so getting the password from sniffing we then logged on to the FTP server and found that that directory was read-writable Anybody want to own a security company? Now you guys have all laughed because you've immediately made a connection Okay, I write a new version of the software it's my hostile software and every one of those client applications downloads and updates themselves with my software It took you a millisecond to figure that out for yourself This company actually took a while for us to really prove that yes, this could happen this way Are you sure it's bad? I mean it's FTP, it's pretty safe So the results of that were kind of fun Using snippers is pretty basic and it's pretty common Best quote ever out of that story is You know what the best thing to do to resolve this is? Let's just not tell anybody What are you, Apple? Oooh, I hit an Apple joke Somewhere Steve Jobs is plotting to take your money So thank you very much So the conclusion is that pen testing today is pretty boring I don't know how many people here have done pen tests or worked on pen tests but they're pretty boring because the customer fundamentally doesn't want you to do exciting things So one thing that Dave and I get to do is we get to find the customers that want us to actually stretch our wings a little bit and actually have fun with a pen test So we actually enjoy pen tests quite a lot So do we have any questions? Comments? Suggestions? We're going to be going to the Does anybody here have an iPhone in a box that they recently found in a cab? It's on eBay It's on eBay Thank you very much Thank you for attending our boring talk