Why it matters
A setuid file runs as its owner whoever starts it: a root-owned one is a way back to root for any user in the container.
How to fix it
Find what set it. Run containers with allowPrivilegeEscalation: false (no_new_privs makes setuid ineffective) and as a non-root user.
What TrustIvan reads
The Falco rule "TrustIvan Setuid or setgid bit set in container" (MITRE ATT&CK privilege_escalation, T1548.001), 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
- sudo or su run in a container
Kubernetes runtimeSeverity: Medium
runtime.sudo-su
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