Skip to content
← RegistryDossier · 6 steps · 5 edges

Docker socket exposed in pod → host root

A workload mounts /var/run/docker.sock for convenience; spawn a container with the host root mounted, then chroot in for root on the node.

Filed by AD Knowledge Base
§ Kill-chainDrag · zoom · scroll

§ Context

Assumed environment: target deployment mounts the Docker socket (common in CI runners, build pods, monitoring agents). PodSecurityStandards permissive.

§ Steps

  1. 01
    RCE in the podInitial Access
    T1190Exploit Public-Facing Application
  2. 02
    Find /var/run/docker.sockInitial Access
    K-DOCKER-SOCKDocker Socket Exposed
  3. 03
    Read kubelet kubeconfigDiscovery
    K-SA-TOKENServiceAccount Token Theft
  4. 04
    docker run -v /:/host --privileged alpinePrivilege Escalation
    K-PRIV-CONTAINERPrivileged Container Escape
  5. 05
    chroot /host → root on nodePrivilege Escalation
    K-HOSTPATH-MOUNThostPath Volume Mount
  6. 06
    Pivot across the clusterPersistence
    K-CRONJOB-PERSISTMalicious CronJob / DaemonSet

§ References

§ Frequently asked

What is the "Docker socket exposed in pod → host root" attack path?
A workload mounts /var/run/docker.sock for convenience; spawn a container with the host root mounted, then chroot in for root on the node. It chains 6 steps drawn from real-world offensive-security techniques.
What starting position does this attack require?
The first step is RCE in the pod (T1190) — a initial access primitive. Assumed environment: target deployment mounts the Docker socket (common in CI runners, build pods, monitoring agents).
What is the final impact of this kill-chain?
The final step lands on Pivot across the cluster (K-CRONJOB-PERSIST), which falls under Persistence. From here, an operator typically pivots into post-exploitation or maintains persistence.
How can defenders detect or prevent this attack?
Detection and prevention vary per step. Refer to each linked MITRE ATT&CK entry under "References" — every technique on that page lists defensive controls, detection telemetry, and known threat-actor usage.

§ Related dossiers