Runtime detection check · Kubernetes runtime

Cluster or runtime client run in a container

kubectl, crictl, ctr, docker, helm or oc ran in a container.

Why it matters

An application container has no use for cluster tooling; an intruder uses it to enumerate and move through the cluster with the pod's service account.

How to fix it

Remove the tools from the image, turn off automountServiceAccountToken where the pod does not call the API, and check the service account's RBAC.

What TrustIvan reads

The Falco rule "TrustIvan Cluster client run in container" (MITRE ATT&CK discovery, T1613), 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.