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
Related checks
- Search for keys or passwords in a container
Kubernetes runtimeSeverity: Medium
runtime.secret-search - Cloud credentials file read in a container
Kubernetes runtimeSeverity: Medium
runtime.cloud-credentials-read - Sensitive file opened in a container
Kubernetes runtimeSeverity: High
runtime.sensitive-file-read
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