Cloud Data Exfiltration via GCP Storage Buckets and How to Prevent It
![](https://www.praetorian.com/wp-content/uploads/2024/06/5cddd283e4ed7328382066af_20190501-cloud-data-expfiltration-thumb.jpg)
On a recent engagement, we gained the ability to execute code on a pod which we compromised through a SQL injection vulnerability. With the SQL injection, we could write pickled python objects to a table in a database and those objects would be unpickled and executed by a different pod. The customer was using a Private Kubernetes GKE cluster and had restricted all egress traffic to pass through a network proxy which denied general access to the Internet. This prevents standard exfiltration of data from the pod. However, the pods had permissions to write to GCP Storage Buckets, and therefore, the storage.cloud.google.com URL was whitelisted.