Module 13 · Cloud SSRF & IMDS — IMDSv2 and Beyond

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Apr 27, 2026
4 min read
Read as

Last updated: April 29, 2026

100% Free

No signup. No paywall. No catch. One of our 10 most-requested practitioner modules — published in full so anyone can learn for free. We earn through consulting, not by gating knowledge.

See all 10 free modules →

Why this module exists. Capital One. Capital One. Capital One. Every cloud security training references it because the chain is iconic: external SSRF → IMDS → IAM credentials → S3 dump. Six years later, IMDSv1 is still enabled on enough EC2 fleets to keep the attack practical.

Why this module exists. Capital One. Capital One. Capital One. Every cloud security training references it because the chain is iconic: external SSRF → IMDS → IAM credentials → S3 dump. Six years later, IMDSv1 is still enabled on enough EC2 fleets to keep the attack practical. And Azure / GCP have their own metadata-service attack surfaces.

What metadata services do

Every cloud VM needs a way to know its identity, its instance type, its attached IAM role’s credentials, its launch configuration. The cloud provides this via a special HTTP endpoint accessible only from the VM itself:

Cloud Endpoint Auth
AWS http://169.254.169.254/latest/meta-data/ IMDSv1: none. IMDSv2: PUT-derived token.
Azure http://169.254.169.254/metadata/instance?api-version=… Header: Metadata: true
GCP http://metadata.google.internal/computeMetadata/v1/ Header: Metadata-Flavor: Google

The crucial detail: this endpoint is reachable from any process on the VM. Including any process the attacker controls — including a vulnerable web app that does SSRF.

Want this for your team?

Custom team training + practitioner advisory

Beyond the free academy — we run private workshops, vCISO advisory, and red-team exercises tailored to your stack. For Indian SMBs scaling past their first hire.

Book team training call Replies in 4 working hrs · India-only · Senior consultants