Why it matters
Creating or changing accounts after start is how an intruder keeps a way back in.
How to fix it
Create users when the image is built. Run with a read-only root filesystem so /etc/passwd cannot change, and investigate who ran the tool.
What TrustIvan reads
The Falco rule "TrustIvan User or group changed in container" (MITRE ATT&CK persistence, T1136.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
- File below /etc written in a container
Kubernetes runtimeSeverity: High
runtime.write-below-etc - SSH authorized_keys written in a container
Kubernetes runtimeSeverity: High
runtime.authorized-keys-write
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