More Info:

Ensure that all the Amazon EC2 instances require the use of Instance Metadata Service Version 2 (IMDSv2) when requesting instance metadata in order to protect against vulnerabilities that could be used to access the Instance Metadata Service (IMDS). IMDSv2 uses session-oriented requests. This allows you to create a session token that defines the session duration, which can be a minimum of 1 second and a maximum of 6 hours. During this duration, you can use the same session token for subsequent metadata requests. After this duration expires, you must create a new session token to use for future requests.

Risk Level

Medium

Address

Security

Compliance Standards

CBP, NISTCSF

Triage and Remediation

Remediation

To remediate the “Require IMDSv2 for EC2 Instances” misconfiguration in AWS using the AWS console, follow these steps:

  1. Log in to the AWS Management Console.
  2. Navigate to the EC2 dashboard.
  3. Select the EC2 instance that needs to be remediated.
  4. Click on the “Actions” button and select “Instance Settings” and then click on “Modify instance metadata options”.
  5. In the “Modify instance metadata options” dialog box, select “Required” for “IMDSv2” option and click “Save”.
  6. Verify the configuration by following the same steps above.

By following these steps, you have successfully remediated the “Require IMDSv2 for EC2 Instances” misconfiguration in AWS using the AWS console.

Additional Reading: