1 00:00:00,000 --> 00:00:02,480 Let's start a little bit early. 2 00:00:02,700 --> 00:00:03,300 Okay. 3 00:00:03,300 --> 00:00:05,240 Uh, me here again. 4 00:00:05,240 --> 00:00:08,020 Uh, to introduce to you our next speaker. 5 00:00:08,260 --> 00:00:10,200 Uh, Joe Shotman. 6 00:00:10,200 --> 00:00:21,420 He's an application security professional with experience in pen testing, purple team exercises, instant response, threat hunting, dev ops, web application development, you name it. 7 00:00:21,420 --> 00:00:26,700 Um, he's uh, currently working as a security analyst and BBNT. 8 00:00:26,800 --> 00:00:32,780 And he's going to talk about purple team strategies, uh, for application security. 9 00:00:33,140 --> 00:00:35,140 Give him a round of applause please. 10 00:00:41,100 --> 00:00:44,740 It's like the title says, I, I'm here to talk about purple team strategies. 11 00:00:44,740 --> 00:00:46,140 I do a lot of that at work. 12 00:00:46,500 --> 00:00:50,200 And I searched really hard to find a word that would mean increasing purple. 13 00:00:50,280 --> 00:00:53,100 And there is actually one, but it's a really terrible word. 14 00:00:53,100 --> 00:00:54,780 So it's kind of a clunky title. 15 00:00:55,020 --> 00:00:56,680 But I got rid of that. 16 00:00:57,920 --> 00:00:59,740 About me, my name's Joe Shotman. 17 00:00:59,740 --> 00:01:03,620 You can reach me on Twitter at Joe Shotman or a couple other ones if you want to find them. 18 00:01:03,640 --> 00:01:07,080 I'm a senior security analyst focused on application security. 19 00:01:07,300 --> 00:01:11,040 I've done pretty much everything at some point in both IT and security. 20 00:01:11,420 --> 00:01:15,160 So when we started doing purple team engagements at work, that's why I got pulled in. 21 00:01:15,840 --> 00:01:17,660 I am pretty enterprising. 22 00:01:17,680 --> 00:01:22,040 So I work with many, many, many applications, many, many servers. 23 00:01:22,120 --> 00:01:25,840 Users are measured in the tens of thousands to millions of customers. 24 00:01:25,900 --> 00:01:33,160 So not everything I say may be directly applicable to what you're doing, especially if you're in more of a consulting role than working with a company. 25 00:01:33,240 --> 00:01:36,240 But hopefully you've got a couple takeaways that you can get away from this. 26 00:01:37,600 --> 00:01:45,580 The obligatory disclaimer, I'm not speaking on behalf of BB&T, Truist, which is the company that we're about to become, or any other entity. 27 00:01:45,780 --> 00:01:47,840 All opinions expressed are my own. 28 00:01:49,360 --> 00:01:54,700 So if you have absolutely no idea who this person is, why he's screaming at you on the slide, this is Eugene Hoots. 29 00:01:54,720 --> 00:02:00,360 He is the lead singer of a band known, best known for a song called Start Wearing Purple. 30 00:02:00,700 --> 00:02:06,280 And given my natural tendencies, I would make a slide deck that is absolutely plain black and white text. 31 00:02:06,400 --> 00:02:08,340 And people get really, really bored. 32 00:02:08,340 --> 00:02:10,000 I've been advised to add more cats. 33 00:02:10,000 --> 00:02:12,180 But in this case, I've decided to add more Eugene. 34 00:02:12,780 --> 00:02:15,380 And the band, if you're not familiar, is Gogo Berdello. 35 00:02:15,380 --> 00:02:21,040 It's kind of a mix of punk and various ethnic musics from mostly Eastern Europe, but other places as well. 36 00:02:23,760 --> 00:02:30,220 So the agenda of what I'm going to tell you, I'm going to give a brief introduction on Purple Teams for people who are not familiar with it. 37 00:02:30,360 --> 00:02:33,120 I'm going to talk a little bit about DAST, if you're not familiar with that. 38 00:02:33,120 --> 00:02:36,300 That's one of the really standard types of testing that's done on applications. 39 00:02:36,620 --> 00:02:41,880 Then I'm going to talk about the problems of applying the Purple Team strategies to DAST testing. 40 00:02:42,040 --> 00:02:45,720 And it's not just DAST, you can also apply it to more manual testing as well. 41 00:02:45,840 --> 00:02:51,740 And then some general strategies about bringing together both the offensive and defensive teams to work together better on application security. 42 00:02:52,580 --> 00:02:57,260 And I will send a copy of the slides to the village and they can stick it up on the website. 43 00:02:57,260 --> 00:03:00,120 So if you want a copy, you'll be able to download it. 44 00:03:01,680 --> 00:03:03,560 So Purple Team in a nutshell. 45 00:03:04,840 --> 00:03:09,880 So the core of it is you want both the offensive and defensive teams working together. 46 00:03:10,120 --> 00:03:17,960 And a big part of this I have found is that the corporations or the powers that be need to realign the incentives and goals of the teams. 47 00:03:18,240 --> 00:03:24,800 So very often they find themselves working in opposition. 48 00:03:24,960 --> 00:03:30,800 So the Red Team's upper management may have a goal of finding lots of bad things. 49 00:03:30,880 --> 00:03:35,020 And the Blue Team's management may be incentivized to close a lot of tickets. 50 00:03:35,020 --> 00:03:37,380 That doesn't necessarily increase security. 51 00:03:37,380 --> 00:03:41,620 So it's bringing together the goals for both of the sides so that they're working together. 52 00:03:41,620 --> 00:03:44,400 So that you've got a holistic solution to security. 53 00:03:44,400 --> 00:03:47,680 Not just one side trying to defend and one side trying to attack. 54 00:03:48,920 --> 00:03:51,020 Because we really want to avoid this. 55 00:03:51,380 --> 00:03:56,020 And having been on the Blue Team side, very often the experience is you're getting punched in the face. 56 00:03:56,020 --> 00:03:59,500 Especially when you're talking about not just AppSec but the full domain experience. 57 00:03:59,740 --> 00:04:00,920 So the Red Team gets in. 58 00:04:00,920 --> 00:04:02,260 That's pretty easy to do. 59 00:04:02,360 --> 00:04:03,340 They start pivoting around. 60 00:04:03,340 --> 00:04:04,460 They get domain admin. 61 00:04:04,560 --> 00:04:06,220 They grab a bunch of credentials. 62 00:04:06,220 --> 00:04:08,180 They start getting sensitive systems. 63 00:04:08,260 --> 00:04:13,200 And all of a sudden their boss is getting an email saying that, hey, why didn't you stop the Red Team? 64 00:04:13,240 --> 00:04:17,980 And when test after test happens like that, it really damages morale. 65 00:04:17,980 --> 00:04:23,280 So by bringing the teams together to align better, it reduces this conflict. 66 00:04:25,720 --> 00:04:28,580 So a little bit more definition of purple stuff. 67 00:04:28,580 --> 00:04:32,920 So it's about finding, confirming and closing gaps . 68 00:04:32,920 --> 00:04:36,880 So you want to find both your visibility and operational gaps. 69 00:04:37,260 --> 00:04:40,280 It's about trying to speed up the time to detection. 70 00:04:40,860 --> 00:04:47,160 So as far left as you can push on the attack matrix or the cyber kill chain, the better off you are. 71 00:04:48,260 --> 00:04:50,260 It's especially looking for pivoting. 72 00:04:50,260 --> 00:04:53,620 Again, especially in large companies, you have to assume that they're going to get in. 73 00:04:53,640 --> 00:04:58,240 So you're really trying to find when they start trying to go from that initial breach location to others. 74 00:04:58,680 --> 00:05:03,900 And it's about going through, like, living off the land is one of the big terms in Red Teaming right now. 75 00:05:04,300 --> 00:05:07,660 Finding everything that's on systems that doesn't need to be there and getting them off. 76 00:05:07,660 --> 00:05:08,920 So it's that much harder. 77 00:05:09,120 --> 00:05:13,720 And the Blue Team and Red Teams both have visibility into how that interop operates. 78 00:05:13,820 --> 00:05:16,520 So getting them talking to each other can help with that. 79 00:05:17,000 --> 00:05:21,040 And it's just increasing the educational and situation awareness of both sides. 80 00:05:21,040 --> 00:05:23,580 So the Blue Team knows where a lot of bodies are buried. 81 00:05:23,640 --> 00:05:25,300 They see the vulnerable systems. 82 00:05:25,300 --> 00:05:28,920 They know where real world attackers are probing to try to get in. 83 00:05:29,220 --> 00:05:32,480 The offensive security team doesn't necessarily know that. 84 00:05:32,480 --> 00:05:37,920 So getting the information sharing, going from the Blue Team to the Red Team, it's not just the Red Team telling the Blue Team what to do. 85 00:05:37,920 --> 00:05:39,720 It's both sides working together. 86 00:05:41,040 --> 00:05:43,520 And it's delivering better return on investment. 87 00:05:43,620 --> 00:05:47,960 So you can have a very expensive test from a top-name company that finds next to nothing. 88 00:05:48,000 --> 00:05:56,160 And if your only goal is to say that we had a top-tier company come and do a risk assessment as part of your PCI compliance or what have you, that's fine. 89 00:05:56,240 --> 00:06:00,000 But I'm lucky enough to work for an organization that truly cares about increasing security. 90 00:06:00,240 --> 00:06:05,640 We want to not be in that next headline, similar to the recent events. 91 00:06:05,720 --> 00:06:11,160 So we try very hard to actually deliver goals and objectives in our testing. 92 00:06:12,040 --> 00:06:18,540 And as part of that, also getting the Blue Team up to speed, big help. 93 00:06:19,140 --> 00:06:22,460 So finding vulnerabilities doesn't actually make you more secure. 94 00:06:22,460 --> 00:06:26,360 I can sit and test and test and test and I can find RCE after RCE. 95 00:06:26,360 --> 00:06:27,840 It doesn't matter. 96 00:06:27,840 --> 00:06:30,800 That in and of itself doesn't make the company more secure. 97 00:06:30,920 --> 00:06:38,100 The hard work is taking that information and getting it remediated, whether it's at the code level or if you're doing soft patching with WAFs, whatever it is. 98 00:06:38,100 --> 00:06:41,660 Getting the things actually closed, that's what makes the company actually secure. 99 00:06:42,340 --> 00:06:54,260 As we get faster and faster and more complex as DevOps and infrastructure as a service and everything as a service gets bigger and bigger, not everything that we have in production will actually be tested by the point it gets there. 100 00:06:54,440 --> 00:07:03,300 We're doing deployments, we as industry, not we as my company, we're in some cases doing deployments of new code dozens of times a day. 101 00:07:03,320 --> 00:07:05,920 There's no way you can do a thorough security test on that. 102 00:07:06,100 --> 00:07:18,760 And so to get defensive posture working, you have to have a defensive team that knows how to spot actual issues, go through the logs, go through the alerts, do the threat hunting and find things that are in things that you never got a chance to test or that you might have missed. 103 00:07:20,180 --> 00:07:32,340 Every single test you have, where you succeed in your engagement objectives, whatever it was, whether it was getting data or just getting access to a system, every time you don't sit down with a blue team afterwards and make them better as a blue team, 104 00:07:32,340 --> 00:07:34,080 you've missed a big opportunity. 105 00:07:34,460 --> 00:07:38,580 Like I said, it damages the morale and it doesn't actually close those gaps. 106 00:07:40,800 --> 00:07:44,440 So like this background, purple is a spectrum. 107 00:07:44,540 --> 00:07:47,180 You do not have to do everything to have a purple team. 108 00:07:47,180 --> 00:07:52,920 You do not have to have everything work into your system, into your SDLC. 109 00:07:52,920 --> 00:07:55,500 You can take a few things from this and make yourself better. 110 00:07:55,500 --> 00:08:04,660 So don't say, there's no way I can accomplish all of this, or there's, in purple teaming in general, there's no way most people can accomplish everything, but take what works best for your environment. 111 00:08:08,100 --> 00:08:14,040 So a brief walkthrough of a simulated purple team engagement using Eugene, who is also a member of the band, and Sergei. 112 00:08:14,860 --> 00:08:25,420 Sergei here is playing our red team and he's used the zero date and he communicates to the blue team and says, I've used the zero day, I got access to these three boxes, were you able to see it? 113 00:08:27,380 --> 00:08:31,940 Eugene playing our blue team here's response and he did not see that attack initially. 114 00:08:31,940 --> 00:08:37,800 So he's done research on the, what happened and figure out rules he can add to the sim, so now they've got visibility. 115 00:08:37,920 --> 00:08:44,660 But then he also says, I've seen something similar to this, where we're able to bypass the IDS IPS system by using this type of encoding. 116 00:08:44,660 --> 00:08:46,020 Have you given that a try? 117 00:08:46,220 --> 00:09:01,860 So you get this circle going back and forth where now the red team takes that information that the blue team provided, tries it again, and it turns out that Eugene has enabled a detection for this and now by working together, they've not only patched the initial issue, 118 00:09:01,860 --> 00:09:11,820 well not patched, they have created an alert that will help detect this initial issue, but also validated an additional form of the attack that the red team was not aware of and didn't test initially. 119 00:09:12,160 --> 00:09:14,540 So that's the core concept of going purple. 120 00:09:14,720 --> 00:09:18,660 So you work together and then everyone gets the big bow at the end of the show. 121 00:09:21,490 --> 00:09:26,170 So DAST in a nutshell is, how many people are familiar with DAST as a term? 122 00:09:28,790 --> 00:09:38,750 So it's dynamic application security testing, it is the very basic type of test that most companies do, and it's low cost, reasonably good results. 123 00:09:38,810 --> 00:09:54,810 And basically you're taking, it's a black box test, you've got a number of tools, OWASP is the open source dominant one, Burp Suite Pro is used by many people, and there's options from everyone from HP to IBM to many other smaller companies that just focus on these tools. 124 00:09:55,170 --> 00:10:07,970 And basically you throw a lot of garbage, you're fuzzing the applications and throwing things that are cross site scripting at it, you're throwing things that are SQL injection, and you're looking at what comes back and trying to guess whether the attack was successful. 125 00:10:08,350 --> 00:10:17,450 There's also other forms of passive fingerprinting you can do as part of this, so it will do things like look at the cookie settings and is there a session cookie coming back without the secure and HTTP only flags. 126 00:10:19,850 --> 00:10:25,750 On a moderately large site, these tests can generate anywhere from tens of thousands to hundreds of thousands of requests . 127 00:10:25,750 --> 00:10:28,630 It is very noisy, it fills up the logs with junk. 128 00:10:30,530 --> 00:10:43,270 And it's easy to spot, so when you start as a blue team analyst, you'll see people running Burp scans, and it's just page after page after page of malicious activity coming from this one IP again, again and again and again, unless you're blocking it. 129 00:10:45,030 --> 00:10:46,950 So why DAST needs improvement? 130 00:10:46,950 --> 00:10:52,270 So DAST tests typically go one to two days, depending on the size of the application. 131 00:10:52,370 --> 00:10:55,290 They're mostly, if not entirely, automated. 132 00:10:55,630 --> 00:10:58,590 And they're testing for a single issue at a time. 133 00:10:58,590 --> 00:11:02,070 So they're saying, does this type of cross site scripting attack work here? 134 00:11:02,070 --> 00:11:03,110 Yes or no? 135 00:11:03,170 --> 00:11:05,530 Does this type of attack here work here? 136 00:11:05,530 --> 00:11:06,330 Yes or no? 137 00:11:06,330 --> 00:11:09,150 It's going attack by attack, variable by variable. 138 00:11:09,730 --> 00:11:12,590 Attackers, on the other hand, they have as long as they want. 139 00:11:12,610 --> 00:11:19,610 So if you're a high value target, they can spend weeks, months, years, hypothetically, figuring out how to get into your applications. 140 00:11:19,970 --> 00:11:22,570 They're combining both automated and manual testing. 141 00:11:22,810 --> 00:11:27,570 So again, they've got the economic incentive in some cases to go after these applications very hard. 142 00:11:27,570 --> 00:11:38,310 And so they can spend time digging through obscuring codings that your developers might have used on a variable that your automated tool doesn't know to decode as a base 64 variable twice. 143 00:11:40,030 --> 00:11:44,830 Put attack code in there and get successful SQL injection and your DAS tool's not going to find that. 144 00:11:45,090 --> 00:11:49,270 And then they work, they chain vulnerabilities together to make something that's actionable. 145 00:11:49,270 --> 00:11:54,630 So very often you're not going to find a single issue that you can get root with, that you can get shell with. 146 00:11:54,730 --> 00:12:03,850 It's figuring out how you can combine a cookie attack to get access to the administrator page, to get access to a SQL injection, where you can drop a file on the system which gets you a web shell. 147 00:12:03,990 --> 00:12:07,550 So no DAS tool can do that, but the attackers do. 148 00:12:07,610 --> 00:12:16,830 And so part of what I try to push for is figure out the ways that we can do the DAS test, which are still reasonably fast, reasonably inexpensive, yet get better results. 149 00:12:17,690 --> 00:12:21,110 So, you know, everyone says test smarter, not harder. 150 00:12:21,190 --> 00:12:24,630 So an example, Durbuster, people use Durbuster here. 151 00:12:25,850 --> 00:12:33,590 It's a, one of the dominant tools for going through and guessing common file names and directory names to find things that aren't linked to from the main site when you go through and spider it. 152 00:12:34,090 --> 00:12:40,170 You can get as a standalone tool that's been deprecated, but there's a version that's almost identical that's integrated into Zap. 153 00:12:40,170 --> 00:12:42,930 And there's many other tools that do the same functionality. 154 00:12:49,530 --> 00:12:51,310 But you can also do smarter. 155 00:12:51,410 --> 00:12:56,710 So if you're working with the blue team, they can look at the file system, tell you every single file that exists there. 156 00:12:56,710 --> 00:13:05,430 They can look at the web logs and go through and tell you not just every file that exists, but every path that exists, because in some cases you may be doing mappings that are not going directly to a file . 157 00:13:05,710 --> 00:13:10,750 They can also go through and pull out every get variable and every post variable, things that may not be obvious to you. 158 00:13:11,530 --> 00:13:20,830 Especially in complex applications where there's multiple roles, you might be doing a DAS test or even manual test on two or three out of seven or ten different roles. 159 00:13:21,410 --> 00:13:27,130 They may not think to give you the highest level access or one that has access to certain administrative functions. 160 00:13:27,170 --> 00:13:32,370 So this will get you access, get you a listing of everything that you need to go through and test as part of your DAST. 161 00:13:34,510 --> 00:13:37,130 But I'm not just advocating for gray box testing. 162 00:13:37,130 --> 00:13:43,990 So taking that information and feeding it to the tools, that more falls under gray box testing than purple team testing. 163 00:13:45,190 --> 00:13:50,010 I'm pushing further beyond that and I want to increase the amount of collaboration between the blue teams and red team. 164 00:13:51,370 --> 00:14:00,410 And it's all about trying to speed up the teams, make them more effective, cut down on the advantage the other team has because they've got time, you've got the insider knowledge. 165 00:14:00,410 --> 00:14:02,750 So let's take as much advantage of it as we can. 166 00:14:04,750 --> 00:14:07,870 So I've got five main ways it's hard to make DASTS purple. 167 00:14:08,710 --> 00:14:10,690 Or the five main pain points. 168 00:14:11,150 --> 00:14:16,490 This shot I loved, it was labeled my favorite picture I've taken of Eugene by a guy who's taken quite a few photos of him. 169 00:14:19,030 --> 00:14:22,570 So the first big problem, like I said, is extremely noisy. 170 00:14:22,910 --> 00:14:30,150 So it's very common when you're doing a test like this that you've got your IDS rules, your WAF rules, it's either bypassed or silent. 171 00:14:30,430 --> 00:14:35,950 So things that would normally be telling the blue team that something's going on aren't going off at all. 172 00:14:36,310 --> 00:14:47,390 So ways to combat this at the end, re-enable just those, re-enable the rules, take just the things that were successful, just the things that you want to make sure that get alerted on, replay those attacks. 173 00:14:47,390 --> 00:14:50,250 You can do this manually, you can do it with curl exports and many tools. 174 00:14:50,250 --> 00:14:51,610 You can do it with Selenium. 175 00:14:51,730 --> 00:15:02,430 I love the idea of getting Selenium rules out to the blue team because not only can they replay the test with it, but they can give it to the devs and say, make sure that when you revise the code it can pass this test. 176 00:15:02,610 --> 00:15:12,750 And obviously in that case they can write a code, write code that just passes that specific test, but hopefully you've got development going on through developers so that they actually fix the problem once they understand it. 177 00:15:15,270 --> 00:15:17,610 It's often tested in non-production environments. 178 00:15:17,690 --> 00:15:20,470 So we try to avoid outages as much as possible. 179 00:15:20,470 --> 00:15:24,050 We've got a lot of tests to, a lot of applications that we need to test. 180 00:15:24,050 --> 00:15:32,090 So almost all of our testing we do in test environments, either UAT, SIT, or a special test environment that's been stood up just for this particular test. 181 00:15:33,950 --> 00:15:40,970 Many sims charge by the volume that you input, so often the test systems aren't sending any information whatsoever to the sims. 182 00:15:41,090 --> 00:15:48,430 Or you may not have a WAF in front of your test environment, so you're not getting a full example of what an attacker would be doing. 183 00:15:48,650 --> 00:15:54,790 So very similar to the previous one, when you have something that works, take it, rerun it in the production environment. 184 00:15:55,190 --> 00:16:02,950 So if it's a dangerous exploit, you want to be really careful, make sure that you've got the proper sign off on this , and or you do neuter it in some way. 185 00:16:03,050 --> 00:16:15,070 So all you want to do is make sure that your WAF triggers on it, or your IDS IPS triggers on it, don't even send it to an actual server in production , stand up a box that just sits there and listens on port 80, send it bad stuff, make sure that the WAF triggers, 186 00:16:15,070 --> 00:16:17,110 make sure that the IDS IPS triggers. 187 00:16:20,880 --> 00:16:29,500 So a large part of why I started speaking, I kept having people in our SOC come to us and say, are we vulnerable to the one equals one attack? 188 00:16:29,940 --> 00:16:34,260 Because very often they're junior analysts, it's their first job in InfoSec. 189 00:16:34,600 --> 00:16:39,700 And as an industry, we don't do a great job of treating the tier one SOC analysts very, very well. 190 00:16:39,700 --> 00:16:45,700 They don't get the great training, they're kind of thrown into an expensive environment with lots and lots of tools that send alerts all the time. 191 00:16:45,700 --> 00:16:50,020 And they don't have a context to understand one equals one as part of a SQL injection attack. 192 00:16:50,800 --> 00:16:57,520 But going deeper than that, what's the most dangerous type of response on a SQL injection attack if you see an alert for it? 193 00:16:57,520 --> 00:16:59,360 500, 400, or 200? 194 00:17:00,460 --> 00:17:01,340 Why? 195 00:17:03,040 --> 00:17:13,800 So a 200 indicates that it was successful, 500 generally, not always, means that the attack caused a problem at the code level and the server stopped executing it. 196 00:17:14,060 --> 00:17:21,700 This is information that I know as a developer because I've spent a lot of time with SQL, I've spent a lot of time generating inadvertent 500s. 197 00:17:21,760 --> 00:17:25,600 The people working in our SOC don't have that experience and we weren't giving them training. 198 00:17:25,600 --> 00:17:32,100 So we're unaware that a 200 alert on SQL injection is something that needs a lot of investigation. 199 00:17:32,260 --> 00:17:38,500 Whereas a 500 that there's a couple thousand of, unless there's that corresponding 200, probably not important. 200 00:17:40,280 --> 00:17:46,400 So another problem is the app test team may actually be testing the infrastructure rather than the actual environment. 201 00:17:46,400 --> 00:18:00,400 So an example of this, if you're testing for a remote file inclusion, if there's a firewall rule on that local box that prevents outgoing requests, you're not going to get a successful result using a DAS tool for the remote file inclusion. 202 00:18:00,480 --> 00:18:07,080 It doesn't mean the application isn't vulnerable, it just means that as currently configured, that server is not vulnerable. 203 00:18:07,080 --> 00:18:10,680 And I want to find everything, not just rely on the firewall to block it. 204 00:18:10,780 --> 00:18:22,860 So if I'm working with the blue team, if they say, if they know that I did a test at 2pm, they look at the logs and they see these outgoing firewall drops, they can tell me, hey, there was something going on, unusual outgoing requests. 205 00:18:23,020 --> 00:18:27,480 So again, it's not just us telling them things, it's them telling us things. 206 00:18:29,260 --> 00:18:31,840 The blue team may not receive the results. 207 00:18:32,440 --> 00:18:36,380 Some companies are very siloed as far as who gets what information. 208 00:18:37,000 --> 00:18:45,440 And so getting the reports, especially the really actual things, into the hands of the blue team so they can learn what they need to be looking for, really important. 209 00:18:45,440 --> 00:18:47,940 Because developers cut and paste and reuse code. 210 00:18:47,960 --> 00:18:55,180 So if you found that vulnerability in application A, it may also be in application B and C that you haven't received authorization to test yet. 211 00:18:55,180 --> 00:19:00,720 But letting them know, if they understand that there's a similar code base, they can start looking ahead of time. 212 00:19:03,060 --> 00:19:11,580 And part of the pushback you'll get with management on this is if you give out all this information on vulnerabilities, if there's an insider threat, you're handing them a bunch of things. 213 00:19:12,500 --> 00:19:17,320 You need different controls for that if you're relying on the blue team not being evil. 214 00:19:19,560 --> 00:19:21,160 You've got bigger problems. 215 00:19:23,200 --> 00:19:25,200 So some of the stepping up collaboration. 216 00:19:26,620 --> 00:19:32,080 So as possible, if you can before testing, have everyone sit together and talk about things. 217 00:19:32,280 --> 00:19:35,560 The blue team knows what the current high risk applications are. 218 00:19:36,040 --> 00:19:37,660 Again, they know where the bodies are buried. 219 00:19:37,660 --> 00:19:39,260 They see where the traffic is coming. 220 00:19:39,260 --> 00:19:47,680 They may know something moves millions of dollars a day in transactions versus something else that looks very similar to it may only move a couple thousand. 221 00:19:47,680 --> 00:19:51,480 So they have better information often the times than the red team does. 222 00:19:51,720 --> 00:19:53,360 They know what's going on in the real world. 223 00:19:53,360 --> 00:19:55,060 What may need to be investigated. 224 00:19:55,420 --> 00:19:57,200 They know the topology of the network. 225 00:19:57,200 --> 00:20:00,520 So they can say, you need to connect in this fashion to bypass the WAF. 226 00:20:00,580 --> 00:20:03,980 Because again, you want to be testing the application, not just your security infrastructure. 227 00:20:04,280 --> 00:20:06,260 They know where the coverage gaps are. 228 00:20:06,300 --> 00:20:08,920 So they can tell you ahead of time, look, I know you're going to find this. 229 00:20:08,920 --> 00:20:10,180 Let's do something really fast. 230 00:20:10,180 --> 00:20:11,620 We can show management there's a gap. 231 00:20:11,620 --> 00:20:12,660 Let's get this fixed. 232 00:20:12,740 --> 00:20:18,120 So you don't have to spend two days doing a test when in fact you could just do a proof of concept that works in five minutes. 233 00:20:18,720 --> 00:20:21,700 And they also know the compensating controls that you may need to bypass. 234 00:20:21,740 --> 00:20:26,820 Again, things like that outgoing firewall rule to make sure they get the effective test. 235 00:20:27,240 --> 00:20:30,480 The red team can say, we're going to do this as our testing strategy. 236 00:20:30,540 --> 00:20:33,580 The blue team may have feedback on whether that's a good strategy or not. 237 00:20:33,580 --> 00:20:39,280 And they can explain the techniques, tools and procedures, TTPs that they'll be using to bypass defenses. 238 00:20:39,340 --> 00:20:44,980 Because the defenders need to be learning about how real world attackers do encodings to get past WAFs and that sort of thing. 239 00:20:46,100 --> 00:20:53,840 During the testing, if you're talking back and forth during the test, if the blue team comes to you and says, hey, is this a true or false positive? 240 00:20:53,840 --> 00:20:57,340 You can give them feedback right then so they start learning and understanding. 241 00:20:57,520 --> 00:21:00,900 You can give them indicators of what they should be finding as a result of your test. 242 00:21:01,340 --> 00:21:05,060 And you can feed them information about what is and what isn't working. 243 00:21:05,280 --> 00:21:10,080 And giving them the context of this looks bad, but it really isn't. 244 00:21:10,080 --> 00:21:12,540 Or this doesn't look bad, but here's why it's dangerous. 245 00:21:12,740 --> 00:21:19,700 The blue team can be providing information about what's going on as far as things like the firewall, antivirus, other things like that. 246 00:21:19,760 --> 00:21:21,660 And there may be other environmental factors. 247 00:21:21,660 --> 00:21:23,720 So a lot of test systems are under provisioned. 248 00:21:23,720 --> 00:21:28,420 So you may be spiking the CPU to oblivion and getting a lot of dropped packets as a result. 249 00:21:28,440 --> 00:21:30,580 And that can throw off some of the DAS tools. 250 00:21:31,940 --> 00:21:37,720 After testing, the application security team can go, they can give feedback on what they thought worked and didn't. 251 00:21:37,820 --> 00:21:41,620 They can redo that testing if it needs to be done in the production environment. 252 00:21:41,700 --> 00:21:45,320 Or sometimes just take the meaningful logs that they generated. 253 00:21:45,620 --> 00:21:50,840 Things that actually worked and feed it into the sim so that the sim has examples of things that are bad if you're doing machine learning. 254 00:21:52,760 --> 00:21:55,660 You can do a blue team read, oriented read through. 255 00:21:55,660 --> 00:22:01,620 You don't have to go through the entire test, but every week or two you can sit down and say, here are the tests we did the past week or two. 256 00:22:01,700 --> 00:22:02,720 Here's what's meaningful. 257 00:22:02,720 --> 00:22:06,240 Here's what you should have spotted or that we think is impactful to the company. 258 00:22:06,880 --> 00:22:10,520 You can give it, you can give help doing the threat hunting. 259 00:22:10,860 --> 00:22:18,160 So if they get really excited and think that they've seen something similar to what you just did, you may give feedback on whether something's a true positive or false positive. 260 00:22:18,680 --> 00:22:20,860 And set up a learning environment for your blue team. 261 00:22:21,280 --> 00:22:26,860 That people learn how to hack apps because that's what gets them really engaged in understanding and excited . 262 00:22:26,860 --> 00:22:30,060 And it also starts to give them a path out of that junior role. 263 00:22:30,060 --> 00:22:35,860 So eventually you can keep that domain knowledge that they've accumulated about your company and move into a more advanced position. 264 00:22:37,200 --> 00:22:39,480 The blue team can validate the findings. 265 00:22:39,740 --> 00:22:44,680 Who here has ever been really confident about a false, about a, what turned out to be a false positive? 266 00:22:47,200 --> 00:22:52,240 I've had stuff that was sure it was a true exploit and the blue team pushed back and said, no, it's not. 267 00:22:52,240 --> 00:22:52,800 Here's why. 268 00:22:52,900 --> 00:22:58,720 And so that schooling coming back from the blue team, especially the app team is willing to listen is really important. 269 00:22:59,000 --> 00:23:05,740 They can give sign off on the report so that it goes to the management as the blue team and red team worked together to generate this. 270 00:23:05,860 --> 00:23:06,940 Here's what we've taken. 271 00:23:06,940 --> 00:23:09,060 Here's the steps we've taken as a result. 272 00:23:09,720 --> 00:23:14,020 And they can go and if there is an instrumentation gap, start getting those plugged right away. 273 00:23:15,820 --> 00:23:21,160 Wrapping up, I wanted to say thanks to Erez, Leora and Joe, as well as the other volunteers. 274 00:23:21,560 --> 00:23:25,640 This is my first time speaking at Vegas, so I'm very excited to have been accepted here. 275 00:23:25,780 --> 00:23:28,640 And I know they did a ton of work to pull this together as quickly as they did. 276 00:23:28,640 --> 00:23:29,960 So big hand for them. 277 00:23:36,490 --> 00:23:38,030 We got to get the next speaker up. 278 00:23:38,030 --> 00:23:40,810 So if you want, tweet at me questions or catch me in the hallway. 279 00:23:40,830 --> 00:23:41,690 And thank you for your time.