HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static...

25
© 2017 Synopsys, Inc. 1 HOW INTEGRATING COVERITY STATIC ANALYSIS IDE EMPOWERS DEVELOPERS AND HELPS STRENGTHEN DEVSECOPS TEAMS Meera Rao Secure Development Practice Director Senior Principal Consultant

Transcript of HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static...

Page 1: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 1

HOW INTEGRATING COVERITY STATIC ANALYSIS IDE

EMPOWERS DEVELOPERS AND HELPS STRENGTHEN

DEVSECOPS TEAMS

Meera Rao

Secure Development Practice Director

Senior Principal Consultant

Page 2: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 2 Confidential

Started using CruiseControl since it’s first release in 2001 –17 years ago

Moved to Hudson since its inception in 2004

Reviewed the very first book on Continuous Integration, and switched from Hudson to Jenkins in 2011

Working with clients to Build Security In within their CI and CD Pipelines since 2012

Recognized by Cloudbees as Women Leader in DevOps & Featured in USA Today as part of Women in Technology - 2017 & 2018

My Journey through CI/CD & DevSecOps

Time

Exp

ert

ise

Page 3: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 3 Confidential

Agenda

Insight into industry trends

Building security into your DevOps SDLC

Static Analysis Security Testing

Increasing release velocity

Integrating Coverity in the DevOps pipeline

Page 4: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 4 Confidential

DevSecOps Realities and Opportunities

451 Research | Synopsys

Page 5: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 5 Confidential

Critical elements of security testing in CI/CD

51%

59%

61%

31%

57%

0% 10% 20% 30% 40% 50% 60% 70%

Static analysis

Dynamic analysis

Software composition analysis/CVEscanning

Fuzz testing

Third-party penetration testing

Total (n=350)

Q: What are the most critical application security testing elements to add to CI/CD workflows?

Page 6: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 7 Confidential

Responsibility for security testing in DevOpsQ: Who is responsible for application security testing in DevOps workflows?

49%

42%

71%

43%

61%

0%

10%

20%

30%

40%

50%

60%

70%

80%

Developers Testing and QA IT operations Leadership and management Security team

Page 7: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 8 Confidential

When IS security testing integrated with CI/CD workflows?

38%

50%

57%60%

0%

10%

20%

30%

40%

50%

60%

70%

On the fly while coding When developers commit code At central build Unit testing vs. integration testing

Page 8: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 9 Confidential

When should application security testing be integrated

with CI/CD workflows?

44%

67%

59%

45%

0%

10%

20%

30%

40%

50%

60%

70%

80%

On the fly while coding When developers commit code At central build Unit testing vs. integration testing

Page 9: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 10 Confidential

Building security into your DevOps SDLC

Pipeline Activities

Page 10: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 11 Confidential

Security Touchpoints

11

Plan Code Build Test Release Deploy Operate &

Monitor

• Security requirements

• Threat models

• Risk Analysis

• IDE integration

• Static analysis

• Pre-commit

• SAST & SCA

• Manual Code

Review

• IAST/SAST

• DAST

• Fuzz Testing

• Secure configuration

• Packaging for

deployment

• Operational protections

• Penetration testing

• Ongoing assessment

• Red Teaming

• Monitoring

Shift Left

Page 11: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 12 Confidential

Static Analysis Security Testing

Page 12: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 13 Confidential

Why we need static analysis?

• To uncover potential violations of coding standards

• To evaluate the efficacy of security controls and coding

constructs that have been implemented to satisfy specific

security requirements

• To provide a way for developers to learn about and remediate

security defects

• To review code for adherence to

–secure coding standards,

–best practices, and

–organizational security policies

• To satisfy a regulatory or contractual requirement

Page 13: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 14 Confidential

Challenges for development teams

Scanners find bugs but don’t prevent them

• Scanners are not as practical as desktop tools

• High capital, implementation, and operating costs

• Scanning is useful, but bugs keep increasing

Developer guidance is not easily available

• Distractions: Developers need reminders when working on risky code

• Recall: Training material is static and difficult to retrieve

• Knowledge: “Googling” for guidance is inconsistent

Security vs. functionality vs. schedule

• Security testing affects productivity and release schedules

• Testing is too late in the process, increasing costs

• Long feedback loop reduces knowledge transfer

Page 14: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 15 Confidential

Key objectives

• Allow developers to focus on fixing defects

• Strategically align source code analysis earlier

in development release cycles by

using pre-commit checks in the developers’ IDE

• Spur a preventative mindset in the development

organization

• Enable teams to maintain governance and

centrally track the residual risk posture

on an ongoing basis

• Allows DevSecOps teams to integrate static

analysis tools without increasing time to

production

Page 15: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 16 Confidential

Increasing release velocity

Shift Left - SAST IDE Tools + Hooks for SCM, & SAST Automation

Page 16: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 17 Confidential

Pre-commit checks: IDE and SCM

Threat modeling

Manual code review

Architecture risk

analysis

Out-of-band activities

Run pre-commit

checks

Fail: Triggers out-

of-band activities

Developer workstation

Commit code into

SCM

Desktop/laptopRun lightweight IDE-

based SAST tool

Pass: Code is

checked into SCM

CI/CD pipeline

activities kick off

Page 17: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 18 Confidential

SAST integration: High-level workflow

SAST01

The SAST tool runs in the

IDE as developers write code.

The tool is configured to

detect vulnerabilities that

have zero false positives,

including issues such as SQL

injection and XSS. The scan

should take seconds.

SAST02

The SAST tool is automated on

the CI server. The tool is

configured for the client’s top 10

issues, such as command

injection and hard-coded keys.

The tool also uses rules from

SAST01. The scan should take

4–5 minutes so developers get

feedback fast.

SAST03

The SAST tool uses rules for

the OWASP Top 10 and any

customized rulesets written for

client-specific APIs. The scan

can be run in parallel with other

activities and should take 10–15

minutes.

SAST04

The SAST tool uses

comprehensive rulesets. All

previous rulesets are excluded.

The goal is to find issues before

the code goes to production.

The scan should take anywhere

from an hour to 3–4 hours,

depending on production

velocity.

Page 18: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 19 Confidential

Integrating Coverity in the DevSecOps Pipeline

Page 19: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 20 Confidential

“Developer first” security• Find and fix vulnerabilities before they are checked in

• Very low false positive rate (<10%)

• The Forrester WaveTM: Static Application

Security Testing, Q4 2017, ranks Coverity among the top SAST

solutions for accuracy, so developers can be sure they are

spending their time fixing real security defects.

Synopsys was named a leader in Gartner’s Magic Quadrant

for Application Security Testing (AST) for the second year in a

row, in recognition of our completeness of vision and ability

to execute.

Coverity®

Enterprise-ready• Coverity Connect provides enterprise reporting and dashboard

• Scalable to very large code bases (>10Ms of LOC)

Secure at the source

Find critical security vulnerabilities in code as it’s being

written, with the industry’s most effective and trusted

static analysis solution.

Standards compliance• OWASP Top 10, CWE Top 25

• Reporting including PCI-DSS

Mobile security• Android and iOS Objective-C

• OWASP Mobile Top 10, JSSEC, CERT

Page 20: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 21 Confidential

Coverity in CI/CD context

Focus areas How we do it

Rapid developer feedback before

check-in

Leverage desktop plugins, if needed,

for rapid incremental change analysis

Fail build if new defects found Integration of Coverity results via open

API query in build pipeline

Fast incremental build turnaround Incremental build and incremental

analysis as standard in Coverity

engine, with no loss of accuracy

Automated generation of tickets

or work items

Automated lookup of ‘last changed’

developer, and assignment of defect

Export/generation to ticketing tools

Extensive toolchain and

integration support

Enterprise readiness and

deployment scalability

Integration with key enterprise

systems, common tool

Page 21: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 22 Confidential

Coverity in CI/CD - Rapid Feedback and Gates

• Largely out of the box with support for major

CI platforms

• Developers still encouraged to run analysis

before check-in!

Page 22: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 23 Confidential

Benefits of Injecting Integrity within CI/CD Pipeline

Reduce DevSecOps friction

Increase release velocity

Improve quality, Security and efficiency

Facilitate collaborative change

Page 23: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 24 Confidential

Recommendations for building SAST in CI/CD

Invest in each of these areas:

• People need to be trained.

– Developers in remediation

– Security champions in interpreting scan results

– In-house SMEs in running application security tools effectively

• Process needs to be well-defined. Then you need to shepherd the organization

through adopting that process.

• Technology needs to be customized. Recognize that tools need hand-holding.

(they aren’t plug-and-play as the tool vendors say.)

Page 24: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 25 Confidential

Blogs

• Common security challenges in CI/CD workflows https://www.synopsys.com/blogs/software-

security/security-challenges-cicd-workflows/

• How to integrate SAST into the DevSecOps pipeline in 5 simple steps

https://www.synopsys.com/blogs/software-security/integrate-sast-into-devsecops-in-5-simple-steps/

• Building your DevSecOps pipeline: 5 essential activities https://www.synopsys.com/blogs/software-

security/devsecops-pipeline-checklist/

• How to build security into the DevOps life cycle https://www.synopsys.com/blogs/software-

security/security-devops-life-cycle/

• How to maximize returns on SAST tool investment https://www.synopsys.com/blogs/software-

security/maximize-returns-sast-tool-investment/

Page 25: HOW INTEGRATING COVERITY STATIC ANALYSIS IDE …€¦ · • The Forrester WaveTM: Static Application Security Testing, Q4 2017, ranks Coverity among the top SAST solutions for accuracy,

© 2017 Synopsys, Inc. 26

Questions?

Twitter: @MeeraRRao

LinkedIn: MeeraSubbarao

Email: [email protected]