Runtime detection check · Kubernetes runtime

Search for keys or passwords in a container

find or grep ran in a container looking for private keys, key files, AWS secret keys or passwords.

Why it matters

Sweeping the filesystem for secrets is what an intruder does right after getting a shell.

How to fix it

Find who ran it (the process tree is in the event). If it was not a person debugging, treat the workload as compromised and rotate what it could read.

What TrustIvan reads

The Falco rule "TrustIvan Search for private keys or passwords in container" (MITRE ATT&CK credential_access, T1552.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.