SlideShare a Scribd company logo
ALL YOUR CONTAINERS ARE BELONG TO US
James Condon
BSidesSF19
March 4th, 2019
AGENDA
• whoami
• Kubernetes overview
• Dashboard
• API Server
• etcd
• Final thoughts
whoami
• James Condon, Director of Research @ Lacework
• Former USAF OSI, Mandiant, and ProtectWise
• Network Forensics, Incident Response, Threat Intelligence, Cloud Security
@laceworklabs
@jameswcondon
Networking
Provisioning
Security
Storage
Redundancy
Auto-Scaling
All Your Containers Are Belong To Us
RESEARCH DISCLAIMERS
• No containers were harmed in the
making of this presentation
• Promote awareness & enhance
security
• Recommendations for managing your
own cluster
KUBERNETES DASHBOARD
• Cluster management UI
• Web based
• Default service account needs RBAC
• Dashboards in the news
DISCOVERING DASHBOARDS DEMO
DASHBOARD FINDINGS
500+
75% AWS
10% GCP +
Azure
Ports 80, 443,
8080
DASHBOARD RECOMMENDATIONS
• Disable (if possible)
• Ensure RBAC is enabled
• Don’t elevate privileges on default
service account
• Avoid internet access, otherwise use
VPN, Bastion, etc
KUBERNETES API SERVER
• Fundamental component of Kubernetes
• REST API
• Handles authentication and authorization
• Secure & insecure port by default
• CVE-2018-1002105
DISCOVERING API SERVERS
API SERVER FINDINGS
21K+
92% AWS, ~3% GCP + Azure
’18: 21K+ for K8s, Meso,
OpenShift, & Swarm
Cert CNs: kubernetes-master
88%, system:apiserver 4%,
apiserver 2%
API SERVER FINDINGS (INSECURE PORT)
800+
API SERVER RECOMMENDATIONS
• Restrict network access
• Disable insecure port
• Enable RBAC
• Look into advanced authentication options
• Upgrade
ETCD
• Distributed key value datastore
• Maintains cluster state and secrets
• No authentication by default
• No encryption at rest by default
• REST & gRPC APIs
• The Luke Hemsworth of unsecured
DBs
DISCOVERING ETCD CLUSTERS
ETCD FINDINGS
2.4K+
kube-master-1
kubemaster-etcd
kubeadm-master2
k8s_node2
K8s-cluster-etcd
ETCD RECOMMENDATIONS
• Only API server should have access
• Use TLS for peer communications
• Use certification authentication
• Encrypt data at rest
FINAL THOUGHTS
• Large scale exposure
• Internet exposure is just one piece
of the security puzzle
• K8s has lots of security features,
understand what they are
• Know what defaults are set with
config tools
1. Kubernetes Illustrated Children's Guide: https://youtu.be/4ht22ReBjno
2. Tesla Exposed Dashboard https://redlock.io/blog/cryptojacking-tesla
3. Weight Watchers Exposed Dashboard https://kromtech.com/blog/security-center/weightwatchers-
exposure-a-simple-yet-powerful-lesson-in-cloud-security
4. Censys https://censys.io/
5. Lacework Containers at Risk Report https://info.lacework.com/hubfs/Containers%20At-
Risk_%20A%20Review%20of%2021,000%20Cloud%20Environments.pdf
6. CVE-2018-1002105 Github Page https://github.com/kubernetes/kubernetes/issues/71411
7. Shodan https://www.shodan.io/
8. Exposed etcd Clusters Blog https://elweb.co/the-security-footgun-in-etcd/
9. Lacework exposed etcd Clusters Blog https://www.lacework.com/etcd-thousands-of-clusters-open/
10.Lacework Securing K8s Blog https://www.lacework.com/art-into-science-conference-securing-k8s/
RESOURCES
james@lacework.com
https://www.lacework.com/blog/
@laceworklabs
@jameswcondon
QUESTIONS

More Related Content

PPTX
Презентація "ДІЛЕННЯ РАЦІОНАЛЬНИХ ЧИСЕЛ" 6 клас
PDF
Ιστορία Ε΄ 5.27. ΄΄ Η καθημερινή ζωή στην ύπαιθρο στα χρόνια των Ισαύρων και ...
PPT
ознаки рівності трикутників
PDF
αρχαία ελληνική γλώσσα και γραμματεία α λυκείου τράπεζα θεματων λεξιλογικές α...
PPT
μυθοι+νερό
PPTX
Αρχαιολογία και Πληροφορική
PDF
Η εκπαίδευση των παιδιών στην αρχαία Αθήνα - Αρχαία Ελληνική Γλώσσα Α΄Γυμνασίου
DOCX
ιδρυση ρωσικου κρατους
Презентація "ДІЛЕННЯ РАЦІОНАЛЬНИХ ЧИСЕЛ" 6 клас
Ιστορία Ε΄ 5.27. ΄΄ Η καθημερινή ζωή στην ύπαιθρο στα χρόνια των Ισαύρων και ...
ознаки рівності трикутників
αρχαία ελληνική γλώσσα και γραμματεία α λυκείου τράπεζα θεματων λεξιλογικές α...
μυθοι+νερό
Αρχαιολογία και Πληροφορική
Η εκπαίδευση των παιδιών στην αρχαία Αθήνα - Αρχαία Ελληνική Γλώσσα Α΄Γυμνασίου
ιδρυση ρωσικου κρατους

What's hot (20)

DOC
Математичні софізми
PPTX
Τα σημαντικότερα γεγονότα της Επανάστασης του 1821
PPTX
ΟΙ ΤΥΧΕΣ ΤΗΣ ΚΥΠΡΟΥ
PPSX
Ενότητα 10 - Ετυμολογία
PDF
ξενοφώντος ελληνικά 3 50 52
PDF
25 Μαρτίου-ΘΕΟΔΩΡΟΣ ΚΟΛΟΚΟΤΡΩΝΗΣ
PDF
β΄ γυμνασίου χρωματιστό
PPTX
H Aθήνα γίνεται σχολείο της ελλάδας
PDF
Επιρρηματικές προτάσεις της αρχαίας ελληνικής γλώσσας - πίνακας
PPTX
17ο Δ. Σ. Ηρακλείου - Στα ίχνη της γραφής
PPTX
36. Η καθημερινή ζωή στα ελληνιστικά χρόνια (Δ΄)
DOC
Контрольна робота по темі "Функції"
PPTX
EΘνικό Αρχαιολογικό Μουσείο
ODP
Τζον Λοκ, Παρουσίαση
PDF
Οι αγώνες του Καραϊσκάκη
PDF
Λατινικά, ενότητα 20
PDF
ΙΣΤΟΡΙΑ Β ΛΥΚΕΙΟΥ ΚΕΦΑΛΑΙΟ 4 ΕΝΟΤΗΤΑ 7
ODP
Α ΓΥΜΝΑΣΙΟΥ ΜΑΘΗΜΑ 10 ΑΘΗΝΑ: ΑΠΟ ΤΗ ΒΑΣΙΛΕΙΑ ΣΤΗΝ ΑΡΙΣΤΟΚΡΑΤΙΑ
DOC
Γεωγραφία Β' Γυμνασίου κεφάλαιο 9ο
PPT
747 правильна піраміда. 11 клас
Математичні софізми
Τα σημαντικότερα γεγονότα της Επανάστασης του 1821
ΟΙ ΤΥΧΕΣ ΤΗΣ ΚΥΠΡΟΥ
Ενότητα 10 - Ετυμολογία
ξενοφώντος ελληνικά 3 50 52
25 Μαρτίου-ΘΕΟΔΩΡΟΣ ΚΟΛΟΚΟΤΡΩΝΗΣ
β΄ γυμνασίου χρωματιστό
H Aθήνα γίνεται σχολείο της ελλάδας
Επιρρηματικές προτάσεις της αρχαίας ελληνικής γλώσσας - πίνακας
17ο Δ. Σ. Ηρακλείου - Στα ίχνη της γραφής
36. Η καθημερινή ζωή στα ελληνιστικά χρόνια (Δ΄)
Контрольна робота по темі "Функції"
EΘνικό Αρχαιολογικό Μουσείο
Τζον Λοκ, Παρουσίαση
Οι αγώνες του Καραϊσκάκη
Λατινικά, ενότητα 20
ΙΣΤΟΡΙΑ Β ΛΥΚΕΙΟΥ ΚΕΦΑΛΑΙΟ 4 ΕΝΟΤΗΤΑ 7
Α ΓΥΜΝΑΣΙΟΥ ΜΑΘΗΜΑ 10 ΑΘΗΝΑ: ΑΠΟ ΤΗ ΒΑΣΙΛΕΙΑ ΣΤΗΝ ΑΡΙΣΤΟΚΡΑΤΙΑ
Γεωγραφία Β' Γυμνασίου κεφάλαιο 9ο
747 правильна піраміда. 11 клас
Ad

Similar to All Your Containers Are Belong To Us (20)

PPTX
Threat_Modeling_Kubernetes_Using_STRIDE.pptx
PDF
Batten Down the Hatches: A Practical Guide to Securing Kubernetes - RMISC 2019
PDF
Best Practices with Azure Kubernetes Services
PDF
Vietnam Global Azure Bootcamp 2019 - Security on Azure Kubernetes Services wi...
PPTX
Kubernetes Security Act Now Before It’s Too Late
PPTX
Why Kubernetes as a container orchestrator is a right choice for running spar...
PDF
Service Discovery: From Classic to VPC
PDF
DCSF19 Container Security: Theory & Practice at Netflix
PPTX
Kubernetes Security
PDF
Attacking and Defending Kubernetes - Nithin Jois
PPTX
PPTX
Centralizing Kubernetes and Container Operations
PPTX
Secret Management with Hashicorp Vault and Consul on Kubernetes
PPTX
Blue Chip Tek AWS Connect and Protect Presentation #2
PDF
ADDO 2022 Putting the Sec in DevSecOps for an AWS Lambda Based System
PPTX
Kubernetes and container security
PDF
Alabama CyberNow 2018: Cloud Hardening and Digital Forensics Readiness
PDF
Secrets in Kubernetes
PDF
Secrets in Kubernetes
PDF
DCEU 18: Docker Enterprise Platform and Architecture
Threat_Modeling_Kubernetes_Using_STRIDE.pptx
Batten Down the Hatches: A Practical Guide to Securing Kubernetes - RMISC 2019
Best Practices with Azure Kubernetes Services
Vietnam Global Azure Bootcamp 2019 - Security on Azure Kubernetes Services wi...
Kubernetes Security Act Now Before It’s Too Late
Why Kubernetes as a container orchestrator is a right choice for running spar...
Service Discovery: From Classic to VPC
DCSF19 Container Security: Theory & Practice at Netflix
Kubernetes Security
Attacking and Defending Kubernetes - Nithin Jois
Centralizing Kubernetes and Container Operations
Secret Management with Hashicorp Vault and Consul on Kubernetes
Blue Chip Tek AWS Connect and Protect Presentation #2
ADDO 2022 Putting the Sec in DevSecOps for an AWS Lambda Based System
Kubernetes and container security
Alabama CyberNow 2018: Cloud Hardening and Digital Forensics Readiness
Secrets in Kubernetes
Secrets in Kubernetes
DCEU 18: Docker Enterprise Platform and Architecture
Ad

More from Lacework (15)

PDF
BSides Denver 2019 - Cloud Wars Episode V: The Cryptojacker Strikes Back
PDF
DerbyCon 2019: Prepare to be Boarded! A Tale of Kubernetes, Plunder, and Cryp...
PPTX
Lacework | Top 10 Cloud Security Threats
PDF
Practical Guide to Securing Kubernetes
PPTX
AWS Security Week | Getting to Continuous Security and Compliance Monitoring ...
PPTX
Lacework Kubernetes Meetup | August 28, 2018
PPTX
Lacework AWS Security Week Presentation
PPTX
Lacework Overview: Security Redefined for Cloud Scale
PPTX
Containers At-Risk: A Review of 21,000 Cloud Environments
PDF
Lacework Protection for AWS S3 Buckets
PDF
Guidebook Case Study
PDF
Container Security Research
PDF
Security for AWS: Journey to Least Privilege
PDF
Containers At-Risk A Review of 21,000 Cloud Environments
PPTX
Lacework for AWS Security Overview
BSides Denver 2019 - Cloud Wars Episode V: The Cryptojacker Strikes Back
DerbyCon 2019: Prepare to be Boarded! A Tale of Kubernetes, Plunder, and Cryp...
Lacework | Top 10 Cloud Security Threats
Practical Guide to Securing Kubernetes
AWS Security Week | Getting to Continuous Security and Compliance Monitoring ...
Lacework Kubernetes Meetup | August 28, 2018
Lacework AWS Security Week Presentation
Lacework Overview: Security Redefined for Cloud Scale
Containers At-Risk: A Review of 21,000 Cloud Environments
Lacework Protection for AWS S3 Buckets
Guidebook Case Study
Container Security Research
Security for AWS: Journey to Least Privilege
Containers At-Risk A Review of 21,000 Cloud Environments
Lacework for AWS Security Overview

Recently uploaded (20)

PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
A Presentation on Artificial Intelligence
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
cuic standard and advanced reporting.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
KodekX | Application Modernization Development
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PPTX
Cloud computing and distributed systems.
PDF
Chapter 3 Spatial Domain Image Processing.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
A Presentation on Artificial Intelligence
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Building Integrated photovoltaic BIPV_UPV.pdf
NewMind AI Weekly Chronicles - August'25 Week I
cuic standard and advanced reporting.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
KodekX | Application Modernization Development
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
Modernizing your data center with Dell and AMD
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Cloud computing and distributed systems.
Chapter 3 Spatial Domain Image Processing.pdf

All Your Containers Are Belong To Us