Why it matters
These tools enter or create namespaces; in a container with host PID or enough capabilities, nsenter -t 1 is a shell on the node.
How to fix it
Find what ran it. Remove hostPID and added capabilities from the pod spec; if it was not expected, treat the workload as compromised.
What TrustIvan reads
The Falco rule "TrustIvan Namespace change tool run 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
- Cgroup release_agent written in a container
Kubernetes runtimeSeverity: Critical
runtime.release-agent - Filesystem mount attempted in a container
Kubernetes runtimeSeverity: High
runtime.mount-in-container - Container runtime socket opened in a container
Kubernetes runtimeSeverity: Critical
runtime.runtime-socket - 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