Labs / Cloud Security
Road 25 of 33
Cloud Security
How a cloud estate is broken into and what holds it safe: a leaked access key kept to least privilege, and the instance metadata service an SSRF turns against the very app that trusts it.
Start this roadData left in the open: buckets, keys & code
Cloud storage and the keys and code that open it.
- 01 The bucket that answered to everyone A customer-data bucket left public beside the one that should be, found and locked from the outside.
- 02 A deploy key that could read everything A CI key scoped to `*`, caught over-reaching into the orders bucket and cut back to least privilege.
- 03 Catch it in the code A Terraform-style change declares a public bucket and a plaintext password; both are caught, fixed and applied.
Stealing a workload's keys
An SSRF and an injection that read a workload's own role credentials.
- 01 The address only the app could reach An SSRF in a link-preview app reads the instance role's keys from the metadata service, and then the path is cut.
- 02 The greeting that read its own keys A serverless function lets the caller supply its greeting template, which reads the role credentials out of its environment.