Serverless security: attack & defense
summary
Shows concrete exploits and fixes: a published malicious npm package (demo package s3-rename) exfiltrates AWS_ACCESS_KEY_ID from environment variables and gets >500 downloads; a doc-to-text pipeline allows shell injection and exposes the Lambda execution role credentials; GCP functions run with editor scope and expose tokens via 169.254.169.254 metadata; Azure app services let one compromised function overwrite others via the storage account. Demos include reverse shells, CloudWatch logs, and uploading a rogue function; recommends VPC egress controls, per-function IAM, and secret managers.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker background
- 1:54Serverless basics and cloud providers
- 9:32Introducing Bob and his challenges
- 10:57Dependency poisoning attack
- 15:18Defending against dependency attacks
- 16:23Secrets leak in serverless apps
- 18:35Over-permissive roles vulnerability
- 21:51Mitigating over-permissive roles
- 23:43Cross-cloud role management
- 24:25Azure dangling resources risk
- 26:40Dangling resources and subdomains
- 27:43API key exposure in URLs
- 28:27Summary and key takeaways
- 29:12Closing remarks and contact
