Container With A hostPath Mount Created
Description
Detects creation of a container with a hostPath mount. A hostPath volume mounts a directory or a file from the node to the container. Attackers who have permissions to create a new pod in the cluster may create one with a writable hostPath volume and chroot to escape to the underlying node.
Query · sigma
selection: verb: create objectRef.resource: pods hostPath: '*' condition: selection
Known false positives
- The DaemonSet controller creates pods with hostPath volumes within the kube-system namespace.