# IMDSv2

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

IMDSv2 is the session-oriented version of the AWS EC2 instance metadata service. It requires a token obtained with a PUT request before any metadata is returned, which blocks many request-forgery attacks that read credentials from the metadata address. Instances can be set to require IMDSv2 and reject version 1.

## An example, sourced

The metadata service check asks that IMDSv2 is required on all instances.

## Why it matters here

On Cloud Security Risk Assessment the term appears in the rubric and on the platform pages; the example above was read on 16 Nov 2026 from the page under Sources.

## Related pages

- [Just-in-time access: meaning and an example](/glossary/just-in-time-access/)
- [Least privilege: meaning and an example](/glossary/least-privilege/)
- [Managed identity: meaning and an example](/glossary/managed-identity/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudsecurityriskassessment.com/glossary/imdsv2/
