Suspected container escape: unknown process on the host tied to a container. How do you investigate?
AdvancedTroubleshootingSecurity, rootless, Podman and containerd
Answer
Likely causes → Privileged container, mounted socket, vulnerable runtime (runc/kernel CVE), or compromised credentials; or a miner running inside the container's namespaces.
Diagnose →
ps -eo pid,ppid,user,cmd --forest
docker inspect -f '{{.Id}} {{.State.Pid}}' $(docker ps -q)
ls -l /proc/<pid>/ns /proc/<pid>/exe
nsenter -t <pid> -n ss -tnp
docker diff <c>; ausearch -k docker
Fix → Isolate the host (network quarantine), preserve evidence (docker export, memory/disk snapshot), then rebuild host and containers from clean images and rotate all secrets that were reachable.
Prevent → Patch runc/kernel, drop privileges, no socket mounts, runtime detection (Falco), and egress filtering.
More on Security, rootless, Podman and containerd
Rootless Docker: `dockerd-rootless.sh` fails with `newuidmap: write to uid_map failed: Operation not permitted`IntermediateRootless: `rootlesskit: failed to ... listen tcp 0.0.0.0:80: bind: permission denied`BeginnerRootless Docker stops when you log out of SSH.BeginnerRootless containers: `Error: ... cannot set up namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid` (Podman).IntermediatePodman: `Error: short-name "nginx" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"`BeginnerPodman rootless: `Error: cannot find newuidmap` / ping fails inside container: `ping: permission denied (are you root?)`.Intermediate