SlideShare a Scribd company logo
5
Most read
18
Most read
20
Most read
© 2020 ThoughtWorks
Exploring Docker
container security:
Risks and good practices
Marina Kjaer & Mónica Calderaro
Mónica Calderaro
© 2020 ThoughtWorks
Software Developer
Marina Kjaer
Software Developer
@MonicaCRey
Security is a
HUGE topic
© 2020 ThoughtWorks
© 2020 ThoughtWorks
The main challenges are that Containers are
complex, the lack of isolation and the
complexity of the ecosystem.
Build Ship Run
Container lifecycle
● Code Analysis
● Image Hardening
● Image Scanning
● Image signing
● Resources Control
● User Access Control
● Host and Kernel
security
● Access Controls
● Other Resources
Image Development Safety
Use a Dockerfile linter
Add a linter into your workflow to catch common
security mistakes early
Build
Ship
Run
Image Development Safety
Identify and find any known vulnerabilities that may
be present in an image.
Docker image security scanning
Build
Ship
Run
Image Development Safety
Multistage builds
Keep your image in production a small as possible
by creating 2 or more containers. The first one uses
all tools and libraries to build the application, the
second just runs the output from the first.
Build
Ship
Run
Image Development Safety
Use a trusted image
Use a minimal base image
With the bare minimum that's needed for your
app, for example Distroless.
Build
Ship
Run
Image Development Safety
Choose more specific tags as opposed to latest.
Use fixed tags for immutability
Build
Ship
Run
Image Development Safety
Signatures allow client-side or runtime verification
of the integrity and publisher of specific image
tags.
Verify Images to be signed
Build
Ship
Run
Build Ship Run
Container lifecycle
● Code Analysis
● Image Hardening
● Image Scanning
● Image signing
● Resources Control
● User Access Control
● Host and Kernel
security
● Access Controls
● Other Resources
Image reliability
Signing Images
Trusted sources could include Official Docker
Images, or User trusted sources signed with Docker
Content Trust.
Build
Ship
Run
Restrict Resources
Build
Ship
Run
Set resource quotas
Resource quotas allow you to limit the amount of
memory and CPU resources that a container can
consume.
Restrict access
Role Based Access Control
Based on teams function, assigns no access, view
only, restricted control, or full control
permissions.
Build
Ship
Run
Build Ship Run
Container lifecycle
● Code Analysis
● Image Hardening
● Image Scanning
● Image signing
● Resources Control
● User Access Control
● Host and Kernel
security
● Access Controls
● Other Resources
Limit Privileges
Isolate containers with a user namespace
Namespaces provide isolation for running
processes, limiting their access to system resources
without the running process being aware of the
limitations.
Build
Ship
Run
Limit Privileges
Control groups
They provide many useful metrics, but they also
help ensure that each container gets its fair share
of resources.
Build
Ship
Run
Limit Privileges
Rootless mode
Run the Docker daemon as a non-root user.
Build
Ship
Run
Protect resources
API and network security
Docker containers typically rely heavily on APIs and
networks to communicate with each other.
Build
Ship
Run
© 2020 ThoughtWorks
Demo time
© 2020 ThoughtWorks
Build Ship Run
Let’s recap
With the bare minimum and
from trusted sources
With controlled resources With the right permissions
Resources
● https://docs.docker.com/
● https://resources.whitesourcesoftware.com/blog-w
hitesource/docker-container-security-challenges-an
d-best-practices
● https://www.trendmicro.com/
● https://snyk.io/
● https://neuvector.com/
● https://containerjournal.com/
● https://www.redhat.com/en/topics/security/contain
er-security
© 2020 ThoughtWorks
● https://docs.mirantis.com/docker-enterprise/v3.0/d
ockeree-products/ucp.html
● https://sysdig.com/blog/7-docker-security-vulnerabil
itie
● https://washraf.gitbooks.io/the-docker-ecosystem/c
ontent/Chapter%201/Section%203/Control%20Grou
ps.html
Continue the
conversation on Slack
© 2020 ThoughtWorks
XConfEurope2020
xconfeurope2020.slack.com
#talk2-docker-container-security
#XConfOnline

More Related Content

What's hot (20)

PPTX
Azure dev ops
Vishwas N
 
PDF
From Zero to Hero: Continuous Container Security in 4 Simple Steps
DevOps.com
 
PDF
Hacking into your containers, and how to stop it!
Eric Smalling
 
PDF
DCSF19 Containerized Databases for Enterprise Applications
Docker, Inc.
 
PPTX
Csa container-security-in-aws-dw
Cloud Security Alliance, UK chapter
 
PDF
Kubernetes security
Thomas Fricke
 
PPTX
Docker and SDL Web/Tridion - SDL UK User Group April 2017
rsleggett
 
PDF
Neues aus dem Docker-Universum
Nicholas Dille
 
PDF
The Future of Security and Productivity in Our Newly Remote World
DevOps.com
 
PDF
Kubernetes - security you need to know about it
Haydn Johnson
 
PDF
DockerCon EU 2015: Monitoring Docker
Docker, Inc.
 
PPTX
Docker Container Lifecycles, Problem or Opportunity? by Baruch Sadogursky, JFrog
Docker, Inc.
 
PPT
Containers 101
Black Duck by Synopsys
 
PDF
Embacing service-level-objectives of your microservices in your Cl/CD
Nebulaworks
 
PDF
What is Google Cloud Good For at DevFestInspire 2021
Robert John
 
PPT
Container security
Anthony Chow
 
PDF
Networking in Docker EE 2.0 with Kubernetes and Swarm
Abhinandan P.b
 
PDF
Operating Docker
Jen Andre
 
PPTX
Kubernetes Security
Karthik Gaekwad
 
PDF
Kubernetes - Security Journey
Jerry Jalava
 
Azure dev ops
Vishwas N
 
From Zero to Hero: Continuous Container Security in 4 Simple Steps
DevOps.com
 
Hacking into your containers, and how to stop it!
Eric Smalling
 
DCSF19 Containerized Databases for Enterprise Applications
Docker, Inc.
 
Csa container-security-in-aws-dw
Cloud Security Alliance, UK chapter
 
Kubernetes security
Thomas Fricke
 
Docker and SDL Web/Tridion - SDL UK User Group April 2017
rsleggett
 
Neues aus dem Docker-Universum
Nicholas Dille
 
The Future of Security and Productivity in Our Newly Remote World
DevOps.com
 
Kubernetes - security you need to know about it
Haydn Johnson
 
DockerCon EU 2015: Monitoring Docker
Docker, Inc.
 
Docker Container Lifecycles, Problem or Opportunity? by Baruch Sadogursky, JFrog
Docker, Inc.
 
Containers 101
Black Duck by Synopsys
 
Embacing service-level-objectives of your microservices in your Cl/CD
Nebulaworks
 
What is Google Cloud Good For at DevFestInspire 2021
Robert John
 
Container security
Anthony Chow
 
Networking in Docker EE 2.0 with Kubernetes and Swarm
Abhinandan P.b
 
Operating Docker
Jen Andre
 
Kubernetes Security
Karthik Gaekwad
 
Kubernetes - Security Journey
Jerry Jalava
 

Similar to Docker container security (20)

PPTX
"Docker best practice", Станислав Коленкин (senior devops, DataArt)
DataArt
 
PDF
Docker London: Container Security
Phil Estes
 
PDF
Testing Docker Images Security
Jose Manuel Ortega Candel
 
PDF
OSDC 2016 - Inspecting Security of Docker formatted Container Images to find ...
NETWAYS
 
PDF
How Secure Is Your Container? ContainerCon Berlin 2016
Phil Estes
 
PDF
Securing Containerized Applications: A Primer
Phil Estes
 
PDF
Justin Cormack - The 10 Container Security Tricks That Will Help You Sleep At...
Codemotion
 
PDF
Why should developers care about container security?
Eric Smalling
 
PPTX
Docker Security
antitree
 
PDF
Testing Docker Images Security -All day dev ops 2017
Jose Manuel Ortega Candel
 
PDF
Container Security
Salman Baset
 
PDF
KubeHuddle NA 2023 - Why should devs care about container security - Eric Sma...
Eric Smalling
 
PPTX
Container security Familiar problems in new technology
Frank Victory
 
PDF
GDG SLK - Why should devs care about container security.pdf
James Anderson
 
PDF
Finding Your Way in Container Security
Ksenia Peguero
 
PDF
Breaking and fixing_your_dockerized_environments_owasp_appsec_usa2016
Manideep Konakandla
 
PDF
Docker Security - Secure Container Deployment on Linux
Michael Boelen
 
PDF
Python Web Conference 2022 - Why should devs care about container security.pdf
Eric Smalling
 
PDF
Docker Containers Security
Stephane Woillez
 
PDF
The Container Security Checklist
LibbySchulze
 
"Docker best practice", Станислав Коленкин (senior devops, DataArt)
DataArt
 
Docker London: Container Security
Phil Estes
 
Testing Docker Images Security
Jose Manuel Ortega Candel
 
OSDC 2016 - Inspecting Security of Docker formatted Container Images to find ...
NETWAYS
 
How Secure Is Your Container? ContainerCon Berlin 2016
Phil Estes
 
Securing Containerized Applications: A Primer
Phil Estes
 
Justin Cormack - The 10 Container Security Tricks That Will Help You Sleep At...
Codemotion
 
Why should developers care about container security?
Eric Smalling
 
Docker Security
antitree
 
Testing Docker Images Security -All day dev ops 2017
Jose Manuel Ortega Candel
 
Container Security
Salman Baset
 
KubeHuddle NA 2023 - Why should devs care about container security - Eric Sma...
Eric Smalling
 
Container security Familiar problems in new technology
Frank Victory
 
GDG SLK - Why should devs care about container security.pdf
James Anderson
 
Finding Your Way in Container Security
Ksenia Peguero
 
Breaking and fixing_your_dockerized_environments_owasp_appsec_usa2016
Manideep Konakandla
 
Docker Security - Secure Container Deployment on Linux
Michael Boelen
 
Python Web Conference 2022 - Why should devs care about container security.pdf
Eric Smalling
 
Docker Containers Security
Stephane Woillez
 
The Container Security Checklist
LibbySchulze
 
Ad

More from Thoughtworks (20)

PDF
Design System as a Product
Thoughtworks
 
PDF
Designers, Developers & Dogs
Thoughtworks
 
PDF
Cloud-first for fast innovation
Thoughtworks
 
PDF
More impact with flexible teams
Thoughtworks
 
PDF
Culture of Innovation
Thoughtworks
 
PDF
Dual-Track Agile
Thoughtworks
 
PDF
Developer Experience
Thoughtworks
 
PDF
When we design together
Thoughtworks
 
PDF
Hardware is hard(er)
Thoughtworks
 
PDF
Customer-centric innovation enabled by cloud
Thoughtworks
 
PDF
Amazon's Culture of Innovation
Thoughtworks
 
PDF
When in doubt, go live
Thoughtworks
 
PDF
Don't cross the Rubicon
Thoughtworks
 
PDF
Error handling
Thoughtworks
 
PDF
Your test coverage is a lie!
Thoughtworks
 
PDF
Redefining the unit
Thoughtworks
 
PPTX
Technology Radar Webinar UK - Vol. 22
Thoughtworks
 
PDF
A Tribute to Turing
Thoughtworks
 
PDF
Rsa maths worked out
Thoughtworks
 
PDF
Do No Harm: Do Technologists Need a Code of Ethics?
Thoughtworks
 
Design System as a Product
Thoughtworks
 
Designers, Developers & Dogs
Thoughtworks
 
Cloud-first for fast innovation
Thoughtworks
 
More impact with flexible teams
Thoughtworks
 
Culture of Innovation
Thoughtworks
 
Dual-Track Agile
Thoughtworks
 
Developer Experience
Thoughtworks
 
When we design together
Thoughtworks
 
Hardware is hard(er)
Thoughtworks
 
Customer-centric innovation enabled by cloud
Thoughtworks
 
Amazon's Culture of Innovation
Thoughtworks
 
When in doubt, go live
Thoughtworks
 
Don't cross the Rubicon
Thoughtworks
 
Error handling
Thoughtworks
 
Your test coverage is a lie!
Thoughtworks
 
Redefining the unit
Thoughtworks
 
Technology Radar Webinar UK - Vol. 22
Thoughtworks
 
A Tribute to Turing
Thoughtworks
 
Rsa maths worked out
Thoughtworks
 
Do No Harm: Do Technologists Need a Code of Ethics?
Thoughtworks
 
Ad

Recently uploaded (20)

DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PDF
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PPTX
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Import Data Form Excel to Tally Services
Tally xperts
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
Tally software_Introduction_Presentation
AditiBansal54083
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Build It, Buy It, or Already Got It? Make Smarter Martech Decisions
bbedford2
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
MiniTool Power Data Recovery Full Crack Latest 2025
muhammadgurbazkhan
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
How Apagen Empowered an EPC Company with Engineering ERP Software
SatishKumar2651
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 

Docker container security