a definition of done for devsecops · gene gotimer coveros, inc. gene gotimer is a senior architect...

14
DT4 Integrating Security Into DevOps Thursday, June 7th, 2018, 11:30 AM A Definition of Done for DevSecOps Presented by: Gene Gotimer Coveros, Inc. Brought to you by: 350 Corporate Way, Suite 400, Orange Park, FL 32073 888-- -268---8770 ·· 904- --278-- -0524 - [email protected] - https://www.techwell.com/

Upload: others

Post on 06-Jul-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

DT4 Integrating Security Into DevOps Thursday, June 7th, 2018, 11:30 AM

A Definition of Done for DevSecOps

Presented by:

Gene Gotimer Coveros, Inc.

Brought to you by:

350 Corporate Way, Suite 400, Orange Park, FL 32073 888-- -268- - -8770 ·· 904- --278-- -0524 - [email protected] - https://www.techwell.com/

Page 2: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the delivery of secure, reliable software. As a consultant, Gene works with his customers to build software better, faster, and more securely by introducing agile development and DevOps practices. He has many years of experience with web-based enterprise application design and a variety of development ecosystems, including continuous integration, continuous delivery, and DevOps. Gene feels strongly that repeatability, quality, and security are all strongly intertwined; each is dependent on the other two, which makes DevOps that much more crucial to software development.

Page 3: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

1

A Definition of Done for DevSecOps

Gene Gotimer, Coveros@CoverosGene

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 2@CoverosGene #BetterSoftwareCon

About Coveros• Coveros helps companies accelerate the delivery of secure, reliable software

using agile methods

• Services• Agile Transformations & Coaching• Agile Software Development• Agile Testing & Automation• DevOps and DevSecOps Implementations• Software Security Assurance & Testing

• Agile, DevOps, Test Automation, Security Training

• Open Source Products• SecureCI –Secure DevOps toolchain• Selenified – Agile test framework

Areas of Expertise

Page 4: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

2

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 3@CoverosGene #BetterSoftwareCon

Selected Clients

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 4@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

• Checklist• Explicit and unambiguous• Minimum amount of work to

consider a story done• Periodically reevaluated

Definition of DoneDefinition of Done

Page 5: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

3

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 5@CoverosGene #BetterSoftwareCon

Traditional Definition of Done Code is committed Builds without error Unit tests pass No static analysis issues Code is reviewedMerged to trunk Functional tests pass Accepted by Product Owner

@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 6@CoverosGene #BetterSoftwareCon

In a DevOps world

Code is committed

Builds without error

Unit tests pass

No static analysis issues

Code is reviewed

Merged to trunk

Functional tests pass

Automated deploy tested

Roll-back defined

Automated acceptance tests

Scalability planned

Accepted by Product Owner

… we have automation

@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.

Page 6: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

4

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 7@CoverosGene #BetterSoftwareCon

Do we have a viable candidate for production?

@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 8@CoverosGene #BetterSoftwareCon

I hate DevSecOps! (the term)

Page 7: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

5

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 9@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 10@CoverosGene #BetterSoftwareCon

Mutation testing

public int foo(int i) {i--;return i;

}

Page 8: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

6

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 11@CoverosGene #BetterSoftwareCon

Let static analysis help

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 12@CoverosGene #BetterSoftwareCon

Peer review the code

Architecture

Encryption

Authentication and

authorizationInput

validation Output

encoding

Error conditions

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 9: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

7

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 13@CoverosGene #BetterSoftwareCon

User role testing

Test that each kind of usercan do what they are supposed to, andcan’t do what they aren’t supposed to

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 14@CoverosGene #BetterSoftwareCon

Security scanning

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 10: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

8

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 15@CoverosGene #BetterSoftwareCon

Repeatable, reliable deployments

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 16@CoverosGene #BetterSoftwareCon

Bill of Materials

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 11: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

9

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 17@CoverosGene #BetterSoftwareCon

Update your system

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 18@CoverosGene #BetterSoftwareCon

Lock down the system© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 12: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

10

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 19@CoverosGene #BetterSoftwareCon

Monitor your logs

and the app and server© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 20@CoverosGene #BetterSoftwareCon

Assess the risk

STRIDESpoofing Identity

Tampering with Data

Repudiation

Information Disclosure

Denial of Service

Elevation of Privilege

DREADDamage Potential

Reproducibility

Exploitability

Affected Users

Discoverability

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 13: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

11

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 21@CoverosGene #BetterSoftwareCon

Code is committed Builds without error Unit tests passMutation coverage goal met No static analysis issues No vulnerable components Code is reviewedMerged to trunk Functional tests pass Automated deploy tested

Roll-back defined System packages updated Servers hardened User roles regression tested No security issues found Automated acceptance tests Scalability planned Logs and app monitored Risks assessed Accepted by Product Owner

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

DevSecOps Definition of Done

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 22@CoverosGene #BetterSoftwareCon

#Coveros5• Security can be included in a team’s definition of done.

• Continuous delivery offers extra opportunities for security tests.

• DevOps is about building confidence that the software is a viable candidate for production.

• Do just enough of each type of testing at each step in the delivery pipeline to determine if further testing is justified.

• Security testing doesn’t have to be formal to add value.

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon

Page 14: A Definition of Done for DevSecOps · Gene Gotimer Coveros, Inc. Gene Gotimer is a senior architect at Coveros, Inc., a software company that uses agile methods to accelerate the

5/15/2018

12

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 23@CoverosGene #BetterSoftwareCon

Reflect.

Consider your situation.

Keep improving.© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.@CoverosGene #BetterSoftwareCon © COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED.

© COPYRIGHT 2018 COVEROS, INC. ALL RIGHTS RESERVED. 24@CoverosGene #BetterSoftwareCon

Questions?Gene Gotimer

[email protected]@CoverosGene

Please fill out an evaluation form.