Chapter 8. Hacking and Securing Google Cloud Storage Buckets
Since serverless functions and cloud resources that enable the serverless computing model are generally ephemeral in nature, serverless applications leverage cloud storage and database services to store data that must persist independently of short-lived compute resources. For example, a photo-sharing app might store uploaded photos, logs, and static assets in a Google Cloud Storage bucket, while user account data is stored separately in a dedicated database. Similarly, an ecommerce platform might store user documents, transaction receipts, and order invoices across multiple buckets. Imagine that you accidentally left a storage bucket containing uploaded passport scans exposed to the public! Since the bucket is publicly accessible, attackers could easily download those files and put the users of your application at risk of identity theft. This oversight can quickly escalate into a full-blown data breach with legal, financial, and reputational consequences.
Cloud storage misconfigurations account for a significant number of data breaches in the cloud. In this chapter, you’ll dive deeper into Cloud Storage bucket security misconfigurations and understand how attackers exploit them to gain unauthorized access to files and information. You’ll then simulate a dangling bucket takeover and explore how attackers can abuse lingering references to deleted buckets. Finally, you’ll learn how to enforce secure bucket configurations ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access