Pwning AWS Lambdas & GCP Cloud Functions
summary
Claims full persistence and near-real-time exfiltration from AWS Lambdas and GCP Cloud Functions after a single RCE, without requiring role keys. Demonstrates AWS bootstrap/init hijack on Firecracker microVMs to grab invoke IDs and write a new runtime, and GCP monkey-patching Flask route to inject exfil code. Exploits YAML RCE payloads, uses urllib/socket exfiltration, provides GitHub payloads and Terraform for repro, shows persistence lasts minutes (env destroyed ~5 min) and proposes VPC/outbound deny mitigations.
AI-written summary · about
chapters (11)
- 0:00Introduction to serverless persistency
- 1:03Why serverless persistency matters
- 3:57How serverless infrastructure works
- 8:19Why persistency is possible
- 9:28Exploiting AWS Lambda
- 13:27Exploiting GCP Cloud Functions
- 16:42Demo results and payload sharing
- 17:23Mitigations for AWS and GCP
- 20:39Detection challenges and solutions
- 21:44Researching serverless functions
- 23:10Q&A session
