All right, well, welcome, everybody, to The Pen Test is Dead, Long Live the Pen Test. I guess we're going to get started, despite the fact that we didn't get our presenter view going, so we're going to be missing all of our notes. I will also forewarn you, we worked pretty hard to cut this presentation down to 50 minutes from its original black hat 75-minute length. So we're going to push through our slides, and we expect that there will be some Q&A. We will ask that you hold Q&A until the end, at which point in time we will move it to the Q&A room so we don't encroach on anybody else's time. All right, with that, we will offer some brief introductions and then tell you guys a little bit about what we're talking about here. So I'm Carrick. Hi, Carrick. Hello. I probably know a bunch of you, and probably a bunch more of you have seen me at the cons. I've been a goon for, this is year five. I've been in information security since. No. 1997, really started doing a lot of penetration testing, vulnerability assessments. I'm sorry, vulnerability testing. Since 2000, I've done some instructing, minimal presenting. So if I'm not very good, I'm sorry. And these are just some of the cons that I have actually been on staff for. So I'm going to hand it over to Taylor. Hello, everybody. I'm Taylor Banks. Carrick and I have relatively similar backgrounds. We've both been in InfoSec since about 1997. I have also been performing and teaching penetration tests since about 1999. I have done penetration testing for large enterprise as well as state and local government, and I've done pen testing training for a wide variety of organizations, including large enterprise, small-medium enterprise, federal government, and military. So hopefully Carrick and I can both bring a little bit of different background, although we've been doing this for equal lengths of time, and share with you guys some of our experiences in pen testing, some of the things we like, some of the things we hate, some of the things we love, and at the same time talk to you guys about where we see this service, this industry going. Wow, this is really not very smooth. So, quick overview over top. This isn't a technical talk. We're not going to talk about zero-day. We're not going to talk about black box reversing. This is the classic network pen test is what we're actually talking about. So, an overview of what we're talking about. With the pen test is dead, we're going to get a little bit into the history of hacking slash pen testing. We're going to talk about pen testing going mainstream, seeing it in the movies. We're going to talk about tools-driven, tool-driven methodology versus an actual repeatable process. And how you go about selecting a vendor. We'll mention a little bit about that. And our long-lived pen test talks a little bit about how does it fit into the organization, when would it make sense to have a pen test done, and then the evolution of pen testing as we've seen it over the past 10 years, and where we feel the future of pen testing is going. Cool, clicker. So, as I've already said something about this, we're not presenting O-Day. It's not a technical talk. Hopefully, it'll be fun, hopefully, it'll be informative, so I'll just keep pressing through here. All right, on that note, I'm going to offer a couple of warnings and a couple of disclaimers. The first disclaimer, I'm going to potentially, nay, no, I will most certainly offend many of the people in this audience. I want to say this in advance. There are some smart folks out there doing pen testing, and rather than mentioning you by name, you know who you are, right? If you've been doing pen testing for a long time, you know what a pen test is. And you've been providing good and valuable services to your clients, you will not be the people that I'm picking on. But be forewarned, I am going to lay some smack down on some folks. And again, I expect to offend some of those of you in the audience, so be prepared. Number two, I was actually sent an interesting definition by Decode. Decode's another one of the goons here a couple of days back. It was an urban definition for social plagiarism, and it's kind of an interesting phenomenon that seems to happen more in this one. It's more space than probably anywhere else I've seen. You're sitting in somebody's presentation or you're sitting in somebody's class, and they begin to tell a story about a penetration test they've performed. And you say, wait a second, that was my story. So I offer you this, right? We're going to be filling our presentation with some good stories and some experiences that we've had doing penetration testing. If we hear you telling your our stories, we will find you. So there are our disclaimers. Thank you very much. Okay. So part one. We talk about pen test is dead. A little bit of the timeline and history of penetration testing in the 70s, Captain Crunch, okay, multicolored boxes. 1980s, we have things like War Games. Anybody remember that movie? You've never seen that movie? LOD, MOD, Kevin Mitnick. In the 90s, DEFCON, all right? Yay, DEFCON. And then present day, iOS. I love you, a little while ago. Virtualization, big deal. Dan Kaminski, one of the big names, rock star. Web 2.0, Web 3.0, Web whatever, and Red Pill, Blue Pill. So back in the day, when pen testing started evolving as a service line, there were only a few people doing it, a few pretty smart people. They were typically this elite group of guys, you know, in long black coats. Very few organizations were doing it. It was kind of a novelty thing around 99, 2000. It was just starting to become a little more popular, and information security was kind of poorly understood. Typically, when you do, in particular, where you can really see the shift is an external penetration test. If you guys did external penetration testing back in 98, 99, 2000, how often did you get in? Like, all the time, right? Today, doing an external pen test, a lot of times, it's kind of boring. Okay. Because you find, like, five ports open, right? So it's not as fun. Some of the initial papers that started to kind of embody or express the mindset of the culture of the people that come to cons, like Def Con and Black Hat, Hacker Manifesto, okay, Dan Farmer and Vita Venema's paper, and their tool, subsequent tool, Satan. Just some more supporting information. But it starts to show an evolution of hacking penetration testing as a culture and becoming a viable service line. When you look at Internet Security Scanner from ISS or Chris Klaus at the time, it was one of the first, after Satan, it was one of the first automated testing tools. Okay. So it started to open up this space and make it a more viable enterprise service line. So. Quick story. Did an external and internal penetration test for a public school system in 2000. Actually, comparative test. So somebody else in the room might have actually been with me on that test. Hope you're out there. Shouts. Anyway, we were doing a public school system, and we found an SQL server exposed to the Internet that had two NICs in it. One NIC was connected to the Internet. The other was connected to the internal network. It was on the internal domain. And it had a blank password for the SA account. So, as you can imagine, there were probably plenty of external manipulations of the data in that database. You know, what grade do you want today? At the end of this engagement, the report that was actually generated for this client took up two reams of paper. There were thousands and thousands and thousands of what Internet Scanner considered critical vulnerabilities. So this was kind of an early on pen test exemplifies just how really bad it was. And what were some of the things that we found in those thousands and thousands of vulnerabilities? IIS Unicode. IIS, the double D code stuff. Solaris TTY prompt. Have you guys all seen that? That's a great exploit. It's one of my favorites because it's so funny. Fruit. This was something that manifested in AIX 13 years ago and then resurfaced its ugly head. With Solaris 10. Where you'd basically tell that to the machine. Tell it who you wanted to log in as. And you'd put a dash fruit or dash F root in double quotes. And it just gave you a shell as that user. It was great. Blank passwords. Saw a lot of blank passwords. A lot of default passwords. So these were the kinds of things we were seeing in 99-2000. So early on, really, those that were doing penetration testing were essentially seeing self-taught. In fact, I would go so far as to say that probably the vast majority of those that were doing penetration testing were doing so because they didn't always wear white hats. I don't want to imply that they were necessarily all malicious hackers, but most of us doing penetration testing got there because we spent time in underground communities and hackers by night, pen testers by day. Around 2000, we started to see kind of a change or a shift in pen testing as a professional service. And we're going to work our way from history through present day. But there was less agreement at the time on any commonly accepted methodology. Now, we can argue the need for a methodology. And in fact, later on, we most certainly will. But up to this point in time, one of the things that we were facing is that no two pen tests were alike. And there are any number of reasons for this. We'll go into some of those as well. In late 2000, a gentleman by the name of Pete Herzog, AKA Idea Hamster, released a document that he dubbed the Open Source Security Testing and Methodology Manual, otherwise known as the OSDEM. The initial version of the OSDEM, OSDEM 1.0 and then later OSDEM 1.5, these were a very good start. They were helpful in a number of ways. And it was certainly a laudable effort because there was really nothing similar available to the professional information security community of this kind. Now, that said, the early versions of the OSDEM really served largely as guidance. And while I was doing penetration testing, there were a number of reasons for this. I wasn't going to go and replace all of my own handwritten methodologies with what I took verbatim out of the OSDEM. But I did find the OSDEM to be a great effort. And again, it filled a gap. It filled a gap where, again, before there was no standardization, there was no methodology, and there was no way to guarantee that what Carrick and I might do on a penetration test were somewhat similar, if not completely different. So really what we had was a service in search of a methodology. We've got a number of organizations out offering penetration tests. And we're starting to move towards finding a methodology. But the problem was, in 2001, there was too much competition. This was kind of an elite professional service. There's a number of organizations that are doing professional pen testing. But we see a lot of job security through process obscurity. In other words, nobody wants to expose the methodologies they're using because then they feel they can't offer their clients some special secret sauce. The idea, you know, 2000, 2001, as long as you were good at what you did and you provided thorough and complete results to your clients and were able to help them correct the problems you found, hey, you won. But ultimately, this job security through process obscurity really only served to hurt us all. Again, not only were no two pen tests alike, but in many cases, two pen tests conducted by two different individuals or two different organizations were so radically different that you couldn't really feel secure in the results of just one penetration test performed by just one organization. So my point here is that, hey, if it's not a repeatable process, ultimately, it's not really a pen test. It's a hack. And I don't want to say that there's not value to a hack, right? There is some value in finding and breaking things with no process, no methodology. But lacking the process, lacking the methodology, again, we've got no repeatable process. We've got no way to ensure consistency across retests. So progress. Now, we move a little bit away from history here, and I've thrown a handful of acronyms up on the board. Since 2001, we've seen a lot of changes in terms of available methodologies and available documents that provide frameworks for doing penetration testing. Many of these documents have very different focuses. We've seen lots of changes in the Austin document itself. This was Pete Herzog's document. This is now maintained by an organization known as ISACOM. We've got some great web testing frameworks from OWASP. We've got guidelines and frameworks from the NSA. We've got NIST documents, Special Publication 800-42. So we've got lots of places where we can abstract information that ultimately help us create methodology, that help us create framework. And we've seen a lot of improvements in all of these along the way. So, 2000, pen testing starting to get buy-in, as I said before. Automated testing tools are coming into the market. You start to see things like Internet Security Scanner. This was just before Fountainstone Enterprise came to the market. But you're seeing more and more tools out there, figuratively and literally. Because what's happening is, as you have the automated tools, it's making it easier and easier for people to get into this space, come run a tool, give you a report. There's your pen test. Thank you. Have a nice day. There was nothing like a pen test framework in 2000, 2001, 2002. I can't remember the exact year that Metasploit came out. It was not long after, right around 2002 or 2003. But basically you would cobble your kit together out of exploits that you find on the Internet, things that you craft yourself, scripts and little bits and snippets of code. One of the tools that we used at ISS was a tool that Robert Graham wrote. He would take several different exploits out there that were typically good quality and repeatable. He compiled them into one executable, and then we would use that executable on pen tests and say, okay, I want to run this exploit, some IIS exploit. And then you would pass it the parameters that you wanted, and then it would send them. So it was kind of a convenient way to carry a set of tools in one place. It was one little binary, but it wasn't as nice as like a framework. I remember seeing a presentation by Elias Levy on the concept of a framework at I.O. Wargames from SANS back in 2001, right after 9-11, which was revolutionary at the time. So what happens with it, what we used to call them at ISS was scan now assessments or penetration tests, where basically someone would come in, run a tool, generate a 1,300-page report or 2,000 pages, whatever it was, hand that to the client, and now they're left to figure out what's important. The problem with that approach is you leave the client with no guidance. Okay, well, we'll try and fix all the reds, and then we'll fix the yellows. The problem is there's no strategic approach. How do they determine within the context of their own risk what to do first? How much effort is it going to take? The problem is what they're probably going to end up doing is running around and fixing all of these issues and then have to do the same thing next year because they didn't fix it from a process perspective. So a lot of the pen tests that started coming into the market at the time were these scan now assessments or pen tests, and it really kind of put a nasty smudge on our community. So we also start to see hacking in the movies, okay? Everybody recognizes Matthew Broderick here in War Games. Little sneakers, okay? Some favorite movies there. You guys remember this movie, right? Why did we watch this movie? Oh, wait. Matrix, okay? Anybody recognize that shot? All right, yeah. What tool is that? Awesome. All right. So Swordfish, the only reason to watch Swordfish. And here we go. We actually have a movie based on some real-world events in the hacker community, okay? So how did you become a pen tester back in the day? So Taylor kind of alluded to that already. You went out and read a lot of text. Anybody ever read the Rainbow series? Got probably a copy of you here to help write it. Smashing the stack for fun and profit. So there were several examples, several texts, things out there that you could read. You could get in an IRC channel, hang out with some people, get a little mentoring. But really, one of the crucial points to make is you need to understand the process of the attack, okay? Knowing a bunch of tools doesn't really make a pen test, okay? It's really about a mindset. I'm going to stand back up. I can't see anybody on the left side of the room. Sitting down over here. And it feels like a much smaller audience. So around the same timeframe, right? Early 2000, 2001, 2002, we also started to see commercial penetration testing or applied hacking and countermeasures training. And in fact, both Carrick and myself were providing training of this ilk. In the early 2000s, right? In the 99, 2000, 2001 timeframe, we had some good training available. So we're doing pen testing training or we're doing hacking training. But honestly. It was good training. It wasn't great training. There were a lot of things wrong with what was being delivered around 2000, 2001. I don't want to imply that it wasn't helpful and that we didn't smarten up a lot of people and help them understand and better identify their own vulnerabilities. But frankly, one of the things that we weren't doing was teaching a methodology. We were teaching a set of tools and we were teaching prescribed processes for how to apply these tools in an environment in order to find network vulnerabilities. But we couldn't really truly teach a methodology primarily for two reasons. Number one, in order to really understand and follow the methodology, you got to be able to think a bit like a hacker. The whole point of a penetration test, right? Is to recreate this environment. We're coming in from the perspective of a malicious attacker on our network. If you can't think like a hacker, you can't act like a hacker. So you can't teach someone to think like a hacker in five days. And furthermore, again, around this timeframe. There wasn't yet a generally accepted methodology. Although ISACOM's Austin was available. Again, it was still, it was a relatively early draft. And it wasn't replacing internal methodologies. So it most certainly wasn't something we were going to stand up and deliver as the word in terms of how to conduct a pen test. All right. Got to see my slide. Now. So nowadays we see a zillion and one training organizations out offering hacking training. And the training that we see nowadays goes by a million names, right? It's applied hacking. It's pen testing. It's ethical hacking. Unfortunately, I'm going to tell you in my humble opinion, I think much of the training we see is truly really crap. It really is. We've got lots of certified folks who are out there teaching tools and teaching process. But without understanding the tools and understanding the process. To be completely honest, I've met, I say in the slide, a dozen. But I will say at least a couple of handfuls of instructors who are out delivering penetration testing certification without ever having performed a penetration test themselves. Really? Seriously? Thank you. All right. Around the same timeframe, we also began to see the emergence of hacking books. And I will say we see hacking exposed release. This was really kind of the first of this, the genre of hacking books. And frankly, it was a really good book. It set the bar pretty high. Again, largely tool driven, tool focused. But it was very well done. And the process described within the hacking exposed book did begin to lay out the framework for performing penetration tests. In and of itself, the book wasn't going to turn you into a pen tester. But it gave you a lot of context. And understanding how you began to go about the process of performing pen tests. Now, since that time, again, we've seen numerous other hacking books pop up. And while there are a few books that Carrick and I both believe to be the notable exceptions, most of the books that we've seen since this initial rush of hacking books are reworked, rewritten material, oftentimes with the same screenshots stolen from the other previously available books. So, again, we're seeing this. Hacking go mainstream is really having its direct impact on the industry itself. Right? We've got hacking in movies. We see hacking training, penetration testing training being provided by pen test or by folks who've never done a pen test. And books that are basically regurgitation of earlier books on the same topics. In fact, while Carrick and I sat at Borders writing the previous slide, we decided let's go see what's on the shelf here at Borders in terms of security books. And sure enough. CISSP for dummies. Hacking for dummies. Really? Really? Does that help us out a lot? All right. Now, again, I mentioned I'd probably piss several of you off. And I kind of hope that I do on this slide. But hacking certifications, are you really serious? Right? Are you proud of that? You know, I'm going to give you my disclaimer here. I've got probably a dozen certifications myself. And most of them are probably about as worthless as the ones I'm picking on in this slide. But seriously. As a hacking certification agent. Are you any better than a note from your mom? I say no. I'm telling you guys. Seriously. Who in this room believes that they know somebody qualified to certify a hacker? Because I damn sure don't. And there's a lot of smart people in this room. So, hacking certification. Give me a break. All right. So, again. You know, I knew I'd probably aggravate some of you. And in fact, some of you guys probably have the certifications that I am specifically picking on. Hell, I probably have some of them myself. That said, those of you who know what you're doing. Hey, you're one of the dying breed. You're smarter than your peers. And hey, we appreciate your efforts in keeping the scene real. The rest of you. And those of you whose faces turned bright red when I was picking on. Those of you with hacking certifications. You know who you are. All right. So, the bottom line though. And what Carrick and I are really trying to point out here. Is that it's not about the tools. And learning the tools. Whether through a training class. A series of books. Or being certified on the tools that you learned in your series of books. Does not a pen test make. Right? A pen test is about a lot more than just the tools. You've got to understand the process. You have to understand the mindset. And in fact, possess the mindset. In order to be able to go out and find the problems that are truly going to be those that will be taken advantage of by the attackers that you are trying to protect your clients from. So, we'll just talk a little bit about some of those tools that have come out. Over the years. In map. Super scanner was one of my favorites. I used to tell people when I taught ultimate hacking. Ultimate hacking expert. That if I had three tools I could take with me to my desert island. It would probably be Metasploit. Cain and Abel. John the Ripper. Those are my favorites. Bone scanners and management tools that are out there. You know, Nessus is still a great tool. I've used it on several engagements. And then of course there are a lot of other players in that space. Some of the wireless tools that have come out. Air conditioning. Air crack NG. I mean that tool is pretty much the de facto bomb right now. You can crack a web key in less than two minutes. And then of course some of the other tools that we use. I started using a lot of virtualization around 2003-ish, 4-ish. Until then of course I was multi-booting which is so much more convenient. But also the advent of bootable distros were fantastic. I mean backtrack is again a fantastic tool kit. So, shouts to those guys. So here's actually an example of comparing yes tools have improved but kind of takes a brain. I did an internal pin. It's actually there to review the voice over IP network. And I kept trying to guess my way in. The way I kind of like to start on a pin test is slow and low, low impact. So I started digging around looking at different systems trying to guess my way into the few VoIP systems that were there. And I came across the documentation for the voice over IP system on some share. And started looking through and oh my God. The password to everything was the company name with like ats for As and threes for Es. Now yes a tool might have found that. But when you're brute forcing something like a password over telnet or whatever it's less effective. So it kind of illustrates the point that actually just as an aside I noticed when I was there that they were running a wireless network with no encryption. I thought wow. That's a bold move. And so I asked the guy. And he said oh we've got MAC filtering turned on though because you can't change that on the heart. This is a pin test literally like a year and a half ago. And an administrator told me that because you couldn't change the MAC address on a NIC they were all good. So how do you go about picking a pin test vendor? Well it depends on what you're trying to achieve. But by that same virtue I've actually spoken to some people. Some clients that have told me well I'll tell you what if I really need to pass a pin test I don't want them to find anything I'll pick these guys. If I really want to know it's got to be secure I'll pick these other guys. So again just something to think about. So in summary we're saying the pin test as it was is dead. So summary of that section. We covered a little bit of the history. We looked at the lack of standardization. There was no real solid methodology or process for how to conduct a penetration test. We also saw a torrent of people coming into the space because well everybody can be a hacker. I can go buy two or three books or I can take a class. I'm good to go. I'm a pin tester. I can get my cert. But you can also skew those results by picking a vendor due to the lack of standardization. Anybody have this book? Alright so we're going to shift into long live the pin test. Is it viable? Where does pin testing fit into the organization? Well I've actually seen a presentation by somebody I didn't work with directly but worked for the same company I worked for for a while. The software security guy. It's actually John Viega. So he wrote building secure software and was telling a room full of pin testers so pin testing is stupid. The classic network pin. There's no reason to do that anymore. It's a dead end service line. Imagine the looks on our faces and the sick feeling. You looked around the room I'm sure it was probably highly amusing to the fly on the wall. So but the argument is a pin test something that you could in terms of the classic network pin is it really something that you can commoditize every part of? Yes. Certainly there are aspects of a penetration test that you could automate using certain tools. But I would argue I mean I've been on plenty of pin tests where you run some automated scanner and it gave you know hey pass these guys are the bomb. You do a little manual digging and bam you own the system. I've also I guess it's a mentality of if you have no software vulnerabilities then you're solid. It kind of ignores the fundamental point that a lot of times I don't. I've broken into many many windows networks without ever launching an exploit. Don't launch one if you don't need to. So it's not an issue of software security. It's more of a human issue. You know okay you can keep throwing technology at the problem. You can go buy a NAC. You can go buy IDS IPS. And I'm not saying those are bad things. I'm not saying that they don't fit into the overall model. But is it really solving the problem? So is pin testing dead? We really say no. Based on the results of the pin testing that I've personally participated in I would say it's a great way to pop quiz yourself. Are these security initiatives that I have in place are these countermeasures that I'm deploying are they effective? Well and they may be effective within the context of everything you know today. But you know somebody like Ophir you know comes in and owns your NAC because he did something you didn't think of. How else would you validate that? Okay. So one of the funniest quotes I've heard from another pin tester is Marty Sells with ISS. We were doing a pin test and he says we're not conducting a penetration test. We're creating compelling events. I found it highly amusing. So again as I said it's like a pop quiz. You can let me just go to the next slide. The point that I was trying to make was somewhere around here. We've lost our presentation view by the way. So I've lost my notes. But essentially the point I was trying to make was that you can use the results of a pin test to validate funding. To get initiatives in place to secure issues you already know you have. So as another example of using multiple issues. Or depending on a vulnerability scanner to identify all of your issues might not be that helpful. I actually did an internal pin for a client where one of the things they really wanted me to do was break into the AS400 environment. I don't know that much about AS400. So I was looking at ways to get in checking defaults. Ran an automated scanner and it actually came up with a pretty good score. Didn't find much stuff. But it did find default SNMP on the AS400. Or a default SNMP community. So what can you do with that? Well I looked at all the data returned from an SNMP walk and noticed here are all the live connections. What about the connections to port 23? Those might be interesting. So I also using a combination of knowing that I could sniff on their network. They weren't using any anti-spoofing technology to protect themselves from network eavesdropping. Combined, which is semi-nasty. Combined that with now knowing where the connections are coming from to the AS400. I was able to capture an administrator logging into the AS400 and had complete control of the AS400 environment. So it kind of exemplifies the point of you use something that isn't necessarily a bad thing. If you can find a couple of little things you might be able to leverage that into something nasty. And that's the kind of correlation that an automated tool just isn't going to be able to do for you I think ever. It requires a brain. So interestingly what are the things we find now right? After all the things we saw from the earlier section in history of the pen test. What are the things we find today? Well believe it or not it's the same stuff we found yesterday right? We still have weak passwords. We still have poor architecture. We're still finding system defaults. We're also still finding vendor configurations and default vendor devices. In fact in a large number of organizations that Carrick and I have both done pen tests for. We often find devices that the local administrators don't even have root on. Nor do they have the ability to modify or patch because they are owned and controlled by the vendor. So in essence despite all of these improvements. Despite all of these things that would make us believe that hey if we write our code properly. If we secure our code effectively. We're not going to need to do network pen tests. That's hogwash. Unfortunately the problems we see are not just software problems. So again they're basically the same damn things that we saw ten years ago. Have we learned anything? Well yes. Our software is getting more secure. We know that for a fact. We can test that. We can demonstrate it conclusively. But again unfortunately what we're talking about here goes well beyond just software problems. Software problems are the vulns. And we just got done spending 20 minutes telling you guys that a penetration test is not just a simple vuln scan. So if a pen test is not just a simple vuln scan. And we're telling you that hey most of the major problems we find are not necessarily or inherently current software vulnerabilities. I tell you unfortunately there's still a lot of need for pen tests. Because it's the only way that we're going to identify these systemic issues. So you know the other thing to understand here is that security is a process. It's not a project. And you've probably seen one of a dozen of these circle diagrams. In fact I think any vendor that has ever done penetration testing had to create a circle diagram to describe the process or methodology that they used. But the idea here is that you know we're not just walking in performing a test. We're walking out and moving on. Number one the environments that we're testing in themselves are dynamic. And a pen test is essentially a snapshot of a dynamic environment. The environment itself is changing all the time. And therefore we need to continue performing processes and continue performing pen tests. In order to ensure that changes in these environments and changes in risk profiles within these environments. Don't significantly affect the security of the organizations. Again as I said before. If it's not a repeatable process. It's a hack not a pen test. Now there's something to be said for the fact that pen testing is in essence still somewhat of an art form. Right. There is still some inherent unique focus or advantage that will always be imbued into a pen test by the person performing the penetration test. But there must be some semblance of a repeatable process. Otherwise we've got no way to guarantee that when we go back and perform a rescan against our organization. That we are doing the same things in order to effectively determine whether or not the problems we found the first time around have been fixed. Have been changed. Have been improved. We started talking here a little bit about metrics. And about process and metrics. So if we look at the different approaches to pen testing. Right. There's the yesterday approach. The 1999-2000 scan now pen test. Right. We go in. We sit down with a client. You dump a 1300-page report from scanner. I mean the custom report we generated for you into a client's lap. And then they run away. You sit and you talk with the clients. And you say, hey, we're not really going to be able to accurately assess the risk of the vulnerabilities we find unless we can really define a risk profile. And the client says, risk profile, what's that? So, you know, again, the pen test of yesteryear was something that was, it was driven by, a lot more by vulnerability scanning. It was driven by the vulnerability scanning process. Whereas today we need to move a bit beyond this. And we're now moving from, you know, kind of a tactical approach to a strategic approach to pen testing. So now, you know, our goal here or our aim is to be able to sit with our clients and have remediation plans and action plan matrixes that actually deal with highest impact, lowest cost vulnerabilities first. Right. We need to help them fix the problems that are going to most directly influence or affect them. Immediately. Before we go on to fixing things like SNMP default community strings on an isolated out of band air gap network. All right. So, again, we talked about metrics. And honestly, we could probably have a whole other presentation or for that matter a series of presentations on metrics and process and frameworks. And, in fact, we'd probably love to do just that. It's impossible to capture what would be in the optimal metric when doing pen testing. Or the optimal process. But we know that there are things that we need to focus on and need to identify. There's a couple of interesting components here. You know, one of the things, Karek and I had a discussion. We talked about changes in the vulnerability landscape during the time when a penetration test is being performed and across systematic rescans. And, therefore, as we're looking at the results of these tests, we realize, hey, you know, 13 new vulnerabilities were released for the systems that we tested since the last time we tested. If we did a pen test for this organization, that needs to find its way into the metric that we use to produce the results for our clients. But we also need to focus on things like, again, for instance, business process. You know, we need to understand that, hey, the risk associated with an individual vulnerability ties back to what an organization does and what information is affected by the vulnerability that we found. Again, as I said before, you know, two pen tests are always still going to be influential. They're going to be influenced by the pen testers. And, honestly, that's a good thing, right? Otherwise, hey, we'd all be drones. So despite the fact that this is not a tool-driven process, and although I encourage and suggest and talk to the points of methodologies and process, again, we know that, you know, tests are influenced by the individual pen tester. And, again, that's an important part of this process. We said volume counting is ineffective, you know. And one of the things is let's say we've got findings in a new scan, right? We've done a scan for an organization. We go back. We do a systematic re-scan. We come back. And now we've got new findings. So what does that tell us, right? Has the organization changed? Have they made changes within the environment? Did the tester change? Did the tools improve? Or what combination thereof, right? Did the tool improve and the tester improve? We brought new people on to the team. Oh, and by the way, they turned on seven new systems since the last time we performed the scan. Well, unfortunately, the only way that we can really begin to address this issue is with the testers. And that is with metrics. So an example of this. I actually had a client. We went out there in 2006 and did an internal pen for them where we were able to own a total like 60 systems. I felt like it was a complete failure because you have to own them all. So the reason for this, actually I'll get into the reason when I kind of summarize the whole thing. 2007. We show up. Owned everything by like 11 or 15 on Monday. So we're explaining the results of, you know, the client comes to me and says, you only got limited control the first time. We haven't really made significant changes to the environment. What the hell happened? So I start to explain, well, the first time what happened was we came in. We find a vulnerability on a system. Take advantage of it. Get into the box. Rape the accounts off of it. And we'd have to shut those off to a machine somewhere else because you couldn't run password cracking on your local machine because it pretty much makes it a brick. So we'd push that off. Run John the Ripper somewhere else. And it would be recovering the password. Maybe it would take a day to get a password back. You'd get about 11 or 12 more systems and bam, hit a new brick wall where that password wasn't good anymore. It was kind of a byproduct of the company growing through acquisition and different groups had owned different pieces of this thing and they hadn't really solidified it all together yet. So it was highly segmented in terms of what chunks we were able to get our hands into. Came back the next year. What had happened was I had some rainbow tables with me. I had John the Ripper had been upgraded to version 1.7 and it was taking me about 15 to 20 minutes to compromise passwords. So I don't know. Maybe I got better. I might have learned something new, a new trick or whatever it was. But it kind of illustrates the point that there was no dramatic. Change that the enterprise. They hadn't necessarily gotten less secure. It was more an evolution of the tools and maybe an evolution of methodology or some approach or technique that I used that dramatically impacted the ultimate results of the test. Okay. So when we talk about a metric systems, how do we capture all this? How do we determine if we're getting better? Okay. All right. So we come back to frameworks. And I threw a bunch of acronyms and pictures and icons on the board before. And so now I'll come back and readdress a few of these. You know, again, we've seen some significant improvements in the frameworks and the methodologies that we have used and or contributed to across the past ten years. The OSTIM itself has improved. We've also seen release of a new framework called the ISSAF. We've got a couple of frameworks provided. Kevin Ori has a pen testing framework publicly available, as I mentioned. NIST special publication 800-42 talks about guidelines for network security testing. We've even got a wireless penetration testing framework that got rolled up into Kevin Ori's overall pen testing framework. Again, these are all great starting points. And they're all a great set of guidelines or a basis upon which we can influence the tests that we are performing. However, you know, we've had this problem with not being able to see the forest for the trees. And so now, again, one of the things that we need to understand is that because we're no longer just focusing on individual vulnerabilities, we've got to look for the systemic issues, the architectural issues within our environments. Unfortunately, even methodologies might not help us there. Right? When we're looking for architectural problems, the specific subset of UDP ports to scan. In order to be compliant with somebody's methodology document is not really going to be very useful. Again, we talk about move from tactical versus strategic. Whereas, tactical was our process of just basically identifying, categorizing all known vulnerabilities. Whereas, we move into strategic, which is a more systematic approach. Right? We're trying to find not only system level vulnerabilities. We're also trying to find these architectural issues. And we're trying to correlate all of this back to, again. The organization for whom we're doing the tests. Business. To their risk. Right? To the risk profile associated with the nature of the business they're doing. And the information affected by the vulnerabilities that we find. So, again, this is something that is really only going to be improved through the development of appropriate metrics. Right? We need systems that we can use to help us identify. And to help us provide information that ties back to the vulnerabilities to the systems that we find. And include things like risk associated with business profile. We mentioned complexity and likelihood of attack. And this is rather important because, again, the likelihood of an attack as well as the complexity of an attack will affect the likelihood of that attack affecting the systems within the organization. All right? So we move into pen testing in the 21st century and beyond. Fortunately, we've got five minutes and we've only got 45 more slides. All right. We talk about methodologies. One of the things that's important here is an organic methodology. In other words, a methodology that is going to improve as the state of penetration testing improves. And one of the real benefits to the documents that we mentioned or that we referenced in some of these slides is that most of these are open source documents. Or open source methodologies. While they have groups of core contributors, the bottom line is that they are open for contributions from any and all of us. And this is an important part of this process. Right? Where there are flaws, omissions, or where these frameworks and guidelines are lacking, it's up to us to go out and flesh them out. And identify what they are missing and where they are lacking in order to ensure that in the future these documents and these guidelines can help improve the consistency of tests performed for our clients. All right. We talk about adapting to new technologies. And this is something that I think frightens a lot of folks doing penetration tests. Right? It's what happens as we see changes in technology. We see things like, you know, Ajax, Web 2.0. We've got new technologies like NAC. And oftentimes these technologies are deployed within organizations before the folks that are hired to do penetration tests really have an opportunity to identify how the systems work and how they might be compromised. So we've got to ask ourselves, what can we do or how can we go about adapting to these new technologies, especially when, frankly, they're technologies we might not fully understand? So we say, well, there are two ways. Number one, the easy way would be Billy Hoffman. Or number two, we do essentially what software developers have been doing in building secure code. We do threat modeling. We do attack modeling. And we fuzz. Right? We treat these environments in the same way we would treat a piece of software that we are trying to secure from the ground up. On the topic of threat or attack modeling, you know, this is, again, something you will read generally in the context of software development. However, at an abstract level, the process of threat modeling applies equally well to an unknown or unidentified technology when conducting a pen test. Right? We're trying to identify essentially data flows. We're trying to look at where is a piece of data? Who owns or modifies that piece of data? Where does that data go? What trace of trust relationships or boundaries exist between the pieces of data that affect this system? So can you test without a baseline? Yes. Unfortunately, the problem is testing new technologies and testing without a baseline is going to produce results that will be more difficult to quantify and more difficult to define or associate qualitative values with. Right? We start testing new technologies. The problem is even though threat modeling can help us identify where the weaknesses are and help us identify vulnerabilities within the architecture or configuration of these systems, until there are baselines for these new technologies, relating that information back to the risk profiles and the organizations we're doing testing for is certainly not going to be an easy task. Lastly, we ask ourselves the question, how can we really provide quality assurance? How can we really provide quality assurance in the context of a pen test? And by that, here's what I mean. How do I know if one pen test is good and one pen test is bad? If we don't yet have effective metrics, and we're saying that the number of vulnerabilities is not necessarily an indication of the security of the environment, especially if we're ignoring risk profile of the organization, how can I look at two different penetration tests and say, well, this organization or this individual did a good job, and this organization or this individual did not? Well, again, we're trying to identify where the weaknesses are. We're going to have to come back to process. The only way that we're going to be able to come back and define quality assurance or quality control in the scope of penetration testing is through effective metrics. And these metrics are things that, again, through working with and adapting the existing frameworks, we're going to be able to define and improve, and it will be an ongoing and ever-changing process. Okay. How do we justify a pen test? How do we position this? That one. All right. I've got one minute, so I'm going to go really fast. It might be a legislative requirement. It might be a genuine interest in the environment. I alluded to this a little bit earlier. And clients really kind of fall into those two categories. I actually did, and this will probably be my last pen test story, did an external pen for a company. I was able to compromise multiple Oracle servers, found PII, found credit card receipts, found my favorite one was this picture. So I actually found a file share and started digging through it and found this series of pictures. And there was this woman that was having something removed from her leg that was this large growth tumor thing. So you watch the process, and they have, you know, one snapshot removing it. And then in the last snapshot, the doctor is standing there with the tumor under his arm. Now, you have to ask yourself. . What's the exposure there? Okay. Illegal exposure. And probably their biggest problem from an architectural perspective, they had no external firewalls. So anybody could have viewed that particular sequence of photographs. All right. So we make it to our conclusion slide just as we hit the final moments of our talk. Again, you know, Carrick and I wanted to focus on a couple of points here. And, you know, the first half of this presentation was dedicated to what we call the pen test is dead. What we're saying here is that yesterday's pen test is dead. Right? Simple volume counting is no longer effective. While what worked then still works now, we've had to evolve and adapt to the process to meet the requirements of changes in technology and changes in security within and around the organizations that we have been working with. The second portion of this talk we focused on essentially long lived the pen test. And what Carrick and I both posit is that. Despite the fact that improvements to the quality and security of the software we are developing, despite the fact this will inevitably help our organizations and improve security on the whole, it is not going to mitigate the need for network-based penetration testing. In many cases, network-based penetration testing remains the one effective way that we've got to identify problems within organizations that go above and beyond simple software vulnerabilities. Everything we said may be a lie. Thank you, guys, very much, for coming. I also want to thank DC404. Right? We're part of the Atlanta DEF CON group. And we ended up with seven presentations at this year's DEF CON. So thank you. Thank you, DC404. And thanks to all the other speakers from DC 404. You guys all did a great job.