Runtime detection check · Kubernetes runtime

Container contacted the cloud metadata endpoint

A container opened a connection to the instance metadata service at 169.254.169.254 (or AWS's IPv6 fd00:ec2::254).

Why it matters

The metadata service hands out the node's cloud credentials. A workload that reaches it can act as the node, which is the usual next step after a container compromise.

How to fix it

Give the workload its own identity (IRSA, GKE Workload Identity, Azure Workload Identity) and block the metadata endpoint for pods (IMDSv2 with a hop limit of 1, or a NetworkPolicy). If the image legitimately needs it, add its repository to trustivan_metadata_allowed_images in falco.extraRules.

What TrustIvan reads

The Falco rule "TrustIvan Contact cloud metadata endpoint from container" (MITRE ATT&CK credential_access, T1552.005), 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.