Runtime detection check · Kubernetes runtime

Sensitive file opened in a container

A process in a container opened /etc/shadow, /etc/gshadow, /etc/sudoers, an SSH key under /root/.ssh, or a host /etc/shadow mounted under /host.

Why it matters

These are in a container only through a host mount or a mistake. Password hashes and keys are credential theft.

How to fix it

Remove the host path mount from the pod spec, and refuse such mounts at admission. If the read was not expected, treat the node's credentials as exposed.

What TrustIvan reads

The Falco rule "TrustIvan Sensitive file or socket read in container" (MITRE ATT&CK credential_access, T1003), 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.