SlideShare a Scribd company logo
DOCKER
SECURITY
Fernando Montenegro, CISSP -
Ricardo Gerardi -
@fsmontenegro
@ricardogerardi
TASK Jan 27, 2016
WHYAREWEHERE?
Google Trends: "Microservices"
Google Trends: "Docker"
Google Trends: "Kubernetes"
MICROSERVICES?
(Source: F5)
MICROSERVICES
"Many development teams have found the microservices
architectural style to be a superior approach to a
monolithic architecture. But other teams have found them
to be a productivity-sapping burden. Like any architectural
style, microservices bring costs and bene ts. To make a
sensible choice you have to understand these and apply
them to your speci c context.""
Martin Fowler ( )http://martinfowler.com/articles/microservice-trade-o s.html
SIGNIFICANTBENEFITS
Support CI/CD practices
Easier to achieve scale
Operational bene ts of "DevOps"
DATADOGCONTAINERSURVEY
( )https://www.datadoghq.com/docker-adoption/
Two schools of thought:
Containers as up&down microservices
Containers as "lightweight servers" that stay up
Docker security introduction-task-2016
Docker security introduction-task-2016
WHATWEFOUND
Docker security introduction-task-2016
ABOUTUS-FERNANDO
@fsmontenegro
Sales Engineer
Online Fraud
Network Security
CompSci ’94
Greying hair
Curious
Finance (DIY)
Economics (EMH, Behaviour)
Data Science (Coursera)
ABOUTUS-RICARDO
@ricardogerardi
Senior IT Consultant
Network
Management/Monitoring
IBM Netcool Certi ed
Uncerti ed father (2x)
Interests
Linux/UNIX
Emerging technologies
Data Science
DOCKERINTRO
WHATISDOCKER?
DOCKER,THEPLATFORM
Docker is a container based platform used to package
and run applications in a variety of systems
DOCKER,THECOMPANY
Docker Inc. (https://www.docker.com/company)
SOFTWAREPACKAGEAND
DISTRIBUTIONCHALLENGE
OLDWAY-HOSTEDAPPLICATIONS
VIRTUALMACHINES
ENTERTHECONTAINER
WHYDOCKER?
Linux containers
Around for a long time (Open VZ, LXC, etc)
Not very "friendly"
Docker streamlines the process and makes it very easy
to create and use containers
Speed (Development/Scalability)
Portability
Driver to DevOps and Microservices
WHATDOYOUNEEDTORUN
DOCKER?
Recent Linux Kernel (3.8+)
Namespaces
cGroups
Network connection
DOCKERARCHITECTUREINA
NUTSHELL
Source: https://www.docker.com/what-docker
Source: https://docs.docker.com/engine/introduction/understanding-docker/
DOCKERDEMO
DOCKER
SECURITY
FIRSTTHINGSFIRST...
Containers vs. VMs?
Containers not as isolated as VMs.
but much more isolated than processes...
cgroups & namespaces
Containers are OS-dependant.
Containers for multi-tenancy? Not so fast...
Containers & VMs :-)
SECURITYFORDOCKER
How to secure the Docker "pipeline"
How to secure Docker containers themselves
SECURITYFORDOCKERIMAGES
Secure Registry/Mirror Access
Getting trustworthy images
trusted sources - docker hub, private registry
building secure
Docker Content Trust (1.8) [Notary]
"only signed content in production"
Yubico Keys
DOCKER'SPROJECTNAUTILUS
Docker securing images on DockerHub
Image security
Component inventory/license management
Image optimization
Basic functional testing
CLAIRBYCOREOS
Security scanning of images -
Available on Quay
Security Scanning Beta -
https://coreos.com/blog/vulnerability-analysis-for-
containers/
https://blog.quay.io/security-
scanning-beta/
OTHERCONSIDERATIONS
Containers are stateless
Can mount additional volumes
How to do Secrets Management?
ENV variables - not recommended
Key/Value Pair solutions
Embedded in orchestration ( )
Vault & Keywhiz
Kubernetes
Custom solutions
SECURITYFROMDOCKER
How to contain Docker & containers?
NAMESPACES&CGROUPS
PID – process isolation
Network – NICs, IPs, routing tabes et al.
UTS – hostnames
Mount – lesystem layouts/ properties
IPC – interprocess communication
User – users ("root" != root)
Control groups: resource utilization (RAM, swap, CPU,
IO, controls)
ADDITIONALFEATURES
capabilities - add or drop capabilities
seccomp - ltering of system calls
network isolation via iptables
limit inter-container communication
SECURITYBYDOCKER
Leveraging Docker features for security
LEVERAGINGDOCKERFORSECURITY
microservice -> reduced attack surface
enforce content trust to protect production
r/o FileSystems
drop capabilities when possible
seccomp - ltering system calls
journaled changes
OPERATIONS
ANDECOSYSTEM
WHERETODEPLOYDOCKER?
ONPREMISES
Baremetal (on Linux)
Virtual Machines
IaaS, OpenStack, etc
PUBLICCLOUDPROVIDERS
PAASPROVIDERS
ORCHESTRATION/
SCHEDULING
NETWORKING
BASICNETWORKING
OVERLAYNETWORKING
MONITORING
CHALLENGES
Scalability (100s of containers in a single host)
Host Monitoring x Container Monitoring
Container instrumentation (1 process/container
philosophy)
API instability
CONTAINERMONITORINGSOLUTIONS
Sysdig Cloud
Weaveworks
New relic
Google cAdvisor
CONTAINERLOGMANAGEMENT
ELK Stack
Splunk
WRAPPINGUP
LOOKINGATTHEFUTURE
Containers exist in a continuum of options.
Unikernels
one degree further
compile kernel for application
Undebuggable?
Serverless Architecture?
AWS Lambda
Azure Service Fabric
potentially bad idea?
Docker security introduction-task-2016
WRAPPINGUP
Docker Security "Anti-Patterns"
free-for-all (unrestricted containers in Prod)
treating containers as servers
Recommendations for Security
Don't try to stop it!!!
recognize massive potential for disruption
no agents on containers
watch for outbound tra c
keep up to date (news!)
rethink approach ("cattle, not pets")
DOCKERALLOVER
Last few weeks of news:
Docker buys Unikernel
Arista announces Container support in EOS
Citrix supports NetScaler as Container
Amazon announces Docker 1.9 support
RESOURCES!
Twitterfolk:
- AWS architect, tons of
Docker links
- Docker Security
- Tons of Container work
- Pluralsight course
- KeepingItClassless,
TechFieldDay
- WebScale @ Shopify
- DevOps
- Shmoocon 2016 preso
and - Company &
Conference
- Kubernetes confab
Websites:
- Checklist
- portal of all things "modern" stacks
- Network-focused approach
- Open Container Initiative
@mattnowina
@diogomonica
@frazelledazzell
@nigelpoulton
@mierdin
@Sirupsen
@blinken_lichten
@jaybeale
@docker @dockercon
@kubeconio
DockerBench
TheNewStack
Packet Pushers
RunC

More Related Content

What's hot (20)

PPTX
A Survey of Container Security in 2016: A Security Update on Container Platforms
Salman Baset
 
PPTX
Exploring Docker Security
Patrick Kleindienst
 
PDF
Docker London: Container Security
Phil Estes
 
PDF
Docker Security Deep Dive by Ying Li and David Lawrence
Docker, Inc.
 
PDF
Docker Security - Continuous Container Security
Dieter Reuter
 
PPTX
Docker Networking Tip - Macvlan driver
Sreenivas Makam
 
PDF
Introduction to docker security
Walid Ashraf
 
PDF
Docker Security: Are Your Containers Tightly Secured to the Ship?
Michael Boelen
 
PDF
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Docker, Inc.
 
PDF
dockerizing web application
Walid Ashraf
 
PDF
Docker Security and Content Trust
ehazlett
 
PPTX
Docker 1.9 Feature Overview
Sreenivas Makam
 
PDF
The state of the swarm
Mathieu Buffenoir
 
PDF
docker installation and basics
Walid Ashraf
 
PDF
Introduction to docker
Walid Ashraf
 
PDF
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
PPTX
Introduction To Docker
Dr. Syed Hassan Amin
 
PDF
Networking Overview for Docker Platform
Aditya Patawari
 
PDF
Monitoring Dell Infrastructure using Docker & Microservices
Ajeet Singh Raina
 
PPTX
Devoxx France 2015 - The Docker Orchestration Ecosystem on Azure
Patrick Chanezon
 
A Survey of Container Security in 2016: A Security Update on Container Platforms
Salman Baset
 
Exploring Docker Security
Patrick Kleindienst
 
Docker London: Container Security
Phil Estes
 
Docker Security Deep Dive by Ying Li and David Lawrence
Docker, Inc.
 
Docker Security - Continuous Container Security
Dieter Reuter
 
Docker Networking Tip - Macvlan driver
Sreenivas Makam
 
Introduction to docker security
Walid Ashraf
 
Docker Security: Are Your Containers Tightly Secured to the Ship?
Michael Boelen
 
Under the Hood with Docker Swarm Mode - Drew Erny and Nishant Totla, Docker
Docker, Inc.
 
dockerizing web application
Walid Ashraf
 
Docker Security and Content Trust
ehazlett
 
Docker 1.9 Feature Overview
Sreenivas Makam
 
The state of the swarm
Mathieu Buffenoir
 
docker installation and basics
Walid Ashraf
 
Introduction to docker
Walid Ashraf
 
Deep Dive into Docker Swarm Mode
Ajeet Singh Raina
 
Introduction To Docker
Dr. Syed Hassan Amin
 
Networking Overview for Docker Platform
Aditya Patawari
 
Monitoring Dell Infrastructure using Docker & Microservices
Ajeet Singh Raina
 
Devoxx France 2015 - The Docker Orchestration Ecosystem on Azure
Patrick Chanezon
 

Viewers also liked (20)

PPTX
Security For Humans
conjur_inc
 
DOC
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Gaurav Srivastav
 
PPT
Een Gezond Gebit2
guest031320
 
PDF
Java standards in WCM
Paolo Mottadelli
 
PPTX
CloudStack EU user group - Trillian
ShapeBlue
 
PDF
Machine Learning & IT Service Intelligence for the Enterprise: The Future is ...
Precisely
 
PDF
Application Deployment at UC Riverside
Michael Kennedy
 
PPTX
What does "monitoring" mean? (FOSDEM 2017)
Brian Brazil
 
PDF
Aws + Puppet = Dynamic Scale
Puppet
 
PPTX
You know, for search
Peter van der Weerd
 
PDF
Neuigkeiten von DEPAROM & Co
Arne Krueger
 
PDF
AWS + Puppet = Dynamic Scale
Shiva Narayanaswamy
 
PDF
Cloud Expo New York: OpenFlow Is SDN Yet SDN Is Not Only OpenFlow
Cohesive Networks
 
PPTX
Expect the unexpected: Anticipate and prepare for failures in microservices b...
Bhakti Mehta
 
PDF
Evolution of OPNFV CI System: What already exists and what can be introduced
OPNFV
 
PPT
Introduction to smpc
Cysinfo Cyber Security Community
 
DOCX
Kelompok 2
University of Andalas
 
PDF
Platform - Technical architecture
David Rundle
 
PPTX
Reversing malware analysis training part3 windows pefile formatbasics
Cysinfo Cyber Security Community
 
Security For Humans
conjur_inc
 
Gaurav dev ops (AWS, Linux, Automation-ansible, jenkins:CI and CD:Ansible)
Gaurav Srivastav
 
Een Gezond Gebit2
guest031320
 
Java standards in WCM
Paolo Mottadelli
 
CloudStack EU user group - Trillian
ShapeBlue
 
Machine Learning & IT Service Intelligence for the Enterprise: The Future is ...
Precisely
 
Application Deployment at UC Riverside
Michael Kennedy
 
What does "monitoring" mean? (FOSDEM 2017)
Brian Brazil
 
Aws + Puppet = Dynamic Scale
Puppet
 
You know, for search
Peter van der Weerd
 
Neuigkeiten von DEPAROM & Co
Arne Krueger
 
AWS + Puppet = Dynamic Scale
Shiva Narayanaswamy
 
Cloud Expo New York: OpenFlow Is SDN Yet SDN Is Not Only OpenFlow
Cohesive Networks
 
Expect the unexpected: Anticipate and prepare for failures in microservices b...
Bhakti Mehta
 
Evolution of OPNFV CI System: What already exists and what can be introduced
OPNFV
 
Introduction to smpc
Cysinfo Cyber Security Community
 
Platform - Technical architecture
David Rundle
 
Reversing malware analysis training part3 windows pefile formatbasics
Cysinfo Cyber Security Community
 
Ad

Similar to Docker security introduction-task-2016 (20)

PPTX
Yet Another Session about Docker and Containers​
Pedro Sousa
 
PPTX
Oscon 2017: Build your own container-based system with the Moby project
Patrick Chanezon
 
PPTX
Weave User Group Talk - DockerCon 2017 Recap
Patrick Chanezon
 
PPTX
Docker training
Kiran Kumar
 
PDF
Microservices at scale with docker and kubernetes - AMS JUG 2017
Arjen Wassink
 
PDF
Halifax DevOps - Meet-up - July.19 2017
Kyle Bassett
 
PPTX
Devoxx 2016 - Docker Nuts and Bolts
Patrick Chanezon
 
PDF
AtlanTEC 2017: Containers! Why Docker, Why NOW?
Phil Estes
 
PDF
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Kangaroot
 
PPTX
Microservices and containers for the unitiated
Kevin Lee
 
PDF
Dockercon eu tour 2015 - Devoxx Casablanca
Michel Courtine
 
PDF
IAU workshop 2018 day one
Walid Shaari
 
PDF
Docker-PPT.pdf for presentation and other
adarsh20cs004
 
PPTX
Microservices in the Enterprise
Jesus Rodriguez
 
PDF
Docker en kernel security
smart_bit
 
PPTX
Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...
Patrick Chanezon
 
PPTX
Docker Devoxx UK - Never mind the bollocks here's the Linux Containers
Patrick Chanezon
 
PPTX
What's New in Docker - February 2017
Patrick Chanezon
 
PDF
MinIO January 2020 Briefing
Jonathan Symonds
 
PDF
The New Stack Container Summit Talk
The New Stack
 
Yet Another Session about Docker and Containers​
Pedro Sousa
 
Oscon 2017: Build your own container-based system with the Moby project
Patrick Chanezon
 
Weave User Group Talk - DockerCon 2017 Recap
Patrick Chanezon
 
Docker training
Kiran Kumar
 
Microservices at scale with docker and kubernetes - AMS JUG 2017
Arjen Wassink
 
Halifax DevOps - Meet-up - July.19 2017
Kyle Bassett
 
Devoxx 2016 - Docker Nuts and Bolts
Patrick Chanezon
 
AtlanTEC 2017: Containers! Why Docker, Why NOW?
Phil Estes
 
Red Hat OpenShift & CoreOS by Ludovic Aelbrecht, Senior Solution Architect at...
Kangaroot
 
Microservices and containers for the unitiated
Kevin Lee
 
Dockercon eu tour 2015 - Devoxx Casablanca
Michel Courtine
 
IAU workshop 2018 day one
Walid Shaari
 
Docker-PPT.pdf for presentation and other
adarsh20cs004
 
Microservices in the Enterprise
Jesus Rodriguez
 
Docker en kernel security
smart_bit
 
Docker Azure Friday OSS March 2017 - Developing and deploying Java & Linux on...
Patrick Chanezon
 
Docker Devoxx UK - Never mind the bollocks here's the Linux Containers
Patrick Chanezon
 
What's New in Docker - February 2017
Patrick Chanezon
 
MinIO January 2020 Briefing
Jonathan Symonds
 
The New Stack Container Summit Talk
The New Stack
 
Ad

Recently uploaded (20)

PPTX
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
PPTX
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
PPT
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
PPTX
Orchestrating things in Angular application
Peter Abraham
 
PPT
introduction to networking with basics coverage
RamananMuthukrishnan
 
PPTX
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
PDF
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
PPTX
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
PDF
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
PPTX
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
PPT
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
PPTX
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
PDF
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
PPTX
internet básico presentacion es una red global
70965857
 
PDF
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
PPTX
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
PPTX
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
PPTX
INTEGRATION OF ICT IN LEARNING AND INCORPORATIING TECHNOLOGY
kvshardwork1235
 
PPTX
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
PPTX
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 
Presentation3gsgsgsgsdfgadgsfgfgsfgagsfgsfgzfdgsdgs.pptx
SUB03
 
西班牙武康大学毕业证书{UCAMOfferUCAM成绩单水印}原版制作
Taqyea
 
Computer Securityyyyyyyy - Chapter 1.ppt
SolomonSB
 
Orchestrating things in Angular application
Peter Abraham
 
introduction to networking with basics coverage
RamananMuthukrishnan
 
一比一原版(LaTech毕业证)路易斯安那理工大学毕业证如何办理
Taqyea
 
Apple_Environmental_Progress_Report_2025.pdf
yiukwong
 
Cost_of_Quality_Presentation_Software_Engineering.pptx
farispalayi
 
Build Fast, Scale Faster: Milvus vs. Zilliz Cloud for Production-Ready AI
Zilliz
 
PM200.pptxghjgfhjghjghjghjghjghjghjghjghjghj
breadpaan921
 
Computer Securityyyyyyyy - Chapter 2.ppt
SolomonSB
 
原版西班牙莱昂大学毕业证(León毕业证书)如何办理
Taqyea
 
𝐁𝐔𝐊𝐓𝐈 𝐊𝐄𝐌𝐄𝐍𝐀𝐍𝐆𝐀𝐍 𝐊𝐈𝐏𝐄𝐑𝟒𝐃 𝐇𝐀𝐑𝐈 𝐈𝐍𝐈 𝟐𝟎𝟐𝟓
hokimamad0
 
internet básico presentacion es una red global
70965857
 
AI_MOD_1.pdf artificial intelligence notes
shreyarrce
 
L1A Season 1 Guide made by A hegy Eng Grammar fixed
toszolder91
 
Lec15_Mutability Immutability-converted.pptx
khanjahanzaib1
 
INTEGRATION OF ICT IN LEARNING AND INCORPORATIING TECHNOLOGY
kvshardwork1235
 
ONLINE BIRTH CERTIFICATE APPLICATION SYSYTEM PPT.pptx
ShyamasreeDutta
 
一比一原版(SUNY-Albany毕业证)纽约州立大学奥尔巴尼分校毕业证如何办理
Taqyea
 

Docker security introduction-task-2016