A Cloud Instance Metadata Service is an endpoint available from within a cloud virtual machine or workload. It provides information about the instance and may issue temporary credentials associated with its identity or permissions. Applications use these credentials to access cloud services without embedding long-lived keys in code.
Because metadata can expose powerful credentials, attackers who gain a path to the service may try to retrieve them and use them to access cloud resources. For example, a vulnerable web application or server-side request forgery flaw could be abused to reach an internal metadata endpoint. Defenses include requiring stronger metadata access protections, limiting workload permissions, preventing untrusted requests from reaching internal endpoints, and monitoring for unusual credential use and cloud API activity.


