Detection Library
criticalexperimentalKubernetesCloudT1611T1610

Sensitive HostPath Volume Mount

Detects pod creation requests that mount sensitive host paths -- the container runtime socket, /proc, /var/run, or the node root filesystem -- which is the most common non-privileged route to container escape.

Updated Oct 29, 2026 · Detection Engineering Team

kubernetescontainershostpathcontainer-escape

Problem Statement

Mounting the container runtime socket inside a container is functionally equivalent to root on the node: the socket accepts privileged API calls to create new, unrestricted containers. This remains one of the most common real-world container escape techniques because it requires no CVE, only a permissive pod spec.

Sample Logs

{"kind":"Event","verb":"create","objectRef":{"resource":"pods","namespace":"ci","name":"build-helper"},"user":{"username":"system:serviceaccount:ci:pipeline"},"requestObject":{"spec":{"volumes":[{"name":"docker-sock","hostPath":{"path":"/var/run/docker.sock"}}]}},"stageTimestamp":"2026-10-29T10:02:14Z"}

Required Fields

verb
objectRef.resource
objectRef.namespace
user.username
requestObject.spec.volumes[].hostPath.path

False Positives

  • ·Legitimate CI runners using docker-in-docker via socket mount (should migrate to rootless/sysbox alternatives where possible)
  • ·Approved observability agents (Falco, cAdvisor) mounting /proc read-only

Tuning Guidance

Differentiate read-only vs read-write mounts where your audit log captures volume mount mode -- a read-only /proc mount for an observability agent is materially lower-risk than a read-write docker.sock mount for an arbitrary workload. Treat docker.sock/containerd.sock mounts as critical regardless of mode, since socket access alone is sufficient for escape.