35
Copyright @ 2017 Aqua Security Software Ltd. All Rights Reserved. Securing your code when you don’t even know where it is Liz Rice @lizrice | @aquasecteam

Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Embed Size (px)

Citation preview

Page 1: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Copyright @ 2017 Aqua Security Software Ltd. All Rights Reserved.

Securing your codewhen you don’t even know where it is

Liz Rice

@lizrice | @aquasecteam

Page 2: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

2@lizrice

Page 3: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

3@lizrice

Page 4: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

4@lizrice

Traditional process

Create software

Deploy Patch

Provision servers

Page 5: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

5@lizrice

Server drift

time

state

Page 6: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

6@lizrice

DevOps happened!

■ Infrastructure as code

■ Containers

■ CI / CD

Page 7: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

7@lizrice

Cattle not pets

Page 8: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

8@lizrice

Pipeline process builds “cattle”

Create software

Build images

Deploy

Page 9: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

9@lizrice

Security is a concern when deploying containers

88% agreeSonatype 2017 DevSecOps Survey

Page 10: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

10@lizrice

Hundreds of microservicesThousands of containersAverage container life ~ 2.5 days

Page 11: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

11@lizrice

/bin/lib/usr/opt/var

/bin/lib/usr/var

/bin/opt/usr/var

Dependencies in every container

Page 12: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

13@lizrice

Applying patches to containers?

Page 13: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

14@lizrice

Page 14: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

15@lizrice

Pipeline process

Create software

Build images

Deploy

Immutable Never modify

Always move in this direction

Page 15: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

16@lizrice

Scan for vulnerabilities

Create software

Build images

Deploy

Page 16: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

17@lizrice

Image policies

Create software

Build images

Deploy

✓ ✓

Page 17: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

18@lizrice

What about the hosts?

Page 18: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

19@lizrice

Hosts

Host OSAutomated

testing

Recycling

Intrusiondetection

Page 19: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

20@lizrice

Wait, there’s more!

Page 20: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Reducing images

Page 21: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

22@lizrice

Reducing image size

■ Few tools needed in

containers

■ Smaller attack surface

FROM scratch

EXPOSE 8080

COPY hello /

COPY templates templates

CMD ["/hello"]

Page 22: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

23@lizrice

Microservice network segmentation

■ Restrict communication

between microservices

■ Encrypted connections

Page 23: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

24@lizrice

Runtime protection

■ Restrict container activity

■ Prevent anomalous /

suspicious behaviour

Page 24: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Shellshock demo

Page 25: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

What about Serverless?

Page 26: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

27@lizrice

Serverless security

■ If you don’t have to worry about the servers

do you have to worry about server security?

Page 27: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

28@lizrice

Serverless

■ Managed services

■ Functions

Page 28: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

29@lizrice

Functions in containers

Page 29: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Cloud Native Security Advantages

Page 30: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

31@lizrice

Container security advantages

■ Decomposition of the problem

■ Additional layers of defence

■ Continuous deployment

■ Shorter attack window

■ Community best practices

■ Dedicated container security tools

Page 31: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

32@lizrice

Room for improvement incontainer security

80% agreeAqua Security 2017 Survey

Page 32: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

33@lizrice

“Containers … require a more collaborative

approach by security and DevOps teams.”

Page 33: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

34@lizrice

“Organizations would do well to embed

security early into the process”

Page 34: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

35@lizrice

Continuous integrationContinuous deployment

Continuous security

Page 35: Securing your code when you don't even know where it is - Liz Rice - DevOpsDays Tel Aviv 2017

Copyright @ 2017 Aqua Security Software Ltd. All Rights Reserved.

@lizrice | @aquasecteam

aquasec.com/survey

github.com/aquasecurity/kube-bench