Interview practice question
SSRF leads to cloud credential theft
Backend Engineering · Auth and Security · Experienced
Your image-from-URL feature was used to fetch http://169.254.169.254 and the attacker obtained the instance's IAM credentials. How do you respond and prevent it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Rotate/revoke instance role creds; check CloudTrail.
- Enforce IMDSv2 (token, hop limit).
- Block private/link-local IPs after DNS resolution.
- Fetch via isolated egress proxy.
- Narrow IAM role permissions.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.