1 00:00:00,000 --> 00:00:00,960 All right. 2 00:00:00,960 --> 00:00:02,500 It is officially noon. 3 00:00:02,500 --> 00:00:04,280 Longest six minutes of my life. 4 00:00:04,280 --> 00:00:05,640 Let's get started! 5 00:00:06,500 --> 00:00:08,520 Thank you so much for being here. 6 00:00:08,520 --> 00:00:10,780 I'm super excited to be giving this talk. 7 00:00:10,920 --> 00:00:14,460 I hope you're ready for 30 minutes of your life that you will never get back. 8 00:00:15,080 --> 00:00:22,080 My presentation today is facilitated by the Adversary Village, so just want to say an extra special thank you to them for the opportunity. 9 00:00:22,640 --> 00:00:29,620 I spent a lot of my time at DEF CON last year at the Adversary Village, and I really learned a lot, and I knew I wanted to come back and contribute to that community. 10 00:00:29,820 --> 00:00:42,260 So in kind, I'm going to be talking about Purple Teams, namely this unique approach that we call the Assume Compromise approach that we've found to be the most effective strategy in creating a high-value Purple Team engagement. 11 00:00:43,080 --> 00:00:47,840 First, I'm going to introduce myself and try to convince you I'm qualified to give this talk. 12 00:00:49,460 --> 00:00:50,780 Who put that there? 13 00:00:50,940 --> 00:00:52,420 Hi, I'm Sarah. 14 00:00:52,420 --> 00:00:56,100 I am the Purple Team Service Lead at Security Risk Advisors. 15 00:00:56,100 --> 00:01:04,360 I have led hundreds of threat intelligence-based Purple Team engagements for the Fortune 500 and the Global 1000 over the past seven years. 16 00:01:04,820 --> 00:01:12,460 Much like Twilight fans are split between Team Edward and Team Jacob, most Purple Teamers are split between Team Red and Team Blue. 17 00:01:12,560 --> 00:01:16,300 As for myself, my background is in offensive security. 18 00:01:16,500 --> 00:01:23,720 I mostly dabbled in network penetration testing, ITOCS pen testing, and the occasional physical pen test. 19 00:01:23,720 --> 00:01:25,420 Which leads us to this picture. 20 00:01:26,320 --> 00:01:32,280 After a break-in, I sent a client a timeline of events, and they went back to their camera footage and pulled this. 21 00:01:32,280 --> 00:01:35,000 So I figured it was a good Who Am I slide picture. 22 00:01:35,540 --> 00:01:37,100 Yes, my shoes were in my hand. 23 00:01:37,100 --> 00:01:42,380 I had to go up like 20 flights of stairs, and my heels were just making an insane amount of noise. 24 00:01:42,380 --> 00:01:43,640 So I had to take them off. 25 00:01:43,720 --> 00:01:47,380 And that is the level of dedication that I intend to bring to this presentation. 26 00:01:48,940 --> 00:01:50,200 I'm from Philadelphia. 27 00:01:50,200 --> 00:01:51,340 I went to Penn State. 28 00:01:51,340 --> 00:01:52,460 I'm left-handed. 29 00:01:52,460 --> 00:01:53,700 I own a dog. 30 00:01:53,760 --> 00:01:55,880 Those are all the answers to my security questions. 31 00:01:55,880 --> 00:01:57,580 So I think we can get started. 32 00:01:59,660 --> 00:02:01,220 This is what we're going to cover today. 33 00:02:01,220 --> 00:02:02,820 We started with an introduction. 34 00:02:02,820 --> 00:02:06,440 It's happening right now, and I hope it's everything that you imagined it would be. 35 00:02:06,900 --> 00:02:14,560 Then I want to get everyone on the same page about what Purple Teams are, and kind of define some terms in the context of this talk. 36 00:02:14,700 --> 00:02:18,600 Then I'm going to get into the fun stuff with what is this Assume Compromise approach? 37 00:02:18,600 --> 00:02:19,700 How do we apply it? 38 00:02:19,700 --> 00:02:21,860 How can you apply it at your organization? 39 00:02:22,380 --> 00:02:23,660 But I won't leave you hanging. 40 00:02:23,660 --> 00:02:25,580 We can take that one step further, too. 41 00:02:25,580 --> 00:02:32,320 How can we collect and analyze the results from a Purple Team like this and really derive that high value I keep bragging about? 42 00:02:32,620 --> 00:02:34,720 And then I'm going to end with a conclusion. 43 00:02:34,860 --> 00:02:35,620 Mic drop. 44 00:02:35,620 --> 00:02:38,400 I can't drop this mic, but that won't stop me from trying. 45 00:02:39,880 --> 00:02:44,720 By a show of hands, whose organizations here have a Purple Team program or run Purple Teams? 46 00:02:46,140 --> 00:02:46,800 Yes! 47 00:02:46,800 --> 00:02:48,320 A lot of us are doing it. 48 00:02:48,320 --> 00:02:53,120 They are a critical component, in my opinion, of a modern cybersecurity program. 49 00:02:53,480 --> 00:02:58,040 But I do find that everyone I talk to about Purple Teams tends to describe something different. 50 00:02:58,680 --> 00:03:07,660 I've found that Purple Team means different things to different people, whether it's a methodology, a team of people, an assessment, engagement, or even a state of mind. 51 00:03:07,800 --> 00:03:10,820 And then the actual Purple Teams themselves come in all shapes and sizes. 52 00:03:10,820 --> 00:03:13,620 So I want to just get on the same page. 53 00:03:13,740 --> 00:03:16,320 Here are some relevant terms to this talk. 54 00:03:16,320 --> 00:03:17,760 I'm not going to cover all of them. 55 00:03:17,760 --> 00:03:19,360 You should be mostly familiar. 56 00:03:19,520 --> 00:03:23,860 Except maybe with the term adversary PEMDAS, and that would be because I made it up. 57 00:03:25,520 --> 00:03:32,840 What an attacker does as part of a breach just has a lot of different names, whether that's... who did that? 58 00:03:33,300 --> 00:03:40,760 A framework, a kill chain, order of operations, which is where I got the PEMDAS from, and I'm sticking with it. 59 00:03:40,920 --> 00:03:48,880 The one definition I did want to cover on this slide is an assumed compromise or assumed breach approach, because I am going to put a twist on it. 60 00:03:49,060 --> 00:03:58,140 Traditionally, that's when we give our testers some level of access to start their test, whether or not we actually prove they can get that level of access to begin with. 61 00:03:58,200 --> 00:04:05,360 Typically, it means that we're letting people write in on the internal network, maybe with a workstation and a domain user account. 62 00:04:06,320 --> 00:04:08,780 And now for the definition of Purple Team. 63 00:04:08,960 --> 00:04:16,580 And I do want to just preface, I'm not saying any other approach to Purple Teaming is wrong, especially if you find it helpful for your organization. 64 00:04:16,940 --> 00:04:23,420 I just found that this is the best approach that yields the highest value results, so it doesn't mean stop doing it the way that you do it. 65 00:04:23,420 --> 00:04:25,900 I just hope that you start doing it this way as well. 66 00:04:26,460 --> 00:04:35,020 A Purple Team engagement is a collaborative workshop where we bring our red and blue teams together to execute side-by-side in an open book exam format. 67 00:04:35,340 --> 00:04:44,320 We know traditionally our red teamers operate in a black box, and that means that we don't always get to know what they're running when, how, or how our security tools responded. 68 00:04:44,400 --> 00:04:53,760 In a Purple Team, we're bringing our red team in to actually demonstrate those things for us, to talk about what they're doing and why an adversary would be interested in doing that thing. 69 00:04:53,760 --> 00:05:01,340 We find a lot of the time for blue teamers, it's the first time they get the true adversary POV on those alerts they respond to every day. 70 00:05:01,940 --> 00:05:06,840 And when I say blue team, I don't just mean your stock analysts, though please have them there. 71 00:05:06,840 --> 00:05:08,000 I mean everybody. 72 00:05:08,000 --> 00:05:12,320 Your infrastructure team, your AD team, your networking team, everybody. 73 00:05:12,320 --> 00:05:13,860 Bring everyone together. 74 00:05:13,900 --> 00:05:18,640 We find that blue teams are often a bunch of departments that operate completely separately. 75 00:05:18,640 --> 00:05:26,380 So take this opportunity to, say, let your detection engineers and your networking team collaborate on how to detect command and control traffic. 76 00:05:26,980 --> 00:05:31,780 We find that we bring everyone together to talk freely without fear of blame. 77 00:05:31,780 --> 00:05:33,800 That's really where the magic happens. 78 00:05:33,820 --> 00:05:37,040 And you get a huge value add, and all you had to do was talk. 79 00:05:38,160 --> 00:05:53,500 Then what the test plan actually is, we use threat intelligence to choose a high prioritized subset of the MITRE ATT&CK framework, then we run those attacks against our security tools in order to evaluate their overall effectiveness. 80 00:05:54,160 --> 00:05:59,820 Now I've talked about what purple teams are , I also need to talk about what purple teams are not. 81 00:05:59,820 --> 00:06:02,160 Because I think the answer might surprise some of you. 82 00:06:02,620 --> 00:06:04,900 Purple teaming is not Baz. 83 00:06:05,220 --> 00:06:11,400 I mean, literally it is breach and attack simulation, but it should never be replaced by a Baz solution. 84 00:06:11,640 --> 00:06:12,420 Why? 85 00:06:12,720 --> 00:06:19,220 Simply put, attackers cannot fully simulate or automate their attacks, so neither should we. 86 00:06:19,420 --> 00:06:24,880 Purple teams can use automation, but only where attack authenticity can be achieved. 87 00:06:25,260 --> 00:06:29,640 If you use a Baz solution on its own, we find it tends to leave a lot to be desired. 88 00:06:29,660 --> 00:06:33,620 Number one, you probably have to put your security tools in audit mode just to get it to run. 89 00:06:33,740 --> 00:06:38,560 So now we're testing against tools that are not configured how they are in our production environment. 90 00:06:39,680 --> 00:06:55,920 But also, a lot of the time they promise full MITRE ATT&CK coverage, which besides that that gives me a rash, also means that they are running thousands of techniques from a single process, and our security tools are going to start to correlate those together and give you detections that they never would otherwise. 91 00:06:57,080 --> 00:07:03,840 You could call that maybe cheating, but I think it's very valuable that our security tools correlate things under a single process. 92 00:07:04,340 --> 00:07:05,740 Baz has a time and a place. 93 00:07:05,740 --> 00:07:10,720 I think it's great for control validation, but it should never replace our purple team engagements. 94 00:07:11,720 --> 00:07:15,780 Purple teaming is unique from red teams and pentests as well. 95 00:07:15,980 --> 00:07:22,560 Red teams, since they're actually simulating or emulating an adversary, they're not really testing your security tools. 96 00:07:22,560 --> 00:07:25,040 In fact, they're trying not to touch your security tools at all. 97 00:07:25,500 --> 00:07:37,920 So because our objective is to ideally catch and remove the red team before they identify our crown jewels, it's really more of an assessment of our incident response capabilities. 98 00:07:38,920 --> 00:07:40,900 It's also different from a pentest. 99 00:07:40,900 --> 00:07:47,540 A pentest is trying to hunt for as many vulnerabilities and risky configurations as they can for you in the time allotted. 100 00:07:47,540 --> 00:07:50,600 They are running noisy and broad enumeration. 101 00:07:50,600 --> 00:07:52,820 It should light up your tools like Christmas trees. 102 00:07:53,560 --> 00:07:55,480 They're not concerned with stealth. 103 00:07:55,480 --> 00:08:01,200 It's not a realistic attack scenario, so it's not a realistic evaluation of our security tools either. 104 00:08:03,140 --> 00:08:06,360 What purple teaming is and is not out of the way. 105 00:08:06,360 --> 00:08:09,120 Now let's talk about the assumed compromise approach. 106 00:08:09,380 --> 00:08:14,160 So far, we've used threat intelligence to choose a high-priority test plan. 107 00:08:14,160 --> 00:08:18,200 We brought our red and blue teams together to execute in this collaborative workshop. 108 00:08:18,200 --> 00:08:21,500 Now how do we set the stage for this actual purple team engagement? 109 00:08:21,860 --> 00:08:28,160 Will we give our red teamers everything that they need to fully simulate an adversary from start to finish? 110 00:08:28,740 --> 00:08:31,220 So remember that assumed compromise approach I went over? 111 00:08:31,360 --> 00:08:37,460 We're giving our testers a workstation and a user account on the internal network, but we're not going to stop there. 112 00:08:37,460 --> 00:08:41,980 We are going to let them in here, here, here, and even here. 113 00:08:42,300 --> 00:08:43,260 Why? 114 00:08:43,760 --> 00:08:45,300 Let's run with an example. 115 00:08:45,400 --> 00:08:47,960 What I'm sharing here, this screen is from Vector. 116 00:08:47,960 --> 00:08:52,000 There is a community version I'll link at the end if you're interested in checking it out. 117 00:08:52,000 --> 00:08:53,700 It's a purple team tracking tool. 118 00:08:54,180 --> 00:09:00,220 So this is a MITRE TTP where we can keep all of the details of the red and blue side of the attack. 119 00:09:00,220 --> 00:09:01,700 We're going to fill it out together. 120 00:09:02,440 --> 00:09:13,480 The test I decided to go with for this example, because it really supports my point, is extracting domain user credentials via replication, often known as a DC sync attack. 121 00:09:13,840 --> 00:09:23,080 For anyone who is not familiar, a DC sync attack works by abusing regular replication activity that domain controllers use to stay up to date with one another. 122 00:09:23,080 --> 00:09:35,820 The main difference here is our adversary has compromised a user account with replication rights, often a domain admin account, and they are using that to convince a legit domain controller to send them whatever credentials they want. 123 00:09:36,260 --> 00:09:42,000 So yes, they can use this attack to obtain user credentials for any account in your domain. 124 00:09:42,560 --> 00:09:47,120 So who needs to hack into a system if you can kind of just log in? 125 00:09:47,120 --> 00:09:53,020 As you might imagine, it would be pretty cool if we had a detection if somebody did this in our environment. 126 00:09:53,360 --> 00:09:59,360 We're going to make sure that's the case by giving our red teamers a domain admin account to do the test. 127 00:10:00,140 --> 00:10:03,520 Some people in this room are internally gasping, and I know it. 128 00:10:03,780 --> 00:10:13,340 We are setting the stage and giving our testers access required to run these tasks that we chose, because it lets us focus on visibility, not vulnerability. 129 00:10:13,640 --> 00:10:22,960 We know that an organization can be vulnerable at any point in time, and we have other assessments like Pentest that are geared toward finding those vulnerabilities for us. 130 00:10:22,960 --> 00:10:30,820 But we don't have other opportunities to truly evaluate the successes, limitations, and opportunities to improve our security tools. 131 00:10:31,040 --> 00:10:36,060 Yeah, I'm talking about those security tools that cost so much money it gives me acid reflux to even think about. 132 00:10:36,160 --> 00:10:38,360 Are they doing what they say they're doing? 133 00:10:38,380 --> 00:10:42,220 Do they have coverage for that really long list of detections on their website? 134 00:10:42,540 --> 00:10:44,400 Have we ever really tested it? 135 00:10:45,300 --> 00:10:56,560 Especially for late kill chain activities like DC Sync, where it is a much lower likelihood, as you can imagine, an attacker needs to escalate all the way to god tier without getting caught first around this attack. 136 00:10:56,560 --> 00:11:00,080 But if they can do it, the impact is extremely high. 137 00:11:00,080 --> 00:11:03,700 So we need to make sure that we can detect an activity like this. 138 00:11:04,320 --> 00:11:12,500 And if you're still a little scared about it, just remember that this is a fully supervised test in a controlled environment. 139 00:11:12,560 --> 00:11:20,320 You can do something like ask those red teamers to not choose that DC that restarts if you breathe weird while you're authenticated to it. 140 00:11:20,820 --> 00:11:26,580 But we don't get to ask that of our pen testers who are definitely running DC Sync sans supervision. 141 00:11:28,160 --> 00:11:29,920 Alright, we're all on the same page. 142 00:11:29,920 --> 00:11:32,260 We're going to let our red teamers run DC Sync. 143 00:11:32,580 --> 00:11:35,500 There's a lot of different ways that you can run an attack like this. 144 00:11:35,500 --> 00:11:38,160 You can run it right from a domain controller. 145 00:11:38,540 --> 00:11:43,580 Let's say they try to do that and they are blocked by our privileged access management solution. 146 00:11:43,840 --> 00:11:44,420 Cool. 147 00:11:44,760 --> 00:11:47,800 Next, they will try to run on a user workstation. 148 00:11:48,040 --> 00:11:52,480 They extract Mimikatz and drop it right onto disk and our EDR ate it. 149 00:11:52,520 --> 00:11:55,340 And we are shocked that something like that could happen. 150 00:11:56,040 --> 00:12:01,140 Then we say, okay, maybe we're not going to drop hack tools straight onto disk. 151 00:12:01,140 --> 00:12:04,800 Let's get a command and control channel going and run this attack through that. 152 00:12:04,820 --> 00:12:07,900 We try to launch default cobalt strike. 153 00:12:08,100 --> 00:12:10,260 It gets blocked by our next gen firewall. 154 00:12:11,500 --> 00:12:12,220 Wow. 155 00:12:12,360 --> 00:12:14,780 We tried to run this attack three different ways. 156 00:12:14,820 --> 00:12:15,940 Absolutely nothing. 157 00:12:15,940 --> 00:12:17,280 We should probably just call it blocked. 158 00:12:17,280 --> 00:12:19,020 Who's getting domain admin anyway? 159 00:12:20,320 --> 00:12:44,520 That's where I would say, what if an adversary adds a rogue workstation to your domain that doesn't have security tools on it or breaks into your office building and plugs their machine directly onto your network or maybe they're an insider threat that had months to figure out how they want to execute this attack or maybe they're not doing something we've seen before and they're making direct RPC calls from a SOCKS proxy or a C2 where we don't have the network traffic signatured. 160 00:12:44,520 --> 00:12:54,720 Maybe they're running from a Linux server they compromised and don't even get me started on my opinion on antivirus for Linux servers or maybe they just have a payload that we haven't seen before. 161 00:12:55,100 --> 00:12:56,340 Pause for gas. 162 00:12:58,040 --> 00:13:07,000 And while I'm talking about all of these different ways that you can try to run this attack differently so it's not subjected to your other security controls, what if it is? 163 00:13:07,020 --> 00:13:10,280 And maybe they don't need to do some crazy thing to bypass your EDR. 164 00:13:10,700 --> 00:13:14,000 When's the last time that you checked that list of exclusions that you have? 165 00:13:14,160 --> 00:13:17,480 It might be long enough to go around a track a couple times. 166 00:13:18,380 --> 00:13:24,680 And some people with Defender are probably thinking, well, if you want to pull this list locally you have to have local admin to even do that. 167 00:13:24,680 --> 00:13:29,120 To which I would say, when's the last time you checked who has local admin on your workstations? 168 00:13:29,580 --> 00:13:33,060 And it's no shade on anybody, but these things happen. 169 00:13:33,060 --> 00:13:34,060 And we know they do. 170 00:13:34,060 --> 00:13:40,620 And beyond that, we know that the Mimikatz release on GitHub is going to get blocked if we try to run it. 171 00:13:40,620 --> 00:13:43,120 But we also know an attacker can find a way around. 172 00:13:43,240 --> 00:13:44,740 We see it all the time. 173 00:13:44,780 --> 00:13:46,480 Or maybe we don't see it. 174 00:13:46,540 --> 00:13:48,440 And that is the problem. 175 00:13:50,700 --> 00:13:55,200 So like I said, your attacker might not even need to bypass your EDR at all. 176 00:13:55,200 --> 00:14:00,240 In fact, you can run DC sync anywhere on the domain with network connectivity. 177 00:14:00,900 --> 00:14:08,260 And all these different ways that I've listed off are just a small sliver of all of the different, not only procedures, but procedure variants. 178 00:14:08,260 --> 00:14:12,460 Try TTP PVs on for size for a single test. 179 00:14:12,460 --> 00:14:18,660 And now multiply that by all of MITRE ATT&CK and you might be feeling a little bit hopeless. 180 00:14:19,040 --> 00:14:21,180 And if you are, that's what I was going for. 181 00:14:21,180 --> 00:14:26,380 This is like the sports movie thing where I build everybody down and now I'm going to build you back up. 182 00:14:26,820 --> 00:14:34,920 Because no matter how an attacker tweaks this approach, the underlying activity of a replication attack is always the same. 183 00:14:35,260 --> 00:14:40,180 It will always take an action upon an object, which is windows event ID 4662. 184 00:14:40,700 --> 00:14:44,560 And then within that, there's always a GUID string for replication activity. 185 00:14:44,560 --> 00:14:51,700 And then if you're big on networking, the RPC call is always going to bind to the same interface and execute the same function. 186 00:14:51,700 --> 00:14:54,420 And so this is what I'm trying to get at. 187 00:14:54,420 --> 00:15:07,780 With all of these different procedures, we can try to plan and have controls for every single one of those, but if we test to the underlying activity, it doesn't matter how they modify that approach, we'll always have a control for it. 188 00:15:07,780 --> 00:15:11,600 Which also gives us a little bit of future proofness. 189 00:15:11,600 --> 00:15:19,280 Proofness is not a word, but if something new comes out, then our detection should hold firm. 190 00:15:19,280 --> 00:15:22,160 Which leads me to my next point. 191 00:15:22,280 --> 00:15:25,760 Take the assume compromise approach another step further. 192 00:15:25,820 --> 00:15:32,280 Don't just focus on assuming a level of user and network access, assume compromise of your tools. 193 00:15:32,500 --> 00:15:37,280 Test your email gateway, but then assume your attacker's gotten a phishing payload through. 194 00:15:37,280 --> 00:15:41,920 Then test your EDR, and assume that they've gotten a file past your EDR. 195 00:15:41,920 --> 00:15:47,120 And then again, and again, and again, all the way through your adversary PEMDAS. 196 00:15:47,120 --> 00:15:54,700 Take your compensating controls out of the way and strictly focus on the defensive tool that correlates to the test itself. 197 00:15:55,120 --> 00:15:57,340 So we'll take it back to our example. 198 00:15:58,160 --> 00:16:05,620 Since we know DC sync can be run from anywhere, our area under test is our directory service object access. 199 00:16:05,620 --> 00:16:12,060 If we correlate that to our defense in depth layers, we have the SIM and we have our identity threat protection tool. 200 00:16:12,060 --> 00:16:14,440 These should be our areas under test. 201 00:16:14,440 --> 00:16:16,600 Doesn't mean forget about all your other ones. 202 00:16:17,020 --> 00:16:18,740 Document them, test them. 203 00:16:18,740 --> 00:16:20,700 We do love compensating controls. 204 00:16:20,700 --> 00:16:23,940 They make it a lot more challenging for an attacker to execute an attack. 205 00:16:23,940 --> 00:16:27,380 They might reduce a lot of the procedures that are available to them. 206 00:16:27,380 --> 00:16:28,700 So write them all down. 207 00:16:28,700 --> 00:16:32,060 Don't rely on them as your actual prevention or detection control. 208 00:16:34,880 --> 00:16:43,980 So to actually run a purple team, we need to take what we just did for DC sync, multiply it by about 25 to 70 use cases. 209 00:16:43,980 --> 00:16:46,460 Again, we're not doing full miter attack coverage. 210 00:16:46,460 --> 00:16:48,320 And then we need to score each one. 211 00:16:49,480 --> 00:16:53,380 So first, we're choosing that threat intelligence driven test plan. 212 00:16:53,500 --> 00:16:58,740 As I just talked about, we are isolating under one security area under test. 213 00:16:58,740 --> 00:17:00,700 Then we're going to pick an outcome. 214 00:17:02,240 --> 00:17:09,200 Successful outcomes are if a security tool or a secure configuration prevents or detects this attack. 215 00:17:09,200 --> 00:17:20,200 The important thing with scoring is that we have our successful outcomes count toward our score, but we don't have test cases where we don't have a successful outcome count against us. 216 00:17:20,300 --> 00:17:21,620 And we do this on purpose. 217 00:17:21,660 --> 00:17:28,180 When we want to use an approach like this, we're asking everyone to come in and take away all of these layers of different controls. 218 00:17:28,180 --> 00:17:31,500 So we don't want any ego, any blame game. 219 00:17:31,500 --> 00:17:34,940 Really, we want to eliminate that concept of failure. 220 00:17:35,000 --> 00:17:38,580 And that is a really important step in fostering that environment. 221 00:17:39,440 --> 00:17:49,080 So we're going to take all of that, our successful outcomes total, divided by the total number of test cases we ran, and we have our score. 222 00:17:49,760 --> 00:17:51,820 This score is never going to be 100%. 223 00:17:51,820 --> 00:17:58,180 We cannot prevent or detect everything an adversary does through the whole PEMDAS, and that is okay. 224 00:17:58,280 --> 00:18:02,780 But we can use this score to try to continually get closer to that 100%. 225 00:18:02,780 --> 00:18:06,020 But we can do even more with these results. 226 00:18:06,600 --> 00:18:11,080 We can, say, prioritize our remediation efforts at the tactic level. 227 00:18:11,080 --> 00:18:15,560 Again, this is a report from Vector if you ever want to try to create one yourself. 228 00:18:15,580 --> 00:18:19,600 This was the test cases that we ran in this theoretical purple team. 229 00:18:19,600 --> 00:18:22,040 It's color-coded by how we did for each test. 230 00:18:22,040 --> 00:18:25,140 Green good, red bad, and then some things in the middle. 231 00:18:25,600 --> 00:18:28,880 The best way to look at this is at the column or the tactic level. 232 00:18:28,880 --> 00:18:31,300 Where were our strengths and weaknesses? 233 00:18:31,300 --> 00:18:32,820 How do we prioritize? 234 00:18:32,960 --> 00:18:37,520 The other thing with reading this is we always read this from left to right. 235 00:18:37,520 --> 00:18:44,960 As an attacker goes further down the kill chain, the higher the signal-to-noise ratio, the more difficult to identify and remove them. 236 00:18:44,960 --> 00:18:48,400 So let's start by prioritizing left kill chain. 237 00:18:49,720 --> 00:18:53,580 We can also identify themes with our security tools themselves. 238 00:18:53,780 --> 00:19:01,600 We can run all of these different tests, identify how our security tools did, and maybe we want to prioritize our remediation efforts by tool. 239 00:19:03,380 --> 00:19:07,120 And most importantly, we can make historical comparisons. 240 00:19:07,840 --> 00:19:11,720 You want to run purple teams on a regular interval for a lot of reasons. 241 00:19:11,720 --> 00:19:16,520 One is to track success over time, aka also bragging rights. 242 00:19:16,520 --> 00:19:22,700 When do we get to show that all of these defensive measures that we did did something besides not have us get hacked? 243 00:19:22,700 --> 00:19:26,060 So this is a really unique opportunity to do that. 244 00:19:26,700 --> 00:19:31,160 Two, we want to keep our purple test plan up to date with the latest threat intelligence. 245 00:19:31,160 --> 00:19:35,840 We always want to be testing to what the latest and greatest attackers are doing is. 246 00:19:36,200 --> 00:19:38,980 And three, we always inspect what we expect. 247 00:19:39,040 --> 00:19:44,240 We expect our security controls to behave in a certain way, but we never really know until we test them. 248 00:19:44,300 --> 00:19:54,500 So continuous testing is really cool for identifying things like my favorite, least favorite, is someone creates a really cool detection in Q2. 249 00:19:54,800 --> 00:19:59,280 And then in Q3, someone does testing, and it's lighting up this alert, so someone turns it off. 250 00:19:59,280 --> 00:20:02,480 And in Q4, we find out that nobody ever turned that alert back on. 251 00:20:02,480 --> 00:20:06,600 So continuous testing is really good for validating those kinds of things. 252 00:20:08,620 --> 00:20:10,180 So there you have it. 253 00:20:10,180 --> 00:20:20,640 I hope that no matter what your Purple Team looks like, or what kind of Purple Team projects you're running now, that you will consider adding this method to your approach to Purple Teams. 254 00:20:20,680 --> 00:20:28,080 We're going to use the Assume Compromise approach to take, as some of my coworkers like to call it, a brutally honest look at our security tools. 255 00:20:28,080 --> 00:20:33,520 We're going to find every opportunity to add a new detection or prevention control. 256 00:20:33,520 --> 00:20:39,060 And maybe most importantly, we're going to foster that environment of open collaboration and communication. 257 00:20:40,620 --> 00:20:46,820 I do want to take this back to wrap up to looking at the actual purpose of what we're doing here. 258 00:20:46,820 --> 00:20:50,840 What are we trying to accomplish with threat intelligence-driven Purple Teams? 259 00:20:51,340 --> 00:21:06,300 SRA's catchphrase for it is we're trying to flip the burden of perfection in reference to that adage that we all know and hate, that we need to be perfect 24 by 7 in order to keep out attackers, and an attacker only needs to be perfect once. 260 00:21:06,420 --> 00:21:16,520 We want to flip that burden of perfection by finding every possible place that we can to add that new control that might allow us to identify and eradicate an adversary. 261 00:21:18,100 --> 00:21:20,460 We're not looking to block or prevent everything. 262 00:21:20,460 --> 00:21:28,240 As I mentioned, an attacker might open a command prompt and type, who am I, and maybe that's too noisy for us to alert on, and that's okay. 263 00:21:28,420 --> 00:21:36,040 The attacker PEMDAS, as I keep lovingly referring to it, has a lot of different terms, but Lockheed Martin coined the term kill chain. 264 00:21:36,040 --> 00:21:39,940 We aren't trying to stop every single thing an attacker would try to do. 265 00:21:39,940 --> 00:21:41,800 We're just trying to break the chain. 266 00:21:42,400 --> 00:21:44,740 So it's not about compensating controls. 267 00:21:45,020 --> 00:21:54,080 It's not about proving attack paths exist by identifying vulnerabilities, and it's not about being squeamish about the level of access we provision to do our testing. 268 00:21:54,980 --> 00:22:05,160 It's about assuming our controls will fail, assuming adversaries will find a path, assuming there's another control that we can add, and assuming we have something to learn from each other. 269 00:22:05,420 --> 00:22:10,960 And that is how you shore up your defenses, and that's how you gain true resilience to adversarial threats. 270 00:22:13,060 --> 00:22:16,820 So thank you so much for hanging out with me at the end of DEF CON. 271 00:22:24,760 --> 00:22:29,420 If you decide to use this approach at your organization, I would love to hear how it works out. 272 00:22:29,520 --> 00:22:32,880 But I think I have a few minutes if anyone has any questions. 273 00:22:36,320 --> 00:22:37,200 Yeah? 274 00:22:55,620 --> 00:23:07,900 I think that's one really good use case for it, is if we're assuming compromise, especially if they have this level of access, maybe they're an insider threat, but I think it's really comprehensive to any kind of breach as well. 275 00:24:01,200 --> 00:24:02,880 Yeah, I love that. 276 00:24:02,880 --> 00:24:09,140 And we always say that purple teaming is, we call it practicing for the test of a true red team kind of engagement. 277 00:24:09,800 --> 00:24:13,840 My tip would probably be just bringing everyone into the room. 278 00:24:13,840 --> 00:24:15,760 Everybody loves to watch the hacker. 279 00:24:15,820 --> 00:24:28,180 A lot of the companies that I do these with, they love coming in and watching this, and then it really brings a lot of perspective when you get to watch someone run that technique against your thing. 280 00:24:28,180 --> 00:24:31,320 Maybe your baby, if that's the team that's responsible. 281 00:24:31,760 --> 00:24:37,580 And as far as detections, I know a lot of the time we talk a lot about detecting, but we really like to see a good parity. 282 00:24:37,580 --> 00:24:50,220 Obviously let's block whatever we can, but a good balance between our secure configurations and security tools doing the work for us, but also making sure we have eyes and hands on keyboard to respond to these things. 283 00:24:50,220 --> 00:24:57,480 My advice would be, that's what bringing everybody together is all about, and really showing them what we're trying to accomplish. 284 00:25:14,440 --> 00:25:19,020 I do prefer the former for this style of testing. 285 00:25:19,080 --> 00:25:24,740 Like I said, I definitely think Caldera is a great tool, and there's a ton of great BaaS solutions that you can use. 286 00:25:24,740 --> 00:25:27,820 I just really use them for different purposes a lot of the time. 287 00:25:27,820 --> 00:25:38,040 So use this kind of test to identify a technique, and then in between your purple teams, using something automated is great for validating that the controls that we created are working. 288 00:25:38,200 --> 00:25:44,500 Especially for things like custom detections, where we know there's a certain criteria, and as long as that's there, it's going to fire. 289 00:25:59,790 --> 00:26:02,330 Yeah, that's a good question. 290 00:26:03,230 --> 00:26:08,110 I guess it really depends, because we go all through the kill chain with different things that we run. 291 00:26:08,110 --> 00:26:14,370 For us, we use Mythic C2, and we have some automation with Jupyter Notebooks that we use that works really well. 292 00:26:14,370 --> 00:26:17,410 A lot of the stuff that we do that's automated is custom built. 293 00:26:17,550 --> 00:26:24,330 The more purple teams you run, you're just asking all of these security vendors to signature all your stuff, so it changes all the time. 294 00:26:46,030 --> 00:26:46,950 Sure. 295 00:26:46,950 --> 00:26:52,530 My number one tip for this is we eliminate any of the audit speak, definitely. 296 00:26:52,810 --> 00:26:54,170 There's no failures. 297 00:26:54,170 --> 00:26:56,010 You'll never hear me use the term failure. 298 00:26:56,010 --> 00:26:58,170 Maybe unsuccessful, but not failure. 299 00:26:58,390 --> 00:27:05,330 These aren't vulnerabilities, and so we never refer to them as being critical, high, medium, or low severity. 300 00:27:05,370 --> 00:27:22,630 They're ways that we can change our security tools, and so we'll assign more of a remediation F project priority level versus a vulnerability rating that creates that association, because then you add in the defensiveness and all of the other complications, 301 00:27:22,630 --> 00:27:26,730 so we just take all of that out, because we're trying to be collaborative. 302 00:27:30,910 --> 00:27:32,370 Awesome, thank you!