instance metadata service
An endpoint inside every cloud virtual machine, at 169.254.169.254 on AWS, that hands the machine its settings and its role's temporary credentials.
Code that can reach the metadata service can take the machine's role credentials.
In more detail
IMDSv1 answers any simple request, so a server-side request forgery bug can leak credentials. IMDSv2 needs a session token, and a hop limit of one stops containers on the node reaching it through an extra network hop.
Related terms
- instance profile — The container that attaches an IAM role to an EC2 instance, so programs on it receive temporary credentials automatically.
- temporary security credentials — Cloud credentials that expire on their own after minutes or hours, issued when a role is assumed.
- Amazon EC2 — Amazon Elastic Compute Cloud, the AWS service that rents out virtual servers called instances.
- server-side request forgery — An attack where a server is tricked into fetching a URL the attacker chose, reaching internal systems the attacker cannot reach directly.
Taught in
- Shared Responsibility Model & Cloud Threat Landscapes — Cloud Security & DevSecOps Engineering
- Cloud IAM Architecture & Permission Boundaries — Cloud Security & DevSecOps Engineering
- Static IaC Scanning: Linting Terraform with Checkov — Cloud Security & DevSecOps Engineering
- Threat Detection with GuardDuty & Anomaly Analytics — Cloud Security & DevSecOps Engineering
- Server-Side Request Forgery — Application Security & Threat Modeling for Engineers