start	end	text
8750	12270	Welcome to the talk and the title for our talk today is
12270	16170	Threat Modeling Based Application Security Pipeline.
17930	20730	A legal disclaimer before we get started.
20730	23650	All opinions in this talk belong to the speakers
23650	26410	and do not represent that of the organization
26410	29090	or the community itself.
31820	33940	So, let's get started.
33940	35540	A little bit about us.
35540	37200	I'm Nilad Demelo.
37200	39760	I'm a security engineer at Datadog.
39760	42340	I work on the security design and guidance team
42340	47040	that works on engineering new products securely.
47140	49820	Previously, I worked at Intel and McAfee
49820	52920	and I'm very passionate about writing.
52920	56860	And I mentor grad school students at San Jose State.
56860	58380	Larkins, over to you.
58380	60380	Hey folks, I'm Larkins.
60380	62460	I'm product security engineer at Plaid.
62460	65140	Previously, I was application security engineer at AWS
65760	67660	and I worked at Intel as well.
67660	70580	I worked on software engineer technologies at Intel
70580	73140	and then transitioned to security researcher.
73140	74760	I'm an outdoor enthusiast.
74760	77440	I love camping, hiking, and I have a golden retriever
77440	80400	who goes along with me wherever I go.
80680	82220	Pretty, pretty cool.
82220	85860	So, as two AppSec professionals
86180	89540	who work in a fast-paced engineering-heavy organization
89540	92800	where security needs to be comprehensive,
92800	94200	it needs to be effective.
94200	95740	We trade a lot of nodes.
95740	98220	And we thought we should first lay the foundation
98220	102960	for what a fast-paced engineering-heavy organization looks like.
102960	105520	What are the traits of such organizations?
105860	108020	So, first and foremost,
108020	110840	these organizations ship very fast
110840	113200	and they ship frequently.
113420	116020	Just the volume is insane.
116480	119140	And new services and prototypes are being spawned,
119140	120540	like anything.
121020	124740	Inherently cloud-native, that's the biggest trait there.
124740	128640	And then the ratio of engineering to security engineering
128640	130320	is disproportionate.
130320	131520	When you look at security,
131520	134120	when you look at InfoSec, privacy, risk,
134120	135700	these are fairly lean teams
135700	138220	as compared to the engineering teams.
138620	141460	So, that brings us to the question,
141460	144080	what does security do in such places?
144180	148700	First and foremost, security places calculated bets.
148700	150320	It places calculated bets
150320	153480	where the impact, the return on investment,
153480	155880	and the value is the highest.
155960	157320	That being said,
157320	159600	what are we going to cover in our talk today?
160080	161800	Since the title of our talk is
161800	165500	Threat Modeling-Based Application Security Pipeline,
165500	167380	we are first going to get a background
167380	170160	on application security reviews.
170440	174360	Once we cover what these application security reviews are,
174360	177360	we are going to get into secure SDLC.
177360	180480	We all know what a software development lifecycle is.
180480	182400	So, when we integrate security events
182400	184380	or security activities in there,
184380	187140	what does a secure SDLC look like?
187540	190420	Next, the most favorite part here is
190420	193620	in order to make this comprehensive and effective,
193620	196020	the AppSec trio of success.
196020	198100	That's what we'll focus on.
198200	200340	Then, we'll go into the AppSec pipeline
200340	203080	and we'll take an example after that
203080	204700	for illustration purposes
204700	207380	to see what that looks like.
207480	210200	And finally, there is no good end to a talk
210200	213300	without discussing how we measure progress.
213300	216660	So, that's a bird's eye view of what we are going to cover today.
219060	220340	So, at a high level,
220340	223320	what are application security reviews or assessment?
223740	226640	So, it all starts with secure design reviews.
226860	229800	Not all organizations will be doing all of these activities
229800	232480	or they will be doing a subset of these activities.
232760	234320	So, what are secure design reviews?
234320	235720	In secure design reviews,
235720	237500	we look at a product requirement
237500	240660	and then come up with security requirements
240660	244320	based on the security controls we think will be most beneficial.
244440	246580	Once we have that nailed down,
246580	248260	we look at threat modeling.
248260	249720	Threat modeling is a holistic exercise
250220	252640	where we understand, we work and collaborate
252640	253900	with the engineering teams
253900	256760	to figure out what can go wrong with a system.
256760	258940	How can attackers or bad users
258940	262540	can abuse a system and then create havoc, right?
262540	264860	So then, once we have that defined,
264860	267700	we start looking into the implementation guidance.
267700	270420	And this is where we collaborate closely with developers.
270580	272480	Like, we have a bunch of requirements in place,
272480	275320	but they don't know how to action on them.
275400	277980	And then, for the implementation guidance,
277980	280500	what we look at, like, what are some safe primitives?
280500	281820	What are some frameworks?
282000	284920	What are some crypto implementations which can go wrong
284920	286840	and how we can do better?
287200	289520	We also look at, like, what are some supply chain issues
289520	291300	which can come along with those?
291600	292880	And then we start looking at,
292880	295320	once we have that implementation guidance in place,
295320	297680	and then developers come to us,
297680	299680	that, hey, this was the set of requirements
299680	302640	which we agreed upon, and we have implemented them.
302820	304680	Can we get a code review?
304840	308240	So, here we utilize SAS tooling,
308440	311620	a great way of us leveraging and exercising
311620	313000	on, like, what we have,
313620	316840	the implementation guidance that is supposed to be put in place,
316840	320440	but not all can be caught as part of, like, a SAS tooling.
320440	322380	And at that point, we need to do some form
322380	324080	of manual code reviews.
324420	327420	And at the end, we have some form of dynamic testing.
327420	329180	There can be API security testing,
329180	330640	there can be first testing,
330640	333940	and then it can be IAST, the tooling we have.
334140	336640	But there is also another aspect to it.
336640	338480	Dynamic security testing can be achieved
338480	340580	with penetration testings as well.
340580	343080	Not all will be doing the penetration testing,
343080	345780	but, like, we would like to emphasize our efforts
345780	349520	where we think these will be critical aspects of our systems.
350780	354840	So, why invest in building culture of application security reviews?
354840	357160	So, as part of security design reviews,
357160	359060	we closely work with our engineers
359060	363240	to understand, like, what are some of the implications.
363240	365960	So, like, proactively, we work to understand
365960	368860	what are the requirements from the security point of view
368860	372860	and how we can address these or fix these design issues
372860	374540	right from the start.
374540	377660	We know, like, fixing design issues can be a lot more complicated
377660	380060	than fixing just code issues.
382700	384500	So, tools are great.
384500	387140	Like, they help us scale in so many different ways.
387140	388480	But we also know sometimes
388480	392600	tools create a lot of security problems for security teams.
392700	395560	And, like, how can we leverage tools in this manner
395560	400800	without having issues with our development teams?
400800	402620	And then, we also need to think
402620	405160	that design issues and the architecture issues
405160	408200	cannot be found with tools we use.
410520	412540	This is my personal favorite.
412540	413520	Like, collaboration, right?
413520	416580	Like, when we work with our developers and our engineers
416580	418140	right from the get-go,
418140	420200	they know that we are on their side.
420200	423380	They know that we are working on a shared common goal
423380	426220	to build a system securely.
427080	429360	And now, as part of all this exercise
429360	431520	which we are going and collaboration
431520	434140	which we are doing with our developers,
434140	436680	we now know what are some of the critical systems.
436680	438360	And based on that, we can emphasize
438360	440880	like, efforts on some...
440880	442860	pinpointing some of the critical systems
442860	446820	and then have close eyes on them.
447240	449160	So, now Nilet will be talking about
449160	450340	and walking us through, like,
450340	451620	what is software development lifecycle
451980	454820	and how secure development lifecycle fits in.
457020	459680	So, regardless of the paradigm that you follow
459680	462260	in your software development lifecycle,
462260	466140	be it waterfall, agile, iterative, spiral, whatever,
466140	469180	we can agree that they all come down to these blocks.
469180	470360	There is requirement.
470360	471240	There is design.
471240	472580	There is code.
472580	473400	There is test.
473400	474820	And there is release.
475120	478800	Now, how do we inject security in these phases?
479000	481430	At the top, what you are saying is, again,
481960	483840	when a new service or a new feature
483840	486580	or a new product is getting started, right?
487140	489440	When we talk about design
489440	491720	or requirements phase,
491720	493900	that's, no, I'm going to go back.
493900	496460	When we talk about the requirements phase,
496460	497880	there is a bunch of exploration
497880	500000	and there's a bunch of folks involved in it,
500000	503700	product management, engineering, security.
503760	505920	That's the time when we should be talking about
505920	507780	the security requirements.
508000	510520	During planning, that's when we'll be talking about
510520	514020	how do we want to allocate the security resources for this.
514820	518880	When it's time to do an RFC or a design doc,
518880	523020	that's when it's appropriate to have an architecture review.
523020	524780	Also, threat modeling.
524780	525880	What can go wrong?
525880	527600	What can we do about it?
528700	530640	Also, how are we going to test
530640	532460	what we are saying can go wrong
532460	534060	and what we are going to do about it?
534060	536620	The security test plan is also going to be part
536620	539080	of the design document itself.
539620	541260	There is implementation,
541260	543760	after which we can add secure code review
543760	546500	and security testing as well.
547080	549420	Optionally, wherever it's critical,
549420	551820	you include your external pen test
551820	555200	or even some form of internal pen tests as well.
555600	557720	That's the flow for when a new service
557720	559820	or a new product is being spawned.
559820	561620	You keep adding on top of it.
561620	562920	Towards the bottom,
562920	565620	you start now doing feature-based assessments.
565620	567280	Every time you add something new,
567280	570020	there is a chance that you are adding more risks as well.
570020	572900	So, you want to also add some detective controls in place
572900	574380	to maybe identify
574380	577980	what are some anomalies or behavioral anti-patterns
577980	580580	that you are seeing with respect to your services.
580580	582180	So, that's the time when you also inject
582180	583400	some security monitoring
583400	586780	and incident response-related activities as well.
586780	590600	But as you can see, that's a lot.
590700	593200	And the call-out here is,
593200	598220	it is challenging to adopt and execute on it all.
598420	599720	And really what happens
599720	603340	when all of this secure SDLC activities,
603340	604700	the threat modeling,
604700	606520	or your dynamic testing,
606520	607740	or your code reviews,
607740	610340	all of that is happening in isolation.
610400	612740	There is engineering is doing something,
612740	615160	security teams that are focusing on different aspects
615160	616700	are doing something.
617040	620800	Security best practices don't get followed in the ideal way.
620800	624520	That introduces security bugs and vulnerabilities.
624640	626640	Dumpster fire keeps amplifying.
627800	629260	Mounts tech debt.
629260	632360	And there is inconsistent outcomes, really.
632360	635060	And eventually leading into
635060	638200	internal security events and breaches.
638280	640940	And finally, the doom day scenario,
640940	642160	which nobody really wants.
642160	645760	Loss of reputation and precious customer trust.
645760	648340	At the end, customer trust is everything.
649040	650340	We can sit there and say,
650340	652360	yeah, this is fine.
653340	656100	Every security professional's mood.
656100	659320	But no, we can do something about it, right?
659320	663680	And that's where the AppSec trio of success really comes into play.
663680	667100	You know, the secret formula there to make this scale well
667100	668580	and in a successful manner
668580	672180	is to have all three things that we're going to talk about.
672240	674060	We start with tools.
674340	675940	These are essential.
675940	679020	We need them to automate our security activities,
679020	680680	to do code analysis for us,
680680	684520	to tell us what are the security vulnerabilities that are in place.
684980	686140	Important.
686380	688800	But then on top of that, there is processes.
688800	691880	How do you keep your security best practices in place?
691880	693220	When do you do them?
693220	694740	Who do you involve?
695000	698560	You take tools, you layer processes on top of it.
698740	700580	But none of this is going to be successful
700580	704640	if you don't have the most important aspect here,
704640	705720	the people.
705920	707380	Your different folks in security
707380	710020	who have different skill sets and domain expertise
710020	713320	and your development teams, you know,
713320	717060	who have real good understanding of why this is important.
717060	720200	Why do I need to do a certain thing from a security standpoint?
720340	721740	Combine it all together.
721740	724060	That's your AppSec trio of success.
724060	726200	So Neelit, can you talk a little bit about
726200	729160	who are people and who are involved in this?
729520	731180	That's a good question.
731760	733460	Let's start with the developers.
733460	735160	What's in it for them?
735500	738220	Well, they need clear information about
738220	740220	what is it that I need to implement
740220	744460	and how do I test the expected behaviors?
745300	749660	The product owner or the business decision maker.
749660	750900	They're going to be like,
750900	753140	okay, you're telling me there is a risk.
753140	756500	What's the necessary action I need to take for that risk?
756520	759220	And the third, the security engineer
759220	761280	who's really concerned about
761280	765260	what is the security posture of this overall application
765260	768480	and is this new feature or this new service
768480	771620	introducing some sort of vulnerabilities or risks
771620	773460	that I need to be aware of?
773460	776960	Also, does it satisfy the compliance requirements?
778220	782580	So now let's talk about the application security pipeline.
784260	787680	So if now we look at the application security pipeline
787680	792060	in a very vanilla way, in a very serialized way,
792060	795040	it's a security design review
795040	797400	that you can do at the start,
797400	800200	exploration, planning, design phase.
800200	802640	Then you have your security code review
802640	807860	which is essentially doing your tooling for your code analysis
807860	809380	as well as your manual code review
809380	811620	for things that your tool really cannot catch
811620	813760	and your dynamic testing.
813760	818220	But keep in mind that this serial activity is not going to scale
818220	820740	when you really, really, really, really have
820740	823660	thousands of services, microservices
823660	825660	that connect to each other here and there.
825660	828740	You have thousands of infrastructure components.
829100	830940	Did I tell you about the commandment here
830940	834940	when you work in a high-speed environment?
834940	836500	Thou shall not block.
836500	839820	You do anything for security, but you will not block me.
840000	842240	So how do you do that then?
844830	848090	So today we are going to focus on security design review
848090	850070	and we are going to talk about
850070	852290	how we can implement different measures
852290	854190	as part of a security design review
854190	856970	and how we can scale our review processes.
857090	859630	And to reiterate, fixing a design issue
859630	862370	is a lot more complicated than fixing a code issue.
864970	866670	So now let's take a look.
866670	868790	So this is the vanilla pipeline.
868790	870310	Like a security design review
870310	873610	followed by security code review and dynamic testing.
873690	875510	So in a security design review,
875510	877070	as a security engineer,
877070	880410	when we start looking at our reviews,
880410	882250	don't do it in isolation.
882770	883970	There are different...
883970	886830	On the left, what we see is just a pipeline
887150	889650	and in the middle, these are parallel activities
889650	891290	which need to happen.
891290	895310	We have experts which are focused on privacy aspects.
895310	898190	We have experts who are focused for risk.
898190	901970	We have security operations and supply chain as well.
901970	904450	So when you are doing reviews, talk to them.
904450	906570	Talk to them and understand different implications
906570	908550	of what we are introducing.
908650	911830	We are having different design aspects
911830	913830	from a privacy point of view.
913830	914790	Data handling.
914790	917510	So they are the experts who can help us understand.
917510	919730	So when we have that understanding,
919730	922750	we come up with security and privacy requirements.
923350	925170	As we are doing this process,
925170	927490	we are collaborating with the engineers,
927490	929810	we come up with threat model as well.
929890	931090	Based on the threat model
931090	933610	and based on the mitigations we have in place,
933610	935850	we have implementation guidance.
935870	938190	And to have implementation guidance,
938190	938950	what do we need?
938950	940530	We need some kind of a test plan.
940530	943170	We need some kind of security findings and events
943170	946970	which will be coming out of security code review pipeline as well.
946970	949870	So let's focus on security design review
949870	953350	where we will be doing RFC's fake review.
953350	955870	Here we will be engaging with our different teams
955870	958210	and come up with the security requirements.
958530	960290	We have to make sure these align
960290	963370	with what our product team is developing.
963370	964970	We need to make sure that this is not
964970	968550	actually making these features less attractive
968550	971750	to the customers they are providing.
973250	974810	Nillet will be talking now
974810	977150	about security design review process.
977150	978570	She will be talking about
978570	980930	how we have to design the intake process
980930	984630	and how we can have different phases altogether.
985030	986470	So as you saw in the pipeline
986470	988530	where there was the security design review,
988530	990690	that is the injection point for even
990690	992890	bringing in your experts who do
992890	996730	supply chain or privacy or risk,
996730	999670	everything that you can inject in there.
999670	1002850	The starting point is a security design review.
1002850	1004610	So when should you be doing it?
1004610	1007550	You can do it whenever you are launching a new service
1007550	1012270	or anytime there is a major update to an existing service.
1012270	1015910	Any service that has a security sensitive context,
1015910	1019390	you need to have a security design review as well.
1019390	1023170	And periodical evaluation of your services.
1023170	1024810	So this is part of the process.
1024810	1027270	At an organization level, we define,
1027270	1028750	even at Datadog, we define
1028750	1030570	when should you have a design review?
1030570	1032650	Because folks need to have a clear understanding
1032650	1034770	of the expectations here.
1037600	1039700	So security review calibration.
1039700	1041920	So now we saw there are different processes
1041920	1043880	which are in place.
1043880	1045540	I see one of my engineers,
1045540	1047540	past engineer, Nick.
1048380	1049880	I know you.
1049920	1053080	So security review calibration,
1053900	1056700	which was a very heavily focused process
1056700	1059820	in AWS, a US successful process
1059820	1062040	because we work on so many different services
1062040	1064680	and there are different risks coming out,
1064680	1066080	there are different guidance coming out
1066080	1068000	and we need a centralized place
1068000	1071180	where engineers who are working on different services
1071180	1073100	can look at different insecure patterns
1073100	1075320	and they can develop a shared context
1075320	1078180	on how we are doing and processing these services.
1078280	1081120	Some of the activities as part of that exercise
1081120	1083740	were about how do we assign different risks?
1083740	1086020	How do we assign different severities?
1086020	1087680	Not all severities will be the same
1087680	1091160	and having that context helps us to scale differently.
1091280	1093540	So why do we need security review calibration?
1093540	1095540	We need it to be consistent.
1095540	1096880	Our process needs to be consistent
1096880	1099480	in how we find different vulnerabilities,
1099480	1101000	how we assign different severities
1101000	1103480	and if we have some gaps,
1103480	1105120	what can we do about it?
1105120	1106560	We need to have a knowledge base.
1106560	1108100	We need to expand on it.
1108280	1110440	By chance, if there was no knowledge base,
1110440	1113340	if there were no processes in place,
1113340	1115900	we have good opportunities to set up new processes.
1115900	1119080	We have good opportunities to innovate.
1121920	1124720	So now I will dive a little into partnership
1124720	1127560	because if you want to set a good pipeline,
1127560	1131400	you need to have some foundational elements in place.
1131400	1134200	You need to try and test and evolve accordingly.
1134200	1137140	So you can pick some of your products or services
1137140	1138320	that are really critical
1138680	1140620	and aim for that to be your partner.
1140620	1142260	So where your security engineer is partnering
1142260	1144960	with that organization or that product
1144960	1146940	and that's when, say,
1146940	1150000	you define how the security reviews get done,
1150000	1154540	how you bring in the different domain experts in as well,
1154540	1157020	how you streamline the secure code reviews
1157020	1159660	for that particular organization,
1159660	1162400	as well as how the pen test scoping is done
1162400	1164680	for that particular organization.
1164680	1167540	So you can try to do it in different contexts
1167540	1170260	but if you pick a few feature services
1170260	1172780	or products that you can partner with,
1172780	1174940	that is going to be the best bang for buck.
1174940	1178420	Because then you can really measure your progress properly.
1178940	1181440	So Nilit, we have this partnership program,
1181440	1183880	then what is the role of security champions?
1183880	1185140	That's a good question.
1185140	1187620	So with partnership, it's a security engineer
1187620	1190060	going to the product teams.
1190060	1192640	But you also need to scale the guidance, right?
1192640	1194620	You need to scale what needs to be done.
1194620	1195780	You need eyes and ears
1195780	1197820	where the real action is.
1197820	1201060	So security champions are folks who are in the product teams.
1201060	1204440	These are folks who are extremely security-minded.
1204440	1207660	They have the right direction, the right support,
1207660	1211380	as well as they know what needs to be done.
1211380	1214780	So training few folks within the organization
1215360	1218740	to take care of security-sensitive tasks
1218740	1221720	is where the security champions really shine in.
1223040	1225960	Now let's take an illustration of pipeline.
1225960	1228540	So before going in there, we covered a lot about
1229440	1231620	what are the different activities.
1231620	1235940	Security design review, code reviews, dynamic testing.
1235980	1239840	Let's take an example to see how we can do that in practice.
1240740	1245000	Now, you have your intake process as a security team
1245000	1248240	and the development team comes in through that intake process
1248240	1251260	and saying, hey, we are doing this exciting feature.
1251260	1252880	It's a code playground.
1253580	1257340	We all are pretty familiar with what a code playground is, right?
1257340	1261680	So, they come in saying they want to do a code playground.
1262320	1265780	We ask them to go through a security review intake.
1266260	1270240	Then that security review intake should be hooked up
1270240	1273880	to a good project tracking software.
1273880	1275780	Now what does the intake involve?
1276000	1278860	If we have heard talks or we have seen different tools,
1278860	1280740	context is super important, right?
1280740	1283060	We need to collect as much information or context
1283060	1284680	of what is being built.
1284680	1288080	Otherwise, anything that you say is not going to be actionable.
1288140	1291360	So, you collect different details like what data stores you have,
1291360	1292910	what's the internet exposure,
1293200	1296000	what kind of untrusted inputs are you handling,
1296000	1300360	what are the service interfaces in terms of how is your server looking like,
1300360	1302460	what's your client looking like,
1302460	1305760	what is your authentication and access control model,
1305760	1307580	what's your cryptographic usage,
1307580	1310300	do you have any customer data that you are handling,
1310300	1312060	tell me about your APIs.
1312060	1315200	You collect all of that information as part of the intake
1315200	1318520	so that you know what is being done.
1318660	1320820	Based on that review intake,
1320820	1322800	it tells us that hey,
1322800	1325660	this feature that allows the customer to bring in
1325660	1328540	or allows the user to bring in arbitrary code,
1328540	1330660	it's a high risk critical feature.
1330660	1332860	So, it needs a security design review.
1332860	1334320	It needs an assessment.
1334800	1337040	So, the security team goes like,
1337040	1338520	this is a critical feature,
1338520	1341580	let's work together to do a security assessment.
1342320	1344480	So, now they have a lot of questions.
1344860	1347000	We talked about different requirements,
1347000	1349200	we talked about the criticality of the service,
1349200	1350620	and now they are confused like,
1350620	1352580	hey, how are we going to do this,
1352580	1353900	and how are we going to ship?
1353900	1356860	So, one of the things we do is collaborate with them,
1356860	1358660	not only just give the requirements,
1358660	1360880	but exactly what they need to do.
1360880	1364480	There are different activities that can go wrong with the code playground.
1364600	1366600	And we first need to understand,
1367340	1368980	what can we do about it?
1368980	1371820	The first thing that comes to our mind is sandbox.
1371820	1374020	Like, we can give them like,
1374020	1376060	okay, create a sandbox environment.
1376060	1379160	But what does sandbox environment mean to them?
1379280	1380540	I have seen in the past,
1380640	1382820	a sandbox environment means to them is like,
1382820	1384960	just scanning what customers are uploading
1384960	1386900	with the virus scanning software,
1386900	1388340	and just call it done.
1388340	1391080	That is not a sandbox, what it's supposed to be.
1391080	1393460	A sandbox has to be carefully designed,
1393460	1395540	that even in case of a compromise,
1395540	1397720	we are limiting the blast radius.
1397720	1401820	So, this we have to be collaborative and prescriptive
1401820	1404740	in how we want to see this environment to play out.
1406040	1407860	So, if you go back a slide,
1407860	1410920	you can see that there are so many different aspects.
1410920	1414260	You know, if you were going to do a pen test later in the game,
1414260	1416860	you have still established a very good scope here.
1416860	1419020	Look at the different high risk areas
1419020	1422420	that we are highlighting right at the design phase.
1422420	1424160	Yeah, that's an interesting point.
1424160	1426060	Because all this we are doing,
1426060	1429000	and by the end when the feature is going to be shipped,
1429000	1431060	we will be looking at different pen tests.
1431060	1433460	And to have a good pen test scope,
1433460	1436540	we need to define these as part of our requirement gathering
1436540	1437780	and threat modeling.
1437780	1440440	So, our pen test team will be very happy
1440440	1443180	to see the scope is already defined for them,
1443180	1445680	and they know where exactly to focus on.
1449740	1452080	So, the implementation is done.
1453140	1456900	When you say that here are my security requirements,
1456900	1458400	you are going to check for, like,
1458400	1461480	they are implementing what was promised, right?
1461800	1462720	Yes.
1462800	1467100	So, then you need to call for an implementation review as well.
1469600	1472360	So, what do we do in an implementation review?
1472400	1474380	So, in implementation review,
1474380	1478460	we will first look at, like, what were the security requirements,
1478460	1481860	and we will start evaluating different frameworks.
1481860	1484060	One of the frameworks can be, like, insecure.
1484060	1486360	Like, some of the libraries will be,
1486360	1490160	they will have secure usage and insecure usage as well.
1490160	1492000	We need to help developers understand
1492000	1495920	what will go wrong if we use insecure patterns,
1495920	1498380	because libraries, the documentation,
1498380	1500200	is difficult to understand sometimes,
1500200	1502180	and details are very hidden.
1502180	1503780	So, helping them understand,
1503780	1504920	if we don't have guidance,
1504920	1508820	we can help them understand how to do and build it securely.
1511120	1513860	So, ultimately, the goal of the pipeline is
1513860	1516040	you start with the design review,
1516040	1517820	you have your pen test,
1517820	1519340	you've also identified that
1520020	1523980	maybe I need some audit logs for certain high-risk activities.
1523980	1525880	I need some detective controls.
1525880	1527560	You combine it all together,
1527560	1530120	ultimately you're driving down the residual risk.
1530120	1531820	The risk is never going to go away,
1531820	1533620	but your residual risk is much lower
1533620	1536320	than the actual risk that could have been in place.
1536520	1539260	And that also helps with prioritizing remediation,
1539260	1541460	because I got a thousand things to do,
1541460	1544320	why should I do this thing that you're asking me to do, right?
1544320	1550940	So, it really helps to be precise with prioritizing remediations.
1551580	1555520	And then, Larkins, you were talking about calibrating reviews.
1555580	1559320	How can we calibrate this particular review?
1559320	1560960	Yes, so now when we look at
1560960	1563520	what were all the different requirements,
1563520	1566400	and then we understood there were some gaps in our knowledge bases.
1566400	1568400	So, now this is a good opportunity for us
1568400	1572280	to go ahead and build some kind of knowledge base.
1572280	1574120	Think about the sandbox.
1574120	1575580	Sandbox implementation was missing.
1575580	1578480	So, now we have a sandbox environment,
1578480	1580900	which we need to publicize,
1580900	1583400	which we need to tell our different engineers
1583400	1585620	that, hey, we have this already in place,
1585620	1588980	and we should be using and suggesting moving forward.
1589140	1591020	Then, fine-tuned rules.
1591020	1593360	As part of these, we also came to know
1593360	1596140	that there was some insecure implementation of code
1596140	1597920	while doing secure code reviews,
1597920	1599860	which were not caught previously.
1599860	1602380	But now we have opportunities to expand our rule set
1602380	1603960	and develop new rules.
1604720	1606660	Write new monitoring test cases.
1606660	1609420	We all know that there were so many different attack vectors.
1609420	1611600	One of the attack vectors is SSRF.
1611600	1613900	Now we can write different alerting rules.
1613900	1616440	We can write different rules for malicious behavior
1616440	1617660	as part of it.
1617660	1619740	And then extend our dynamic testing.
1619800	1621460	Some of the test cases were missing.
1621460	1624680	Like, some of the test cases which should have been in place,
1624680	1625320	they were missing,
1625320	1628040	and we will have an opportunity to expand on them.
1628500	1632300	But now, as we talked about our security champions program,
1632300	1635900	when our champions look at different security requirements,
1635900	1638640	they look at the checklist sometimes.
1638640	1641140	Not everything can be as part of a checklist,
1641140	1643740	but if they can look at some of the insecure patterns,
1643740	1646560	they can understand this is critical service.
1646560	1650280	This is something that needs careful attention of our security teams,
1650280	1651520	and they can highlight us,
1651520	1653500	like, hey, these are anti-patterns in our system,
1653500	1657080	and can you help us design some secure mechanisms?
1658800	1661380	So as we saw, calibration is super important
1661380	1664220	when there is so many moving parts in here.
1664220	1666360	Also, how do you measure progress with so much
1667140	1668780	dynamic pipelines in place,
1668780	1670980	so much parallel activities happening?
1671020	1673300	How many bugs are you shipping pre-GA?
1673300	1675180	How many vulnerabilities were covered
1675180	1677960	as part of the design review itself?
1678080	1679660	And also retrospectives,
1679660	1683820	really quantitatively, qualitatively doing retrospectives,
1683820	1685920	bringing everyone in the room together to see,
1685920	1687580	like, did we do a good job here?
1687580	1689500	And most importantly,
1689500	1692740	did getting started early on help your pen test?
1692740	1695940	That is probably the most... pen tests are expensive.
1695940	1697660	If you don't scope them right,
1697660	1701560	you're not really going to cover the real high-risk areas.
1701560	1703840	So did it help your pen test as well?
1705240	1707560	There was a lot that we covered,
1707560	1710300	and now let's summarize towards the end.
1710300	1711540	Key takeaways.
1711800	1716080	First and foremost, decentralize your security functions.
1716700	1718420	Decentralize them in a way where
1718420	1720720	the key folks really know
1720720	1722440	what needs to be done.
1722440	1724520	Set your expectations right.
1724600	1727360	Build as much security context as possible.
1727360	1728580	That's your intake.
1728580	1732080	Design your intake very crisply.
1732400	1736100	Leverage tools, processes and people effectively.
1736100	1738680	Go back and see if something's not working right.
1738680	1740700	Go back and see, is it a tooling problem?
1740700	1741880	Is it a process problem?
1741880	1743700	Or is it a people problem?
1743740	1746540	You can effectively debug from there.
1746540	1749220	And most importantly, none of this happens in a day.
1749220	1750740	This is very iterative.
1750740	1752660	Take an iterative approach and be patient
1752660	1754440	and keep building on it.
1756040	1758140	So what is the endgame?
1758700	1761940	Earlier our engineers come to us
1762440	1763920	with what they have built
1763920	1766120	and ask, hey, is this secure?
1766200	1767840	And then we do a bunch of work
1767840	1769680	and then let them know, hey,
1769680	1771700	assure them that this is secure.
1771760	1773720	But that's not what we want to do.
1773720	1775760	We want to be in a state
1775760	1778040	where our software developers come to us
1778040	1780320	and tell us, these were the requirements
1780320	1781640	which were promised.
1781640	1784160	These were the requirements which we agreed upon.
1784300	1785820	And now we have developed
1785820	1788700	and we are ready to ship secure software.
1790180	1792200	That's the endgame we are aiming for.
1792200	1793160	That's it, folks.
1793160	1795100	I hope we covered a bunch of things
1795100	1796460	of how we can do this
1796460	1798280	in a pipelined approach.
1798280	1800460	Time for some questions, if you have any.
