Critical

Container Escape Attempt

This rule flags actions inside a container that are commonly used to break out and reach the underlying host system. That includes touching the Docker control socket, using nsenter to jump into another namespace, mounting the host filesystem, or manipulating /proc.

How the attack works

An attacker who has code execution inside a container looks for ways to reach the host it runs on. They may access the Docker socket to issue commands to the container engine itself, use nsenter to enter the host's process or network namespace, mount the host filesystem into the container to read or write files outside its intended scope, or manipulate /proc entries that expose or affect the host kernel. Any of these can let a process step outside its container boundary and act with host-level access.

Netzilo detection

Netzilo can block this behaviour when it is observed.

Signature ID
6b2a79d7-336d-5a66-9bb2-8d676e6d6eb5
Severity
Critical

Why it matters

A successful escape gives the attacker control over the host machine, not just the container, which typically means access to other containers, host data, credentials, and the ability to pivot further into the environment.

What you can do

  • Run containers without the Docker socket mounted inside them unless a specific workload genuinely needs it.
  • Restrict container capabilities and disable privileged mode by default; require explicit justification for exceptions.
  • Review any process inside a container that calls nsenter, mounts host paths, or writes to /proc, and confirm it's a known management or orchestration tool.
  • Apply namespace and cgroup isolation consistently, and keep container runtimes patched against known escape vulnerabilities.

Known benign look-alikes

  • Legitimate Docker management operations accessing the Docker socket
  • Container orchestration tools that use nsenter for container inspection

References

Related threats