Roadmaps Security roadmaps IT security and infrastructure

Container and Kubernetes Security

Secure containers and Kubernetes from image to runtime: build safe images, lock down clusters, and detect attacks at run time.

Estimated time: 15–26 months · At about 10 hours a week.

Learning path

Click a topic to see what to learn and where. Mark topics as you go; your progress is saved in this browser only.

  • Core topic
  • Optional
  1. Beginner · 2–3 months Container and image security
  2. Intermediate · 3–5 months Kubernetes cluster security
  3. Advanced · 4–6 months Policy, runtime and the supply chain
  4. Expert · 6–12 months Platform strategy and leadership

All topics in detail

BeginnerTime: 2–3 months

Container and image security

Skills

  • Build minimal, non-root, scanned container images.
  • Scan images in a pipeline and a registry.
  • Run containers with safe settings and no baked-in secrets.

Hands-on projects and labs

  • Take a bloated image, slim it down, make it run as non-root, and cut its vulnerabilities with Trivy.
  • Add image scanning to a CI pipeline that fails on high-severity findings.

Done when you can…

  • Explain why containers are weaker isolation than VMs.
  • Ship an image that passes a vulnerability and configuration scan.

Beginner

How containers work

Namespaces, cgroups and capabilities give containers their isolation, which is weaker than a VM's. Knowing the mechanism tells you where it can fail.

Resources

Beginner

Building secure images

Start from minimal, trusted base images, pin versions, do not run as root, and keep secrets out of the image. Small images have fewer vulnerabilities.

Resources

Beginner

Image scanning

Scan images for known vulnerabilities and bad configuration before they ship, and again in the registry as new vulnerabilities are found.

Resources

  • Trivy ToolFreeAqua Security
  • Grype ToolFreeAnchore

Beginner

Registry security

Control who can push and pull images, scan what is stored, and prefer private registries for anything internal.

Resources

Beginner

Safe container settings

Run as a non-root user, drop capabilities, use a read-only root filesystem, and never use privileged mode unless you truly must.

Resources

Beginner

Secrets in containers

Do not bake secrets into images or pass them as plain environment variables. Use a secrets manager or the orchestrator's secret store.

Resources

IntermediateTime: 3–5 months

Kubernetes cluster security

Skills

  • Design least-privilege RBAC.
  • Enforce pod security standards and network policies.
  • Harden a cluster against the CIS Benchmark.
  • Protect secrets in the cluster.

Hands-on projects and labs

  • Run kube-bench on a local cluster (kind or minikube) and fix the findings.
  • Write network policies that isolate a sensitive workload and confirm the isolation.
  • Enforce the restricted pod security standard and watch it block a privileged pod.

Done when you can…

  • Show a cluster that blocks privileged pods and limits pod-to-pod traffic.
  • Explain how a compromised pod is contained by your settings.

Intermediate

Kubernetes attack surface

The API server, etcd, kubelet and controllers each need securing. Learn how the pieces fit and where attackers aim.

Resources

Intermediate

RBAC and service accounts

Give users and workloads only the permissions they need. Over-broad roles and default service account tokens are common footholds.

Resources

Intermediate

Pod security standards

Enforce the baseline and restricted standards so pods cannot run privileged, mount the host or escalate. Apply them with the built-in admission controller.

Resources

Intermediate

Network policies

By default every pod can talk to every pod. Network policies restrict traffic to what is needed, limiting how far an attacker can move.

Resources

Intermediate

Cluster hardening

Harden the control plane and nodes against the CIS Kubernetes Benchmark, and scan your cluster to find gaps.

Resources

Intermediate

Kubernetes secrets

Kubernetes secrets are only base64 by default. Encrypt them at rest, limit who can read them, and consider an external secrets manager.

Resources

AdvancedTime: 4–6 months

Policy, runtime and the supply chain

Skills

  • Enforce policy as code at admission.
  • Detect attacks at run time with Falco.
  • Sign and verify images.
  • Add a service mesh or stronger isolation where it is justified.

Hands-on projects and labs

  • Write Kyverno policies that block unsigned images and privileged pods, and test them.
  • Run Falco and trigger it by opening a shell in a running container.
  • Sign an image with Cosign and make the cluster reject unsigned ones.

Done when you can…

  • Show a cluster where only signed, policy-compliant images run.
  • Detect a simulated container breakout attempt at run time.

Advanced

Admission control and policy as code

Check every deployment against policy before it runs: block unsigned images, privileged pods or missing labels, with OPA Gatekeeper or Kyverno.

Resources

Advanced

Runtime security

Detect attacks as they happen: a shell in a container, a new binary, an unexpected connection. Falco watches kernel events for this.

Resources

Advanced

Image signing and provenance

Sign images and verify signatures at admission, so only images your pipeline built can run. Cosign makes this practical.

Resources

Advanced

Service mesh security

A service mesh can give automatic mutual TLS, identity and fine-grained traffic policy between services. Weigh the security gain against the complexity.

Resources

Advanced

Stronger isolation

For untrusted or high-risk workloads, sandboxes such as gVisor or Kata Containers add a real boundary beyond normal containers.

Resources

Advanced

Kubernetes threats and detection

Map attacks to ATT&CK for Containers, and send audit logs and runtime events to the SOC for detection.

Resources

ExpertTime: 6–12 months

Platform strategy and leadership

Skills

  • Design a secure, multi-tenant container platform.
  • Report container security posture to leadership.

Hands-on projects and labs

  • Write a secure-by-default platform standard for container teams.
  • Set up a demo paved-road cluster with scanning, policy, signing and Falco.

Done when you can…

  • Run a container platform where the secure path is the easy path.
  • Lead the rollout of policy as code or runtime security across teams.

Expert

Building a secure container platform

Give teams a paved road: hardened clusters, scanned registries, default policies, signing and runtime detection, so secure is the default.

Resources

Expert

Multi-tenancy

Running many teams on one cluster safely needs strong namespace isolation, quotas, policy and sometimes separate clusters. Know the trade-offs.

Resources

Expert

Measuring container security

Track image vulnerability trends, policy violations blocked, signing coverage and runtime alerts. Report what reduces risk.

Resources

Overview

Containers package an application with its dependencies, and Kubernetes runs thousands of them across many machines. This brings speed, and a large attack surface: vulnerable images, over-privileged containers, weak cluster settings and a powerful control plane.

Container security covers the whole life: building and scanning images, hardening the cluster and its workloads, controlling what can be deployed, and detecting attacks at run time. It blends classic hardening with cloud-native tools and ideas such as policy as code.

Why it matters

Most modern applications run in containers, and misconfigured Kubernetes clusters are breached regularly. Teams need people who understand both how Kubernetes works and how it is attacked.

Typical job roles

  • EntryDevOps engineer with security focus Builds secure images and applies safe defaults in pipelines.
  • Mid-levelContainer security engineer Secures images, clusters and workloads and runs scanning.
  • Mid-levelKubernetes security engineer Hardens clusters, admission control and network policy.
  • SeniorCloud-native security architect Designs secure container platforms across teams.
  • LeadHead of platform security Owns the security of the container platform.

Prerequisites

  • Comfortable with Linux and the command line.
  • Docker basics: images, containers and registries.
  • Kubernetes basics: pods, deployments, services and namespaces.
  • Networking and the Cloud Security roadmap's basics help.

Cloud and DevOps Cybersecurity

Tools and technologies

  • Trivy Open source Scans images, clusters and IaC for vulnerabilities and misconfiguration.
  • kube-bench Open source Checks clusters against the CIS Kubernetes Benchmark.
  • Falco Open source Runtime security and threat detection for containers.
  • Kyverno Open source Policy as code for Kubernetes.
  • OPA Gatekeeper Open source Admission control with Open Policy Agent.
  • Cosign Open source Sign and verify container images.
  • Harbor Open source Secure container registry with scanning and signing.
  • kube-hunter Open source Finds weaknesses in Kubernetes clusters.

Certifications

Take them in roughly this order. Costs and details for the ones marked with a link are on the Certifications page.

  1. Advanced Certified Kubernetes Security Specialist (CKS) The Linux FoundationThe standard Kubernetes security certification; needs CKA first.
  2. Advanced Certified Kubernetes Administrator (CKA) Linux Foundation (CNCF)Kubernetes administration, the prerequisite for CKS.Cost and exam details
  3. Advanced AWS Certified Security – Specialty Amazon Web ServicesCloud security context for managed Kubernetes.Cost and exam details

Resources

Frameworks and standards

All frameworks and standards

Career path

A common progression. Titles vary between companies.

  1. DevOps or platform engineer0–3 years
  2. Container security engineer3–6 years
  3. Cloud-native security architect6–9 years
  4. Head of platform security10+ years

Related domains to move into

All security roadmaps Back to top

Last reviewed: . Found a mistake, or want a roadmap written sooner? Contact