SpinTheMic
Pro

Interview practice question

Protecting instance metadata from SSRF attacks

Cloud & DevOps · Cloud Platforms · Experienced

A penetration test shows that a server-side request forgery bug in your web app can reach the instance metadata service and steal the instance role's credentials. How do you fix this?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Fix SSRF in app (validate/allow-list URLs).
  • Enforce IMDSv2 (session tokens), hop limit 1.
  • Least-privilege instance role.
  • Block metadata access from containers where not needed.
  • Detect credential use outside instance (GuardDuty).
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics