Why it matters
The kernel runs the release agent on the host, as root, when the cgroup empties: writing it is the container escape behind CVE-2022-0492.
How to fix it
Treat the node as compromised. Run containers without CAP_SYS_ADMIN, with the default seccomp and AppArmor profiles, on a kernel with the CVE-2022-0492 fix.
What TrustIvan reads
The Falco rule "TrustIvan Cgroup release_agent written in container" (MITRE ATT&CK privilege_escalation, T1611), installed on every node by the trustivan-runtime Helm chart. Only where the chart is installed. Every rule validated with falco -V and fired against Falco 0.45.2 under Docker; the chart installed and three rules fired in a single-node k3d cluster.
References
Related checks
- Container runtime socket opened in a container
Kubernetes runtimeSeverity: Critical
runtime.runtime-socket - nsenter, unshare or chroot run in a container
Kubernetes runtimeSeverity: Critical
runtime.namespace-tool - Filesystem mount attempted in a container
Kubernetes runtimeSeverity: High
runtime.mount-in-container - Kernel module load attempted from a container
Kubernetes runtimeSeverity: Critical
runtime.kernel-module - ptrace attach or memory write in a container
Kubernetes runtimeSeverity: High
runtime.ptrace-injection
Terms: Runtime threat detection, KSPM (Kubernetes security posture management), Code to cloud
All runtime detection checks · The whole catalogue · How this works in TrustIvan · Documentation