Runtime detection check · Kubernetes runtime

Setuid or setgid bit set in a container

A process in a container set the setuid or setgid bit on a file.

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

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

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.