Skip to main content
Compliance · High severity

EC2 IMDSv2 Not Required

The older metadata service can be reached through a server-side request forgery bug in the application, which is how instance credentials are most commonly stolen.

Free to start. No card. The playground just needs your work email.

AWSprovider
Highseverity
Compliancewhere it shows up
Manualfix, steps written out

AWS

Found, explained, handed over.

Where the estate departs from your policies, frameworks and tagging rules.

01

Detect

ZopNight checks this automatically across AWS, with read-only access to the account.

02

Explain

Every finding says exactly what to change: Require IMDSv2 on EC2 instance.

03

Fix

The finding opens with the fix already written out, step by step, so it is one ticket, not an investigation.

Applies to
EC2 Instances on AWS
The fix, by hand
  1. Inventory anything on the instance that reads instance metadata: app code, EC2 user data, third-party agents.
  2. Confirm all readers use a recent AWS SDK (IMDSv2 token-aware) or update them.
  3. For containerised workloads, raise the metadata hop limit to 2: aws ec2 modify-instance-metadata-options --instance-id ‹id› --http-put-response-hop-limit 2.
  4. Set IMDSv2 to required: aws ec2 modify-instance-metadata-options --instance-id ‹id› --http-tokens required.
  5. Watch CloudWatch / app logs for 24h; IMDSv1 401s show up loudly when something is still on the old path.

These are the steps the finding carries in the product.

Category
Compliance. Configuration drift from best practice: public access, missing MFA, unencrypted storage, deprecated runtimes.
Where it appears
The Compliance tab of Recommendations, with every affected resource listed.
Rule ID
RC-152
Full reference

EC2 IMDSv2 Not Required

Related checks

See the compliance findings in your account.

Connect a read-only role and the first pass runs on your own estate. This check, and the rest of the catalogue, with it.

Prefer to talk it through first? Book 20 minutes with the team.

  • $30M+annualised cloud spend under management
  • 550K+resources tracked since launch
  • 20-60%off the bill in the first month
  • SOC 2Type II report, plus ISO 27001

Figures published on zop.dev.

Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console· Multi-cloud automation· Production-ready in 30 min· SOC 2 · ISO 27001· 20–60% off the bill, first month· 4 platforms · 1 console·