start	end	text
0	960	All right.
960	2500	It is officially noon.
2500	4280	Longest six minutes of my life.
4280	5640	Let's get started!
6500	8520	Thank you so much for being here.
8520	10780	I'm super excited to be giving this talk.
10920	14460	I hope you're ready for 30 minutes of your life that you will never get back.
15080	22080	My presentation today is facilitated by the Adversary Village, so just want to say an extra special thank you to them for the opportunity.
22640	29620	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.
29820	42260	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.
43080	47840	First, I'm going to introduce myself and try to convince you I'm qualified to give this talk.
49460	50780	Who put that there?
50940	52420	Hi, I'm Sarah.
52420	56100	I am the Purple Team Service Lead at Security Risk Advisors.
56100	64360	I have led hundreds of threat intelligence-based Purple Team engagements for the Fortune 500 and the Global 1000 over the past seven years.
64820	72460	Much like Twilight fans are split between Team Edward and Team Jacob, most Purple Teamers are split between Team Red and Team Blue.
72560	76300	As for myself, my background is in offensive security.
76500	83720	I mostly dabbled in network penetration testing, ITOCS pen testing, and the occasional physical pen test.
83720	85420	Which leads us to this picture.
86320	92280	After a break-in, I sent a client a timeline of events, and they went back to their camera footage and pulled this.
92280	95000	So I figured it was a good Who Am I slide picture.
95540	97100	Yes, my shoes were in my hand.
97100	102380	I had to go up like 20 flights of stairs, and my heels were just making an insane amount of noise.
102380	103640	So I had to take them off.
103720	107380	And that is the level of dedication that I intend to bring to this presentation.
108940	110200	I'm from Philadelphia.
110200	111340	I went to Penn State.
111340	112460	I'm left-handed.
112460	113700	I own a dog.
113760	115880	Those are all the answers to my security questions.
115880	117580	So I think we can get started.
119660	121220	This is what we're going to cover today.
121220	122820	We started with an introduction.
122820	126440	It's happening right now, and I hope it's everything that you imagined it would be.
126900	134560	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.
134700	138600	Then I'm going to get into the fun stuff with what is this Assume Compromise approach?
138600	139700	How do we apply it?
139700	141860	How can you apply it at your organization?
142380	143660	But I won't leave you hanging.
143660	145580	We can take that one step further, too.
145580	152320	How can we collect and analyze the results from a Purple Team like this and really derive that high value I keep bragging about?
152620	154720	And then I'm going to end with a conclusion.
154860	155620	Mic drop.
155620	158400	I can't drop this mic, but that won't stop me from trying.
159880	164720	By a show of hands, whose organizations here have a Purple Team program or run Purple Teams?
166140	166800	Yes!
166800	168320	A lot of us are doing it.
168320	173120	They are a critical component, in my opinion, of a modern cybersecurity program.
173480	178040	But I do find that everyone I talk to about Purple Teams tends to describe something different.
178680	187660	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.
187800	190820	And then the actual Purple Teams themselves come in all shapes and sizes.
190820	193620	So I want to just get on the same page.
193740	196320	Here are some relevant terms to this talk.
196320	197760	I'm not going to cover all of them.
197760	199360	You should be mostly familiar.
199520	203860	Except maybe with the term adversary PEMDAS, and that would be because I made it up.
205520	212840	What an attacker does as part of a breach just has a lot of different names, whether that's... who did that?
213300	220760	A framework, a kill chain, order of operations, which is where I got the PEMDAS from, and I'm sticking with it.
220920	228880	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.
229060	238140	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.
238200	245360	Typically, it means that we're letting people write in on the internal network, maybe with a workstation and a domain user account.
246320	248780	And now for the definition of Purple Team.
248960	256580	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.
256940	263420	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.
263420	265900	I just hope that you start doing it this way as well.
266460	275020	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.
275340	284320	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.
284400	293760	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.
293760	301340	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.
301940	306840	And when I say blue team, I don't just mean your stock analysts, though please have them there.
306840	308000	I mean everybody.
308000	312320	Your infrastructure team, your AD team, your networking team, everybody.
312320	313860	Bring everyone together.
313900	318640	We find that blue teams are often a bunch of departments that operate completely separately.
318640	326380	So take this opportunity to, say, let your detection engineers and your networking team collaborate on how to detect command and control traffic.
326980	331780	We find that we bring everyone together to talk freely without fear of blame.
331780	333800	That's really where the magic happens.
333820	337040	And you get a huge value add, and all you had to do was talk.
338160	353500	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.
354160	359820	Now I've talked about what purple teams are , I also need to talk about what purple teams are not.
359820	362160	Because I think the answer might surprise some of you.
362620	364900	Purple teaming is not Baz.
365220	371400	I mean, literally it is breach and attack simulation, but it should never be replaced by a Baz solution.
371640	372420	Why?
372720	379220	Simply put, attackers cannot fully simulate or automate their attacks, so neither should we.
379420	384880	Purple teams can use automation, but only where attack authenticity can be achieved.
385260	389640	If you use a Baz solution on its own, we find it tends to leave a lot to be desired.
389660	393620	Number one, you probably have to put your security tools in audit mode just to get it to run.
393740	398560	So now we're testing against tools that are not configured how they are in our production environment.
399680	415920	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.
417080	423840	You could call that maybe cheating, but I think it's very valuable that our security tools correlate things under a single process.
424340	425740	Baz has a time and a place.
425740	430720	I think it's great for control validation, but it should never replace our purple team engagements.
431720	435780	Purple teaming is unique from red teams and pentests as well.
435980	442560	Red teams, since they're actually simulating or emulating an adversary, they're not really testing your security tools.
442560	445040	In fact, they're trying not to touch your security tools at all.
445500	457920	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.
458920	460900	It's also different from a pentest.
460900	467540	A pentest is trying to hunt for as many vulnerabilities and risky configurations as they can for you in the time allotted.
467540	470600	They are running noisy and broad enumeration.
470600	472820	It should light up your tools like Christmas trees.
473560	475480	They're not concerned with stealth.
475480	481200	It's not a realistic attack scenario, so it's not a realistic evaluation of our security tools either.
483140	486360	What purple teaming is and is not out of the way.
486360	489120	Now let's talk about the assumed compromise approach.
489380	494160	So far, we've used threat intelligence to choose a high-priority test plan.
494160	498200	We brought our red and blue teams together to execute in this collaborative workshop.
498200	501500	Now how do we set the stage for this actual purple team engagement?
501860	508160	Will we give our red teamers everything that they need to fully simulate an adversary from start to finish?
508740	511220	So remember that assumed compromise approach I went over?
511360	517460	We're giving our testers a workstation and a user account on the internal network, but we're not going to stop there.
517460	521980	We are going to let them in here, here, here, and even here.
522300	523260	Why?
523760	525300	Let's run with an example.
525400	527960	What I'm sharing here, this screen is from Vector.
527960	532000	There is a community version I'll link at the end if you're interested in checking it out.
532000	533700	It's a purple team tracking tool.
534180	540220	So this is a MITRE TTP where we can keep all of the details of the red and blue side of the attack.
540220	541700	We're going to fill it out together.
542440	553480	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.
553840	563080	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.
563080	575820	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.
576260	582000	So yes, they can use this attack to obtain user credentials for any account in your domain.
582560	587120	So who needs to hack into a system if you can kind of just log in?
587120	593020	As you might imagine, it would be pretty cool if we had a detection if somebody did this in our environment.
593360	599360	We're going to make sure that's the case by giving our red teamers a domain admin account to do the test.
600140	603520	Some people in this room are internally gasping, and I know it.
603780	613340	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.
613640	622960	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.
622960	630820	But we don't have other opportunities to truly evaluate the successes, limitations, and opportunities to improve our security tools.
631040	636060	Yeah, I'm talking about those security tools that cost so much money it gives me acid reflux to even think about.
636160	638360	Are they doing what they say they're doing?
638380	642220	Do they have coverage for that really long list of detections on their website?
642540	644400	Have we ever really tested it?
645300	656560	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.
656560	660080	But if they can do it, the impact is extremely high.
660080	663700	So we need to make sure that we can detect an activity like this.
664320	672500	And if you're still a little scared about it, just remember that this is a fully supervised test in a controlled environment.
672560	680320	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.
680820	686580	But we don't get to ask that of our pen testers who are definitely running DC Sync sans supervision.
688160	689920	Alright, we're all on the same page.
689920	692260	We're going to let our red teamers run DC Sync.
692580	695500	There's a lot of different ways that you can run an attack like this.
695500	698160	You can run it right from a domain controller.
698540	703580	Let's say they try to do that and they are blocked by our privileged access management solution.
703840	704420	Cool.
704760	707800	Next, they will try to run on a user workstation.
708040	712480	They extract Mimikatz and drop it right onto disk and our EDR ate it.
712520	715340	And we are shocked that something like that could happen.
716040	721140	Then we say, okay, maybe we're not going to drop hack tools straight onto disk.
721140	724800	Let's get a command and control channel going and run this attack through that.
724820	727900	We try to launch default cobalt strike.
728100	730260	It gets blocked by our next gen firewall.
731500	732220	Wow.
732360	734780	We tried to run this attack three different ways.
734820	735940	Absolutely nothing.
735940	737280	We should probably just call it blocked.
737280	739020	Who's getting domain admin anyway?
740320	764520	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.
764520	774720	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.
775100	776340	Pause for gas.
778040	787000	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?
787020	790280	And maybe they don't need to do some crazy thing to bypass your EDR.
790700	794000	When's the last time that you checked that list of exclusions that you have?
794160	797480	It might be long enough to go around a track a couple times.
798380	804680	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.
804680	809120	To which I would say, when's the last time you checked who has local admin on your workstations?
809580	813060	And it's no shade on anybody, but these things happen.
813060	814060	And we know they do.
814060	820620	And beyond that, we know that the Mimikatz release on GitHub is going to get blocked if we try to run it.
820620	823120	But we also know an attacker can find a way around.
823240	824740	We see it all the time.
824780	826480	Or maybe we don't see it.
826540	828440	And that is the problem.
830700	835200	So like I said, your attacker might not even need to bypass your EDR at all.
835200	840240	In fact, you can run DC sync anywhere on the domain with network connectivity.
840900	848260	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.
848260	852460	Try TTP PVs on for size for a single test.
852460	858660	And now multiply that by all of MITRE ATT&CK and you might be feeling a little bit hopeless.
859040	861180	And if you are, that's what I was going for.
861180	866380	This is like the sports movie thing where I build everybody down and now I'm going to build you back up.
866820	874920	Because no matter how an attacker tweaks this approach, the underlying activity of a replication attack is always the same.
875260	880180	It will always take an action upon an object, which is windows event ID 4662.
880700	884560	And then within that, there's always a GUID string for replication activity.
884560	891700	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.
891700	894420	And so this is what I'm trying to get at.
894420	907780	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.
907780	911600	Which also gives us a little bit of future proofness.
911600	919280	Proofness is not a word, but if something new comes out, then our detection should hold firm.
919280	922160	Which leads me to my next point.
922280	925760	Take the assume compromise approach another step further.
925820	932280	Don't just focus on assuming a level of user and network access, assume compromise of your tools.
932500	937280	Test your email gateway, but then assume your attacker's gotten a phishing payload through.
937280	941920	Then test your EDR, and assume that they've gotten a file past your EDR.
941920	947120	And then again, and again, and again, all the way through your adversary PEMDAS.
947120	954700	Take your compensating controls out of the way and strictly focus on the defensive tool that correlates to the test itself.
955120	957340	So we'll take it back to our example.
958160	965620	Since we know DC sync can be run from anywhere, our area under test is our directory service object access.
965620	972060	If we correlate that to our defense in depth layers, we have the SIM and we have our identity threat protection tool.
972060	974440	These should be our areas under test.
974440	976600	Doesn't mean forget about all your other ones.
977020	978740	Document them, test them.
978740	980700	We do love compensating controls.
980700	983940	They make it a lot more challenging for an attacker to execute an attack.
983940	987380	They might reduce a lot of the procedures that are available to them.
987380	988700	So write them all down.
988700	992060	Don't rely on them as your actual prevention or detection control.
994880	1003980	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.
1003980	1006460	Again, we're not doing full miter attack coverage.
1006460	1008320	And then we need to score each one.
1009480	1013380	So first, we're choosing that threat intelligence driven test plan.
1013500	1018740	As I just talked about, we are isolating under one security area under test.
1018740	1020700	Then we're going to pick an outcome.
1022240	1029200	Successful outcomes are if a security tool or a secure configuration prevents or detects this attack.
1029200	1040200	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.
1040300	1041620	And we do this on purpose.
1041660	1048180	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.
1048180	1051500	So we don't want any ego, any blame game.
1051500	1054940	Really, we want to eliminate that concept of failure.
1055000	1058580	And that is a really important step in fostering that environment.
1059440	1069080	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.
1069760	1071820	This score is never going to be 100%.
1071820	1078180	We cannot prevent or detect everything an adversary does through the whole PEMDAS, and that is okay.
1078280	1082780	But we can use this score to try to continually get closer to that 100%.
1082780	1086020	But we can do even more with these results.
1086600	1091080	We can, say, prioritize our remediation efforts at the tactic level.
1091080	1095560	Again, this is a report from Vector if you ever want to try to create one yourself.
1095580	1099600	This was the test cases that we ran in this theoretical purple team.
1099600	1102040	It's color-coded by how we did for each test.
1102040	1105140	Green good, red bad, and then some things in the middle.
1105600	1108880	The best way to look at this is at the column or the tactic level.
1108880	1111300	Where were our strengths and weaknesses?
1111300	1112820	How do we prioritize?
1112960	1117520	The other thing with reading this is we always read this from left to right.
1117520	1124960	As an attacker goes further down the kill chain, the higher the signal-to-noise ratio, the more difficult to identify and remove them.
1124960	1128400	So let's start by prioritizing left kill chain.
1129720	1133580	We can also identify themes with our security tools themselves.
1133780	1141600	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.
1143380	1147120	And most importantly, we can make historical comparisons.
1147840	1151720	You want to run purple teams on a regular interval for a lot of reasons.
1151720	1156520	One is to track success over time, aka also bragging rights.
1156520	1162700	When do we get to show that all of these defensive measures that we did did something besides not have us get hacked?
1162700	1166060	So this is a really unique opportunity to do that.
1166700	1171160	Two, we want to keep our purple test plan up to date with the latest threat intelligence.
1171160	1175840	We always want to be testing to what the latest and greatest attackers are doing is.
1176200	1178980	And three, we always inspect what we expect.
1179040	1184240	We expect our security controls to behave in a certain way, but we never really know until we test them.
1184300	1194500	So continuous testing is really cool for identifying things like my favorite, least favorite, is someone creates a really cool detection in Q2.
1194800	1199280	And then in Q3, someone does testing, and it's lighting up this alert, so someone turns it off.
1199280	1202480	And in Q4, we find out that nobody ever turned that alert back on.
1202480	1206600	So continuous testing is really good for validating those kinds of things.
1208620	1210180	So there you have it.
1210180	1220640	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.
1220680	1228080	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.
1228080	1233520	We're going to find every opportunity to add a new detection or prevention control.
1233520	1239060	And maybe most importantly, we're going to foster that environment of open collaboration and communication.
1240620	1246820	I do want to take this back to wrap up to looking at the actual purpose of what we're doing here.
1246820	1250840	What are we trying to accomplish with threat intelligence-driven Purple Teams?
1251340	1266300	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.
1266420	1276520	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.
1278100	1280460	We're not looking to block or prevent everything.
1280460	1288240	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.
1288420	1296040	The attacker PEMDAS, as I keep lovingly referring to it, has a lot of different terms, but Lockheed Martin coined the term kill chain.
1296040	1299940	We aren't trying to stop every single thing an attacker would try to do.
1299940	1301800	We're just trying to break the chain.
1302400	1304740	So it's not about compensating controls.
1305020	1314080	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.
1314980	1325160	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.
1325420	1330960	And that is how you shore up your defenses, and that's how you gain true resilience to adversarial threats.
1333060	1336820	So thank you so much for hanging out with me at the end of DEF CON.
1344760	1349420	If you decide to use this approach at your organization, I would love to hear how it works out.
1349520	1352880	But I think I have a few minutes if anyone has any questions.
1356320	1357200	Yeah?
1375620	1387900	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.
1441200	1442880	Yeah, I love that.
1442880	1449140	And we always say that purple teaming is, we call it practicing for the test of a true red team kind of engagement.
1449800	1453840	My tip would probably be just bringing everyone into the room.
1453840	1455760	Everybody loves to watch the hacker.
1455820	1468180	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.
1468180	1471320	Maybe your baby, if that's the team that's responsible.
1471760	1477580	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.
1477580	1490220	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.
1490220	1497480	My advice would be, that's what bringing everybody together is all about, and really showing them what we're trying to accomplish.
1514440	1519020	I do prefer the former for this style of testing.
1519080	1524740	Like I said, I definitely think Caldera is a great tool, and there's a ton of great BaaS solutions that you can use.
1524740	1527820	I just really use them for different purposes a lot of the time.
1527820	1538040	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.
1538200	1544500	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.
1559790	1562330	Yeah, that's a good question.
1563230	1568110	I guess it really depends, because we go all through the kill chain with different things that we run.
1568110	1574370	For us, we use Mythic C2, and we have some automation with Jupyter Notebooks that we use that works really well.
1574370	1577410	A lot of the stuff that we do that's automated is custom built.
1577550	1584330	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.
1606030	1606950	Sure.
1606950	1612530	My number one tip for this is we eliminate any of the audit speak, definitely.
1612810	1614170	There's no failures.
1614170	1616010	You'll never hear me use the term failure.
1616010	1618170	Maybe unsuccessful, but not failure.
1618390	1625330	These aren't vulnerabilities, and so we never refer to them as being critical, high, medium, or low severity.
1625370	1642630	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,
1642630	1646730	so we just take all of that out, because we're trying to be collaborative.
1650910	1652370	Awesome, thank you!
