Containers · Learn

Container security, in plain terms.

Containers share the host kernel, so one misconfigured pod can become control of the node and the whole cluster. This section explains container escapes, the Docker runtime risks, and the Kubernetes attack surface, in plain language with the real technical names.

TL;DR

Containers and Kubernetes power modern infrastructure, and a single weak setting can turn one compromised pod into a cluster takeover. This section breaks the runtime risks (privileged containers, the Docker socket, host namespaces, host mounts, capabilities) and the Kubernetes surface (kubelet, RBAC, service account tokens, etcd, privileged pods) into plain-language explainers, each ending with how a penetration test surfaces the path in your environment.

By John Dill, Red Team Lead, SecureLayer7Updated

Topics

Key terms explained

How to read this section

The pages follow how an attacker moves through a containerized environment.

  • Foundations first: container security, the container escape, and Kubernetes security.
  • Docker and runtime: the run-time misconfigurations (privileged mode, the Docker socket, host namespaces and mounts, capabilities) that enable an escape, plus image hygiene and how a container differs from a VM.
  • Kubernetes: the cluster attack surface, the kubelet, RBAC, service account tokens, etcd, and privileged pods, that turns one pod into cluster control.

Each explainer ends with how a penetration test confirms the path in your own clusters.

References

  1. [1]MITRE ATT&CK: Containers Matrix(MITRE)
  2. [2]NIST SP 800-190 Application Container Security Guide(NIST)
Related terms

Scope an engagement

Find the container escape paths before an attacker does.

We test your Docker hosts and Kubernetes clusters the way a real intruder would, from a compromised pod to the node and the rest of the cluster, then hand your team reproducible evidence and a fix for every step. Free re-test included.

See cloud penetration testing30-min scoping call, fixed-price proposal in 48 hours.