~/talk

The GCP Metadata API

Talkat BSidesSF 2020 · 2020-02-23..02-24· [security, cloud-infrastructure]
links:none on file
links:none on file
slides:none on file

GCP’s metadata API returns instance credentials and can be abused despite extra protections; defaults attach powerful service accounts to cloud functions and GKE nodes, letting any workload request an OAuth token with project-level editor privileges. Demonstrations include a headless-browser cloud function vulnerable to DNS rebinding that exfiltrates tokens and a malicious cloud build step that fetches a Google-managed token and reads buckets. Google adds host header validation and requires a custom metadata header; recommended fixes are per-project isolation, disable legacy endpoints, and metadata concealment / workload identity.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:43Metadata API basics
  3. 3:52Cloud Function vulnerability
  4. 7:48GCP metadata protections
  5. 8:32Resource hierarchy in GCP
  6. 9:58Service accounts explained
  7. 12:08Kubernetes Engine risks
  8. 14:36Demo metadata concealment
  9. 17:50Google managed service accounts
  10. 21:58Cloud Build attack demo
  11. 25:49Detecting malicious queries
  12. 28:34Remediation techniques
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.