Runtime detection check · Kubernetes runtime

Log or shell history cleared in a container

A process in a container truncated a file under /var/log or a shell history file, or deleted a shell history file.

Why it matters

Erasing history and logs is covering tracks.

How to fix it

Ship logs off the container as they are written (stdout to the cluster's log pipeline), and investigate what was erased and why.

What TrustIvan reads

The Falco rule "TrustIvan Log or shell history cleared in container" (MITRE ATT&CK defense_evasion, T1070.003), 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.