[00:08.750 --> 00:12.270] Welcome to the talk and the title for our talk today is [00:12.270 --> 00:16.170] Threat Modeling Based Application Security Pipeline. [00:17.930 --> 00:20.730] A legal disclaimer before we get started. [00:20.730 --> 00:23.650] All opinions in this talk belong to the speakers [00:23.650 --> 00:26.410] and do not represent that of the organization [00:26.410 --> 00:29.090] or the community itself. [00:31.820 --> 00:33.940] So, let's get started. [00:33.940 --> 00:35.540] A little bit about us. [00:35.540 --> 00:37.200] I'm Nilad Demelo. [00:37.200 --> 00:39.760] I'm a security engineer at Datadog. [00:39.760 --> 00:42.340] I work on the security design and guidance team [00:42.340 --> 00:47.040] that works on engineering new products securely. [00:47.140 --> 00:49.820] Previously, I worked at Intel and McAfee [00:49.820 --> 00:52.920] and I'm very passionate about writing. [00:52.920 --> 00:56.860] And I mentor grad school students at San Jose State. [00:56.860 --> 00:58.380] Larkins, over to you. [00:58.380 --> 01:00.380] Hey folks, I'm Larkins. [01:00.380 --> 01:02.460] I'm product security engineer at Plaid. [01:02.460 --> 01:05.140] Previously, I was application security engineer at AWS [01:05.760 --> 01:07.660] and I worked at Intel as well. [01:07.660 --> 01:10.580] I worked on software engineer technologies at Intel [01:10.580 --> 01:13.140] and then transitioned to security researcher. [01:13.140 --> 01:14.760] I'm an outdoor enthusiast. [01:14.760 --> 01:17.440] I love camping, hiking, and I have a golden retriever [01:17.440 --> 01:20.400] who goes along with me wherever I go. [01:20.680 --> 01:22.220] Pretty, pretty cool. [01:22.220 --> 01:25.860] So, as two AppSec professionals [01:26.180 --> 01:29.540] who work in a fast-paced engineering-heavy organization [01:29.540 --> 01:32.800] where security needs to be comprehensive, [01:32.800 --> 01:34.200] it needs to be effective. [01:34.200 --> 01:35.740] We trade a lot of nodes. [01:35.740 --> 01:38.220] And we thought we should first lay the foundation [01:38.220 --> 01:42.960] for what a fast-paced engineering-heavy organization looks like. [01:42.960 --> 01:45.520] What are the traits of such organizations? [01:45.860 --> 01:48.020] So, first and foremost, [01:48.020 --> 01:50.840] these organizations ship very fast [01:50.840 --> 01:53.200] and they ship frequently. [01:53.420 --> 01:56.020] Just the volume is insane. [01:56.480 --> 01:59.140] And new services and prototypes are being spawned, [01:59.140 --> 02:00.540] like anything. [02:01.020 --> 02:04.740] Inherently cloud-native, that's the biggest trait there. [02:04.740 --> 02:08.640] And then the ratio of engineering to security engineering [02:08.640 --> 02:10.320] is disproportionate. [02:10.320 --> 02:11.520] When you look at security, [02:11.520 --> 02:14.120] when you look at InfoSec, privacy, risk, [02:14.120 --> 02:15.700] these are fairly lean teams [02:15.700 --> 02:18.220] as compared to the engineering teams. [02:18.620 --> 02:21.460] So, that brings us to the question, [02:21.460 --> 02:24.080] what does security do in such places? [02:24.180 --> 02:28.700] First and foremost, security places calculated bets. [02:28.700 --> 02:30.320] It places calculated bets [02:30.320 --> 02:33.480] where the impact, the return on investment, [02:33.480 --> 02:35.880] and the value is the highest. [02:35.960 --> 02:37.320] That being said, [02:37.320 --> 02:39.600] what are we going to cover in our talk today? [02:40.080 --> 02:41.800] Since the title of our talk is [02:41.800 --> 02:45.500] Threat Modeling-Based Application Security Pipeline, [02:45.500 --> 02:47.380] we are first going to get a background [02:47.380 --> 02:50.160] on application security reviews. [02:50.440 --> 02:54.360] Once we cover what these application security reviews are, [02:54.360 --> 02:57.360] we are going to get into secure SDLC. [02:57.360 --> 03:00.480] We all know what a software development lifecycle is. [03:00.480 --> 03:02.400] So, when we integrate security events [03:02.400 --> 03:04.380] or security activities in there, [03:04.380 --> 03:07.140] what does a secure SDLC look like? [03:07.540 --> 03:10.420] Next, the most favorite part here is [03:10.420 --> 03:13.620] in order to make this comprehensive and effective, [03:13.620 --> 03:16.020] the AppSec trio of success. [03:16.020 --> 03:18.100] That's what we'll focus on. [03:18.200 --> 03:20.340] Then, we'll go into the AppSec pipeline [03:20.340 --> 03:23.080] and we'll take an example after that [03:23.080 --> 03:24.700] for illustration purposes [03:24.700 --> 03:27.380] to see what that looks like. [03:27.480 --> 03:30.200] And finally, there is no good end to a talk [03:30.200 --> 03:33.300] without discussing how we measure progress. [03:33.300 --> 03:36.660] So, that's a bird's eye view of what we are going to cover today. [03:39.060 --> 03:40.340] So, at a high level, [03:40.340 --> 03:43.320] what are application security reviews or assessment? [03:43.740 --> 03:46.640] So, it all starts with secure design reviews. [03:46.860 --> 03:49.800] Not all organizations will be doing all of these activities [03:49.800 --> 03:52.480] or they will be doing a subset of these activities. [03:52.760 --> 03:54.320] So, what are secure design reviews? [03:54.320 --> 03:55.720] In secure design reviews, [03:55.720 --> 03:57.500] we look at a product requirement [03:57.500 --> 04:00.660] and then come up with security requirements [04:00.660 --> 04:04.320] based on the security controls we think will be most beneficial. [04:04.440 --> 04:06.580] Once we have that nailed down, [04:06.580 --> 04:08.260] we look at threat modeling. [04:08.260 --> 04:09.720] Threat modeling is a holistic exercise [04:10.220 --> 04:12.640] where we understand, we work and collaborate [04:12.640 --> 04:13.900] with the engineering teams [04:13.900 --> 04:16.760] to figure out what can go wrong with a system. [04:16.760 --> 04:18.940] How can attackers or bad users [04:18.940 --> 04:22.540] can abuse a system and then create havoc, right? [04:22.540 --> 04:24.860] So then, once we have that defined, [04:24.860 --> 04:27.700] we start looking into the implementation guidance. [04:27.700 --> 04:30.420] And this is where we collaborate closely with developers. [04:30.580 --> 04:32.480] Like, we have a bunch of requirements in place, [04:32.480 --> 04:35.320] but they don't know how to action on them. [04:35.400 --> 04:37.980] And then, for the implementation guidance, [04:37.980 --> 04:40.500] what we look at, like, what are some safe primitives? [04:40.500 --> 04:41.820] What are some frameworks? [04:42.000 --> 04:44.920] What are some crypto implementations which can go wrong [04:44.920 --> 04:46.840] and how we can do better? [04:47.200 --> 04:49.520] We also look at, like, what are some supply chain issues [04:49.520 --> 04:51.300] which can come along with those? [04:51.600 --> 04:52.880] And then we start looking at, [04:52.880 --> 04:55.320] once we have that implementation guidance in place, [04:55.320 --> 04:57.680] and then developers come to us, [04:57.680 --> 04:59.680] that, hey, this was the set of requirements [04:59.680 --> 05:02.640] which we agreed upon, and we have implemented them. [05:02.820 --> 05:04.680] Can we get a code review? [05:04.840 --> 05:08.240] So, here we utilize SAS tooling, [05:08.440 --> 05:11.620] a great way of us leveraging and exercising [05:11.620 --> 05:13.000] on, like, what we have, [05:13.620 --> 05:16.840] the implementation guidance that is supposed to be put in place, [05:16.840 --> 05:20.440] but not all can be caught as part of, like, a SAS tooling. [05:20.440 --> 05:22.380] And at that point, we need to do some form [05:22.380 --> 05:24.080] of manual code reviews. [05:24.420 --> 05:27.420] And at the end, we have some form of dynamic testing. [05:27.420 --> 05:29.180] There can be API security testing, [05:29.180 --> 05:30.640] there can be first testing, [05:30.640 --> 05:33.940] and then it can be IAST, the tooling we have. [05:34.140 --> 05:36.640] But there is also another aspect to it. [05:36.640 --> 05:38.480] Dynamic security testing can be achieved [05:38.480 --> 05:40.580] with penetration testings as well. [05:40.580 --> 05:43.080] Not all will be doing the penetration testing, [05:43.080 --> 05:45.780] but, like, we would like to emphasize our efforts [05:45.780 --> 05:49.520] where we think these will be critical aspects of our systems. [05:50.780 --> 05:54.840] So, why invest in building culture of application security reviews? [05:54.840 --> 05:57.160] So, as part of security design reviews, [05:57.160 --> 05:59.060] we closely work with our engineers [05:59.060 --> 06:03.240] to understand, like, what are some of the implications. [06:03.240 --> 06:05.960] So, like, proactively, we work to understand [06:05.960 --> 06:08.860] what are the requirements from the security point of view [06:08.860 --> 06:12.860] and how we can address these or fix these design issues [06:12.860 --> 06:14.540] right from the start. [06:14.540 --> 06:17.660] We know, like, fixing design issues can be a lot more complicated [06:17.660 --> 06:20.060] than fixing just code issues. [06:22.700 --> 06:24.500] So, tools are great. [06:24.500 --> 06:27.140] Like, they help us scale in so many different ways. [06:27.140 --> 06:28.480] But we also know sometimes [06:28.480 --> 06:32.600] tools create a lot of security problems for security teams. [06:32.700 --> 06:35.560] And, like, how can we leverage tools in this manner [06:35.560 --> 06:40.800] without having issues with our development teams? [06:40.800 --> 06:42.620] And then, we also need to think [06:42.620 --> 06:45.160] that design issues and the architecture issues [06:45.160 --> 06:48.200] cannot be found with tools we use. [06:50.520 --> 06:52.540] This is my personal favorite. [06:52.540 --> 06:53.520] Like, collaboration, right? [06:53.520 --> 06:56.580] Like, when we work with our developers and our engineers [06:56.580 --> 06:58.140] right from the get-go, [06:58.140 --> 07:00.200] they know that we are on their side. [07:00.200 --> 07:03.380] They know that we are working on a shared common goal [07:03.380 --> 07:06.220] to build a system securely. [07:07.080 --> 07:09.360] And now, as part of all this exercise [07:09.360 --> 07:11.520] which we are going and collaboration [07:11.520 --> 07:14.140] which we are doing with our developers, [07:14.140 --> 07:16.680] we now know what are some of the critical systems. [07:16.680 --> 07:18.360] And based on that, we can emphasize [07:18.360 --> 07:20.880] like, efforts on some... [07:20.880 --> 07:22.860] pinpointing some of the critical systems [07:22.860 --> 07:26.820] and then have close eyes on them. [07:27.240 --> 07:29.160] So, now Nilet will be talking about [07:29.160 --> 07:30.340] and walking us through, like, [07:30.340 --> 07:31.620] what is software development lifecycle [07:31.980 --> 07:34.820] and how secure development lifecycle fits in. [07:37.020 --> 07:39.680] So, regardless of the paradigm that you follow [07:39.680 --> 07:42.260] in your software development lifecycle, [07:42.260 --> 07:46.140] be it waterfall, agile, iterative, spiral, whatever, [07:46.140 --> 07:49.180] we can agree that they all come down to these blocks. [07:49.180 --> 07:50.360] There is requirement. [07:50.360 --> 07:51.240] There is design. [07:51.240 --> 07:52.580] There is code. [07:52.580 --> 07:53.400] There is test. [07:53.400 --> 07:54.820] And there is release. [07:55.120 --> 07:58.800] Now, how do we inject security in these phases? [07:59.000 --> 08:01.430] At the top, what you are saying is, again, [08:01.960 --> 08:03.840] when a new service or a new feature [08:03.840 --> 08:06.580] or a new product is getting started, right? [08:07.140 --> 08:09.440] When we talk about design [08:09.440 --> 08:11.720] or requirements phase, [08:11.720 --> 08:13.900] that's, no, I'm going to go back. [08:13.900 --> 08:16.460] When we talk about the requirements phase, [08:16.460 --> 08:17.880] there is a bunch of exploration [08:17.880 --> 08:20.000] and there's a bunch of folks involved in it, [08:20.000 --> 08:23.700] product management, engineering, security. [08:23.760 --> 08:25.920] That's the time when we should be talking about [08:25.920 --> 08:27.780] the security requirements. [08:28.000 --> 08:30.520] During planning, that's when we'll be talking about [08:30.520 --> 08:34.020] how do we want to allocate the security resources for this. [08:34.820 --> 08:38.880] When it's time to do an RFC or a design doc, [08:38.880 --> 08:43.020] that's when it's appropriate to have an architecture review. [08:43.020 --> 08:44.780] Also, threat modeling. [08:44.780 --> 08:45.880] What can go wrong? [08:45.880 --> 08:47.600] What can we do about it? [08:48.700 --> 08:50.640] Also, how are we going to test [08:50.640 --> 08:52.460] what we are saying can go wrong [08:52.460 --> 08:54.060] and what we are going to do about it? [08:54.060 --> 08:56.620] The security test plan is also going to be part [08:56.620 --> 08:59.080] of the design document itself. [08:59.620 --> 09:01.260] There is implementation, [09:01.260 --> 09:03.760] after which we can add secure code review [09:03.760 --> 09:06.500] and security testing as well. [09:07.080 --> 09:09.420] Optionally, wherever it's critical, [09:09.420 --> 09:11.820] you include your external pen test [09:11.820 --> 09:15.200] or even some form of internal pen tests as well. [09:15.600 --> 09:17.720] That's the flow for when a new service [09:17.720 --> 09:19.820] or a new product is being spawned. [09:19.820 --> 09:21.620] You keep adding on top of it. [09:21.620 --> 09:22.920] Towards the bottom, [09:22.920 --> 09:25.620] you start now doing feature-based assessments. [09:25.620 --> 09:27.280] Every time you add something new, [09:27.280 --> 09:30.020] there is a chance that you are adding more risks as well. [09:30.020 --> 09:32.900] So, you want to also add some detective controls in place [09:32.900 --> 09:34.380] to maybe identify [09:34.380 --> 09:37.980] what are some anomalies or behavioral anti-patterns [09:37.980 --> 09:40.580] that you are seeing with respect to your services. [09:40.580 --> 09:42.180] So, that's the time when you also inject [09:42.180 --> 09:43.400] some security monitoring [09:43.400 --> 09:46.780] and incident response-related activities as well. [09:46.780 --> 09:50.600] But as you can see, that's a lot. [09:50.700 --> 09:53.200] And the call-out here is, [09:53.200 --> 09:58.220] it is challenging to adopt and execute on it all. [09:58.420 --> 09:59.720] And really what happens [09:59.720 --> 10:03.340] when all of this secure SDLC activities, [10:03.340 --> 10:04.700] the threat modeling, [10:04.700 --> 10:06.520] or your dynamic testing, [10:06.520 --> 10:07.740] or your code reviews, [10:07.740 --> 10:10.340] all of that is happening in isolation. [10:10.400 --> 10:12.740] There is engineering is doing something, [10:12.740 --> 10:15.160] security teams that are focusing on different aspects [10:15.160 --> 10:16.700] are doing something. [10:17.040 --> 10:20.800] Security best practices don't get followed in the ideal way. [10:20.800 --> 10:24.520] That introduces security bugs and vulnerabilities. [10:24.640 --> 10:26.640] Dumpster fire keeps amplifying. [10:27.800 --> 10:29.260] Mounts tech debt. [10:29.260 --> 10:32.360] And there is inconsistent outcomes, really. [10:32.360 --> 10:35.060] And eventually leading into [10:35.060 --> 10:38.200] internal security events and breaches. [10:38.280 --> 10:40.940] And finally, the doom day scenario, [10:40.940 --> 10:42.160] which nobody really wants. [10:42.160 --> 10:45.760] Loss of reputation and precious customer trust. [10:45.760 --> 10:48.340] At the end, customer trust is everything. [10:49.040 --> 10:50.340] We can sit there and say, [10:50.340 --> 10:52.360] yeah, this is fine. [10:53.340 --> 10:56.100] Every security professional's mood. [10:56.100 --> 10:59.320] But no, we can do something about it, right? [10:59.320 --> 11:03.680] And that's where the AppSec trio of success really comes into play. [11:03.680 --> 11:07.100] You know, the secret formula there to make this scale well [11:07.100 --> 11:08.580] and in a successful manner [11:08.580 --> 11:12.180] is to have all three things that we're going to talk about. [11:12.240 --> 11:14.060] We start with tools. [11:14.340 --> 11:15.940] These are essential. [11:15.940 --> 11:19.020] We need them to automate our security activities, [11:19.020 --> 11:20.680] to do code analysis for us, [11:20.680 --> 11:24.520] to tell us what are the security vulnerabilities that are in place. [11:24.980 --> 11:26.140] Important. [11:26.380 --> 11:28.800] But then on top of that, there is processes. [11:28.800 --> 11:31.880] How do you keep your security best practices in place? [11:31.880 --> 11:33.220] When do you do them? [11:33.220 --> 11:34.740] Who do you involve? [11:35.000 --> 11:38.560] You take tools, you layer processes on top of it. [11:38.740 --> 11:40.580] But none of this is going to be successful [11:40.580 --> 11:44.640] if you don't have the most important aspect here, [11:44.640 --> 11:45.720] the people. [11:45.920 --> 11:47.380] Your different folks in security [11:47.380 --> 11:50.020] who have different skill sets and domain expertise [11:50.020 --> 11:53.320] and your development teams, you know, [11:53.320 --> 11:57.060] who have real good understanding of why this is important. [11:57.060 --> 12:00.200] Why do I need to do a certain thing from a security standpoint? [12:00.340 --> 12:01.740] Combine it all together. [12:01.740 --> 12:04.060] That's your AppSec trio of success. [12:04.060 --> 12:06.200] So Neelit, can you talk a little bit about [12:06.200 --> 12:09.160] who are people and who are involved in this? [12:09.520 --> 12:11.180] That's a good question. [12:11.760 --> 12:13.460] Let's start with the developers. [12:13.460 --> 12:15.160] What's in it for them? [12:15.500 --> 12:18.220] Well, they need clear information about [12:18.220 --> 12:20.220] what is it that I need to implement [12:20.220 --> 12:24.460] and how do I test the expected behaviors? [12:25.300 --> 12:29.660] The product owner or the business decision maker. [12:29.660 --> 12:30.900] They're going to be like, [12:30.900 --> 12:33.140] okay, you're telling me there is a risk. [12:33.140 --> 12:36.500] What's the necessary action I need to take for that risk? [12:36.520 --> 12:39.220] And the third, the security engineer [12:39.220 --> 12:41.280] who's really concerned about [12:41.280 --> 12:45.260] what is the security posture of this overall application [12:45.260 --> 12:48.480] and is this new feature or this new service [12:48.480 --> 12:51.620] introducing some sort of vulnerabilities or risks [12:51.620 --> 12:53.460] that I need to be aware of? [12:53.460 --> 12:56.960] Also, does it satisfy the compliance requirements? [12:58.220 --> 13:02.580] So now let's talk about the application security pipeline. [13:04.260 --> 13:07.680] So if now we look at the application security pipeline [13:07.680 --> 13:12.060] in a very vanilla way, in a very serialized way, [13:12.060 --> 13:15.040] it's a security design review [13:15.040 --> 13:17.400] that you can do at the start, [13:17.400 --> 13:20.200] exploration, planning, design phase. [13:20.200 --> 13:22.640] Then you have your security code review [13:22.640 --> 13:27.860] which is essentially doing your tooling for your code analysis [13:27.860 --> 13:29.380] as well as your manual code review [13:29.380 --> 13:31.620] for things that your tool really cannot catch [13:31.620 --> 13:33.760] and your dynamic testing. [13:33.760 --> 13:38.220] But keep in mind that this serial activity is not going to scale [13:38.220 --> 13:40.740] when you really, really, really, really have [13:40.740 --> 13:43.660] thousands of services, microservices [13:43.660 --> 13:45.660] that connect to each other here and there. [13:45.660 --> 13:48.740] You have thousands of infrastructure components. [13:49.100 --> 13:50.940] Did I tell you about the commandment here [13:50.940 --> 13:54.940] when you work in a high-speed environment? [13:54.940 --> 13:56.500] Thou shall not block. [13:56.500 --> 13:59.820] You do anything for security, but you will not block me. [14:00.000 --> 14:02.240] So how do you do that then? [14:04.830 --> 14:08.090] So today we are going to focus on security design review [14:08.090 --> 14:10.070] and we are going to talk about [14:10.070 --> 14:12.290] how we can implement different measures [14:12.290 --> 14:14.190] as part of a security design review [14:14.190 --> 14:16.970] and how we can scale our review processes. [14:17.090 --> 14:19.630] And to reiterate, fixing a design issue [14:19.630 --> 14:22.370] is a lot more complicated than fixing a code issue. [14:24.970 --> 14:26.670] So now let's take a look. [14:26.670 --> 14:28.790] So this is the vanilla pipeline. [14:28.790 --> 14:30.310] Like a security design review [14:30.310 --> 14:33.610] followed by security code review and dynamic testing. [14:33.690 --> 14:35.510] So in a security design review, [14:35.510 --> 14:37.070] as a security engineer, [14:37.070 --> 14:40.410] when we start looking at our reviews, [14:40.410 --> 14:42.250] don't do it in isolation. [14:42.770 --> 14:43.970] There are different... [14:43.970 --> 14:46.830] On the left, what we see is just a pipeline [14:47.150 --> 14:49.650] and in the middle, these are parallel activities [14:49.650 --> 14:51.290] which need to happen. [14:51.290 --> 14:55.310] We have experts which are focused on privacy aspects. [14:55.310 --> 14:58.190] We have experts who are focused for risk. [14:58.190 --> 15:01.970] We have security operations and supply chain as well. [15:01.970 --> 15:04.450] So when you are doing reviews, talk to them. [15:04.450 --> 15:06.570] Talk to them and understand different implications [15:06.570 --> 15:08.550] of what we are introducing. [15:08.650 --> 15:11.830] We are having different design aspects [15:11.830 --> 15:13.830] from a privacy point of view. [15:13.830 --> 15:14.790] Data handling. [15:14.790 --> 15:17.510] So they are the experts who can help us understand. [15:17.510 --> 15:19.730] So when we have that understanding, [15:19.730 --> 15:22.750] we come up with security and privacy requirements. [15:23.350 --> 15:25.170] As we are doing this process, [15:25.170 --> 15:27.490] we are collaborating with the engineers, [15:27.490 --> 15:29.810] we come up with threat model as well. [15:29.890 --> 15:31.090] Based on the threat model [15:31.090 --> 15:33.610] and based on the mitigations we have in place, [15:33.610 --> 15:35.850] we have implementation guidance. [15:35.870 --> 15:38.190] And to have implementation guidance, [15:38.190 --> 15:38.950] what do we need? [15:38.950 --> 15:40.530] We need some kind of a test plan. [15:40.530 --> 15:43.170] We need some kind of security findings and events [15:43.170 --> 15:46.970] which will be coming out of security code review pipeline as well. [15:46.970 --> 15:49.870] So let's focus on security design review [15:49.870 --> 15:53.350] where we will be doing RFC's fake review. [15:53.350 --> 15:55.870] Here we will be engaging with our different teams [15:55.870 --> 15:58.210] and come up with the security requirements. [15:58.530 --> 16:00.290] We have to make sure these align [16:00.290 --> 16:03.370] with what our product team is developing. [16:03.370 --> 16:04.970] We need to make sure that this is not [16:04.970 --> 16:08.550] actually making these features less attractive [16:08.550 --> 16:11.750] to the customers they are providing. [16:13.250 --> 16:14.810] Nillet will be talking now [16:14.810 --> 16:17.150] about security design review process. [16:17.150 --> 16:18.570] She will be talking about [16:18.570 --> 16:20.930] how we have to design the intake process [16:20.930 --> 16:24.630] and how we can have different phases altogether. [16:25.030 --> 16:26.470] So as you saw in the pipeline [16:26.470 --> 16:28.530] where there was the security design review, [16:28.530 --> 16:30.690] that is the injection point for even [16:30.690 --> 16:32.890] bringing in your experts who do [16:32.890 --> 16:36.730] supply chain or privacy or risk, [16:36.730 --> 16:39.670] everything that you can inject in there. [16:39.670 --> 16:42.850] The starting point is a security design review. [16:42.850 --> 16:44.610] So when should you be doing it? [16:44.610 --> 16:47.550] You can do it whenever you are launching a new service [16:47.550 --> 16:52.270] or anytime there is a major update to an existing service. [16:52.270 --> 16:55.910] Any service that has a security sensitive context, [16:55.910 --> 16:59.390] you need to have a security design review as well. [16:59.390 --> 17:03.170] And periodical evaluation of your services. [17:03.170 --> 17:04.810] So this is part of the process. [17:04.810 --> 17:07.270] At an organization level, we define, [17:07.270 --> 17:08.750] even at Datadog, we define [17:08.750 --> 17:10.570] when should you have a design review? [17:10.570 --> 17:12.650] Because folks need to have a clear understanding [17:12.650 --> 17:14.770] of the expectations here. [17:17.600 --> 17:19.700] So security review calibration. [17:19.700 --> 17:21.920] So now we saw there are different processes [17:21.920 --> 17:23.880] which are in place. [17:23.880 --> 17:25.540] I see one of my engineers, [17:25.540 --> 17:27.540] past engineer, Nick. [17:28.380 --> 17:29.880] I know you. [17:29.920 --> 17:33.080] So security review calibration, [17:33.900 --> 17:36.700] which was a very heavily focused process [17:36.700 --> 17:39.820] in AWS, a US successful process [17:39.820 --> 17:42.040] because we work on so many different services [17:42.040 --> 17:44.680] and there are different risks coming out, [17:44.680 --> 17:46.080] there are different guidance coming out [17:46.080 --> 17:48.000] and we need a centralized place [17:48.000 --> 17:51.180] where engineers who are working on different services [17:51.180 --> 17:53.100] can look at different insecure patterns [17:53.100 --> 17:55.320] and they can develop a shared context [17:55.320 --> 17:58.180] on how we are doing and processing these services. [17:58.280 --> 18:01.120] Some of the activities as part of that exercise [18:01.120 --> 18:03.740] were about how do we assign different risks? [18:03.740 --> 18:06.020] How do we assign different severities? [18:06.020 --> 18:07.680] Not all severities will be the same [18:07.680 --> 18:11.160] and having that context helps us to scale differently. [18:11.280 --> 18:13.540] So why do we need security review calibration? [18:13.540 --> 18:15.540] We need it to be consistent. [18:15.540 --> 18:16.880] Our process needs to be consistent [18:16.880 --> 18:19.480] in how we find different vulnerabilities, [18:19.480 --> 18:21.000] how we assign different severities [18:21.000 --> 18:23.480] and if we have some gaps, [18:23.480 --> 18:25.120] what can we do about it? [18:25.120 --> 18:26.560] We need to have a knowledge base. [18:26.560 --> 18:28.100] We need to expand on it. [18:28.280 --> 18:30.440] By chance, if there was no knowledge base, [18:30.440 --> 18:33.340] if there were no processes in place, [18:33.340 --> 18:35.900] we have good opportunities to set up new processes. [18:35.900 --> 18:39.080] We have good opportunities to innovate. [18:41.920 --> 18:44.720] So now I will dive a little into partnership [18:44.720 --> 18:47.560] because if you want to set a good pipeline, [18:47.560 --> 18:51.400] you need to have some foundational elements in place. [18:51.400 --> 18:54.200] You need to try and test and evolve accordingly. [18:54.200 --> 18:57.140] So you can pick some of your products or services [18:57.140 --> 18:58.320] that are really critical [18:58.680 --> 19:00.620] and aim for that to be your partner. [19:00.620 --> 19:02.260] So where your security engineer is partnering [19:02.260 --> 19:04.960] with that organization or that product [19:04.960 --> 19:06.940] and that's when, say, [19:06.940 --> 19:10.000] you define how the security reviews get done, [19:10.000 --> 19:14.540] how you bring in the different domain experts in as well, [19:14.540 --> 19:17.020] how you streamline the secure code reviews [19:17.020 --> 19:19.660] for that particular organization, [19:19.660 --> 19:22.400] as well as how the pen test scoping is done [19:22.400 --> 19:24.680] for that particular organization. [19:24.680 --> 19:27.540] So you can try to do it in different contexts [19:27.540 --> 19:30.260] but if you pick a few feature services [19:30.260 --> 19:32.780] or products that you can partner with, [19:32.780 --> 19:34.940] that is going to be the best bang for buck. [19:34.940 --> 19:38.420] Because then you can really measure your progress properly. [19:38.940 --> 19:41.440] So Nilit, we have this partnership program, [19:41.440 --> 19:43.880] then what is the role of security champions? [19:43.880 --> 19:45.140] That's a good question. [19:45.140 --> 19:47.620] So with partnership, it's a security engineer [19:47.620 --> 19:50.060] going to the product teams. [19:50.060 --> 19:52.640] But you also need to scale the guidance, right? [19:52.640 --> 19:54.620] You need to scale what needs to be done. [19:54.620 --> 19:55.780] You need eyes and ears [19:55.780 --> 19:57.820] where the real action is. [19:57.820 --> 20:01.060] So security champions are folks who are in the product teams. [20:01.060 --> 20:04.440] These are folks who are extremely security-minded. [20:04.440 --> 20:07.660] They have the right direction, the right support, [20:07.660 --> 20:11.380] as well as they know what needs to be done. [20:11.380 --> 20:14.780] So training few folks within the organization [20:15.360 --> 20:18.740] to take care of security-sensitive tasks [20:18.740 --> 20:21.720] is where the security champions really shine in. [20:23.040 --> 20:25.960] Now let's take an illustration of pipeline. [20:25.960 --> 20:28.540] So before going in there, we covered a lot about [20:29.440 --> 20:31.620] what are the different activities. [20:31.620 --> 20:35.940] Security design review, code reviews, dynamic testing. [20:35.980 --> 20:39.840] Let's take an example to see how we can do that in practice. [20:40.740 --> 20:45.000] Now, you have your intake process as a security team [20:45.000 --> 20:48.240] and the development team comes in through that intake process [20:48.240 --> 20:51.260] and saying, hey, we are doing this exciting feature. [20:51.260 --> 20:52.880] It's a code playground. [20:53.580 --> 20:57.340] We all are pretty familiar with what a code playground is, right? [20:57.340 --> 21:01.680] So, they come in saying they want to do a code playground. [21:02.320 --> 21:05.780] We ask them to go through a security review intake. [21:06.260 --> 21:10.240] Then that security review intake should be hooked up [21:10.240 --> 21:13.880] to a good project tracking software. [21:13.880 --> 21:15.780] Now what does the intake involve? [21:16.000 --> 21:18.860] If we have heard talks or we have seen different tools, [21:18.860 --> 21:20.740] context is super important, right? [21:20.740 --> 21:23.060] We need to collect as much information or context [21:23.060 --> 21:24.680] of what is being built. [21:24.680 --> 21:28.080] Otherwise, anything that you say is not going to be actionable. [21:28.140 --> 21:31.360] So, you collect different details like what data stores you have, [21:31.360 --> 21:32.910] what's the internet exposure, [21:33.200 --> 21:36.000] what kind of untrusted inputs are you handling, [21:36.000 --> 21:40.360] what are the service interfaces in terms of how is your server looking like, [21:40.360 --> 21:42.460] what's your client looking like, [21:42.460 --> 21:45.760] what is your authentication and access control model, [21:45.760 --> 21:47.580] what's your cryptographic usage, [21:47.580 --> 21:50.300] do you have any customer data that you are handling, [21:50.300 --> 21:52.060] tell me about your APIs. [21:52.060 --> 21:55.200] You collect all of that information as part of the intake [21:55.200 --> 21:58.520] so that you know what is being done. [21:58.660 --> 22:00.820] Based on that review intake, [22:00.820 --> 22:02.800] it tells us that hey, [22:02.800 --> 22:05.660] this feature that allows the customer to bring in [22:05.660 --> 22:08.540] or allows the user to bring in arbitrary code, [22:08.540 --> 22:10.660] it's a high risk critical feature. [22:10.660 --> 22:12.860] So, it needs a security design review. [22:12.860 --> 22:14.320] It needs an assessment. [22:14.800 --> 22:17.040] So, the security team goes like, [22:17.040 --> 22:18.520] this is a critical feature, [22:18.520 --> 22:21.580] let's work together to do a security assessment. [22:22.320 --> 22:24.480] So, now they have a lot of questions. [22:24.860 --> 22:27.000] We talked about different requirements, [22:27.000 --> 22:29.200] we talked about the criticality of the service, [22:29.200 --> 22:30.620] and now they are confused like, [22:30.620 --> 22:32.580] hey, how are we going to do this, [22:32.580 --> 22:33.900] and how are we going to ship? [22:33.900 --> 22:36.860] So, one of the things we do is collaborate with them, [22:36.860 --> 22:38.660] not only just give the requirements, [22:38.660 --> 22:40.880] but exactly what they need to do. [22:40.880 --> 22:44.480] There are different activities that can go wrong with the code playground. [22:44.600 --> 22:46.600] And we first need to understand, [22:47.340 --> 22:48.980] what can we do about it? [22:48.980 --> 22:51.820] The first thing that comes to our mind is sandbox. [22:51.820 --> 22:54.020] Like, we can give them like, [22:54.020 --> 22:56.060] okay, create a sandbox environment. [22:56.060 --> 22:59.160] But what does sandbox environment mean to them? [22:59.280 --> 23:00.540] I have seen in the past, [23:00.640 --> 23:02.820] a sandbox environment means to them is like, [23:02.820 --> 23:04.960] just scanning what customers are uploading [23:04.960 --> 23:06.900] with the virus scanning software, [23:06.900 --> 23:08.340] and just call it done. [23:08.340 --> 23:11.080] That is not a sandbox, what it's supposed to be. [23:11.080 --> 23:13.460] A sandbox has to be carefully designed, [23:13.460 --> 23:15.540] that even in case of a compromise, [23:15.540 --> 23:17.720] we are limiting the blast radius. [23:17.720 --> 23:21.820] So, this we have to be collaborative and prescriptive [23:21.820 --> 23:24.740] in how we want to see this environment to play out. [23:26.040 --> 23:27.860] So, if you go back a slide, [23:27.860 --> 23:30.920] you can see that there are so many different aspects. [23:30.920 --> 23:34.260] You know, if you were going to do a pen test later in the game, [23:34.260 --> 23:36.860] you have still established a very good scope here. [23:36.860 --> 23:39.020] Look at the different high risk areas [23:39.020 --> 23:42.420] that we are highlighting right at the design phase. [23:42.420 --> 23:44.160] Yeah, that's an interesting point. [23:44.160 --> 23:46.060] Because all this we are doing, [23:46.060 --> 23:49.000] and by the end when the feature is going to be shipped, [23:49.000 --> 23:51.060] we will be looking at different pen tests. [23:51.060 --> 23:53.460] And to have a good pen test scope, [23:53.460 --> 23:56.540] we need to define these as part of our requirement gathering [23:56.540 --> 23:57.780] and threat modeling. [23:57.780 --> 24:00.440] So, our pen test team will be very happy [24:00.440 --> 24:03.180] to see the scope is already defined for them, [24:03.180 --> 24:05.680] and they know where exactly to focus on. [24:09.740 --> 24:12.080] So, the implementation is done. [24:13.140 --> 24:16.900] When you say that here are my security requirements, [24:16.900 --> 24:18.400] you are going to check for, like, [24:18.400 --> 24:21.480] they are implementing what was promised, right? [24:21.800 --> 24:22.720] Yes. [24:22.800 --> 24:27.100] So, then you need to call for an implementation review as well. [24:29.600 --> 24:32.360] So, what do we do in an implementation review? [24:32.400 --> 24:34.380] So, in implementation review, [24:34.380 --> 24:38.460] we will first look at, like, what were the security requirements, [24:38.460 --> 24:41.860] and we will start evaluating different frameworks. [24:41.860 --> 24:44.060] One of the frameworks can be, like, insecure. [24:44.060 --> 24:46.360] Like, some of the libraries will be, [24:46.360 --> 24:50.160] they will have secure usage and insecure usage as well. [24:50.160 --> 24:52.000] We need to help developers understand [24:52.000 --> 24:55.920] what will go wrong if we use insecure patterns, [24:55.920 --> 24:58.380] because libraries, the documentation, [24:58.380 --> 25:00.200] is difficult to understand sometimes, [25:00.200 --> 25:02.180] and details are very hidden. [25:02.180 --> 25:03.780] So, helping them understand, [25:03.780 --> 25:04.920] if we don't have guidance, [25:04.920 --> 25:08.820] we can help them understand how to do and build it securely. [25:11.120 --> 25:13.860] So, ultimately, the goal of the pipeline is [25:13.860 --> 25:16.040] you start with the design review, [25:16.040 --> 25:17.820] you have your pen test, [25:17.820 --> 25:19.340] you've also identified that [25:20.020 --> 25:23.980] maybe I need some audit logs for certain high-risk activities. [25:23.980 --> 25:25.880] I need some detective controls. [25:25.880 --> 25:27.560] You combine it all together, [25:27.560 --> 25:30.120] ultimately you're driving down the residual risk. [25:30.120 --> 25:31.820] The risk is never going to go away, [25:31.820 --> 25:33.620] but your residual risk is much lower [25:33.620 --> 25:36.320] than the actual risk that could have been in place. [25:36.520 --> 25:39.260] And that also helps with prioritizing remediation, [25:39.260 --> 25:41.460] because I got a thousand things to do, [25:41.460 --> 25:44.320] why should I do this thing that you're asking me to do, right? [25:44.320 --> 25:50.940] So, it really helps to be precise with prioritizing remediations. [25:51.580 --> 25:55.520] And then, Larkins, you were talking about calibrating reviews. [25:55.580 --> 25:59.320] How can we calibrate this particular review? [25:59.320 --> 26:00.960] Yes, so now when we look at [26:00.960 --> 26:03.520] what were all the different requirements, [26:03.520 --> 26:06.400] and then we understood there were some gaps in our knowledge bases. [26:06.400 --> 26:08.400] So, now this is a good opportunity for us [26:08.400 --> 26:12.280] to go ahead and build some kind of knowledge base. [26:12.280 --> 26:14.120] Think about the sandbox. [26:14.120 --> 26:15.580] Sandbox implementation was missing. [26:15.580 --> 26:18.480] So, now we have a sandbox environment, [26:18.480 --> 26:20.900] which we need to publicize, [26:20.900 --> 26:23.400] which we need to tell our different engineers [26:23.400 --> 26:25.620] that, hey, we have this already in place, [26:25.620 --> 26:28.980] and we should be using and suggesting moving forward. [26:29.140 --> 26:31.020] Then, fine-tuned rules. [26:31.020 --> 26:33.360] As part of these, we also came to know [26:33.360 --> 26:36.140] that there was some insecure implementation of code [26:36.140 --> 26:37.920] while doing secure code reviews, [26:37.920 --> 26:39.860] which were not caught previously. [26:39.860 --> 26:42.380] But now we have opportunities to expand our rule set [26:42.380 --> 26:43.960] and develop new rules. [26:44.720 --> 26:46.660] Write new monitoring test cases. [26:46.660 --> 26:49.420] We all know that there were so many different attack vectors. [26:49.420 --> 26:51.600] One of the attack vectors is SSRF. [26:51.600 --> 26:53.900] Now we can write different alerting rules. [26:53.900 --> 26:56.440] We can write different rules for malicious behavior [26:56.440 --> 26:57.660] as part of it. [26:57.660 --> 26:59.740] And then extend our dynamic testing. [26:59.800 --> 27:01.460] Some of the test cases were missing. [27:01.460 --> 27:04.680] Like, some of the test cases which should have been in place, [27:04.680 --> 27:05.320] they were missing, [27:05.320 --> 27:08.040] and we will have an opportunity to expand on them. [27:08.500 --> 27:12.300] But now, as we talked about our security champions program, [27:12.300 --> 27:15.900] when our champions look at different security requirements, [27:15.900 --> 27:18.640] they look at the checklist sometimes. [27:18.640 --> 27:21.140] Not everything can be as part of a checklist, [27:21.140 --> 27:23.740] but if they can look at some of the insecure patterns, [27:23.740 --> 27:26.560] they can understand this is critical service. [27:26.560 --> 27:30.280] This is something that needs careful attention of our security teams, [27:30.280 --> 27:31.520] and they can highlight us, [27:31.520 --> 27:33.500] like, hey, these are anti-patterns in our system, [27:33.500 --> 27:37.080] and can you help us design some secure mechanisms? [27:38.800 --> 27:41.380] So as we saw, calibration is super important [27:41.380 --> 27:44.220] when there is so many moving parts in here. [27:44.220 --> 27:46.360] Also, how do you measure progress with so much [27:47.140 --> 27:48.780] dynamic pipelines in place, [27:48.780 --> 27:50.980] so much parallel activities happening? [27:51.020 --> 27:53.300] How many bugs are you shipping pre-GA? [27:53.300 --> 27:55.180] How many vulnerabilities were covered [27:55.180 --> 27:57.960] as part of the design review itself? [27:58.080 --> 27:59.660] And also retrospectives, [27:59.660 --> 28:03.820] really quantitatively, qualitatively doing retrospectives, [28:03.820 --> 28:05.920] bringing everyone in the room together to see, [28:05.920 --> 28:07.580] like, did we do a good job here? [28:07.580 --> 28:09.500] And most importantly, [28:09.500 --> 28:12.740] did getting started early on help your pen test? [28:12.740 --> 28:15.940] That is probably the most... pen tests are expensive. [28:15.940 --> 28:17.660] If you don't scope them right, [28:17.660 --> 28:21.560] you're not really going to cover the real high-risk areas. [28:21.560 --> 28:23.840] So did it help your pen test as well? [28:25.240 --> 28:27.560] There was a lot that we covered, [28:27.560 --> 28:30.300] and now let's summarize towards the end. [28:30.300 --> 28:31.540] Key takeaways. [28:31.800 --> 28:36.080] First and foremost, decentralize your security functions. [28:36.700 --> 28:38.420] Decentralize them in a way where [28:38.420 --> 28:40.720] the key folks really know [28:40.720 --> 28:42.440] what needs to be done. [28:42.440 --> 28:44.520] Set your expectations right. [28:44.600 --> 28:47.360] Build as much security context as possible. [28:47.360 --> 28:48.580] That's your intake. [28:48.580 --> 28:52.080] Design your intake very crisply. [28:52.400 --> 28:56.100] Leverage tools, processes and people effectively. [28:56.100 --> 28:58.680] Go back and see if something's not working right. [28:58.680 --> 29:00.700] Go back and see, is it a tooling problem? [29:00.700 --> 29:01.880] Is it a process problem? [29:01.880 --> 29:03.700] Or is it a people problem? [29:03.740 --> 29:06.540] You can effectively debug from there. [29:06.540 --> 29:09.220] And most importantly, none of this happens in a day. [29:09.220 --> 29:10.740] This is very iterative. [29:10.740 --> 29:12.660] Take an iterative approach and be patient [29:12.660 --> 29:14.440] and keep building on it. [29:16.040 --> 29:18.140] So what is the endgame? [29:18.700 --> 29:21.940] Earlier our engineers come to us [29:22.440 --> 29:23.920] with what they have built [29:23.920 --> 29:26.120] and ask, hey, is this secure? [29:26.200 --> 29:27.840] And then we do a bunch of work [29:27.840 --> 29:29.680] and then let them know, hey, [29:29.680 --> 29:31.700] assure them that this is secure. [29:31.760 --> 29:33.720] But that's not what we want to do. [29:33.720 --> 29:35.760] We want to be in a state [29:35.760 --> 29:38.040] where our software developers come to us [29:38.040 --> 29:40.320] and tell us, these were the requirements [29:40.320 --> 29:41.640] which were promised. [29:41.640 --> 29:44.160] These were the requirements which we agreed upon. [29:44.300 --> 29:45.820] And now we have developed [29:45.820 --> 29:48.700] and we are ready to ship secure software. [29:50.180 --> 29:52.200] That's the endgame we are aiming for. [29:52.200 --> 29:53.160] That's it, folks. [29:53.160 --> 29:55.100] I hope we covered a bunch of things [29:55.100 --> 29:56.460] of how we can do this [29:56.460 --> 29:58.280] in a pipelined approach. [29:58.280 --> 30:00.460] Time for some questions, if you have any.