Runtime detection check · Kubernetes runtime

Program written to a binary directory in a container

A process in a container opened a file in /bin, /sbin, /usr/bin, /usr/sbin or /usr/local/bin for writing.

Why it matters

Replacing or adding a program in a binary directory changes what every later command runs, and the image scan never saw it.

How to fix it

Run with a read-only root filesystem (TrustIvan's drift prevention refuses pods without one) and rebuild the workload from its image.

What TrustIvan reads

The Falco rule "TrustIvan Write below binary directory in container" (MITRE ATT&CK persistence, T1574), 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.