EC2 instances should enforce IMDSv2

Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tiene alguna pregunta o comentario sobre nuestro proyecto de traducción actual, ¡no dude en contactarnos!

Description

Amazon EC2 instances should enforce the IMDSv2 session-oriented method to access instance metadata. IMDSv1 uses insecure GET requests and responses that are exposed to SSRF, misconfigured reverse proxies, and open firewalls, while IMDSv2 requires a session token. This check verifies that each instance’s metadata options have http_tokens set to required and state set to applied (instances with a pending metadata change fail until the change is applied), including instances launched by an Auto Scaling group. An instance with missing metadata options fails, and so does an instance whose metadata endpoint is disabled while http_tokens is optional, as in the CIS audit. Instances that are shutting down or terminated are skipped, and an instance with a missing or empty state fails.

Remediation

Confirm that the software on each affected instance supports IMDSv2, then follow Transition to using Instance Metadata Service Version 2 to require IMDSv2 on the instance in every applicable region.

References