WEBVTT

00:08.750 --> 00:16.170
Welcome to the talk and the title for our talk today is Threat Modeling Based Application Security Pipeline.

00:17.930 --> 00:20.730
A legal disclaimer before we get started.

00:20.730 --> 00:29.090
All opinions in this talk belong to the speakers and do not represent that of the organization 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:47.040
I work on the security design and guidance team that works on engineering new products securely.

00:47.140 --> 00:52.920
Previously, I worked at Intel and McAfee 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:07.660
Previously, I was application security engineer at AWS and I worked at Intel as well.

01:07.660 --> 01:13.140
I worked on software engineer technologies at Intel and then transitioned to security researcher.

01:13.140 --> 01:14.760
I'm an outdoor enthusiast.

01:14.760 --> 01:20.400
I love camping, hiking, and I have a golden retriever who goes along with me wherever I go.

01:20.680 --> 01:22.220
Pretty, pretty cool.

01:22.220 --> 01:34.200
So, as two AppSec professionals who work in a fast-paced engineering-heavy organization where security needs to be comprehensive, it needs to be effective.

01:34.200 --> 01:35.740
We trade a lot of nodes.

01:35.740 --> 01:42.960
And we thought we should first lay the foundation 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:53.200
So, first and foremost, these organizations ship very fast and they ship frequently.

01:53.420 --> 01:56.020
Just the volume is insane.

01:56.480 --> 02:00.540
And new services and prototypes are being spawned, like anything.

02:01.020 --> 02:04.740
Inherently cloud-native, that's the biggest trait there.

02:04.740 --> 02:10.320
And then the ratio of engineering to security engineering is disproportionate.

02:10.320 --> 02:18.220
When you look at security, when you look at InfoSec, privacy, risk, these are fairly lean teams as compared to the engineering teams.

02:18.620 --> 02:24.080
So, that brings us to the question, what does security do in such places?

02:24.180 --> 02:28.700
First and foremost, security places calculated bets.

02:28.700 --> 02:35.880
It places calculated bets where the impact, the return on investment, and the value is the highest.

02:35.960 --> 02:39.600
That being said, what are we going to cover in our talk today?

02:40.080 --> 02:50.160
Since the title of our talk is Threat Modeling-Based Application Security Pipeline, we are first going to get a background on application security reviews.

02:50.440 --> 02:57.360
Once we cover what these application security reviews are, 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:07.140
So, when we integrate security events or security activities in there, what does a secure SDLC look like?

03:07.540 --> 03:16.020
Next, the most favorite part here is in order to make this comprehensive and effective, the AppSec trio of success.

03:16.020 --> 03:18.100
That's what we'll focus on.

03:18.200 --> 03:27.380
Then, we'll go into the AppSec pipeline and we'll take an example after that for illustration purposes to see what that looks like.

03:27.480 --> 03:33.300
And finally, there is no good end to a talk 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:43.320
So, at a high level, 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:52.480
Not all organizations will be doing all of these activities 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 --> 04:04.320
In secure design reviews, we look at a product requirement and then come up with security requirements based on the security controls we think will be most beneficial.

04:04.440 --> 04:08.260
Once we have that nailed down, we look at threat modeling.

04:08.260 --> 04:16.760
Threat modeling is a holistic exercise where we understand, we work and collaborate with the engineering teams to figure out what can go wrong with a system.

04:16.760 --> 04:22.540
How can attackers or bad users can abuse a system and then create havoc, right?

04:22.540 --> 04:27.700
So then, once we have that defined, 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:35.320
Like, we have a bunch of requirements in place, but they don't know how to action on them.

04:35.400 --> 04:40.500
And then, for the implementation guidance, what we look at, like, what are some safe primitives?

04:40.500 --> 04:41.820
What are some frameworks?

04:42.000 --> 04:46.840
What are some crypto implementations which can go wrong and how we can do better?

04:47.200 --> 04:51.300
We also look at, like, what are some supply chain issues which can come along with those?

04:51.600 --> 05:02.640
And then we start looking at, once we have that implementation guidance in place, and then developers come to us, that, hey, this was the set of requirements 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:20.440
So , here we utilize SAS tooling, a great way of us leveraging and exercising on, like, what we have, the implementation guidance that is supposed to be put in place, but not all can be caught as part of, like, a SAS tooling.

05:20.440 --> 05:24.080
And at that point, we need to do some form 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:33.940
There can be API security testing, there can be first testing, 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:40.580
Dynamic security testing can be achieved with penetration testings as well.

05:40.580 --> 05:49.520
Not all will be doing the penetration testing, but, like, we would like to emphasize our efforts 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 --> 06:03.240
So, as part of security design reviews, we closely work with our engineers to understand, like, what are some of the implications.

06:03.240 --> 06:14.540
So, like, proactively, we work to understand what are the requirements from the security point of view and how we can address these or fix these design issues right from the start.

06:14.540 --> 06:20.060
We know, like, fixing design issues can be a lot more complicated 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:32.600
But we also know sometimes tools create a lot of security problems for security teams.

06:32.700 --> 06:40.800
And, like, how can we leverage tools in this manner without having issues with our development teams?

06:40.800 --> 06:48.200
And then, we also need to think that design issues and the architecture issues 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 --> 07:00.200
Like, when we work with our developers and our engineers right from the get-go, they know that we are on their side.

07:00.200 --> 07:06.220
They know that we are working on a shared common goal to build a system securely.

07:07.080 --> 07:16.680
And now, as part of all this exercise which we are going and collaboration which we are doing with our developers, we now know what are some of the critical systems.

07:16.680 --> 07:20.880
And based on that, we can emphasize like, efforts on some...

07:20.880 --> 07:26.820
pinpointing some of the critical systems and then have close eyes on them.

07:27.240 --> 07:34.820
So, now Nilet will be talking about and walking us through, like, what is software development lifecycle and how secure development lifecycle fits in.

07:37.020 --> 07:49.180
So, regardless of the paradigm that you follow in your software development lifecycle, be it waterfall, agile, iterative, spiral, whatever, 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:06.580
At the top, what you are saying is, again, when a new service or a new feature or a new product is getting started, right?

08:07.140 --> 08:13.900
When we talk about design or requirements phase, that's, no, I'm going to go back.

08:13.900 --> 08:23.700
When we talk about the requirements phase, there is a bunch of exploration and there's a bunch of folks involved in it, product management, engineering, security.

08:23.760 --> 08:27.780
That's the time when we should be talking about the security requirements.

08:28.000 --> 08:34.020
During planning, that's when we'll be talking about how do we want to allocate the security resources for this.

08:34.820 --> 08:43.020
When it's time to do an RFC or a design doc, 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:54.060
Also, how are we going to test what we are saying can go wrong and what we are going to do about it?

08:54.060 --> 08:59.080
The security test plan is also going to be part of the design document itself.

08:59.620 --> 09:06.500
There is implementation, after which we can add secure code review and security testing as well.

09:07.080 --> 09:15.200
Optionally, wherever it's critical, you include your external pen test or even some form of internal pen tests as well.

09:15.600 --> 09:19.820
That's the flow for when a new service or a new product is being spawned.

09:19.820 --> 09:21.620
You keep adding on top of it.

09:21.620 --> 09:25.620
Towards the bottom, you start now doing feature-based assessments.

09:25.620 --> 09:30.020
Every time you add something new, there is a chance that you are adding more risks as well.

09:30.020 --> 09:40.580
So, you want to also add some detective controls in place to maybe identify what are some anomalies or behavioral anti-patterns that you are seeing with respect to your services.

09:40.580 --> 09:46.780
So, that's the time when you also inject some security monitoring 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:58.220
And the call-out here is, it is challenging to adopt and execute on it all.

09:58.420 --> 10:10.340
And really what happens when all of this secure SDLC activities, the threat modeling, or your dynamic testing, or your code reviews, all of that is happening in isolation.

10:10.400 --> 10:16.700
There is engineering is doing something, security teams that are focusing on different aspects 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:38.200
And eventually leading into internal security events and breaches.

10:38.280 --> 10:42.160
And finally, the doom day scenario, 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:52.360
We can sit there and say, 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:12.180
You know, the secret formula there to make this scale well and in a successful manner 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:24.520
We need them to automate our security activities, to do code analysis for us, 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:45.720
But none of this is going to be successful if you don't have the most important aspect here, the people.

11:45.920 --> 11:57.060
Your different folks in security who have different skill sets and domain expertise and your development teams, you know, 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:09.160
So Neelit, can you talk a little bit about 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:24.460
Well, they need clear information about what is it that I need to implement 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:33.140
They're going to be like, 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:53.460
And the third, the security engineer who's really concerned about what is the security posture of this overall application and is this new feature or this new service introducing some sort of vulnerabilities or risks 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:20.200
So if now we look at the application security pipeline in a very vanilla way, in a very serialized way, it's a security design review that you can do at the start, exploration, planning, design phase.

13:20.200 --> 13:33.760
Then you have your security code review which is essentially doing your tooling for your code analysis as well as your manual code review for things that your tool really cannot catch and your dynamic testing.

13:33.760 --> 13:45.660
But keep in mind that this serial activity is not going to scale when you really, really, really, really have thousands of services, microservices that connect to each other here and there.

13:45.660 --> 13:48.740
You have thousands of infrastructure components.

13:49.100 --> 13:54.940
Did I tell you about the commandment here 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:16.970
So today we are going to focus on security design review and we are going to talk about how we can implement different measures as part of a security design review and how we can scale our review processes.

14:17.090 --> 14:22.370
And to reiterate, fixing a design issue 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:33.610
Like a security design review followed by security code review and dynamic testing.

14:33.690 --> 14:42.250
So in a security design review, as a security engineer, when we start looking at our reviews, don't do it in isolation.

14:42.770 --> 14:43.970
There are different...

14:43.970 --> 14:51.290
On the left, what we see is just a pipeline and in the middle, these are parallel activities 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:08.550
Talk to them and understand different implications of what we are introducing.

15:08.650 --> 15:13.830
We are having different design aspects 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:22.750
So when we have that understanding, we come up with security and privacy requirements.

15:23.350 --> 15:29.810
As we are doing this process, we are collaborating with the engineers, we come up with threat model as well.

15:29.890 --> 15:35.850
Based on the threat model and based on the mitigations we have in place, we have implementation guidance.

15:35.870 --> 15:38.950
And to have implementation guidance, what do we need?

15:38.950 --> 15:40.530
We need some kind of a test plan.

15:40.530 --> 15:46.970
We need some kind of security findings and events which will be coming out of security code review pipeline as well.

15:46.970 --> 15:53.350
So let's focus on security design review where we will be doing RFC's fake review.

15:53.350 --> 15:58.210
Here we will be engaging with our different teams and come up with the security requirements.

15:58.530 --> 16:03.370
We have to make sure these align with what our product team is developing.

16:03.370 --> 16:11.750
We need to make sure that this is not actually making these features less attractive to the customers they are providing.

16:13.250 --> 16:17.150
Nillet will be talking now about security design review process.

16:17.150 --> 16:24.630
She will be talking about how we have to design the intake process and how we can have different phases altogether.

16:25.030 --> 16:39.670
So as you saw in the pipeline where there was the security design review, that is the injection point for even bringing in your experts who do supply chain or privacy or risk, 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:52.270
You can do it whenever you are launching a new service or anytime there is a major update to an existing service.

16:52.270 --> 16:59.390
Any service that has a security sensitive context, 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:10.570
At an organization level, we define, even at Datadog, we define when should you have a design review?

17:10.570 --> 17:14.770
Because folks need to have a clear understanding of the expectations here.

17:17.600 --> 17:19.700
So security review calibration.

17:19.700 --> 17:23.880
So now we saw there are different processes which are in place.

17:23.880 --> 17:27.540
I see one of my engineers, past engineer, Nick.

17:28.380 --> 17:29.880
I know you.

17:29.920 --> 17:58.180
So security review calibration, which was a very heavily focused process in AWS, a US successful process because we work on so many different services and there are different risks coming out, there are different guidance coming out and we need a centralized place where engineers who are working on different services can look at different insecure patterns and they can develop a shared context on how we are doing and processing these services.

17:58.280 --> 18:03.740
Some of the activities as part of that exercise were about how do we assign different risks?

18:03.740 --> 18:06.020
How do we assign different severities?

18:06.020 --> 18:11.160
Not all severities will be the same 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:25.120
Our process needs to be consistent in how we find different vulnerabilities, how we assign different severities and if we have some gaps, 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:35.900
By chance, if there was no knowledge base, if there were no processes in place, 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:51.400
So now I will dive a little into partnership because if you want to set a good pipeline, 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 --> 19:00.620
So you can pick some of your products or services that are really critical and aim for that to be your partner.

19:00.620 --> 19:19.660
So where your security engineer is partnering with that organization or that product and that's when, say, you define how the security reviews get done, how you bring in the different domain experts in as well, how you streamline the secure code reviews for that particular organization,

19:19.660 --> 19:24.680
as well as how the pen test scoping is done for that particular organization.

19:24.680 --> 19:34.940
So you can try to do it in different contexts but if you pick a few feature services or products that you can partner with, 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:43.880
So Nilit, we have this partnership program, then what is the role of security champions?

19:43.880 --> 19:45.140
That's a good question.

19:45.140 --> 19:50.060
So with partnership, it's a security engineer 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:57.820
You need eyes and ears 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:11.380
They have the right direction, the right support, as well as they know what needs to be done.

20:11.380 --> 20:21.720
So training few folks within the organization to take care of security-sensitive tasks 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:31.620
So before going in there, we covered a lot about 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:51.260
Now, you have your intake process as a security team and the development team comes in through that intake process 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:13.880
Then that security review intake should be hooked up to a good project tracking software.

21:13.880 --> 21:15.780
Now what does the intake involve?

21:16.000 --> 21:20.740
If we have heard talks or we have seen different tools, context is super important, right?

21:20.740 --> 21:24.680
We need to collect as much information or context 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:42.460
So, you collect different details like what data stores you have, what's the internet exposure, what kind of untrusted inputs are you handling, what are the service interfaces in terms of how is your server looking like, what's your client looking like,

21:42.460 --> 21:52.060
what is your authentication and access control model, what's your cryptographic usage, do you have any customer data that you are handling, tell me about your APIs.

21:52.060 --> 21:58.520
You collect all of that information as part of the intake so that you know what is being done.

21:58.660 --> 22:10.660
Based on that review intake, it tells us that hey, this feature that allows the customer to bring in or allows the user to bring in arbitrary code, 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:21.580
So, the security team goes like, this is a critical feature, 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:33.900
We talked about different requirements, we talked about the criticality of the service, and now they are confused like, hey, how are we going to do this, and how are we going to ship?

22:33.900 --> 22:40.880
So, one of the things we do is collaborate with them, not only just give the requirements, 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:48.980
And we first need to understand, 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:56.060
Like, we can give them like, okay, create a sandbox environment.

22:56.060 --> 22:59.160
But what does sandbox environment mean to them?

22:59.280 --> 23:08.340
I have seen in the past, a sandbox environment means to them is like, just scanning what customers are uploading with the virus scanning software, 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:17.720
A sandbox has to be carefully designed, that even in case of a compromise, we are limiting the blast radius.

23:17.720 --> 23:24.740
So, this we have to be collaborative and prescriptive in how we want to see this environment to play out.

23:26.040 --> 23:30.920
So, if you go back a slide, you can see that there are so many different aspects.

23:30.920 --> 23:36.860
You know, if you were going to do a pen test later in the game, you have still established a very good scope here.

23:36.860 --> 23:42.420
Look at the different high risk areas 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:51.060
Because all this we are doing, and by the end when the feature is going to be shipped, we will be looking at different pen tests.

23:51.060 --> 23:57.780
And to have a good pen test scope, we need to define these as part of our requirement gathering and threat modeling.

23:57.780 --> 24:05.680
So, our pen test team will be very happy to see the scope is already defined for them, and they know where exactly to focus on.

24:09.740 --> 24:12.080
So, the implementation is done.

24:13.140 --> 24:21.480
When you say that here are my security requirements, you are going to check for, like, 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:41.860
So, in implementation review, we will first look at, like, what were the security requirements, 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:50.160
Like, some of the libraries will be, they will have secure usage and insecure usage as well.

24:50.160 --> 25:02.180
We need to help developers understand what will go wrong if we use insecure patterns, because libraries, the documentation, is difficult to understand sometimes, and details are very hidden.

25:02.180 --> 25:08.820
So, helping them understand, if we don't have guidance, we can help them understand how to do and build it securely.

25:11.120 --> 25:23.980
So, ultimately, the goal of the pipeline is you start with the design review, you have your pen test, you've also identified that 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:30.120
You combine it all together, ultimately you're driving down the residual risk.

25:30.120 --> 25:36.320
The risk is never going to go away, but your residual risk is much lower than the actual risk that could have been in place.

25:36.520 --> 25:44.320
And that also helps with prioritizing remediation, because I got a thousand things to do, 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:06.400
Yes, so now when we look at what were all the different requirements, and then we understood there were some gaps in our knowledge bases.

26:06.400 --> 26:12.280
So, now this is a good opportunity for us 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:28.980
So, now we have a sandbox environment, which we need to publicize, which we need to tell our different engineers that, hey, we have this already in place, and we should be using and suggesting moving forward.

26:29.140 --> 26:31.020
Then, fine-tuned rules.

26:31.020 --> 26:39.860
As part of these, we also came to know that there was some insecure implementation of code while doing secure code reviews, which were not caught previously.

26:39.860 --> 26:43.960
But now we have opportunities to expand our rule set 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:57.660
We can write different rules for malicious behavior 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:08.040
Like, some of the test cases which should have been in place, they were missing, and we will have an opportunity to expand on them.

27:08.500 --> 27:18.640
But now, as we talked about our security champions program, when our champions look at different security requirements, they look at the checklist sometimes.

27:18.640 --> 27:26.560
Not everything can be as part of a checklist, but if they can look at some of the insecure patterns, they can understand this is critical service.

27:26.560 --> 27:37.080
This is something that needs careful attention of our security teams, and they can highlight us, like, hey, these are anti-patterns in our system, and can you help us design some secure mechanisms?

27:38.800 --> 27:44.220
So as we saw, calibration is super important when there is so many moving parts in here.

27:44.220 --> 27:50.980
Also, how do you measure progress with so much dynamic pipelines in place, so much parallel activities happening?

27:51.020 --> 27:53.300
How many bugs are you shipping pre-GA?

27:53.300 --> 27:57.960
How many vulnerabilities were covered as part of the design review itself?

27:58.080 --> 28:07.580
And also retrospectives, really quantitatively, qualitatively doing retrospectives, bringing everyone in the room together to see, like, did we do a good job here?

28:07.580 --> 28:12.740
And most importantly, 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:21.560
If you don't scope them right, 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:30.300
There was a lot that we covered, 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:42.440
Decentralize them in a way where the key folks really know 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:14.440
Take an iterative approach and be patient and keep building on it.

29:16.040 --> 29:18.140
So what is the endgame?

29:18.700 --> 29:26.120
Earlier our engineers come to us with what they have built and ask, hey, is this secure?

29:26.200 --> 29:31.700
And then we do a bunch of work and then let them know, hey, 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:41.640
We want to be in a state where our software developers come to us and tell us, these were the requirements which were promised.

29:41.640 --> 29:44.160
These were the requirements which we agreed upon.

29:44.300 --> 29:48.700
And now we have developed 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:58.280
I hope we covered a bunch of things of how we can do this in a pipelined approach.

29:58.280 --> 30:00.460
Time for some questions, if you have any.

