Potential Cgroup Privilege Escalation/Container Escape via Mount
Description
This rule detects the execution of the mount command with both the filesystem type set to cgroup and additional mount options specified. A high argument count (7 or more) combined with these flags may indicate attempts to abuse cgroup mounting for container breakout, privilege escalation, or namespace manipulation. While mounting cgroups is legitimate in containerized environments, this pattern—especially outside of expected contexts—can signal exploitation techniques such as cgroup notify-on-release abuse or unprivileged namespace tricks.
Query · eql
process where event.type == "start" and event.action == "exec" and process.name == "mount" and
process.args in ("-t", "--types") and process.args in ("-o", "--options") and process.args == "cgroup" and
process.args_count >= 7 and
not process.parent.executable in (
"/opt/resource/in", "/opt/piavpn/bin/pia-daemon", "/opt/expressvpn/bin/expressvpn-daemon", "/usr/lib/systemd/systemd",
"/usr/bin/cgroupfs-mount"
)