Cloud Platform and Infrastructure Security

A web app on an IaaS VM fetches URLs supplied by users. An attacker submits the metadata service address, receives the VM's temporary role credentials, and reads storage buckets. Which control most directly removes the root cause?

Show the answer

Correct answerC. Require session-token metadata access and restrict outbound requests from the app

AWhy not this: Hypervisor patching counters VM escape; this attack never leaves the guest VM.

BWhy not this: The stolen role is already authorized for the bucket and its key, so encryption does not stop the access.

CWhy this is right: Metadata session tokens plus outbound request restrictions break the forged request that exposes the role credentials.

DWhy not this: DDoS mitigation addresses availability attacks, not forged requests that expose credentials.

This is server-side request forgery against the instance metadata service. Requiring session tokens for metadata and restricting the app's outbound requests stops the forged request from yielding credentials. Customer-managed keys do not help, because the stolen role is already authorized to use them.