Skip to content
Cloud Security Risk Assessment

Is the instance metadata service hardened (IMDSv2 required on AWS, managed identity endpoint protected on Azure, metadata concealment on GKE)?

Question 13 of the assessment asks: Is the instance metadata service hardened (IMDSv2 required on AWS, managed identity endpoint protected on Azure, metadata concealment on GKE)? A server-side request forgery bug can read the metadata service and walk away with the instance's cloud credentials.

Start the assessment ยท All 40 questions

Why it matters

A server-side request forgery bug can read the metadata service and walk away with the instance's cloud credentials.

Answers and what each is worth

AnswerValue
Yes, enforced everywhere1
On new resources only0.5
No or not known0

How to check it in each cloud

AWS
Describe instances and check MetadataOptions.HttpTokens is required, and that the account default under EC2 data protection and security is set to required.
Azure
Check that workloads do not accept unvalidated URLs, that managed identity use is scoped per resource, and that Defender for Cloud has no open server-side request findings.
Google Cloud
Check that GKE clusters use Workload Identity (metadata server mode GKE_METADATA) and that Compute Engine instances do not run with the default service account.

The fix

Require IMDSv2 on all instances and set the account default so new instances cannot opt out. Effort: low.

Where it comes from

Sources

  1. AWS documentation Instance metadata, read 16 Nov 2026
  2. Microsoft cloud security benchmark IM-8, read 16 Nov 2026

Last reviewed 16 Nov 2026.