All right, everybody. Thank you for your patience. We're ready to start. I'm Jill O'Hearn with the Red Team Village. I just want to say welcome to our inaugural year. We're so happy to see so many of your faces here. Without any further ado, please let me introduce Joe Gray and also Adrian Sanabria to hear to talk with you about the Red Team Framework. I guess we'll get started with Adrian. All right, so I've done some pen testing. I was actually involved with the PTES with putting that together. He's one of a bajillion people that contributed to that. And part of the reason we're here is we never really finished that work. We had a lot of ideas that never got implemented. It was one of those things where when you've got so many people involved with it, once that momentum goes away, everybody moves on with their life and does different things. And there was still a lot of work to do there. I also worked on the Defender side and studied the industry. So I've really seen this industry and the job from all angles at this point. So about me, I'm a senior security architect, 2017 DerbyCon Social Engineering Capture the Flag winner, member of the Password Inspection Agency CTF team, third place last year and this year at NOLICON, second place this year besides Atlanta, currently under contract to write a social engineering and OSINT book with NoSearchPress tentatively titled Securing the Human Element. So we have all these frameworks. Why do we create a new framework? Well, I mean, why would you create a new framework? Yeah, I think the key for me is that a lot of stuff isn't working the way it should be working. You know, it's the way we do a pen test. You know, we hand off the results and we don't really talk to the client after that. You know, maybe we do a 30 minute chat with them just to make sure everything went okay. But I'd say nine times out of 10, they haven't read the report before we've done that. And there's really no improvement cycle with pen testing. And what we've seen happen over the years is that it, you know, ends up being the pen tester having a good time with customers vulnerabilities. And which led me to come up with the term vulnerbating. But I've actually seen pen testers request to extend the pen test just so they could get an exploit working. There's zero value for the customer in doing that. You know, just, you know, good enough. Yes, maybe somebody better than me could exploit it. Move on. You know, but I think that that lack of focus is part of the reason that we're doing this. Let's coin that term the technical Tarzan, by the way. Technical Tarzan? Yes. Yeah. So with this, we're going to use a few terms, red team, purple team, blue team, pen testing, vulnerability assessment, web app testing. And, you know, I did a series of talks last year called it's time to kill the pen test. You know, just I don't really think it's time to kill the pen test. But, you know, it was intended to start a conversation and get perk up people's ears. But in preparation for that, I asked people what these terms meant to them and got just about as many definitions as people that answered the question, especially with pen testing. You know, and I was shocked to find how many people when you say pen testing, they think web app assessment. When you say pen testing, they specifically think web apps, which if you're an older school guy like me, I turned 42 days ago, you know, you think network pen testing when I hear somebody say pen testing. You know, and web app is always something like a web app assessment is so far from a network pen test. Totally different tools, different skills, usually different people doing it, you know, if you if you do each one. So yeah, we've got a big gulf in just terminology and language and what people mean when they say words. Absolutely. And, you know, in this industry, especially with people giving talks, I'm not going to hate on other speakers. But, you know, oftentimes we run into people who I'm a red team or I'm a red teamer, but all they do is consecutive pen test, consecutive vulnerability assessment. They are using offensive red techniques, but it's not true red teaming in terms of it is more domain admin oriented and less objective oriented. So let's get into what's wrong with this dichotomy. Yeah. And what he just said, I mean, that's that's a good point there. You know, I had one client that was just so frustrated. They had gone with three different, very well-known pen testing companies and said, please hack our Linux stuff. Nobody goes after our Linux stuff. They just go after DA. They go after the Windows stuff. And they're just so frustrated they couldn't get anybody to go after it, you know, because in the pen testers mind or red teamers mind, like it's a win lose situation. You know, they want to win. It's like like playing a CTF. You know, you go after what gets you the most points. But in reality, you know, the customer wants something, you know, fairly, you know, I mean, yeah, if it's objective based and it's easier to go through Windows to get to the goal. Sure. You know, but when the client says, forget about the Windows stuff, go after Linux and you still go after DA. That's a problem. Just just for my curiosity, um, who here who in here is a pen tester? Or does some kind of some kind of pen to something that falls under that blanket? And defenders? Okay. And what else do we have in the room? Just trying to get an idea of like, compliance, compliance. Okay. Sorry, man. Hey, I mean, security is a spectator sport. Sometimes I we didn't intend to out you. I say that because my day job is actually a compliance job, too. So okay, cool. That's a good balance. I was almost that was like 6040. Absolutely. And I would just venture to say there's a lot of the reason behind that is there's no Mimi cats for Linux. Yeah. I mean, somebody should like make Mimi dogs or Mimi penguins. So I don't know if you can see this from the back of the room. But But generally, you know, part of the reason I put together that, that, that talk time to kill the pen test last year is I felt that the design was fairly flawed. Not only is it not an indicator of an organization's risk, you know, because I mean, especially a large bank or something like that. It's just best effort. You know, you get 20 hours, 60 hours, 80 hours to do the pen test. There's stuff you're going to touch. There's stuff you're not going to get to. I mean, just to interject, you can't get an understanding of the environment to actually make the informed decisions that a well informed, a well executed adversary would do. Because depending on which industry report you trust, you're going to have a dwell time of three months to seven years. So you're not going to find out enough in 40 hours to be able to do anything of that magnitude. Or the flip side of that is you have a better understanding after 20 hours on the network than the people that are running it. Which is a different issue. And not because they don't spend time with it, because they don't look at it from the perspective that you do. You know, they've never run Nmap on their own network. So, you know, you're finding stuff that's just never occurred to them to look for. Also doesn't simulate adversaries. You know, how often do we launch ransomware, simulated ransomware during a pentest? That's what's actually hitting people. You know, or sending BEC emails, you know, trying to convince them to move money from one account to another. We're not actually using the attacks that are impacting people when we do a pentest. Instead, like pentest has become its own kind of isolated thing and Red Team where, you know, we use a social engineering toolkit because it's there. You know, it's good, it works, but we're not approaching it from a standpoint of, okay, what would the bad guys actually do? Sometimes because those tools don't exist or it's just not easily feasible to do that during an assessment. Like running ransomware, which I think we actually absolutely should do. You know, I love that an NCC group client actually asked for them to make a neutered version of WannaCry and run it in their environment. I think that's something that everybody should be doing because it's what's hitting them. Absolutely. I mean, you can easily, in various languages, web-based like JavaScript or even a compiled language, execute functions that would actually copy the file and attempt to encrypt it. Because, let's be real, you don't need domain admin to wreak havoc. Can you send an email to yourself? Can you send an email with an attachment to yourself? Can you install something? Or, you know, can you encrypt a file? Can you change the file's permissions? Those are all things that could be far more devastating than DA. I mean, if I can get to your crown jewels and email them to myself, who cares if I'm DA? I've got everything I want. I'm going to cripple your business. And the other thing we have to understand about red teaming pen testing is that, as a business, logistics play a part. You know, if the guy who's really good at A, B, and C isn't available because he's doing another engagement somewhere else, you might get the junior pen tester. You might get somebody who's less experienced. Or you might have somebody doing a web app test for the first time. They're not going to tell the client that, but that's who's available. You know, there's a calendar. Everybody else was busy. You know, you're getting one person in their particular skill set. You know, so consistency is super difficult with this kind of thing when you have one or two people doing the assessment. And it tries to prove and disprove. What do I mean by persistent negative here? So it's the idea that you could do perfect on a pen test. Pen tester comes in, doesn't find anything, you're fully patched, and you can still get popped tomorrow. That organization can still have a breach tomorrow because this assessment's never going to cover 100% of things. You know, so it creates this false sense of accomplishment or security. And I mean, just to summarize the last two bullets, I mean, it's inefficient. Back to Adrian's point, you're only going to see a small segment of what could be done. You may be focusing on web app when someone's coming through and you've got RDP open. Or you don't implement trading and someone paid me and I'm phishing everybody or calling people. Something to that effect. I mean, it's not efficient. But at the same time, it doesn't make money for companies to admit that they're not the end-all be-all. I mean, for the first time, I went to the vendor floor of Black Hat this year, and I mean, it was all advanced, persistent, blockchain-enabled, AI, ML, military-grade, super-whammydine, synergistic garbage. So I mean, there's no money in admitting that you need a relationship with a feedback loop such as UDA that can actually take something like this into account. Look at true business objectives, things that could impact your business and actually confront the problem head-on. Because it's kind of like one of my complaints with the medical industry. We're all about symptom management. Here, take these pills. You're good. But the side effect of that pill is going to make you come back three months later, oh, you need this, you need this. And it's symptom management. It's not trying to find a cure for the problem. Yeah. And root cause, that's definitely... So I would like to say I've seen huge improvements in pen tests over the last five to eight years. You do see a lot more reports getting into the root cause of issues, which is often in people and processes. Whereas the traditional pen test report would just say missing this patch, you know, had that vulnerability. And the customer ends up fixing the symptoms of the problem rather than, you know, why was that patch not installed in a timely manner in the first place? Why were those vulnerabilities present and not discovered? So one of the things I, you know, the company I started, started experimenting with this a lot. It doesn't exist anymore since I've been acquiring stuff. Long story. But we said, you know, so speaking of inefficiency that, you know, two parts of a pen test that just don't have a lot of value for the customer. Running some kind of vulnerability scanner, you know, or whatever tools you run to gather the data in the first place to figure out what you're going to go after. That's a huge chunk of time that you're charging the customer for. And then on the back end of that writing the report, another huge chunk of time. So you get this little bit in the middle that's actually doing the pen test. And in some cases, I've seen that's as little as two to four hours of actual work on a 20 to 40 hour engagement that you can actually call pen testing. You know, so I started thinking, how can we expand that? How can we get rid of these two inefficient bits on the front end and on the back end? On the back end, the reporting, a lot of that's automation. A lot of companies are doing a great job on automating as much of the pen test writing as possible. You know, some even using portals, you know, where there's no Word doc, no PDF, but a, you know, a nice portal where the results go, you know, great work being done there. But on the front end, I thought, what if I just use your scan when I come in? You know, you're doing scans already. Why am I going to run Nessus, you know, and you pay me to run Nessus for eight hours when you've already got them completed. And 100% of the time, I found misconfigured scans. And I'm like, well, there's part of the problem right there. You know, I found in one case, they were scanning all their web servers. And somehow in how they copied and pasted the domain names into it. M was missing from.com on all but one of them. So they're getting just enough results that they thought the scan was working, but didn't notice that 13 out of the 14 websites weren't getting scanned at all because of a typo. There's a business in Columbia that's probably mad about that, too. Yeah, business in Columbia. Yeah, .co. But, but yeah, that's huge. Like, why are we checking to make sure that they they're running a scanner correctly in the first place? We're going to come in and do a red team. It's like kicking a baby in the face to teach it martial arts. Like it's, it's, it's pointless. That's not how you learned. So basically, in that, let's look at the contrast of pin testing versus red teaming. So the pwnage based part of a pin test, that's that whole technical Tarzan mentality of users are stupid, I'm super elite, I'm going to come in, I'm going to bulldoze you. And I'm going to give you a report and you're going to enjoy it. And that's about it. Pin test largely, as of late, have became a tool for compliance. The second that PCI mandated that pin tests are required, then vendors started salivating. And it's like, how do we commercialize this? So as a byproduct, I mean, you can go out there and find companies that are going to give you excellent, in depth, thorough pin tests. You're also going to find what John Strand refers to as the pin test puppy mills. And ultimately... It's a cash cow, why not? Well, exactly. So that's one of the big problems in changing the industry is, is, you know, people are going to buy it, regardless of how good you make it. So, you know, there's some of that why bother element to it. Absolutely. And I coined a term in that last bullet, the digital melatonin, to help management sleep better at night. We've had a pin test, we've had some really good hackers come in and try to get in. We stopped them in their tracks. Meanwhile, they're missing the APT unit coming in via their exposed RDP, because that port was not within scope in their statement of work. So with the red team, you're looking at the specific, a specific actor or a technique or an IOC based on something. And it's based on an objective, something like, I want to see how long it takes my SOC to detect someone coming into our, our enterprise from a web from the website, pivoting into finance. That is an objective you can measure with a red team engagement. How long it takes to get DA or if you get caught giving DA is not an objective. That's outcome. And that's a huge, that's been a huge missed opportunity for years that I see done a lot more. Unfortunately, and what I'm referring to is detection, like involve the incident responders involve the whole security team and seeing if they can detect the attacks that the pen testers are using. Huge opportunity. I mean, it's either that or wait till you actually get hacked and see how you do. You know, so if you're going to pay the money to do it, you know, have everyone try to detect what the pen testers are doing. Talk to the team beforehand and say, you know, maybe let's pause after each day, you tell us some of what we did, and we figure out what we missed. You know, and that's part of building this, this loop, the cycle where you're actually learning from the pen test instead of, oh, they found some vulnerabilities, we're going to patch those. Because those are vulnerabilities too, you know, when they're, when they're sweeping the network password spraying, and nobody notices, that's a problem. Like that should there should be alarms getting set off everywhere for that, you know, people should be freaking out. So absolutely. And measurement is, as you will see later in this presentation, measurement and detection is one of the key steps within our process. So we're going to go through a few myths that we've heard, through our travels and years of experience, and kind of dispel them. So you want to kick it off? We've probably covered a lot of these. Yeah, we've probably touched on a lot of these. So we might want to accelerate through this. But yeah, so so yeah, the digital melatonin, you know, we talked about, yeah, no, it's not an accurate measurement. It's a best effort. It's whatever the pen tester happened to touch. You know, so again, that's a good thing to do coming out of the pen test, you know, which IPs, you know, how much of the network were you able to cover? What did you touch? What did you look at really closely? And what did you just skip, you know, try and get some kind of good idea of how much your different assets were looked at, which ones are missed, and maybe the next time the pen testers come around, have them focus on the stuff that was just skimmed in the previous pen test. This myth, according to Adrian's colleague Haroun Mir, pen testers emulate other pen testers, they don't emulate adversaries. And that was from 44Con, correct? Yeah, that was the first keynote for 44Con in 2011. He said that. And here we are almost a decade later. It's a good talk. I suggest checking out the video on YouTube. It's called Pen Testing Considered Harmful. And the thing about this, before we move on to the next myth, this is a perfect example of why those of us working in the offensive space need to actually study defensive techniques and what other attackers are doing. So you need to know what your opponent, if you want to use the us versus them mentality, or the blue team or SOC, whomever, whatever you want to call them, I mean, anything, what are they looking for? They want you to emulate APT29. What are the IOCs associated with that? What are the TTPs? Because IOC, indicator of compromise, and TTP are two completely different things. IOC, that's kind of like, after, you know, you fall and break your arm and skin your arm. That's the bloodstain. The act of what caused you to fall, break your arm and bleed out on the sidewalk is the TTP. So understanding that you need to know, like from the social engineering perspective, what persona are you getting in to do this engagement? How many people in here have played with Infection Monkey? Free tool called Infection Monkey. Yeah. Yeah. So earlier I mentioned, you know, yeah, the bad guys are running ransomware through an organization. We should be too. Open source out there, brilliant, easy to set up. All the instructions are on GitHub. I think GuardaCore makes it and gives it away for free, MIT license. But Infection Monkey is basically neutered ransomware that you can just deploy and let it tear through an organization. You can give it a list of passwords to try. It'll try some common vulnerabilities that are out there to spread throughout the network. And it's the best thing I've seen to simulate an actual ransomware worm getting into an environment. And great, great tool for, obviously, you want to, you probably want to talk about the organization before using that in a pen test, you know, because that's not something you traditionally see in a pen test. But all the clients I ever talked to where I use that tool in an engagement, they're like, yeah, you know, their eyes open real wide, light bulb goes on. Yeah, I'd like to see what would happen if ransomware were in here without any negative results. Absolutely. So yeah, Infection Monkey is a good tool. So we've been talking kind of about why pen tests aren't as great as we are led to believe. But we're not going to say that they don't deserve a seat at the table. They do serve a purpose in life, if nothing else, for things like HIPAA, PCI and other compliance frameworks. Additionally, it could be a stepping stone in assessing your own maturity to be prepared for true red team assessment. If you can't withstand someone coming in and getting DA, then why are you going to go for something a little bit more advanced? So again, red teaming, pen testing, similar disciplines, not the same, you could say red methods. I really like this one, though. Black box testing, honestly, from my perspective, and based on insert industry reports here, based on that whole dwell time statistic we've talked about, there's no such thing as a black box internal test. They've got time to look around. They're able to check configurations, get PCAPs, maybe even log into your SIM, look at your diagrams. They're understanding what's going on. The only thing you should be considering in this perspective as a black box test, and maybe even not even a black box, probably gray box, would be your perimeter. Yeah, and I think it's important to explore options and present options to, you know, for the pen test team and for the buyers. You know, understand why they're having it. Like, do they want to scare the crap out of management so that they get budget for something? That's still a thing these days, unfortunately. Unfortunately, I call it the oh shit moment, getting to that point where key stakeholders believe that, yeah, there really are problems. You know, because there's still this feeling of, well, nothing's bad happened. Nothing bad has happened yet. So whatever I'm spending on security right now is fine. But yeah, for a lot of pen tests, that's still the purpose of why they're having it, is to try and convince management that yes, there is a problem. Yes, there are things we have to fix. You know, we need more tools. We need more people. And hopefully the pen test will help us accomplish that goal. So if that's their goal, then fine. You know, work with the client to help them achieve that goal, you know, as quickly and efficiently as possible. I actually put together a different kind of assessment I called a breach impact assessment. And I actually designed to do it for free as kind of a loss leader, just to show people that they have gaps in detection. But we'd run a bunch of automated tests that would simulate a post-breach activity or post-intrusion activity, lateral movement, exfiltration, stuff like that. A lot of that stuff can be totally automated. You can just sit down with them in a conference room and explain what you're doing. We'd go through each of 13 tests. Okay, you know, now what I'm doing is I'm pulling in zero-day malware off the web. So if you have anything looking at the wire for that kind of stuff, this is a test of that. Or I'm exfiltrating data out in clear text. If you have any kind of DLP, you should get that. And we had a bunch of gimmies in there, like just grabbing ICAR off the internet. Like somebody should get some kind of alert. Hitting the kill switch for WannaCry. Your MSSB should get an alert. 100% of people's MSSBs failed all 13 of those tests every time we did this assessment. And it was very effective having everyone sitting in the same conference room. They're looking at their phones, waiting for it to blow up. You know, we're going through each of these tests, explaining what each of them does, and nothing on their phones. Nothing happens. It's very, very effective. And you accomplish that oh, shit moment in 60 to 90 minutes versus a whole pen test after somebody reads the report. So introducing the actual red teaming process. This is a ten step process. I couldn't think of two more steps to get it up to 12. Honestly, we could actually go down to eight because retesting and purple teaming would actually be optional. That lady Gaga song just hit my mind. The paparazzi. We were talking about that earlier. But anyway, so just to walk through. There we go. Just to briefly look through this, basically we're scoping, identification of the threat model, baseline security assessment, rescoping, learning phase, execution, measurement, debriefing, and then the optional retesting and or purple team assessment. So during scoping, we're going to talk about the objectives, define success for the client, talk about time, money, and then the number of systems involved. And of course, start the conversation about the rules of engagement and what kind of stuff do we want to utilize. The assumption with this would be that most customers that would be having this conversation would be in the mindset of I'm scoping this for a pen test. That's why there's a rescoping phase later where this information is refined. Adrian, do you have anything to add with the scoping? Okay. So with the threat model, from my perspective, I would say it's going to be based on the client base. Who is your customer doing business with? What sector or industry are they in? Are they affiliated with any governments? Where are they physically located? What are they doing? That's going to drive your threat model. If you're dealing with a financial services company, their target is going to be a lot different than, say, a manufacturing company. I think a lot of these stages as we go through these should involve the client more than traditionally they would have. From both sides, I think threat modeling should be informed by what's actually happened, what's going on, what could happen. And just really useful to walk through them with it and talk through them with it. Because especially on the pentesting, red teaming side, if you don't understand how their business works really well, you're probably not going to understand what they're worried about, what their own equivalent of threat modeling is. Especially if you get into manufacturing and stuff like that. I've learned a lot sitting down with clients and going through this kind of stuff. So it's hugely valuable, even if it's just a one-hour, two-hour, go-to-meeting, whiteboard session, something like that. So then we have to assess a baseline security model. This can be derived from the critical security controls. At a minimum, I would say to be tall enough to ride this ride, you probably at least need the top five. And also if you have the top five, it's estimated that you're more secure than approximately 65% of other companies in the world. Other things you could look at would be NIST special publication 853. But you also want to assess previous testing. What are you basing this off of? What's the vulnerability management posture? If you're not patching things, there's really no sense in doing this. And do you plan on monitoring? Do you plan on executing incident response with this? And if you don't have certain levels of maturity, then your money may be best fit elsewhere. I'd say 80-90% of the defender of the buyers for pen testing services are lacking the top five, all five of the top five. So you start to ask yourself, does it make sense to even do a pen test? And they'll tell you. Yeah, I mean, there's this stuff over here where we haven't even looked at yet. We're not patching it. We know it's deficient. They know where a lot of the problems are. So in a lot of cases, they just need help figuring out how to do some of that stuff. And there's not anything I see a lot of companies have on the menu of services that fits that. Like, help me do the top five. And then let's talk about a pen test. What is that assessment called? And there are companies that do this stuff, that just do this general consulting. And again, experimenting with my own company, what we came up with was a subscription service, where for different rates, you could get 4, 8, 16 hours of our time every month. We would do a baseline, we'd figure out which critical controls have been implemented. And basically the maturity of the company, how far down this path they were, and we create a roadmap for them. And we wouldn't really hard hold them to that roadmap, but we would check in with them once a month. Most of our clients ended up using probably 30 to 50% of those hours for incident response related stuff. We wouldn't fly out or anything, but we'd get on the phone with help them understand, walk them through some of the incident response stuff, build a plan for them if they didn't have an incident response plan. But basically, our clients found a lot more value in having somebody they could pick up the phone and call year round, than to take that same amount of money and blow it on a single pen test once every year. So for that 80 to 90% that has done none of the top five critical controls, maybe something like that makes a lot more sense than, you know, let's do a red team, let's do a pen test. But that's all people know to ask for. So that's what they reach for. So I was gonna say, like, if a 64 ounce Coke is the only thing on the menu, guess, you know, I mean, guess what people are gonna order? Maybe it's not the best thing for 100% people to order, but... Exactly. And we discussed scoping. So here's re-scoping. So we're refining the objectives, we're focusing the scope on the following. So we already kind of talked about time and money, but now we're talking about the execution timeframe. When do you want this done? Because a pen test, you can schedule that for next week. For this, because of the learning phase that's about to follow this, you can't, because there's a certain amount of stuff that you're going to need to know to properly emulate that dwell time. So you're going to need that, and you're going to need to refine the number of systems within your scope. There's a good chance it's either going to go up or down, it's probably not going to stay the same. Then from that, do they want you to explicitly do something? So are they, I don't like the idea of them confining and saying no social engineering or no web app or none of this, but if there's one thing in particular that really concerns them that they want you to highlight, it's good to get that out. And the other thing that changed with this is, depending on the sector, it may even be worthwhile to solicit input from one of the ISACs, so financial services, energy, retail, any of those, because you have group knowledge of what's going on across your entire industry. Yeah, ISACs are great, I wish they happened sooner, but if there is an ISAC for your industry, absolutely. A lot of them have threat intel that's specific just to your vertical, just to your market. And yeah, someone else is going through the same problem that you're having, they're having the same challenges. And I can't tell you how often I've seen amazing solutions to stuff, have you shared this with anybody? This is great, it's easy, it's quick, it's cheap, it works for your market, you don't have to hire additional people, like you should write a blog post or something about my company won't let me. And you end up running into that over and over and over where people have had to come to these eureka moments individually, whereas they could have benefited from more sharing. And ISACs kind of solve that problem, because most of them are private. You have to be in that vertical, you have to be vetted first, to be able to share and become members. So I like seeing that. And there's tons of them now. I think in the early days, there was just a financial ISAC. But yeah, there's at least a dozen now that I've seen. Yeah, it's like an aviation ISAC. I think there's a maritime ISAC. About as many as there are villages. I was just about to say, if there's a village for it, there's probably an ISAC. Yeah, probably. So after this, we'll set up the red team ISAC. That's not what that is. Totally kidding. I don't know what any of these acronyms mean. Right. Is that what they meant by that's not what any of this means? Did that refer to us? I guess so. So with the learning phase, like I said earlier, depending on which industry report, there's going to be dwell time. So there's ways you could do this. Get data from the SIM. It could be data dumped out. It could be just giving you access to the SIM as the red team that's actually going to engage in this. That way you can understand what's considered normal. Because honestly, depending on how detectable you're trying to be, you need some concept of normalcy for your target organization. So you might want to look at previous pen test reports. Might be worth something, might not. Either way, packet captures, NetFlow, other monitoring tools, get a feel for what's going on because the adversaries may not be using the same exact tools, but that's ultimately what they're trying to do. They are trying to learn. Score diagrams, get configurations, interview the administrators, the security administrators, the network administrators, system administrators, HR, anybody you can interview. Yeah, so this was a big thing when we set up that subscription service with clients that we did, is we would just go through configs and just all day long, every day, any time we looked at a config, we found serious, serious issues. And, you know, just like forehead slapping, like, no wonder, you know, you're going to get hacked tomorrow. Like, you know, it's worth going through. What's a deny all? So with execution, we're not going to get into telling you how to execute things. You already have the things on the table for you. Here's three examples of what you could use for technical frameworks to actually perform the execution. We saw this as an opportunity to avoid reinventing the wheel. We're just trying to kind of refine the tire. Yeah, the tire or the car itself to help it go a little bit more smoothly, maybe the shock absorber. I'm not mechanically inclined, I apologize, but basically... No two race tracks are the same. You're going to set up camber and stuff like that differently. No two companies are the same. So it's okay if no two pentests or red team engagements are the same. You know, it's a custom service. It should be. That's why we have all these APT numbers. Because they're not the same. Yeah. So this is probably the most important slide of the entire presentation. This is getting past that whole technical Tarzan beating your chest because you're so dumb. Great, you got domain admin, you got access. What does that mean to the business? They didn't detect you. Okay. Is it because you're so super stealthy? Or is it because they don't have the capabilities? Kicking a baby in the face. Precisely. You shouldn't be proud of that. Exactly. So these are the specific data points that I would recommend. So time to detect. I'll share a quick anecdote with you. I was doing a phishing engagement against a grocery store chain. When I do mine, I don't use automated tools when I phish. I send them out in batches of 6 to 10. Come to a social engineering talk of mine at some point, I'll tell you more about how I actually do it. The TLDR is about halfway through, I got blocked. At the time that I got blocked, I had a 6% success rate on scoring creds. Well, I checked the stats the next day. I was like, it's going to be bad again. Went from 6% to 42%. Because the action taken by the network administrator who blocked me was to forward the email and say, do not click this link. With the link still in the email. Correct. And not blocking it going out. So the time to detect for them, I mean, was about two and a half hours. Okay. It could be faster, it could be far worse. And that's not an isolated case. He actually, he told me this story when we were eating lunch, like an hour, two hours ago. And I have the same exact story, except it's even worse than that. It's the network administrator shared it. And seven forwards later, you know, this was a company that hired out, you know, basically, you know, EOD type company, hiring out, people do shady things and shady companies and, you know, stuff like that. Somebody in Iraq opens it and puts in his password twice and we get it. You know, he doesn't have a great grasp of English, you know, and forwarding the weaponized emails is, yeah. And that's going to happen over and over and over again. Right. So we also want to look at the quality of the report, the accuracy of the report, and then the efficacy of the actions taken. Because honestly, forwarding an email with a link in it without blocking the link or doing some sort of mitigation, it's not really an efficient thing to do. And for them, it didn't work out in their favor. So these are all things to be graded on. And then finally, we end up in the debriefing phase that I'll let Adrian address. Sure. Yeah. Yeah. I mean, the thing to remember here is, you know, a lot of this should get covered along the way. You know, I think there should be more touch points. You know, we talked about doing the threat mapping with them. You know, some customers, at the end of each day, they might want a debriefing. You know, that's not a bad idea. Things are going to phase in the pentester's mind as well. But definitely, this is the most important part. And honestly, when I was, for all my years of pentesting, this is the part most often skipped. I would often run into clients at conferences and things like that and say, oh, hey, how are things going? How's it, you know, what happened after we dropped off the report? We haven't even opened it yet. This is six months later. They, you know, other things going on, you handed them a 64 page report. Of course, they haven't opened it. It's a 64 page report. You know, like half of that are screenshots. You know, you got to make it consumable. You got to make it actionable. And a lot of that, you know, I think getting into the detection stuff helps a lot. Like, how could you have caught us? Like, what's the obvious things that you could have done that would have busted us along the way? You know, so this is, I disagree with you. I think this is the most important slide. Maybe we can just compromise and say the whole thing's important. No, it's just... Stay tuned after this. We're going to have an MMA match in the hallway. But anyway, we're going to get the statistics from that measurement phase and then the recommended actions. Because you're emulating an actual adversary, you don't have to go and research everything about how to detect this. Because you're reading this from a threat intelligence feed to find out, you know, what's going on, the IOCs and the TTPs. You can just reference to that and say, okay, well, here's what you can do to remediate that. Because undoubtedly some vendor has already written a blog post to try to be first to market with it. And then the other thing is, I like the idea of a qualitative score. Low, medium, high. I wouldn't say yes or no, because it's not a binary thing. I would say that with the whole actions taken piece that we used as an anecdote, that would probably be like a low or an unsatisfactory. But there's no sense in trying to establish an actual numeric value to it. Stay very qualitative in nature. So high, medium, low, severe, critical, whatever term. You could go with the traffic light protocol version, red, green, yellow, blue, whatever. And then here come the optional steps as well. So you can let them retrain, adjust, and retry. You're going to have to be sneakier about the way you retry, because you're still going to have the information. You might need to do another bout of the learning phase. But they're going to be watching for you, so you might want to catch them off guard at some point in some way, shape, or form. Yeah, so I'm going to disagree a little bit on that last slide with the qualitative stuff. So with the breach impact report that we did, it wasn't comprehensive, but these 13 specific tests that we would do that simulated attacker actions that they should be detecting, we tell them how many... each of them was pass-fail. Either you saw it or you didn't. And they're all things that you should have seen. Does that cover everything? No. But these are... all 13 of these tests are common things that you should be able to see, that you are going to see from adversaries. And that's one of the core problems, you know, we probably should have mentioned up front with pen testing, is it's very, very focused on the preventative and not the detective. And that kind of shifts the mindset to just spending money, time, and effort on that preventative layer. But then once somebody gets in, you haven't trained that at all. You haven't tested for that at all, and you're not prepared for that at all. So that's why, you know, in my opinion, you know, so many of the public breaches we see are handled so badly. They haven't thought about PR, crisis communications, how to talk about it, how to respond to it, you know, and the initial reactions, you know, are generally the wrong things to do. Try and hide it, pretend that it didn't happen, that kind of stuff, and it just exacerbates the problem. So yeah, you know, you got to think about it. Some of the stuff I think you can score, but you know, if it's something that's more subjective, you know, like how well do you patch? You know, that's never going to be pass-fail. You're always going to miss patches. You know, I think what gets important is how do you handle when a patch is missed? You know, do you have a plan for mitigations for that? And absolutely, you should be building to be able to defend an enterprise with unpatched stuff, because it's never going to be 100%. Which leads us to purple teaming, which basically would be a red team engagement that may have the red team and the blue team in communication with each other or even in the same room. In the past with red team engagements, I talked to Joe Vest. He was the technical editor of Red Team Field Manual. And what him and his team did minutes before they were bought by Spectre is they would start and they would do something. And as they continued through their engagement, they would get louder and louder, creating noise. And then finally, if the client didn't recognize it, they would just play Thunderstruck through their speakers. I'm personally a fan of Rickrolling. And I was recently just introduced to the Klingon Rickroll. I like that even better. Because you know, Rick Astley will loan you any of his Pixar movies, but one. Go ahead. And another reason that we this is another reason that we did the, you know, the subscription, the monthly subscription, you know, because, you know, imagine if you're only improving your security based on an annual pen test, versus, you know, if you're sitting in the same room with somebody else, and you've got these smaller constant iterations. So I mean, we, I think, ultimately, we need the equivalent of what DevOps does for building applications and writing code. But for security, you know, if we're improving every week, couple times a week, couple times a month, if the attacker and the defender are sitting in the same conference room, you know, and the moment the attacker gets some kind of success, the defender's learning from it, and they're fixing it. And that actually happened with clients when we did that service. You know, they would, we'd be going through configs and fixing it in real time with them on a, you know, just sharing their screen on a go to meeting, something as simple and humble as that did a lot more than an annual pen test did for them. So here are some supporting frameworks. I mentioned them earlier. These are just links to them. The bottom one, if you can't see it very well, it's from OWASP. I'm sure we're going to share the slides, right? Absolutely. So when we put our Twitter handles up on that slide, just make sure you take note of it because that's where it will end up. My upcoming speaking engagements, I'll be at DefendCon in Seattle, Hacker Halted, which I have a coupon code for anyone who wants to come for free. You can do it. And then I'll be doing a talk and a two-hour OSINT workshop at the Wild West Hacking Fest. The only thing I have coming up right now is Virus Bulletin. Me and Haroon Mir are doing the closing keynote, and it's going to be kind of a takedown of shady marketing stuff, like awards that vendors buy, stuff like that. Sorry in advance for any pain that causes. So I'm offering my OSINT training through the OSINTion. I've got some upcoming training opportunities I'm going to do in person, probably right before Derby, probably right before Hacker Halted. I'm trying to get to Dallas, Philly, and Boston this year. My format is it's a one-day OSINT course followed by a four-hour CTF targeting local businesses. And I don't mean like your local gas station. I'm talking like OSINT against nearby Fortune 500 companies or publicly traded companies that have enough of a surface that you can collect stuff. I've got stuff coming online. Here's that coupon code to Hacker Halted if you want to come in for free. I like free stuff. The keynotes this year, we have Casey Ellis of Bug Crowd, Paul Asadorian from Security Weekly, Jenny Radcliffe from the United Kingdom. Other speakers include Jeff Mann, Ginsberg, myself, Marcel Lee. You didn't submit this year, right? Or did you? I don't remember. I did. It didn't get accepted. I'm so sorry. Oops. That must have been that meeting I missed. Awkward moment right here. I told you to submit. I tell everybody to submit. CFP will open up for it again in probably like I think February. The Recon NG training, I'm offering two, two-hour Recon NG sessions. It's the version 5.0, the new one. You'll need some API keys. So sign up sooner rather than later if you want to do it. Use those coupon codes. I'm going to get you in cheaper. And I'll get an email to you telling you which API keys you're going to need. The cool thing is I'm not going to tell you to pay for anything. The only optional API key that costs anything is have I been pwned, and that's $3.50 a month. So any questions? Yes? What role do you feel white carding has in Red Team engagements, like being given access to certain parts within a network to more efficiently use the time that you have during an assessment? Do you want to handle it? Yeah, no, I think that's huge. I think that this whole assumption of pen test not being legit, if you have to earn every step of access, like I said before, it's, you know, an 80-hour engagement. It's a 20-hour engagement. You know, I think you're increasing the value when you make certain assumptions, like let's assume you've gotten in. Let's give you an account. Let's, you know, we think somebody could get that far, so why don't we start you off that far? Yeah, absolutely. And that's where that breach impact assessment with those automated attacks we did came in so valuable. Let's assume the worst has already happened, and, you know, could you actually detect it and respond to it in any kind of reasonable amount of time? Yeah, yeah, so no, I think that's super important, and we need to get over, no, let's make it super legit and like, you know, because if you want value out of that, all of a sudden you're in like 30-40 thousand dollar range to have enough time to do that properly. We got a question over here, a couple of them actually, a few. We got a question pod. So one thing I've noted in the environments I've worked in is that nobody wants to be down or have systems down or impacted that people are actively working on. Do you think there's any benefit to adding systems that are capable of being targeted and actually locked down or infected that are not going to impact their daily operations? Did someone say they couldn't hear? Okay, so the question was, is there any value added to testing systems that should not be taken down? I'm conflicted with this. Mostly, so I'm saying like, for example, if in an enterprise you were to add systems in each of the different work areas, so for example, if you have a system in the SOC that you can actually lock down and run somewhere, same thing like the HR departments or any of the other divisions, that would actually allow the teams to... Setting up simulations, in other words. That actually is something that you can employ against and not have to worry about taking down everything else. Right, but you're setting up systems that are non-production, right? Not production, but standard configuration. But standard configuration, yeah. I personally like that idea. My one flaw that I'm going to see with standard configuration, most companies don't have one of those. Well, no, he means the same as the production. I agree. Fundamentally, I agree. So this is the whole concept behind cyber ranges. The whole idea behind the cyber range is that you make a copy of production that you can do anything you want to. Like you can do proof concepts in there. You can test out new products in there. You can do anything you want in there. It's non-production, but it's a very close copy of what production looks like. Obviously, once you get into OT and you get into like SCADA stuff and stuff you can't just throw into a VM, that gets a little bit more difficult. But absolutely, as opposed to leaving it untested, yeah, yeah, no, absolutely, you should do that. Yeah, there's a lot of value in that. Actually, I really like the framework. Now, is there any reason why the framework shouldn't be applied to more than just rate teaming, but include, for example, any customer's reaction to pen testing, compliance check, and whatever? Yeah, I mean, forget the word red team. And there is a document that we're working on. But yeah, it applies to more than just red teaming. And it's meant to be an a la carte menu where you can pick and choose and customize something out of that. So yeah, if you can make that apply to compliance, and absolutely it does apply to a normal pen test, then yeah. And that feedback loop does need to be better defined. Yeah, I agree. I was wondering, based on your experience for the enterprises, how often do you think that this rate teaming activity should be performed? And how long, ideally, will it take? Yes. Yeah, I mean, it depends on how much you're going to cover, how much you hope to cover with the assessment. I mean, so that's a huge problem. And that's, you know, scoping, properly doing scoping, and somehow calculating the number of hours that you need to do it. It's pretty tough. I don't think there's an easy answer to that. Right. The verbosity of the learning phase would have a lot to do with that as well. And then depending on what the actual objective itself is, that may drive that as well. So the problem you run into is you need the kind of details that you gather during a pen test to properly scope the pen test. So I mean, we've asked people for NMAP scans, or for existing vulnerability scans, let us look at those. And, and then we'll tell you how long we need. You know, so I think that's a legitimate. And again, that gets into what you call it white carding, white carding. So I mean, you know, they might object to that. But I mean, the thing is, if you already know the vulnerabilities, you know, you can just help that much quicker anyway. So yeah, I think you should start well, obviously, you're going to get an NDA in place. So that's that's the other hard problem to that is you're talking about looking at sensitive data before you've even they've signed the contract, you know, during the scoping phase. So that can be a little tricky just with the the contract process, just the process of getting them signed on. So yeah, if you can hack that process where you've already got a contract, like an MSA in place and an NDA in place before you actually give them the statement of work, and insert this phase where you're going to go over vulnerability scans together and information about the environment, maybe even do the threat mapping phase before you actually scope and sell the red tape. I think that's how you have to do it. Because doing it blind, it's going to be wrong most of the time. Either that or make it easy to extend it, you know, tell them, hey, it's going to be between here and here, we might use less money, but, you know, get more time pre-approved or something like that. But it's a tough problem. Yeah, this is more of an observation from my experience in this. I run an adversarial team for a fortune 500 retailer. We do pen testing and red teaming. And most red teaming is pen testing on the market. We talked to a lot of people, there's only a handful of organizations out there that in my experience understand the difference between red teaming and pen testing. We outsource our pen testing and then we kind of do our own red teaming internally. We differentiate the objective-based adversarial assessment. And the best time for a red team is during a pen test. So my experience is blue teams love pen tests. They despise red teams because they don't know how to catch adversaries. Because when you go out there and you talk to red teamers, a lot of times you talk about methodology when you're onboarding them and they talk in it and they go through the whole process like, that's a pen test. And they're like, no, no. It's like, I know a lot of guys in the underground who do this for a living in like real life on the bad side. And like, they don't use NMAT. They don't use vulnerability scanners. So if you need a vulnerability scanner or you talk to your... we ask them their tools that they use. If they give us lots of tools, 9 out of 10 times they disqualify themselves. It's like, yeah, no, thanks, we're good. So really vet your pen. If you're doing a red team, you need to really understand what the difference is because there's a serious difference between them. Did you actually have a question, sir? No, that's insightful. I think that's fantastic. I'm still... best time to do a red team is during a pen test. It's still flying around my skull. I bet you get called a lot of good names by your blue team counterparts. Yeah. No, but it's... I mean, and that goes to... if you go back to that 2011 talk by Harun Mir, I mean, that's one of his major points is pen testers emulate pen testers, not adversaries. You know, like there's this... I mean, there is a methodology to it. It's not really written down anywhere, but it's pretty basic. It's you're going to come in, you're going to run Nmap, you're going to run Nessus or some other vulnerability scanner. And if you find anything juicy, you're going to try and exploit it. And if Nessus didn't find it, your pen tester is not going to do it in a lot of cases because they're using that as their guide, which is a terrible, terrible guide. Like most of the stuff that has default creds, you'll never find, you know, like Nessus doesn't look for all those things. That's why you go look at the global asset inventory on shodan.io. The good stuff I do find in Nmap and Nessus is just where it tells me a web server is open. Like way back in the day, I wrote a script that would take a screenshot of every web interface, web console that I would find. Then I go through that directory of screenshots and look for config consoles and stuff like that that I knew had default creds. You know, all those are going to show up as informational on your vulnerability scanner. Not with a 10, not with a 2, not with a 1, with a 0, with informational. So yeah, that's a really good point. What's that? Oh man, that's just mean. An actual test of DR is punishing enough. I like the way you think. Any more questions? Yeah. Companies started to acquire breach and attack simulation tools. Do you think Red Team can depend on these tools or is it more of a Blue Team tool? Um, yes, I think so. So, partial answer, I think yes, attack simulation tools are Blue Team tools and I think they're huge for the industry. It's the first time we've had any kind of standardized tooling that actually tests all the other products that we're using. And I think that it's hugely important to use that stuff. Some of it, I think it's, you know, I see less value in an attack simulation tool that costs six digits and you have to hire one or two people to configure it and run it and stuff like that. I think at that point it starts to lose value. I think it should be pretty simple to do it, to have that value, but Blue Teamers need to be able to do what the Pentester and the Red Teams are doing to be able to even know if they fixed it correctly. Again, if they're coming in once a year, you only get one shot a year to see if you fixed something correctly. That's horrible. You need to be able to run that test hundreds of times if you need to, dozens of times, to make sure that, you know, password spraying past the hash, you know, that there isn't a box in the network that you fixed because it's not in the domain, so it's not getting the group policy. You need to be able to test yourself and find those outliers. At the same time, that breach impact assessment that I mentioned, as Pentesters or as consultants, we use one of those tools in our engagements, and I think that's another good use of attack simulation tools, is for Pentesters to automate some of that stuff, you know, because you can just let that thing go, let it run, and, you know, that's more value for the customer where you're not having to build human time to do that. So there needs to be a lot more automation in Pentesting, basically. So yeah, good stuff. Any other questions? Questions, concerns? Oh, there's one. If you have current clients that are Pentest, you know, they want Pentest on, how do you get them to want to do red teaming? What's your pitch to them? From a social engineering perspective, offer it as a new introductory service for the same price. One of the things I'm going to take away is that you've basically given me permission to interact with clients and say, hey, why don't we get a little more dynamic and change this up and have a conversation at the end of the day? You know, like, I like what you said, you know, show me where you detected me and I'll show you where, you know, you missed. I think one thing you could do with that is commission an internal anonymized test amongst clients where you ask for specific metrics, like, was this detected? How long did it, like, what time was it detected? What steps were taken? Basically, the measurement phase, ask for those, compile it into a report and then give it to the customer for free and say, hey, based on the clients we do business with, this is what we've determined. Based on this in comparison to the DBIR, ISTR, the yada, yada, yada reports. This is how our customers collectively stack up. So we are implementing a new thing and here's what it is. And that's the approach I would take. So I'd use that breach impact analysis or something that looks like that. Don't actually call it a breach impact analysis, by the way, because BIA is business impact assessment, which is something totally different. And I just couldn't find anything else that sounded right that didn't share that acronym. But getting that, that was part of my goal in changing how we did these assessments is getting that oh shit moment at the very beginning. You know, so that's why we intended to do that as a loss leader. You know, we intended it to take no longer than, you know, an hour, two hours. But showing them that an attacker in their environment can do all kinds of stuff without getting detected. I think it's a great motivator to sign up for a service like that, or to do a larger engagement. Yeah. Without having to charge them for an engagement to sell them on an engagement. Yeah. So I think the takeaway is a lot of stuff that would really motivate and convince companies to do more of this type of work can be automated and done really quickly. I mean, we could have gotten it down to where we sent them a link and say click this link, and it'll all happen in a browser and give you a score. Like it could be automated to that point to where it could be done in like a just a link that you send the client in a web browser. Assuming they open that link while they're on the corporate network at least. Open it at home too. I think we had one more question. So you have a client that says they have unlimited budget. Oh, a limited. I thought you said unlimited. I've got a card. A limited at the frequency. So I mean, that's why the conclusion I came to is don't do monolithic assessments. And we offered a, you know, it was 1,000, what was it? Yeah, 1,000, 2,000, or 4,000. Four, eight, or 16 hours per month, this subscription service that we offered. Which is, you know, the way a lot of companies' budgets work, there's a certain amount that you hit where they have to get permission, depending on how high the buyer is in the organization. And there's a certain amount where they don't even need, you know, like, that's almost petty cash for them. You know, so by making it monthly, you know, it's an invoice that they sign off on every month, like four grand is totally doable for a lot of these guys. So instead of that 30, $40,000 shocker, you know, you can do a lot of the same stuff, but spread it out throughout the year so that they're constantly focused on security, constantly improving throughout the year instead of in one big engagement. So with a limited budget, you know, that's a conclusion I came to, is break it up and let them spend that budget slowly. And they really do feel like they get a lot more value out of it. I would also consider the business model, customer base, and sector for that as well. So some industries are a little bit more sensitive than others, like finance, they may want it more frequently because they're attacked more frequently. If it's a large multinational organization, they may need it more frequently than some mom and pop place in Podunk, Montana. So I mean, everything on the internet, in theory, there's equal scrutiny put to it. But then when you start putting two to two together and you find out who it belongs to and what there is to gain from it, then things change. When you're working with them all year, I mean, you develop a much better relationship with them. You know, people on your staff know their network as well, if not better than their own people. You know, you become that truly that trusted partner that they turn to for stuff. So you end up getting more and more work out of that anyway. So win-win, I think with that. We had nothing but positive results from that subscription service. Yeah. Any other questions, concerns, complaints, grievances, thoughts, opinions, or otherwise? That's all folks.