Discovery (TA0007)(external, opens in a new tab or window)
Privilege Escalation (TA0004)(external, opens in a new tab or window)
Lateral Movement (TA0008)(external, opens in a new tab or window)
text code block:host.os.type:"linux" and event.category:"network" and event.action:"connected-to" and network.direction:"egress" and destination.address:("/run/containerd/containerd.sock" or "/var/run/containerd/containerd.sock" or "/var/run/docker.sock" or "/run/docker.sock") and process.executable:(* and not ("/usr/bin/kubelet" or "/usr/local/bin/kubelet" or "/usr/bin/containerd" or "/usr/sbin/containerd" or "/usr/bin/containerd-shim" or "/usr/bin/containerd-shim-runc-v2" or "/usr/local/bin/containerd-shim-runc-v2" or "/usr/bin/dockerd" or "/usr/sbin/dockerd" or /var/lib/*/usr/bin/dockerd or "/usr/bin/docker-proxy") )
Install detection rules in Elastic Security
Detect Unusual Process Connection to Docker or Containerd Socket in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(external, opens in a new tab or window).