SlideShare una empresa de Scribd logo
1 de 20
Descargar para leer sin conexión
CONTAINERS
&
SECURITY
Sri Rajan
Container Recap
Host OS
Hypervisor
App A
Binaries
Guest OS
(Windows)
App B
Binaries
Guest OS
(Linux)
Host OS
Container
Engine
App A
Binaries
OS Image
(Ubuntu)
App B
Binaries
OS image
(Red Hat)
The same Host Kernel
VM CONTAINER
Container Recap - Building Blocks
• Pid
• Mnt
• Net
• Memory
• Cpu
• Blkio
Docker
libcontainer
lxc libvirt
• Ipc
• Uts
• User
Namespaces (Think isolation)
Linux
Cgroups (Think Limits)
What is more
secure?
Powered off server
Air gapped Server
Networked Server
Virtualized Server
Containers on a Server
In that order !!!
Containers don’t really “contain”
- Daniel J Walsh (Red Hat)
From a security perspective
Why?
• The very thin layer of isolation that provides better
performance also reduces security
• Container daemon runs as root
Why?
• Not everything is namespaced
• /dev/sd*
• modules
• Containers have full access to
• /sys, /sys/fs
• /proc/*
Image trust
• Source of images
• A recent automated study of images available in
the public Docker showed that 30% of images
contained serious security vulnerabilities.
Source: http://www.banyanops.com/blog/analyzing-docker-hub/
The Human Element
• Developers like love containers because they can
package their application (Build...Ship…Run)
• Operations appreciate containers because they
get packaged applications to run
• Who actually owns the security?
What now?
Back to some basics
• Treat a container like you would treat running
Apache on a server
• User perms
• Run as non-root
• Treat root inside the container as root outside
• docker run --privileged=false centos
/bin/bash
Back to some basics
• Worry about your Kernel
• Who is providing patches?
• Grsec kernels
• https://grsecurity.net/
Back to some basics
• Worry about your Images (Docker)
• Trust only vendor supplied ones
• Build your own
• Use Dockerfiles
• Please don’t run RHEL 4 images !!!
Namespaces
• Can be limited !
docker run --pid=host rhel7 strace -p 1234
SeLinux
• SeLinux policies can
• Isolate containers from the host
• Isolate containers from other containers
• docker run --security-opt
label:type:svirt_apache_t –it centos
/bin/bash
Seccomp
• Secure computing mode (Developed by Google)
• Removessyscalls from a process
• docker run -d --security-opt
seccomp:allow:clock_adjtime ntpd
• 4.1 kernel has 378 syscalls !
• Strace/ptrace
• If your app needs full control of kernel
• Containers are not the best fit
• Containers are not going to make it secure
Linux Capabilities
• Setuid was a problem
• 2.2 Kernel introduced capabilities
• http://linux.die.net/man/7/capabilities
• Breaks the power of root !
• Eg. CAP_NET_RAW (can be set for /bin/ping)
• 32 possible values
• docker run --cap-drop ALL --cap-add SYS_TIME
ntpd /bin/sh
Some other techniques
• Super privileged containers
• --readonly containers
• Root file system is read only
THANK YOU
https://pollev.com/raxtech
References & Links
• ftp://www.kernel.org/pub/linux/libs/security/linux-­privs/kernel-­2.2/capfaq-­
0.2.txt
• http://opensource.com/business/15/3/docker-­security-­tuning
• https://grsecurity.net/
• http://www.cyberciti.biz/tips/selinux-­vs-­apparmor-­vs-­grsecurity.html
• http://developerblog.redhat.com/2014/11/06/introducing-­a-­super-­privileged-­
container-­concept/
• http://opensource.com/business/14/7/docker-­security-­selinux

Más contenido relacionado

La actualidad más candente

Running OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex FishmanRunning OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex FishmanCloud Native Day Tel Aviv
 
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...Amazon Web Services Korea
 
Containers Docker Kind Kubernetes Istio
Containers Docker Kind Kubernetes IstioContainers Docker Kind Kubernetes Istio
Containers Docker Kind Kubernetes IstioAraf Karsh Hamid
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For DevelopmentLaura Frank Tacho
 
Best Practices with Azure Kubernetes Services
Best Practices with Azure Kubernetes ServicesBest Practices with Azure Kubernetes Services
Best Practices with Azure Kubernetes ServicesQAware GmbH
 
Continuous Delivery with Docker and Amazon ECS
Continuous Delivery with Docker and Amazon ECSContinuous Delivery with Docker and Amazon ECS
Continuous Delivery with Docker and Amazon ECSAmazon Web Services
 
Continuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceContinuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceAmazon Web Services
 
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18CodeOps Technologies LLP
 
Deploying a Kubernetes App with Amazon EKS
Deploying a Kubernetes App with Amazon EKSDeploying a Kubernetes App with Amazon EKS
Deploying a Kubernetes App with Amazon EKSLaura Frank Tacho
 
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Amazon Web Services
 
Owning aws infrastructure services
Owning aws infrastructure servicesOwning aws infrastructure services
Owning aws infrastructure servicesSuraj Khetani
 
Continuous Delivery in the AWS Cloud
Continuous Delivery in the AWS CloudContinuous Delivery in the AWS Cloud
Continuous Delivery in the AWS CloudNigel Fernandes
 
Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Angel Borroy López
 
Cloud for Kubernetes : Session3
Cloud for Kubernetes : Session3Cloud for Kubernetes : Session3
Cloud for Kubernetes : Session3WhaTap Labs
 
Docker - The Big Picture
Docker  - The Big PictureDocker  - The Big Picture
Docker - The Big PictureNETKO Solution
 
Redis on Kubernetes
Redis on KubernetesRedis on Kubernetes
Redis on KubernetesIdan Atias
 
Continuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSContinuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSAmazon Web Services
 

La actualidad más candente (20)

Introduction to Docker on AWS
Introduction to Docker on AWSIntroduction to Docker on AWS
Introduction to Docker on AWS
 
Running OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex FishmanRunning OpenStack on Amazon AWS, Alex Fishman
Running OpenStack on Amazon AWS, Alex Fishman
 
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
[AWS Dev Day] 앱 현대화 | AWS Fargate를 사용한 서버리스 컨테이너 활용 하기 - 삼성전자 개발자 포털 사례 - 정영준...
 
Why Kubernetes on Azure
Why Kubernetes on AzureWhy Kubernetes on Azure
Why Kubernetes on Azure
 
Containers Docker Kind Kubernetes Istio
Containers Docker Kind Kubernetes IstioContainers Docker Kind Kubernetes Istio
Containers Docker Kind Kubernetes Istio
 
Using Docker For Development
Using Docker For DevelopmentUsing Docker For Development
Using Docker For Development
 
Best Practices with Azure Kubernetes Services
Best Practices with Azure Kubernetes ServicesBest Practices with Azure Kubernetes Services
Best Practices with Azure Kubernetes Services
 
Continuous Delivery with Docker and Amazon ECS
Continuous Delivery with Docker and Amazon ECSContinuous Delivery with Docker and Amazon ECS
Continuous Delivery with Docker and Amazon ECS
 
Continuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container ServiceContinuous Delivery to Amazon EC2 Container Service
Continuous Delivery to Amazon EC2 Container Service
 
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18
Securing Containers - Sathyajit Bhat - Adobe - Container Conference 18
 
Deploying a Kubernetes App with Amazon EKS
Deploying a Kubernetes App with Amazon EKSDeploying a Kubernetes App with Amazon EKS
Deploying a Kubernetes App with Amazon EKS
 
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
Moving to Containers: Building with Docker and Amazon ECS - CON310 - re:Inven...
 
Owning aws infrastructure services
Owning aws infrastructure servicesOwning aws infrastructure services
Owning aws infrastructure services
 
New AWS Services
New AWS ServicesNew AWS Services
New AWS Services
 
Continuous Delivery in the AWS Cloud
Continuous Delivery in the AWS CloudContinuous Delivery in the AWS Cloud
Continuous Delivery in the AWS Cloud
 
Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212Zaragoza dev ops-activiti-khd-20181212
Zaragoza dev ops-activiti-khd-20181212
 
Cloud for Kubernetes : Session3
Cloud for Kubernetes : Session3Cloud for Kubernetes : Session3
Cloud for Kubernetes : Session3
 
Docker - The Big Picture
Docker  - The Big PictureDocker  - The Big Picture
Docker - The Big Picture
 
Redis on Kubernetes
Redis on KubernetesRedis on Kubernetes
Redis on Kubernetes
 
Continuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECSContinuous Delivery to Amazon ECS
Continuous Delivery to Amazon ECS
 

Destacado

Capgras Delusion/Syndrome
Capgras Delusion/SyndromeCapgras Delusion/Syndrome
Capgras Delusion/SyndromeAbhishek Das
 
Digital Video Report - Q1 2015
Digital Video Report - Q1 2015Digital Video Report - Q1 2015
Digital Video Report - Q1 2015Planimedia
 
Forrester. Impacto del Customer Ecperience en el negocio
Forrester. Impacto del Customer Ecperience en el negocioForrester. Impacto del Customer Ecperience en el negocio
Forrester. Impacto del Customer Ecperience en el negocioPlanimedia
 
Drive Potential Customers With Effective Mobile Marketing
Drive Potential Customers With Effective Mobile Marketing Drive Potential Customers With Effective Mobile Marketing
Drive Potential Customers With Effective Mobile Marketing Planimedia
 
Psicologia do nascimento
Psicologia do nascimentoPsicologia do nascimento
Psicologia do nascimentoBruna Silveira
 
History of Mathematics in India
History of Mathematics in IndiaHistory of Mathematics in India
History of Mathematics in IndiaAbhishek Das
 
The E-Commerce reference index based on the eShopper journey
The E-Commerce reference index based on the eShopper journey The E-Commerce reference index based on the eShopper journey
The E-Commerce reference index based on the eShopper journey Planimedia
 
DevOps Meetup ansible
DevOps Meetup   ansibleDevOps Meetup   ansible
DevOps Meetup ansiblesriram_rajan
 
Hubspot and Smart Insights. Driving Content Marketing Success
Hubspot and Smart Insights. Driving Content Marketing SuccessHubspot and Smart Insights. Driving Content Marketing Success
Hubspot and Smart Insights. Driving Content Marketing SuccessPlanimedia
 
Sage Advisers Superannuation Update August 2013
Sage Advisers Superannuation Update August 2013Sage Advisers Superannuation Update August 2013
Sage Advisers Superannuation Update August 2013Sage Advisers
 
Basic Princibles of International Organizations of United Nations
Basic Princibles of International Organizations of United NationsBasic Princibles of International Organizations of United Nations
Basic Princibles of International Organizations of United NationsOzan Bayındırlı
 
History of mathematics in India
History of mathematics in IndiaHistory of mathematics in India
History of mathematics in IndiaAbhishek Das
 
History of Mathematics in India
History of Mathematics in IndiaHistory of Mathematics in India
History of Mathematics in IndiaAbhishek Das
 
Top Drivers of Marketing Success – What to Budget for in 2015
Top Drivers of Marketing Success – What to Budget for in 2015Top Drivers of Marketing Success – What to Budget for in 2015
Top Drivers of Marketing Success – What to Budget for in 2015Planimedia
 
Mobile and the Path to Purchase
Mobile and the Path to PurchaseMobile and the Path to Purchase
Mobile and the Path to PurchasePlanimedia
 

Destacado (20)

Capgras Delusion/Syndrome
Capgras Delusion/SyndromeCapgras Delusion/Syndrome
Capgras Delusion/Syndrome
 
Father's day
Father's dayFather's day
Father's day
 
Steve jobs quotes
Steve jobs quotesSteve jobs quotes
Steve jobs quotes
 
Digital Video Report - Q1 2015
Digital Video Report - Q1 2015Digital Video Report - Q1 2015
Digital Video Report - Q1 2015
 
Forrester. Impacto del Customer Ecperience en el negocio
Forrester. Impacto del Customer Ecperience en el negocioForrester. Impacto del Customer Ecperience en el negocio
Forrester. Impacto del Customer Ecperience en el negocio
 
Drive Potential Customers With Effective Mobile Marketing
Drive Potential Customers With Effective Mobile Marketing Drive Potential Customers With Effective Mobile Marketing
Drive Potential Customers With Effective Mobile Marketing
 
Psicologia do nascimento
Psicologia do nascimentoPsicologia do nascimento
Psicologia do nascimento
 
History of Mathematics in India
History of Mathematics in IndiaHistory of Mathematics in India
History of Mathematics in India
 
Burung
BurungBurung
Burung
 
The E-Commerce reference index based on the eShopper journey
The E-Commerce reference index based on the eShopper journey The E-Commerce reference index based on the eShopper journey
The E-Commerce reference index based on the eShopper journey
 
DevOps Meetup ansible
DevOps Meetup   ansibleDevOps Meetup   ansible
DevOps Meetup ansible
 
Hubspot and Smart Insights. Driving Content Marketing Success
Hubspot and Smart Insights. Driving Content Marketing SuccessHubspot and Smart Insights. Driving Content Marketing Success
Hubspot and Smart Insights. Driving Content Marketing Success
 
Sage Advisers Superannuation Update August 2013
Sage Advisers Superannuation Update August 2013Sage Advisers Superannuation Update August 2013
Sage Advisers Superannuation Update August 2013
 
Topic father's day
Topic  father's dayTopic  father's day
Topic father's day
 
Basic Princibles of International Organizations of United Nations
Basic Princibles of International Organizations of United NationsBasic Princibles of International Organizations of United Nations
Basic Princibles of International Organizations of United Nations
 
History of mathematics in India
History of mathematics in IndiaHistory of mathematics in India
History of mathematics in India
 
History of Mathematics in India
History of Mathematics in IndiaHistory of Mathematics in India
History of Mathematics in India
 
Top Drivers of Marketing Success – What to Budget for in 2015
Top Drivers of Marketing Success – What to Budget for in 2015Top Drivers of Marketing Success – What to Budget for in 2015
Top Drivers of Marketing Success – What to Budget for in 2015
 
Mobile and the Path to Purchase
Mobile and the Path to PurchaseMobile and the Path to Purchase
Mobile and the Path to Purchase
 
Mob final pp 1
Mob final pp 1Mob final pp 1
Mob final pp 1
 

Similar a Containers and security

Container Security
Container SecurityContainer Security
Container SecuritySalman Baset
 
Docker Security
Docker SecurityDocker Security
Docker Securityantitree
 
Securing Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupSecuring Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupKumar Ashwin
 
Securing Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupSecuring Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupKumar Ashwin
 
Lightweight Virtualization Docker in Practice
Lightweight Virtualization Docker in PracticeLightweight Virtualization Docker in Practice
Lightweight Virtualization Docker in PracticeDocker, Inc.
 
Lions, Tigers and Deers: What building zoos can teach us about securing micro...
Lions, Tigers and Deers: What building zoos can teach us about securing micro...Lions, Tigers and Deers: What building zoos can teach us about securing micro...
Lions, Tigers and Deers: What building zoos can teach us about securing micro...Sysdig
 
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...Odinot Stanislas
 
Docker in pratice -chenyifei
Docker in pratice -chenyifeiDocker in pratice -chenyifei
Docker in pratice -chenyifeidotCloud
 
WTF my container just spawned a shell!
WTF my container just spawned a shell!WTF my container just spawned a shell!
WTF my container just spawned a shell!Sysdig
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetesDongwon Kim
 
Docker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCSDocker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCSFrank Munz
 
Docker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and toolsDocker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and toolsRamit Surana
 
Unraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production CloudUnraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production CloudSalman Baset
 
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker SecurityTokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker SecurityPhil Estes
 

Similar a Containers and security (20)

Container Security
Container SecurityContainer Security
Container Security
 
Docker Security
Docker SecurityDocker Security
Docker Security
 
Containers 101
Containers 101Containers 101
Containers 101
 
Securing Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupSecuring Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad Meetup
 
Securing Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad MeetupSecuring Containers From Day One | null Ahmedabad Meetup
Securing Containers From Day One | null Ahmedabad Meetup
 
Lightweight Virtualization Docker in Practice
Lightweight Virtualization Docker in PracticeLightweight Virtualization Docker in Practice
Lightweight Virtualization Docker in Practice
 
Lions, Tigers and Deers: What building zoos can teach us about securing micro...
Lions, Tigers and Deers: What building zoos can teach us about securing micro...Lions, Tigers and Deers: What building zoos can teach us about securing micro...
Lions, Tigers and Deers: What building zoos can teach us about securing micro...
 
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...
Bare-metal, Docker Containers, and Virtualization: The Growing Choices for Cl...
 
Docker Dojo
Docker DojoDocker Dojo
Docker Dojo
 
Docker in pratice -chenyifei
Docker in pratice -chenyifeiDocker in pratice -chenyifei
Docker in pratice -chenyifei
 
presentation on Docker
presentation on Dockerpresentation on Docker
presentation on Docker
 
WTF my container just spawned a shell!
WTF my container just spawned a shell!WTF my container just spawned a shell!
WTF my container just spawned a shell!
 
Docker and kubernetes
Docker and kubernetesDocker and kubernetes
Docker and kubernetes
 
Docker.ppt
Docker.pptDocker.ppt
Docker.ppt
 
Docker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCSDocker from A to Z, including Swarm and OCCS
Docker from A to Z, including Swarm and OCCS
 
Docker
DockerDocker
Docker
 
Docker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and toolsDocker for the new Era: Introducing Docker,its components and tools
Docker for the new Era: Introducing Docker,its components and tools
 
Unraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production CloudUnraveling Docker Security: Lessons From a Production Cloud
Unraveling Docker Security: Lessons From a Production Cloud
 
Tokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker SecurityTokyo OpenStack Summit 2015: Unraveling Docker Security
Tokyo OpenStack Summit 2015: Unraveling Docker Security
 
Django and Docker
Django and DockerDjango and Docker
Django and Docker
 

Más de sriram_rajan

Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)sriram_rajan
 
Unlocked 2014 onmetal and docker
Unlocked 2014 onmetal and dockerUnlocked 2014 onmetal and docker
Unlocked 2014 onmetal and dockersriram_rajan
 
DevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as codeDevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as codesriram_rajan
 
DevOps Toolbox: Application monitoring and insights
DevOps Toolbox: Application monitoring and insightsDevOps Toolbox: Application monitoring and insights
DevOps Toolbox: Application monitoring and insightssriram_rajan
 
Openstack & rackspace – yesterday, today and tomorrow
 Openstack & rackspace – yesterday, today and tomorrow Openstack & rackspace – yesterday, today and tomorrow
Openstack & rackspace – yesterday, today and tomorrowsriram_rajan
 

Más de sriram_rajan (6)

Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)Elastic Kubernetes Services (EKS)
Elastic Kubernetes Services (EKS)
 
Cloudinit
CloudinitCloudinit
Cloudinit
 
Unlocked 2014 onmetal and docker
Unlocked 2014 onmetal and dockerUnlocked 2014 onmetal and docker
Unlocked 2014 onmetal and docker
 
DevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as codeDevOps Toolbox: Infrastructure as code
DevOps Toolbox: Infrastructure as code
 
DevOps Toolbox: Application monitoring and insights
DevOps Toolbox: Application monitoring and insightsDevOps Toolbox: Application monitoring and insights
DevOps Toolbox: Application monitoring and insights
 
Openstack & rackspace – yesterday, today and tomorrow
 Openstack & rackspace – yesterday, today and tomorrow Openstack & rackspace – yesterday, today and tomorrow
Openstack & rackspace – yesterday, today and tomorrow
 

Último

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 

Último (20)

Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 

Containers and security

  • 2. Container Recap Host OS Hypervisor App A Binaries Guest OS (Windows) App B Binaries Guest OS (Linux) Host OS Container Engine App A Binaries OS Image (Ubuntu) App B Binaries OS image (Red Hat) The same Host Kernel VM CONTAINER
  • 3. Container Recap - Building Blocks • Pid • Mnt • Net • Memory • Cpu • Blkio Docker libcontainer lxc libvirt • Ipc • Uts • User Namespaces (Think isolation) Linux Cgroups (Think Limits)
  • 4. What is more secure? Powered off server Air gapped Server Networked Server Virtualized Server Containers on a Server In that order !!!
  • 5. Containers don’t really “contain” - Daniel J Walsh (Red Hat) From a security perspective
  • 6. Why? • The very thin layer of isolation that provides better performance also reduces security • Container daemon runs as root
  • 7. Why? • Not everything is namespaced • /dev/sd* • modules • Containers have full access to • /sys, /sys/fs • /proc/*
  • 8. Image trust • Source of images • A recent automated study of images available in the public Docker showed that 30% of images contained serious security vulnerabilities. Source: http://www.banyanops.com/blog/analyzing-docker-hub/
  • 9. The Human Element • Developers like love containers because they can package their application (Build...Ship…Run) • Operations appreciate containers because they get packaged applications to run • Who actually owns the security?
  • 11. Back to some basics • Treat a container like you would treat running Apache on a server • User perms • Run as non-root • Treat root inside the container as root outside • docker run --privileged=false centos /bin/bash
  • 12. Back to some basics • Worry about your Kernel • Who is providing patches? • Grsec kernels • https://grsecurity.net/
  • 13. Back to some basics • Worry about your Images (Docker) • Trust only vendor supplied ones • Build your own • Use Dockerfiles • Please don’t run RHEL 4 images !!!
  • 14. Namespaces • Can be limited ! docker run --pid=host rhel7 strace -p 1234
  • 15. SeLinux • SeLinux policies can • Isolate containers from the host • Isolate containers from other containers • docker run --security-opt label:type:svirt_apache_t –it centos /bin/bash
  • 16. Seccomp • Secure computing mode (Developed by Google) • Removessyscalls from a process • docker run -d --security-opt seccomp:allow:clock_adjtime ntpd • 4.1 kernel has 378 syscalls ! • Strace/ptrace • If your app needs full control of kernel • Containers are not the best fit • Containers are not going to make it secure
  • 17. Linux Capabilities • Setuid was a problem • 2.2 Kernel introduced capabilities • http://linux.die.net/man/7/capabilities • Breaks the power of root ! • Eg. CAP_NET_RAW (can be set for /bin/ping) • 32 possible values • docker run --cap-drop ALL --cap-add SYS_TIME ntpd /bin/sh
  • 18. Some other techniques • Super privileged containers • --readonly containers • Root file system is read only
  • 20. References & Links • ftp://www.kernel.org/pub/linux/libs/security/linux-­privs/kernel-­2.2/capfaq-­ 0.2.txt • http://opensource.com/business/15/3/docker-­security-­tuning • https://grsecurity.net/ • http://www.cyberciti.biz/tips/selinux-­vs-­apparmor-­vs-­grsecurity.html • http://developerblog.redhat.com/2014/11/06/introducing-­a-­super-­privileged-­ container-­concept/ • http://opensource.com/business/14/7/docker-­security-­selinux