Open Source Developers are Securitys new front line A shifting - - PowerPoint PPT Presentation

open source developers are security s new front line a
SMART_READER_LITE
LIVE PREVIEW

Open Source Developers are Securitys new front line A shifting - - PowerPoint PPT Presentation

Open Source Developers are Securitys new front line A shifting landscape of attacks Ilkka Turunen Global Director, Sonatype @llkkaT 20XX: Software has eaten the world It used open source to chew it up Everyone has a software supply


slide-1
SLIDE 1

Ilkka Turunen Global Director, Sonatype @llkkaT

Open Source Developers are Security’s new front line A shifting landscape of attacks

slide-2
SLIDE 2

20XX: Software has eaten the world… It used open source to chew it up

slide-3
SLIDE 3

Everyone has a software supply chain.

(including open source projects)

slide-4
SLIDE 4

4

slide-5
SLIDE 5

5

slide-6
SLIDE 6

85%

  • f your code is

sourced from external suppliers

@llkkaT

slide-7
SLIDE 7

source: 2019 DevSecOps Community Survey

Open source helps us release value faster

slide-8
SLIDE 8

Faster is better in the enterprise.

slide-9
SLIDE 9

…faster is better for adversaries?

slide-10
SLIDE 10

Source: xkcd

slide-11
SLIDE 11

313,000

java component downloads annually

2,778

Component suppliers

8,200

Component release

27,704

8.8% with known vulnerabilities

slide-12
SLIDE 12

60,660

JavaScript packages downloaded annually per developer

30,330

51% with known vulnerabilities

slide-13
SLIDE 13

Widespread Compromise post disclosure

slide-14
SLIDE 14

18,330,958

78% downloads were vulnerable

2015 COMMONS COLLECTIONS

CWE-502

23,476,966

total downloads in 2016

https://wvusoldier.wordpress.com/2016/09/05/some-extra-details-on-hospital-ransomware-you-probably-didnt-know/

slide-15
SLIDE 15

March 7

Apache Struts releases updated version to thwart vulnerability CVE-2017-5638

Today

65% of the Fortune 100 download vulnerable versions

3 Days in March March 8

NSA reveals Pentagon servers scanned by nation-states for vulnerable Struts instances Struts exploit published to Exploit-DB.

March 10

Equifax Canada Revenue Agency Canada Statistics GMO Payment Gateway

The Rest of the Story March 13

Okinawa Power Japan Post

March 9

Cisco observes "a high number

  • f exploitation events."

March ’18

India’s AADHAAR

April 13

India Post

December ’17

Monero Crypto Mining

2017 Struts 2: Wait and Prey

slide-16
SLIDE 16

Breaches increased 71%

24%

suspect or have verified a breach related to open source components in the 2019 survey

14%

suspect or have verified a breach related to open source components in the 2014 survey

source: DevSecOps Community Survey 2014 and 2019

slide-17
SLIDE 17

Average Days to Exploit

DevSecOps Challenge: Automate Faster than Evil.

3 45

slide-18
SLIDE 18

Late 2010’s - straight to the source

slide-19
SLIDE 19

July 2017

Credentials to 79,000 packages found online, affecting publishing access to 14% of npm repository.

slide-20
SLIDE 20

November 2018

npm event-stream attack on CoPay. 2 million downloads per week.

slide-21
SLIDE 21

March 2019

Gems bootstrap-sass RCE backdoor (1.6K Direct dependencies)

slide-22
SLIDE 22
slide-23
SLIDE 23

Crypto Currency: Cybercrime’s new best friend. “I have nothing of value in my application”

Your server has CPU cycles Your visitors have CPU cycles Your build infra has CPU cycles

Crypto Currency allows the attack to be directly monetized.

slide-24
SLIDE 24

Jenkins under attack “So far, $3.4 million has been mined.”

slide-25
SLIDE 25

It affects all of us. How do we fight it?

slide-26
SLIDE 26

…faster is better in the enterprise

slide-27
SLIDE 27

…faster is better for open source.

slide-28
SLIDE 28
slide-29
SLIDE 29
slide-30
SLIDE 30

Attributes Measure Popularity

  • Avg. daily Central Repository downloads

Size of Team

  • Avg. unique monthly contributors

Development Speed

  • Avg. commits per month

Release Speed

  • Avg. period between releases

Presence of CI Presence of popular cloud CI systems Foundation Support Associated with an open source foundation Security More complicated Update Speed More complicated

slide-31
SLIDE 31

Assumption # 1

Projects that release frequently have better outcomes.

slide-32
SLIDE 32

1945: W. Edwards Deming

slide-33
SLIDE 33

The Key Metrics:

Time to Remediate Time to Update Stale Dependencies

slide-34
SLIDE 34

Time to Remediate Vulnerabilities

slide-35
SLIDE 35

Time to Remediate Vulnerabilities

Do these update quickly in general?

slide-36
SLIDE 36

Time to Remediate (TRR) vs. Time to Update (TTU)

Most projects stay secure by staying up to date.

slide-37
SLIDE 37

Projects that release frequently:

are 5x more popular. attract 79% more developers. have 12% greater foundation support rates.

slide-38
SLIDE 38

Assumption 2

Projects with fewer dependencies will stay more up to date.

slide-39
SLIDE 39

More dependencies correlate with larger development teams. Larger development teams have 50% faster MTTU and release 2.6x more frequently.

slide-40
SLIDE 40

More dependencies correlate with larger development teams. Larger development teams have 50% faster MTTU and release 2.6x more frequently.

slide-41
SLIDE 41

Projects with fewer dependencies will stay more up to date. (REJECTED)

Components with more dependencies actually have better MTTU.

slide-42
SLIDE 42

Assumption 3

More popular projects will be better about staying up to date.

slide-43
SLIDE 43

5 Behavioral Clusters

Small Exemplar (606) Large Exemplar (595) Laggards (521) Features First (280) Cautious (429) Small development teams (1.6 devs), exemplary MTTU. Large development teams (8.9 devs), exemplary MTTU, very likely to be foundation supported, 11x more popular. Poor MTTU, high stale dependency count, more likely to be commercially supported. Frequent releases, but poor TTU. Still reasonably popular. Good TTU, but seldom completely up to date.

Rest of the population: 8,142

slide-44
SLIDE 44

Exemplars release fast and tend to be more popular. Pick suppliers from here.

slide-45
SLIDE 45

Not all popular projects are exemplary and release fast Don’t pick suppliers from here.

slide-46
SLIDE 46

Assumption 3

More popular projects will be better about staying up to date. (REJECTED) There are plenty of popular components with poor MTTU. Popularity does not correlate with MTTU.

slide-47
SLIDE 47

How do we stay fast?

slide-48
SLIDE 48

We schedule updating dependencies as part

  • f our daily work

We strive to use the latest version (or latest-N) of all our dependencies We use some process to add a new dependency (e.g., evaluate, approve, standardize, etc.) We have a process to proactively remove problematic or unused dependencies We have automated tools to track, manage, and/or ensure policy compliance of our dependencies

46% YES 50% YES 30% YES 37% YES

Enterprise Devs Manage Dependencies

n = 658

38% YES

slide-49
SLIDE 49

When Devs climb the mountain every day, it’s easier.

slide-50
SLIDE 50
slide-51
SLIDE 51
slide-52
SLIDE 52

How are you informed of InfoSec and AppSec issues?

Automating security enables faster DevOps feedback loops

slide-53
SLIDE 53

Automation continues to prove difficult to ignore.

Do you have an open source policy and do you follow it?

slide-54
SLIDE 54

For organizations who tamed their supply chains, the rewards were impressive.

slide-55
SLIDE 55

Manage the 85% of your software

slide-56
SLIDE 56

Be faster than your adversaries

slide-57
SLIDE 57

Set standards for what you choose

slide-58
SLIDE 58

Automate it all.

slide-59
SLIDE 59

iturunen@sonatype.com