building security in - a tale of two stories - laksh raghavan

24
Building Security In – A Tale of Two Stories! Laksh Raghavan PayPal Inc. @laraghavan

Upload: seniorstoryteller

Post on 21-Feb-2017

169 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Building Security In - A Tale of Two Stories - Laksh Raghavan

Building Security In – A Tale of Two Stories!LakshRaghavanPayPalInc.@laraghavan

Page 2: Building Security In - A Tale of Two Stories - Laksh Raghavan

Introduction

2

• Thispresentationis:– AcasestudyonhowPayPal’sSecureProductLifecycle(SLPC)hadtoadapttoAgilewith

afocusonsecuritystories– Vendorneutral– Descriptive– Forlargeenterprisesgrapplingwithscale/processissues

• ThispresentationisNOT:– SilverBulletTM

– Salespitch– Prescriptive- ifyouimplementthesame,YMMVJ

Page 3: Building Security In - A Tale of Two Stories - Laksh Raghavan

PayPal’sAgileTransformation

3

• SomeinterestingstatsandfactsaboutourAgileTransformation:– BigBangapproachagainstprevailingwisdom– Wentfromprojectdriventoproductaligned– 400+scrumteamsacrosstheglobe– 500+ChangeChampionsand165Transformationteammembers

• Every“industryexpert”weconsultedtolduswecouldn’ttransformatthisscaleinourdesignatedtimelinebutwedidit!

Page 4: Building Security In - A Tale of Two Stories - Laksh Raghavan

I LOVE DEADLINES. I LIKE THE WHOOSHING SOUND THEY MAKE AS THEY FLY BY…

- DouglasAdams

4

Page 5: Building Security In - A Tale of Two Stories - Laksh Raghavan

PayPalSPLC- Overview

5

Objective:

Reducethenumberofvulnerabilitiesinourproductsovertimebybuildingrepeatable/sustainableproactivesecuritypracticesembeddedwithinourPLC.

Customersdemandanddeservebettersecurityandprivacyintheirsoftware. PayPalSecureProductLifecycleisthe processthatallowsPayPaltodevelopandtestproductsto help reducesecuritybugs.

Page 6: Building Security In - A Tale of Two Stories - Laksh Raghavan

SPLCTransformation

6

– Strategy• Institutionalizerisk-basedthinkingandprocesses• SecurebyDefault– Frameworks,Dev.Tools,etc.• Putourbotstowork

– Execution• People– InternalPDsecuritychampionstohelpdrivefocusandattentionon

softwaresecurity• Process– Integrateseamlesslywithour“agile”wayofdeliveringproducts.• Technology– Secureframeworks,librariesandautomatedtoolsthatenablePDto

shipproductsrapidly*and* securely

Page 7: Building Security In - A Tale of Two Stories - Laksh Raghavan

Anexerciseintesting(andtrusting)theautomatedprocess

7

• Dynamic/In-ContextSecurityRequirements:SecurityStories• Automatedsecuritycontrolsinthelifecycle• SecureFrameworksandSecurityToolsusedforallprojects&

humaninvolvementforcritical-riskprojects• ThreatModelonlythingsthataren’trun-of-the-millwebor

mobileappsand/ornotbuiltonourstandardizedsecureframeworks

Page 8: Building Security In - A Tale of Two Stories - Laksh Raghavan

Pre-requisite:SecurityControlsAuto-enabledtoProtectDevelopersbyDefault

8

• Ifwerelyon*every*developerinanenterprisedoingtherightthingfromasecurityperspective*every*timehe/shewritescode,wearedoomedtofail!

• Whereverpossible,securitycontrolsaretobemadeavailableautomaticallyandturnedONbydefault

• Developershavegooutoftheirwaytoturnoffsecuritycontrols• Secure-by-defaultinalllayers– Perimeter– Infrastructure– Framework– Libraries– Dev.Tools– Code/Config

Page 9: Building Security In - A Tale of Two Stories - Laksh Raghavan

IT IS A MISTAKE TO THINK YOU CAN SOLVE ANY MAJOR PROBLEM JUST WITH POTATOES.

- DouglasAdams

9

Page 10: Building Security In - A Tale of Two Stories - Laksh Raghavan

SecurityStories

10

HolyGrailforanysoftwaresecurityprofessionalèMakefunctionalandnon-functionalrequirementsequalcitizensInAgileSpeak:MakeUserStoriesandSecurityStoriesequalcitizensBefore: After:

YourFavoriteTaxSoftware!

Page 11: Building Security In - A Tale of Two Stories - Laksh Raghavan

Theapproach…

11

• Aweb-basedtoolthatseamlesslyplugsintoourQuarterlyReleasePlanning(akaMulti-SprintPlanning)process

• Asimplesurveythatdoeslight-weightthreatmodelling,generatessecuritystories,andplacestheminthebacklogofthescrumteam

• TrackingandreportingfromwithinourAgileLifeCycleManagement(ALM)tool

Page 12: Building Security In - A Tale of Two Stories - Laksh Raghavan

Whatwereourinitialdesigngoals?

12

• Weshouldgowheretheyareandnotmakethemcomebacktoourtoolonadailybasis• Two-waysyncwithourenterpriseALMtool

• Itshouldn’ttakemorethan15minutesforanyproductdevelopertocompletethesurvey• Don’tslowthemdown!

• Comprehensivegenericbut“actionable”guidanceformosttechnologystacks• Usefulfornon-standardappsandacquisitions

Page 13: Building Security In - A Tale of Two Stories - Laksh Raghavan

Whatmakesagoodsecuritystory?

13

• Agoodsecuritystoryshouldbe“actionable”bite-sizedchunkthatcanimplementedbyanydeveloper

• ItshouldhaveclearusageguidelinesforyourownsecurityAPIs,frameworks,libraries,etc.

• Whereneeded,itshouldprovidesecurecodesnippets,reusablesecureconfigexamplesforyourcustomframeworks,etc.

• Itshouldspeakdeveloperlingoandnotsecuritylingo!• Itshouldhaveawell-defined“acceptancecriteria”orbetteryetautomateacceptance

withsecuritytests(static/dynamic,etc.)intheCIpipeline• Clearlycalloutevery-sprintvsone-timestories• Inshort,thedevelopersshouldbeabletodoitthemselveswithouthavingtopingthe

securityteamforwell-establishedpatternsandapprovedsecuritycontrols

Page 14: Building Security In - A Tale of Two Stories - Laksh Raghavan

A LEARNING EXPERIENCE IS ONE OF THOSE THINGS THAT SAYS, “YOU KNOW THAT THING YOU JUST DID? DON'T DO THAT.”

- DouglasAdams

14

Page 15: Building Security In - A Tale of Two Stories - Laksh Raghavan

Pitfalls,Gotchas,etc.

15

• Don’toverloadyourdeveloperswith100sofsecuritystories• FigureoutyourownTop10(NotOWASPTop10)andfocusonthat

• Don’thardcodeguidancethatcouldpotentiallychangefrequently(e.g.APIs)• Hyperlinkinstead;)

• Prioritizeallsecuritystories– High,Medium,Low• MandateonlyHighprioritystoriestobecompletedinitially• Don’ttrytoboiltheocean- Gettingtheculturegoingismoreimportant

• ExpectsecuritystoriestobemovedaroundinyourALMtool(multiplescrumteamscouldbeworkingonthesameapp!)• Makesuretwo-waysyncdoesn’tbreak

Page 16: Building Security In - A Tale of Two Stories - Laksh Raghavan

So,whatdoesitlooklike?

16

Page 17: Building Security In - A Tale of Two Stories - Laksh Raghavan

So,whatdoesitlooklike?

17

Page 18: Building Security In - A Tale of Two Stories - Laksh Raghavan

Howdowemeasuresuccess?

18

• WideadoptionofthetoolacrossallofourProductDevelopment(PD)organization• Notjustadoptionbutalsoefficacy– aredevelopersalsocompletingthesecuritystoriesoraretheyjustsittinginthe

backlog?

• AutomatedSPLCdashboardthatmakesthesemetricstransparenttoPDleadership• Earlyengagementmeansnoorminimalprojectshitsecurityroadblocksduringlaunch• AquotefromourAndroidApp’sTeamManager:

“Itisgreattoknowthatthepentestdidn’tfindanyblockersanditcanbelargelyattributedtothefactthatwearefollowingSPLC…”

Page 19: Building Security In - A Tale of Two Stories - Laksh Raghavan

InaNutshell

19

LegacySPLC AgileTransformedSPLC

200+PDF/HTML securitystandardsandprocedures

SecurityStories customizedforthespecificusecase/feature

Manual gatesthroughoutlifecycle Lifecyclerelies onautomatedcontrols

Humaninvolvement forallprojects Lettheframeworksandtoolsdo theheavylifting- humaninvolvementforcriticalriskprojectsonly

Threat Modeleverything Lightweight ThreatModelviaself-servicetoolHumanThreatModelonly whereneeded

Page 20: Building Security In - A Tale of Two Stories - Laksh Raghavan

I REFUSE TO ANSWER THAT QUESTION ON THE GROUNDS THAT I DON'T KNOW THE ANSWER!

- DouglasAdams

20

Questions?

Page 21: Building Security In - A Tale of Two Stories - Laksh Raghavan

WE NO LONGER THINK OF CHAIRS AS TECHNOLOGY; WE JUST THINK OF THEM AS CHAIRS. BUT THERE WAS A TIME WHEN WE HADN'T WORKED OUT HOW MANY LEGS CHAIRS SHOULD HAVE, HOW TALL THEY SHOULD BE, AND THEY WOULD OFTEN 'CRASH' WHEN WE TRIED TO USE THEM.

- DouglasAdams

21

Thankyou!

Page 22: Building Security In - A Tale of Two Stories - Laksh Raghavan

Getmyslidesimmediately

[email protected]

Page 23: Building Security In - A Tale of Two Stories - Laksh Raghavan

TaketheDevSecOps Surveybit.ly/DevSecOps-2017

Page 24: Building Security In - A Tale of Two Stories - Laksh Raghavan

Oursponsorsspeakyourlanguage…DevOps.