SlideShare a Scribd company logo
1 of 34
Download to read offline
Containers security
Kernel internals
“There may be ways ... for an application to escape out of its container or deny service to the
host or other containers.” – Mark Russinovich, CTO Microsoft Azure
https://azure.microsoft.com/en-us/blog/containers-docker-windows-and-trends/
“For Google I would say that security is probably the number one priority, for KVM it is the killer
feature otherwise we could just sell people Docker containers or just let them run on Linux
processors. So the main thing that VMs actual provide it that isolation and all our VM’s are on
KVM.” - Andrew Honig, tech lead on the Cloud Security Team at Google
https://youtu.be/L7ScFlkJEO8?t=33
“The inter-process isolation provided by a monolithic kernel such as Windows or Linux could
never be compared to the inter-VM isolation offered even by the most lousy hypervisors. This is
simply because the sizes of the interfaces exposed to untrusted entities (processes in case of a
monolithic kernel; VMs in case of a hypervisor) are just incomparable. ”
“ Sadly … we have finally came to the conclusion that consumer Windows OS, with all those
one-would-think sophisticated security mechanisms, is just not usable for any real-world domain
isolation. ” - Joanna Rutkowska – Security researcher & architect of Qubes OS
http://blog.invisiblethings.org/2014/01/15/shattering-myths-of-windows-security.html
“Some people make the mistake of thinking of containers as a better and faster way of
running virtual machines. From a security point of view, containers are much weaker.” – Dan
Walsh, SELinux architect (?)
“There’s contentions all over the place that containers are not as secure as hypervisors. This is
not actually true. Parallels and Virtuozo, we’ve been running secure containers for at least 10
years.” – James Bottomley, Linux Maintainer and Parallels CTO
“Virtual Machines might be more secure today, but containers are definitely catching up. –
Jerome Petazzoni, Senior Software Engineer at Docker
“You are absolutely deluded, if not stupid, if you think that a worldwide collection of software
engineers who can’t write a operating system or application without security holes, can then
turn around and suddenly write virtualization layers without security holes” Theo de Raadt,
OpenBSD project lead
https://fosdem.org/2015/schedule/event/zombieapocalypse/
Agenda
• Not about Docker security
• Entropy
• History of Kernel Security
• Conclusion
Bart Smith
• Stadjer
• Windows NT 3.1
• Design & security
• Migrating to Cloud Native
Why is Docker so popular?
1. instant startup
2. namespace isolation & resource governance
3. small memory footprint
4. common toolset
5. packaging - Open Container Initiative OCI
6. ease deployment - DockerHub
More security see talk Adrian 4/6/15 https://youtu.be/04LOuMgNj9U
Fortress
• Few doors and windows
• Easy blocking
• Defense in Depth, multilayer
Entropy
Peter Sewell,
Cambridge
@31C3
http://media.ccc.de/browse/congress/2014/31c3_-_6574_-_en_-_saal_1_-_201412301245_-_why_are_computers_so_and_what_can_we_do_about_it_-_peter_sewell.html
SPI - stack
• SAAS
• PAAS
• IAAS
HW
OS OS OS
App
VIRT
App App App App App
Virt HW Virt HW Virt HW
HW
OS OS OS
App
VIRT
App App App
Virt HW Virt HW Virt HW
IAAS with HW virt
•AWS
•Azure Infra
•Google Com-
pute Engine
•Joyent
HW
VIRT
Virt HW Virt HW Virt HW
OS OS OS
http://bit.ly/2015-cloud-mq
(try update year in link when expired)
( )
App App
db web file etcmid.
ware
App1
db web file etcmid.
ware
App2 App3
PAAS
•EC3
•Azure App Service
•Google App Engine
db web file etcmid.
waredb web file etcmid.
ware
App1 App2 App3
db web file etcmid.
ware
App1 App2 App3
Jérôme Petazzoni explaining:
• The only difference between a-process-in-a-
container and a-process-not-in-a-container is
a few labels on top on a process that say this is
in container X
• A context-switch between two containers is
exactly the same as a context-switch between
two processes
https://youtu.be/pUQ5ukrVaH4?t=600https://youtu.be/pUQ5ukrVaH4?t=667
IAAS with OSvirt/Zones/Containers
HW
OS
Container
Virt OS
App
Lib
Lib
Container
Virt OS
App
Lib
Lib
Container
Virt OS
App
Lib
Lib
Container
Virt OS
App
Lib
Lib
Lib
Lib
HW
OS
Container
Virt OS
App
Lib
Lib
Container
Virt OS
App
Lib
Lib
? ?
MAAS
•Ubuntu
•Softlayer/IBM
•Leaseweb
HW
DEV Performance Security
PAAS   
Containers  
IAAS   
Hypervisor
App
HW
OS
VirtHW
App
OS
VirtHW
Kernel
Container
App
HW
db
Code1
web
2
?
https://en.wikipedia.org/wiki/Operating-system-level_virtualization#Implementations
Docker < v0.9
Kernel
LXC
App
HW
Lib
Lib
Docker
Docker v0.9 and up
DOCKER_OPTS="-e lxc"During install, libcontainer :
Setting up lxc-docker-1.x.0
https://blog.docker.com/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/ http://blog.docker.com/2015/06/runc/
Kernel
Lib-
container
App
HW
Lib
Lib
Docker
Kernel
LXC
App
HW
Docker
Kernel
runC
App
HW
Docker
Announced june15:
runC replaces Libcontainer
Kernel
App
HW
Lib
Lib
libCSystem Calls
GO: nolibc
GO does system calls manually, without relying
on libc or anything else - Aram Hăvărnanu
https://archive.fosdem.org/2014/schedule/event/porting_go_to_new_platforms/ https://youtu.be/tnXOeHRuyyA?t=1322
User
(ring3)
Kernel
(ring0)
Kernel
HW
Lib
Lib
System Calls
GO
app
Building Docker Images for Static Go Binaries
Statically Linked, with syscall 'package'
https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07
FROM scratch
MAINTAINER Kelsey Hightower <kelsey.hightower@gmail.com>
ADD contributors contributors
ENV PORT 80
EXPOSE 80
ENTRYPOINT ["/contributors"]
Total size of image: 6MB
Triton
• LX: run Linux on Solaris
• Docker on Illumos
• Joyent
Solaris
Kernel
App
Lib
Lib
libCLinux Syscalls
Container
Solaris Syscalls
https://www.joyent.com/blog/triton-docker-and-the-best-of-all-worlds
http://us-east.manta.joyent.com/jmc/public/opensolaris/ARChive/PSARC/2002/174/zones-design.spec.opensolaris.pdf
http://www.crn.com/slide-shows/cloud/300076877/heres-who-made-gartners-2015-cloud-iaas-magic-quadrant.htm/pgno/0/19
Mirage OS - Cambridge
• unikernel
• Stat. linked kernel
• No Firewall needed
• defense: limit interfaces
(including Xen)
• 20ms startup
http://media.ccc.de/browse/congress/2014/31c3_-_6443_-_en_-_saal_2_-_201412271245_-
_trustworthy_secure_modular_operating_system_engineering_-_hannes_-_david_kaloper.html
Some kernel
HW
Lib
LibOCaml
Xen Hypervisor
Dom0
Qubes - Joanna Rutkowska
• with a GUI
• multilayer defense
https://www.qubes-os.org/
Microsoft
• OneCore
– 64bit only
– refactoring
– base for Win10, Server, Phone & Nano server
• Containers
Docker support
https://channel9.msdn.com/Events/Build/2015/2-704
https://channel9.msdn.com/Events/Build/2015/2-683
https://azure.microsoft.com/en-us/blog/containers-docker-windows-and-trends/
Microsoft Containers
Server CoreNano Server
Born in the cloud applications Traditional Applications
Highly CompatibleHighly Optimized
Microsoft’s Container Runtimes
Windows Server Container
HIGHLY
AUTOMATED EFFICIENT
SCALABLE
AND ELASTIC
Hyper-V Container
HIGHLY
AUTOMATED EFFICIENT
SCALABLE
AND ELASTIC
PUBLIC
MULTI-
TEANCY
SHARED
HOSTING
SECURE
SECURE
HOSTING
TRUSTED
MULTI-TENANCY
REGULATED
WORKLOADS
Nano Server: reverse forwarders
• Additional packages
– WoW64 for backward compatibility
– Hyper-V host
– Replicated File services
https://channel9.msdn.com/Events/Ignite/2015/BRK2461
What runs today with the Reverse
Forwarders?• Chef
• PHP
• Nginx
• Python 3.5
• Node.js
• GO
• Redis
• MySQL
• OpenSSL
• Java (OpenJDK)
• Ruby (2.1.5)
• SQLite
Intel: Clear Linux
• 1000 VM/host
• 200ms startup
• Intel VT
http://www.theregister.co.uk/2015/05/21/intel_wants_containers_to_be_alone_together_naturally/
http://www.infoworld.com/article/2925038/linux/intel-takes-on-coreos-with-its-own-container-based-linux.html
http://lwn.net/Articles/644675/ https://www.clearlinux.org
VMware
• Photon Linux distribution
• Open Source
• Management door mesos,
Hadoop, Openstack, Pivotal CF
(Lattice), CoreOs, Kubernetes,
etc
Micro-visor
Hardware
Photon
docker-machine
Photon
App
LIB
Photon
App
LIB
• Photon platform
Gartner IAAS MQ 2015
Gartner also recommends
cloud buyers adopt a
bimodal strategy that
allows them to maintain
critical IT operations while
innovating on agile
development platforms.
http://bit.ly/2015-cloud-mq (try update year in link when expired)
Conclusion
• ARM simpler Virtualization
• Converge Containers & VM
Questions?
Docker training/conferenties
http://dutchdockerday.nl 20 Nov 15, €99 (early bird) Amsterdam
https://skillsmatter.com/conferences/7208-containersched-2015 London
http://softwarecircus.eu Okt 2016 €150 (early bird) Amsterdam
http://nkhare.github.io/data_and_network_containers/ self training
Link Q&A
• side-channel attack processor cache
– http://wp.me/p26mzH-c5
– http://reg.cx/2f6r

More Related Content

What's hot

Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformAll Things Open
 
OSCON: Better Collaboration through Tooling
OSCON: Better Collaboration through ToolingOSCON: Better Collaboration through Tooling
OSCON: Better Collaboration through ToolingDocker, Inc.
 
Getting started with docker
Getting started with dockerGetting started with docker
Getting started with dockerJEMLI Fathi
 
Linux containers & Devops
Linux containers & DevopsLinux containers & Devops
Linux containers & DevopsMaciej Lasyk
 
Docker for the Internet of Things (IoT): An Introduction
Docker for the Internet of Things (IoT): An IntroductionDocker for the Internet of Things (IoT): An Introduction
Docker for the Internet of Things (IoT): An Introductionmsyukor
 
A (fun!) Comparison of Docker Vulnerability Scanners
A (fun!) Comparison of Docker Vulnerability ScannersA (fun!) Comparison of Docker Vulnerability Scanners
A (fun!) Comparison of Docker Vulnerability ScannersJohn Kinsella
 
Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?msyukor
 
Lessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for ContainersLessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for ContainersAll Things Open
 
The Docker ecosystem and the future of application deployment
The Docker ecosystem and the future of application deploymentThe Docker ecosystem and the future of application deployment
The Docker ecosystem and the future of application deploymentJérôme Petazzoni
 
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KH
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KHKernel Recipes 2017 - Linux Kernel Release Model - Greg KH
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KHAnne Nicolas
 
An overview of OpenVZ virtualization technology
An overview of OpenVZ virtualization technologyAn overview of OpenVZ virtualization technology
An overview of OpenVZ virtualization technologyOpenVZ
 
Microservices: How loose is loosely coupled?
Microservices: How loose is loosely coupled?Microservices: How loose is loosely coupled?
Microservices: How loose is loosely coupled?John Rofrano
 
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...DynamicInfraDays
 
Making Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and DockerMaking Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and DockerJohn Rofrano
 
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at Kiratech
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at KiratechMoby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at Kiratech
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at KiratechKiratech
 
Docker: automation for the rest of us
Docker: automation for the rest of usDocker: automation for the rest of us
Docker: automation for the rest of usJérôme Petazzoni
 
Introduction to Containers: From Docker to Kubernetes and everything in-between
Introduction to Containers:  From Docker to Kubernetes and everything in-betweenIntroduction to Containers:  From Docker to Kubernetes and everything in-between
Introduction to Containers: From Docker to Kubernetes and everything in-betweenAll Things Open
 
Modern IoT and Embedded Linux Deployment - Berlin
Modern IoT and Embedded Linux Deployment - BerlinModern IoT and Embedded Linux Deployment - Berlin
Modern IoT and Embedded Linux Deployment - BerlinDjalal Harouni
 

What's hot (20)

Securing Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container PlatformSecuring Applications and Pipelines on a Container Platform
Securing Applications and Pipelines on a Container Platform
 
OSCON: Better Collaboration through Tooling
OSCON: Better Collaboration through ToolingOSCON: Better Collaboration through Tooling
OSCON: Better Collaboration through Tooling
 
Getting started with docker
Getting started with dockerGetting started with docker
Getting started with docker
 
Linux containers & Devops
Linux containers & DevopsLinux containers & Devops
Linux containers & Devops
 
Docker for the Internet of Things (IoT): An Introduction
Docker for the Internet of Things (IoT): An IntroductionDocker for the Internet of Things (IoT): An Introduction
Docker for the Internet of Things (IoT): An Introduction
 
A (fun!) Comparison of Docker Vulnerability Scanners
A (fun!) Comparison of Docker Vulnerability ScannersA (fun!) Comparison of Docker Vulnerability Scanners
A (fun!) Comparison of Docker Vulnerability Scanners
 
Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?Programming IoT with Docker: How to Start?
Programming IoT with Docker: How to Start?
 
Lessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for ContainersLessons Learned in Automating Compliance for Containers
Lessons Learned in Automating Compliance for Containers
 
Kubernetes 101 for_penetration_testers_-_null_mumbai
Kubernetes 101 for_penetration_testers_-_null_mumbaiKubernetes 101 for_penetration_testers_-_null_mumbai
Kubernetes 101 for_penetration_testers_-_null_mumbai
 
The Docker ecosystem and the future of application deployment
The Docker ecosystem and the future of application deploymentThe Docker ecosystem and the future of application deployment
The Docker ecosystem and the future of application deployment
 
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KH
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KHKernel Recipes 2017 - Linux Kernel Release Model - Greg KH
Kernel Recipes 2017 - Linux Kernel Release Model - Greg KH
 
An overview of OpenVZ virtualization technology
An overview of OpenVZ virtualization technologyAn overview of OpenVZ virtualization technology
An overview of OpenVZ virtualization technology
 
Microservices: How loose is loosely coupled?
Microservices: How loose is loosely coupled?Microservices: How loose is loosely coupled?
Microservices: How loose is loosely coupled?
 
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...
ContainerDays Boston 2016: "Autopilot: Running Real-world Applications in Con...
 
Making Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and DockerMaking Developers Productive with Vagrant, VirtualBox, and Docker
Making Developers Productive with Vagrant, VirtualBox, and Docker
 
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at Kiratech
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at KiratechMoby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at Kiratech
Moby and linux kit, what to expect - Lorenzo Fontana, DevOps Expert at Kiratech
 
Docker: automation for the rest of us
Docker: automation for the rest of usDocker: automation for the rest of us
Docker: automation for the rest of us
 
Docker Dojo
Docker DojoDocker Dojo
Docker Dojo
 
Introduction to Containers: From Docker to Kubernetes and everything in-between
Introduction to Containers:  From Docker to Kubernetes and everything in-betweenIntroduction to Containers:  From Docker to Kubernetes and everything in-between
Introduction to Containers: From Docker to Kubernetes and everything in-between
 
Modern IoT and Embedded Linux Deployment - Berlin
Modern IoT and Embedded Linux Deployment - BerlinModern IoT and Embedded Linux Deployment - Berlin
Modern IoT and Embedded Linux Deployment - Berlin
 

Similar to Docker en kernel security

Docker and kernel security
Docker and kernel securityDocker and kernel security
Docker and kernel securitysmart_bit
 
Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Patrick Chanezon
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014Carlo Bonamico
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...Codemotion
 
Docker Platform and Ecosystem
Docker Platform and EcosystemDocker Platform and Ecosystem
Docker Platform and EcosystemPatrick Chanezon
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Arun prasath
 
Docker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemDocker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemVan Phuc
 
Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization WSO2
 
Evoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationEvoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationImesh Gunaratne
 
Container security
Container securityContainer security
Container securityAnthony Chow
 
What You Should Know About Container Security
What You Should Know About Container SecurityWhat You Should Know About Container Security
What You Should Know About Container SecurityAll Things Open
 
Docker intro
Docker introDocker intro
Docker introspiddy
 
Weave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapWeave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapPatrick Chanezon
 
Revolutionizing the cloud with container virtualization
Revolutionizing the cloud with container virtualizationRevolutionizing the cloud with container virtualization
Revolutionizing the cloud with container virtualizationWSO2
 
IAU workshop 2018 day one
IAU workshop 2018 day oneIAU workshop 2018 day one
IAU workshop 2018 day oneWalid Shaari
 
DockerCon 2017 - General Session Day 1 - Solomon Hykes
DockerCon 2017 - General Session Day 1 - Solomon HykesDockerCon 2017 - General Session Day 1 - Solomon Hykes
DockerCon 2017 - General Session Day 1 - Solomon HykesDocker, Inc.
 

Similar to Docker en kernel security (20)

Docker and kernel security
Docker and kernel securityDocker and kernel security
Docker and kernel security
 
Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017Moby Open Source Summit North America 2017
Moby Open Source Summit North America 2017
 
codemotion-docker-2014
codemotion-docker-2014codemotion-docker-2014
codemotion-docker-2014
 
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...Why everyone is excited about Docker (and you should too...) -  Carlo Bonamic...
Why everyone is excited about Docker (and you should too...) - Carlo Bonamic...
 
Docker Platform and Ecosystem
Docker Platform and EcosystemDocker Platform and Ecosystem
Docker Platform and Ecosystem
 
Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment Docker - Demo on PHP Application deployment
Docker - Demo on PHP Application deployment
 
Docker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker EcosystemDocker-Hanoi @DKT , Presentation about Docker Ecosystem
Docker-Hanoi @DKT , Presentation about Docker Ecosystem
 
Evolution of Linux Containerization
Evolution of Linux Containerization Evolution of Linux Containerization
Evolution of Linux Containerization
 
Evoluation of Linux Container Virtualization
Evoluation of Linux Container VirtualizationEvoluation of Linux Container Virtualization
Evoluation of Linux Container Virtualization
 
Container security
Container securityContainer security
Container security
 
What You Should Know About Container Security
What You Should Know About Container SecurityWhat You Should Know About Container Security
What You Should Know About Container Security
 
Docker intro
Docker introDocker intro
Docker intro
 
OpenStack Summit
OpenStack SummitOpenStack Summit
OpenStack Summit
 
Weave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 RecapWeave User Group Talk - DockerCon 2017 Recap
Weave User Group Talk - DockerCon 2017 Recap
 
Revolutionizing the cloud with container virtualization
Revolutionizing the cloud with container virtualizationRevolutionizing the cloud with container virtualization
Revolutionizing the cloud with container virtualization
 
IAU workshop 2018 day one
IAU workshop 2018 day oneIAU workshop 2018 day one
IAU workshop 2018 day one
 
DockerCon 2017 - General Session Day 1 - Solomon Hykes
DockerCon 2017 - General Session Day 1 - Solomon HykesDockerCon 2017 - General Session Day 1 - Solomon Hykes
DockerCon 2017 - General Session Day 1 - Solomon Hykes
 
Cont0519
Cont0519Cont0519
Cont0519
 
Docker Ecosystem on Azure
Docker Ecosystem on AzureDocker Ecosystem on Azure
Docker Ecosystem on Azure
 
Dockers zero to hero
Dockers zero to heroDockers zero to hero
Dockers zero to hero
 

Recently uploaded

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...aditisharan08
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)OPEN KNOWLEDGE GmbH
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackVICTOR MAESTRE RAMIREZ
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 

Recently uploaded (20)

Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Naraina Delhi 💯Call Us 🔝8264348440🔝
 
Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...Unit 1.1 Excite Part 1, class 9, cbse...
Unit 1.1 Excite Part 1, class 9, cbse...
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)Der Spagat zwischen BIAS und FAIRNESS (2024)
Der Spagat zwischen BIAS und FAIRNESS (2024)
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
Cloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStackCloud Management Software Platforms: OpenStack
Cloud Management Software Platforms: OpenStack
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 

Docker en kernel security

  • 2. “There may be ways ... for an application to escape out of its container or deny service to the host or other containers.” – Mark Russinovich, CTO Microsoft Azure https://azure.microsoft.com/en-us/blog/containers-docker-windows-and-trends/ “For Google I would say that security is probably the number one priority, for KVM it is the killer feature otherwise we could just sell people Docker containers or just let them run on Linux processors. So the main thing that VMs actual provide it that isolation and all our VM’s are on KVM.” - Andrew Honig, tech lead on the Cloud Security Team at Google https://youtu.be/L7ScFlkJEO8?t=33 “The inter-process isolation provided by a monolithic kernel such as Windows or Linux could never be compared to the inter-VM isolation offered even by the most lousy hypervisors. This is simply because the sizes of the interfaces exposed to untrusted entities (processes in case of a monolithic kernel; VMs in case of a hypervisor) are just incomparable. ” “ Sadly … we have finally came to the conclusion that consumer Windows OS, with all those one-would-think sophisticated security mechanisms, is just not usable for any real-world domain isolation. ” - Joanna Rutkowska – Security researcher & architect of Qubes OS http://blog.invisiblethings.org/2014/01/15/shattering-myths-of-windows-security.html
  • 3. “Some people make the mistake of thinking of containers as a better and faster way of running virtual machines. From a security point of view, containers are much weaker.” – Dan Walsh, SELinux architect (?) “There’s contentions all over the place that containers are not as secure as hypervisors. This is not actually true. Parallels and Virtuozo, we’ve been running secure containers for at least 10 years.” – James Bottomley, Linux Maintainer and Parallels CTO “Virtual Machines might be more secure today, but containers are definitely catching up. – Jerome Petazzoni, Senior Software Engineer at Docker “You are absolutely deluded, if not stupid, if you think that a worldwide collection of software engineers who can’t write a operating system or application without security holes, can then turn around and suddenly write virtualization layers without security holes” Theo de Raadt, OpenBSD project lead https://fosdem.org/2015/schedule/event/zombieapocalypse/
  • 4. Agenda • Not about Docker security • Entropy • History of Kernel Security • Conclusion
  • 5. Bart Smith • Stadjer • Windows NT 3.1 • Design & security • Migrating to Cloud Native
  • 6. Why is Docker so popular? 1. instant startup 2. namespace isolation & resource governance 3. small memory footprint 4. common toolset 5. packaging - Open Container Initiative OCI 6. ease deployment - DockerHub More security see talk Adrian 4/6/15 https://youtu.be/04LOuMgNj9U
  • 7. Fortress • Few doors and windows • Easy blocking • Defense in Depth, multilayer
  • 9. SPI - stack • SAAS • PAAS • IAAS
  • 10. HW OS OS OS App VIRT App App App App App Virt HW Virt HW Virt HW HW OS OS OS App VIRT App App App Virt HW Virt HW Virt HW IAAS with HW virt •AWS •Azure Infra •Google Com- pute Engine •Joyent HW VIRT Virt HW Virt HW Virt HW OS OS OS http://bit.ly/2015-cloud-mq (try update year in link when expired) ( ) App App
  • 11. db web file etcmid. ware App1 db web file etcmid. ware App2 App3 PAAS •EC3 •Azure App Service •Google App Engine db web file etcmid. waredb web file etcmid. ware App1 App2 App3 db web file etcmid. ware App1 App2 App3
  • 12. Jérôme Petazzoni explaining: • The only difference between a-process-in-a- container and a-process-not-in-a-container is a few labels on top on a process that say this is in container X • A context-switch between two containers is exactly the same as a context-switch between two processes https://youtu.be/pUQ5ukrVaH4?t=600https://youtu.be/pUQ5ukrVaH4?t=667
  • 13. IAAS with OSvirt/Zones/Containers HW OS Container Virt OS App Lib Lib Container Virt OS App Lib Lib Container Virt OS App Lib Lib Container Virt OS App Lib Lib Lib Lib HW OS Container Virt OS App Lib Lib Container Virt OS App Lib Lib ? ?
  • 15. DEV Performance Security PAAS    Containers   IAAS    Hypervisor App HW OS VirtHW App OS VirtHW Kernel Container App HW db Code1 web 2 ?
  • 18. Docker v0.9 and up DOCKER_OPTS="-e lxc"During install, libcontainer : Setting up lxc-docker-1.x.0 https://blog.docker.com/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/ http://blog.docker.com/2015/06/runc/ Kernel Lib- container App HW Lib Lib Docker Kernel LXC App HW Docker Kernel runC App HW Docker Announced june15: runC replaces Libcontainer
  • 19. Kernel App HW Lib Lib libCSystem Calls GO: nolibc GO does system calls manually, without relying on libc or anything else - Aram Hăvărnanu https://archive.fosdem.org/2014/schedule/event/porting_go_to_new_platforms/ https://youtu.be/tnXOeHRuyyA?t=1322 User (ring3) Kernel (ring0) Kernel HW Lib Lib System Calls GO app
  • 20. Building Docker Images for Static Go Binaries Statically Linked, with syscall 'package' https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07 FROM scratch MAINTAINER Kelsey Hightower <kelsey.hightower@gmail.com> ADD contributors contributors ENV PORT 80 EXPOSE 80 ENTRYPOINT ["/contributors"] Total size of image: 6MB
  • 21. Triton • LX: run Linux on Solaris • Docker on Illumos • Joyent Solaris Kernel App Lib Lib libCLinux Syscalls Container Solaris Syscalls https://www.joyent.com/blog/triton-docker-and-the-best-of-all-worlds http://us-east.manta.joyent.com/jmc/public/opensolaris/ARChive/PSARC/2002/174/zones-design.spec.opensolaris.pdf http://www.crn.com/slide-shows/cloud/300076877/heres-who-made-gartners-2015-cloud-iaas-magic-quadrant.htm/pgno/0/19
  • 22. Mirage OS - Cambridge • unikernel • Stat. linked kernel • No Firewall needed • defense: limit interfaces (including Xen) • 20ms startup http://media.ccc.de/browse/congress/2014/31c3_-_6443_-_en_-_saal_2_-_201412271245_- _trustworthy_secure_modular_operating_system_engineering_-_hannes_-_david_kaloper.html Some kernel HW Lib LibOCaml Xen Hypervisor Dom0
  • 23. Qubes - Joanna Rutkowska • with a GUI • multilayer defense https://www.qubes-os.org/
  • 24. Microsoft • OneCore – 64bit only – refactoring – base for Win10, Server, Phone & Nano server • Containers Docker support https://channel9.msdn.com/Events/Build/2015/2-704 https://channel9.msdn.com/Events/Build/2015/2-683 https://azure.microsoft.com/en-us/blog/containers-docker-windows-and-trends/
  • 25. Microsoft Containers Server CoreNano Server Born in the cloud applications Traditional Applications Highly CompatibleHighly Optimized
  • 26. Microsoft’s Container Runtimes Windows Server Container HIGHLY AUTOMATED EFFICIENT SCALABLE AND ELASTIC Hyper-V Container HIGHLY AUTOMATED EFFICIENT SCALABLE AND ELASTIC PUBLIC MULTI- TEANCY SHARED HOSTING SECURE SECURE HOSTING TRUSTED MULTI-TENANCY REGULATED WORKLOADS
  • 27. Nano Server: reverse forwarders • Additional packages – WoW64 for backward compatibility – Hyper-V host – Replicated File services https://channel9.msdn.com/Events/Ignite/2015/BRK2461
  • 28. What runs today with the Reverse Forwarders?• Chef • PHP • Nginx • Python 3.5 • Node.js • GO • Redis • MySQL • OpenSSL • Java (OpenJDK) • Ruby (2.1.5) • SQLite
  • 29. Intel: Clear Linux • 1000 VM/host • 200ms startup • Intel VT http://www.theregister.co.uk/2015/05/21/intel_wants_containers_to_be_alone_together_naturally/ http://www.infoworld.com/article/2925038/linux/intel-takes-on-coreos-with-its-own-container-based-linux.html http://lwn.net/Articles/644675/ https://www.clearlinux.org
  • 30. VMware • Photon Linux distribution • Open Source • Management door mesos, Hadoop, Openstack, Pivotal CF (Lattice), CoreOs, Kubernetes, etc Micro-visor Hardware Photon docker-machine Photon App LIB Photon App LIB • Photon platform
  • 31. Gartner IAAS MQ 2015 Gartner also recommends cloud buyers adopt a bimodal strategy that allows them to maintain critical IT operations while innovating on agile development platforms. http://bit.ly/2015-cloud-mq (try update year in link when expired)
  • 32. Conclusion • ARM simpler Virtualization • Converge Containers & VM
  • 33. Questions? Docker training/conferenties http://dutchdockerday.nl 20 Nov 15, €99 (early bird) Amsterdam https://skillsmatter.com/conferences/7208-containersched-2015 London http://softwarecircus.eu Okt 2016 €150 (early bird) Amsterdam http://nkhare.github.io/data_and_network_containers/ self training
  • 34. Link Q&A • side-channel attack processor cache – http://wp.me/p26mzH-c5 – http://reg.cx/2f6r