Multi Security Checkpoints on DevOps Platform

59
November 15, 2016 Multi Security Checkpoints on DevOps platform Hasan Yasar, Technical Manager Secure Lifecycle Solutions, Software Engineering Institute, Carnegie Mellon University

Transcript of Multi Security Checkpoints on DevOps Platform

Page 1: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity CheckpointsonDevOpsplatform

Hasan Yasar, Technical ManagerSecure Lifecycle Solutions, Software Engineering Institute, Carnegie Mellon University

Page 2: Multi Security Checkpoints on DevOps Platform

November15,2016

Copyright2016CarnegieMellonUniversity

ThismaterialisbaseduponworkfundedandsupportedbytheDepartmentofDefenseunderContractNo.FA8721-05-C-0003withCarnegieMellonUniversityfortheoperationoftheSoftwareEngineeringInstitute,afederallyfundedresearchanddevelopmentcenter.

Anyopinions,findingsandconclusionsorrecommendationsexpressedinthismaterialarethoseoftheauthor(s)anddonotnecessarilyreflecttheviewsoftheUnitedStatesDepartmentofDefense.

NOWARRANTY.THISCARNEGIEMELLONUNIVERSITYANDSOFTWAREENGINEERINGINSTITUTEMATERIALISFURNISHEDONAN“AS-IS”BASIS.CARNEGIEMELLONUNIVERSITYMAKESNOWARRANTIESOFANYKIND,EITHEREXPRESSEDORIMPLIED,ASTOANYMATTERINCLUDING,BUTNOTLIMITEDTO,WARRANTYOFFITNESSFORPURPOSEORMERCHANTABILITY,EXCLUSIVITY,ORRESULTSOBTAINEDFROMUSEOFTHEMATERIAL.CARNEGIEMELLONUNIVERSITYDOESNOTMAKEANYWARRANTYOFANYKINDWITHRESPECTTOFREEDOMFROMPATENT,TRADEMARK,ORCOPYRIGHTINFRINGEMENT.

[DistributionStatementA]Thismaterialhasbeenapprovedforpublicreleaseandunlimiteddistribution.PleaseseeCopyrightnoticefornon-USGovernmentuseanddistribution.

Thismaterialmaybereproducedinitsentirety,withoutmodification,andfreelydistributedinwrittenorelectronicformwithoutrequestingformalpermission.Permissionisrequiredforanyotheruse.RequestsforpermissionshouldbedirectedtotheSoftwareEngineeringInstituteatpermission@sei.cmu.edu.

CarnegieMellon® and CERT® areregisteredmarksofCarnegieMellonUniversity.

DM-0004210

Page 3: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity Checkpoints

Fundamentals- Process

Page 4: Multi Security Checkpoints on DevOps Platform

November15,2016

WhatWikipediasays…

• DevOps (a portmanteau of "development" and "operations”)emphasizes communication, collaboration, and integrationbetween software developers and information technology(IT) operations personnel. [1]

[1]http://en.wikipedia.org/wiki/DevOps

Page 5: Multi Security Checkpoints on DevOps Platform

November15,2016

Jez Humble,https://youtu.be/L1w2_AY82WYDaveWest,http://sdtimes.com/analyst-watch-water-scrum-fall-is-the-reality-of-agile/

Business

Research

Budget

Document

WaterDevelopment

Scrum

Integrate

Test

Release

QAOperations

Fall- -

Page 6: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOps isanExtensionofAgileThinking

• Embrace constantchange

• EmbedCustomer inteamtointernalizeexpertiseonrequirementsanddomain

Agile

Embraceconstanttesting,delivery

EmbedOperations inteamtointernalizeexpertiseondeploymentandmaintenance

DevOps

Page 7: Multi Security Checkpoints on DevOps Platform

November15,2016

SharedGoals CollaborationBusinessNeeds

DevOps

Page 8: Multi Security Checkpoints on DevOps Platform

November15,2016

Multiple DimensionsofDevOpsCulture• Developer and Ops collaborate

(Ops includes security)• Developers and Operations

support releases beyond deployment

• Dev and Ops have access to stakeholders who understand business and mission goals

Culture

ProcessandPractices

SystemandArchitecture

Automationand

MeasurementAutomation/Measurement• Automaterepetitiveanderror-

pronetasks(e.g.,build,testing,anddeploymentmaintainconsistentenvironments)

• Staticanalysisautomation(architecturehealth)

• Performancedashboards

Process and Practices• Pipeline streamlining• Continuous-delivery practices

(e.g., continuous integration; test automation; script-driven, automated deployment; virtualized, self-service environments)

System and Architecture• Architected to support test

automation and continuous-integration goals

• Applications that support changes without release (e.g., late binding)

• Scalable, secure, reliable, etc.

Page 9: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity Checkpoints

DevOpsPlatform- Platform

Page 10: Multi Security Checkpoints on DevOps Platform

November15,2016

ContinuousIntegration(CI)Model

Page 11: Multi Security Checkpoints on DevOps Platform

November15,2016

Integrationandcommunication,evenamongtools,isthekey!

Page 12: Multi Security Checkpoints on DevOps Platform

November15,2016

Page 13: Multi Security Checkpoints on DevOps Platform

November15,2016

Humanactions/inputstothesoftwaredevelopmentprocess

Page 14: Multi Security Checkpoints on DevOps Platform

November15,2016

Actionsperformedbyautonomoussystems

Page 15: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity Checkpoints

TeamIntegration- People

Page 16: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsandSecurity

Page 17: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsandSecurity

Page 18: Multi Security Checkpoints on DevOps Platform

November15,2016

Rugged{Secure}Dev{Sec}Ops

• DevOpsisaRiskMitigationstrategy,builtonSituationalAwareness,Automation,and Repetition• ButsecurityiswherealotofDevOpsimplementationsfalldown

• Goal:– Protectingprivateuserdata– Restrictingaccesstodata/systems– Protectingcompanydata/IP– Standardscompliance– Safeguardingdisposition/transition

Page 19: Multi Security Checkpoints on DevOps Platform

November15,2016

TeamComposition

Developers

• Features• Quality

Attributes• Efficiency• Performance• Users• Authentication• Authorization

ITOps

• Deployment• Maintenance• Updates• Changepolicy• Failure• Dataloss• Risk

prevention

QA

• Testable• Issue

tracking• Bug

Reports• Usability• HelpDesk

SecurityTeam

• DataPrivacy• Intrusion

detection• Threatvectors• CVEs• Package

security• Authentication• Authorization• Security

StandardsCompliance

Page 20: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOps:MultipleTeamIntegrations

Page 21: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOps:MultipleTeamIntegrations+WithSecurityTeam

Page 22: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOps:MultipleTeamIntegrations+WithSecurityTeam

Page 23: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity Checkpoints

PlatformSecurityinDevOps

Page 24: Multi Security Checkpoints on DevOps Platform

November15,2016

Evolutionofsoftwaredevelopment

• Customdevelopment– context:• Softwarewaslimited

§ Size§ Function§ Audience

• Eachorganizationemployeddevelopers• Eachorganizationcreatedtheirown

software

• Shareddevelopment– ISVs(COTS)–context:

• Functionlargelyunderstood§ Automatingexistingprocesses

• Grownbeyondabilityforusingorganizationtodevelopeconomically

• Outsideofcorecompetitivenessbyacquirers

Supplychain:practicallynone Supplychain:softwaresupplier

Olddays… Inthesedays…

Page 25: Multi Security Checkpoints on DevOps Platform

November15,2016

Developmentisnowassembly

GeneralLedger

SQLServer WebSphere

HTTPserver

XMLParser

OracleDB SIPservletcontainer

GIFlibrary

Like“PlugNPlay”

Note:hypotheticalapplicationcomposition

Collectivedevelopment– context:• Toolargeforsingle

organization• Toomuchspecialization• Toolittlevalueinindividual

components

Supplychain:long

Page 26: Multi Security Checkpoints on DevOps Platform

November15,2016

Softwaresupplychainforassembledsoftware

• Complexityofacquisition,developmentanddeployment

• Visibility&awareness

Source:“ScopeofSupplierExpansionandForeignInvolvement”graphicinDACSwww.softwaretechnews.com SecureSoftwareEngineering,July2005article“SoftwareDevelopmentSecurity:ARiskManagementPerspective”synopsisofMay 2004GAO-04-678report“DefenseAcquisition:KnowledgeofSoftwareSuppliersNeededtoManageRisks”

Page 27: Multi Security Checkpoints on DevOps Platform

November15,2016

Reducingsoftwaresupplychainriskfactors

Softwaresupplychainriskforaproductneedstobereducedtoacceptablelevel

Supplierfollowspracticesthatreducesupplychainrisks

Deliveredorupdatedproductisacceptablysecure

Product

Distribution

Operational Product Control

Productisusedinasecuremanner

Methodsoftransmittingtheproducttothepurchaserguardagaintampering

ProductSecurity

Supplier Capability

Page 28: Multi Security Checkpoints on DevOps Platform

November15,2016

SupplyChainHygiene:Recommendations• Suppliersecuritycommitmentevidence

• Supplieremployeesareeducatedastosecurityengineeringpractices• Supplierfollowssuitablesecuritydesignpractices

• Evaluateaproduct’sthreatresistance• Whatproductcharacteristicsminimizeopportunitiestoenterandchangethe

product’ssecuritycharacteristics?

• Createacentralizedprivaterepositoriesofvetted3rd partycomponentsforalldevelopers

• Establishgoodproductdistributionpractices• Recognizethatsupplychainrisksareaccumulated• Monitorfornewvulnerabilitiesandknowwheretheyareintheenterprisetofix

• Minimizevariationofcomponentstomakethingseasier(multipleversions,duplicatedutility)

Page 29: Multi Security Checkpoints on DevOps Platform

November15,2016

• Development,operations, teamsengineerinfrastructureandapplication

• Operationsmaintainscontinuousdeliveryprocess• Developerswriteandpushcode

• Continuousintegrationserverinternallydeployscode• Docker run/VMprovision• Build• Test

• QAteamevaluatestheapplicationforcorrectness• Continuousdeliveryprocessdeployscodetoproductionservers• Operationsmaintainsproductionservers

PlatformSecurityOverview

Page 30: Multi Security Checkpoints on DevOps Platform

November15,2016

PlatformSecurityOverviewwithSecurityHighlights

• Development,operations,andsecurityteamsengineerinfrastructureandapplication

• Operationsmaintainscontinuousdeliveryprocess• Developerswriteandpushcode• Codepushtriggerssecurityanalysisviasecuritycontroller• Continuousintegrationserverinternallydeployscode

• Docker run/VMprovision• Build• Test• Automatedsecurityscan

• QAteamevaluatestheapplicationforcorrectness• Continuousdeliveryprocessdeployscodetoproductionservers• Operationsmaintainsproductionservers

Page 31: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity CheckpointsAppSec andDevOps- IntegratingSecuritypracticesintoDevOps

Page 32: Multi Security Checkpoints on DevOps Platform

November15,2016

DevLifecycle

Page 33: Multi Security Checkpoints on DevOps Platform

November15,2016

Dev+BusinesLifecycle

Page 34: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

Page 35: Multi Security Checkpoints on DevOps Platform

November15,2016

Whereareopportunitiesforsecurityprocesses?

Page 36: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

ThreatModeling,Securityasaqualityattribute

Page 37: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

Secure/hardenedenvironments

Page 38: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

Security-focusedcodereview

Page 39: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

AutomatedSecurityTesting(Staticanalysis,etc)

Page 40: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

MoreSecurityTesting(PenTesting,FuzzTesting)

Page 41: Multi Security Checkpoints on DevOps Platform

November15,2016

DevOpsLifecycle

Securityreview/acceptancetesting

Page 42: Multi Security Checkpoints on DevOps Platform

November15,2016

SecureDevOpsLifecycle

Page 43: Multi Security Checkpoints on DevOps Platform

November15,2016

Securitymustbeaddressedwithoutbreakingtherapiddelivery,continuous

feedbackmodel

Page 44: Multi Security Checkpoints on DevOps Platform

November15,2016

SecureDevOpsLifecycle

Devs

Page 45: Multi Security Checkpoints on DevOps Platform

November15,2016

SecureDevOpsLifecycle

Devs

ConstantFeedbacktoDev

Page 46: Multi Security Checkpoints on DevOps Platform

November15,2016

Automation(CI/CD)andSecurity§ Noteverythingcanbe,needstobe,orshouldbe,automated§ Drawperimetersaroundthingsyoutrustandletthatguidewhere

humaninteractionandverificationisneeded

§ Keeptrackofsecurityassessments

§ Regimentedcodemanagement§ Knowwhatsourcecodecontributedtoabuildthat’sin

productionsopatchesarefastandconfident

§ Performmanualreviewsasleastaspossible(NOTtoblockCD)§ staticanalysis§ (peer)Codereview§ Penntesting(oranysecuritytestingtools)

Page 47: Multi Security Checkpoints on DevOps Platform

November15,2016

Post-ProductionMonitoringwithSecurityMindset

• MonitorauditlogsproducedbyCI/CDforanomalies

• Monitorproductionapplicationstoassurenothingchangesoutsideofthenormalchangeprocess

• Monitorfornewvulnerabilities/threats(acatalogofrunningcomponentshelps!)

Page 48: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity CheckpointsPracticalSecurityintegrationScenariosCI/CD

Page 49: Multi Security Checkpoints on DevOps Platform

November15,2016

SecureDevOpsLifecycle

• Pausingformanualstepsistypical

• Optimizethemanualwork!

• Persisttheoutputofanytools/work

Page 50: Multi Security Checkpoints on DevOps Platform

November15,2016

Scenario -1

Page 51: Multi Security Checkpoints on DevOps Platform

November15,2016

Scenario -1

Page 52: Multi Security Checkpoints on DevOps Platform

November15,2016

Scenario -2

Page 53: Multi Security Checkpoints on DevOps Platform

November15,2016

Scenario -2

Page 54: Multi Security Checkpoints on DevOps Platform

November15,2016

Scenario -3

Page 55: Multi Security Checkpoints on DevOps Platform

November15,2016

MultiSecurity Checkpoints

Demo

AllvideosareinSEIYouTubechannelhttps://www.youtube.com/user/TheSEICMU/featuredOrinSecureDevOpssectionhttps://www.youtube.com/playlist?list=PLSNlEg26NNpx3fYrfZokWuye9RVMCnCsc

Page 56: Multi Security Checkpoints on DevOps Platform

November15,2016

Section (optional)Picture

(optional)

MoreonSEIDevOpsBloghttps://insights.sei.cmu.edu/devops

Page 57: Multi Security Checkpoints on DevOps Platform

November15,2016

ContactInformation

HasanYasarTechnicalManager,[email protected]@securelifecycle

WebResources(CERT/SEI)

http://www.cert.org/

http://www.sei.cmu.edu/

Page 58: Multi Security Checkpoints on DevOps Platform

November15,2016

Page 59: Multi Security Checkpoints on DevOps Platform

November15,2016