Cloud · Google Cloud Data Platform

VPC Service Controls and preventing data exfiltration in GCP

gcpHardgcpvpc-scsecuritydata-exfiltration

Interview question

How do VPC Service Controls (VPC-SC) perimeters prevent data exfiltration from BigQuery and Cloud Storage?

How to answer

The short answer

In enterprise organizations managing regulated data estates, relying exclusively on Identity and Access Management () permissions creates an incomplete security perimeter. If an employee or compromised service account possesses valid bigquery.admin or storage.objectAdmin credentials, they could export internal customer records and write them to an unauthorized external Google Cloud project or personal Cloud Storage bucket.

VPC Service Controls (VPC-SC) creates a cryptographic security perimeter around Google Cloud resources.

How service perimeters operate

VPC Service Controls defines service perimeters at the Google Cloud organization level:

  • You group trusted Google Cloud projects (such as your data ingestion, BigQuery analytics, and Dataproc projects) inside a shared perimeter.
  • You specify protected Google APIs (such as bigquery.googleapis.com and storage.googleapis.com).

Once enclosed within a perimeter, communication between services inside the perimeter and clients outside the perimeter is blocked at the Google API network layer, regardless of IAM permissions.

Ingress and egress rules

To allow legitimate data sharing across perimeter boundaries (such as receiving partner data or publishing curated reporting tables):

  • Administrators define explicit Egress Rules specifying the target project ID, service identity, and destination bucket.
  • Any attempt to exfiltrate data to an unspecified project throws a VPC Service Controls: Request is prohibited by organization policy error immediately.