SSRF to Credential Theft
Also called SSRF-to-IMDS.
Using a server-side request forgery flaw to steal a VM's role credentials.
What it is
An attack chain where a server-side request forgery vulnerability is pointed at the instance metadata endpoint, causing a victim application to fetch and leak the underlying instance's temporary credentials. The application's own network position is what makes the metadata reachable.
Why it matters
This pattern converts a common web vulnerability directly into valid cloud credentials, making it a high-priority detection and a frequent first link in cloud breach timelines.
In practice
A responder confirms the intruder coerced a vulnerable PDF generator into returning metadata credentials, then replayed them from outside the network.
What to look for
- Web requests with URLs pointing at internal or metadata addresses.
- Role credentials used from somewhere other than the instance they belong to.
- Application logs showing fetches of attacker-supplied URLs.
Common mistake
Fixing the web flaw but not rotating the role credentials. Treat anything the role could reach as exposed.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
Amazon GuardDuty Cloud service
AWS threat detection that analyzes CloudTrail, VPC flow logs and DNS logs.
-
Microsoft Defender for Cloud Commercial
Posture and threat protection for Azure, AWS and Google Cloud.
-
Wiz Commercial
Maps cloud resources, identities and exposures into one graph of risk.
-
Prowler Open source
An open source tool that checks cloud accounts against benchmarks such as CIS.
Read next
- Instance Metadata Service: A link-local endpoint that hands instance credentials and config to a VM.
- Temporary Credentials: Time-limited, automatically expiring credentials issued for a session or role.
- Cloud Audit Logging: The record of management-plane API calls made across a cloud account.