AWS Security and Compliance: UK GDPR, NCSC Guidance and Automated Assurance
Manage AWS UK GDPR compliance with NCSC guidance, Audit Manager, data sovereignty, and assurance.
GCP Cloud Functions security refers to the controls used to protect serverless workloads running on Google Cloud Functions from unauthorized access, privilege misuse, and data exposure.
These controls primarily include Google Cloud Functions IAM, service account permissions, VPC connectivity, and inherited Cloud Run security controls.
Proper configuration matters because serverless functions often process sensitive data and execute with permissions that can affect multiple cloud resources.
To understand how Google Cloud Functions fit into the wider serverless security model, read the main pillar guide: The Complete Guide to Serverless Security: AWS Lambda, Azure Functions & GCP Cloud Run.
For organizations using Google Cloud in production environments, serverless security is not simply about preventing external attacks. It is also about limiting the impact of excessive permissions, isolating workloads, and maintaining visibility over how functions interact with storage, databases, APIs, and internal services.
Many security incidents involving serverless environments are not caused by vulnerabilities inside the code itself. They are caused by excessive privileges assigned to service accounts.
According to Google's own security guidance, the default Compute Engine service account historically received broad Editor permissions in many environments. If a Cloud Function inherits those privileges, an attacker who compromises the function may gain access to multiple services across the project.
Because Cloud Functions execute automatically and scale dynamically, privilege misuse can spread far beyond a single application component.
Cloud Functions are often connected to databases, storage buckets, APIs, and third-party services.
Without proper network segmentation, sensitive traffic may traverse public endpoints unnecessarily.
This becomes especially problematic when organizations process regulated workloads involving healthcare, financial, or customer information.
Google introduced Serverless VPC Access connectors to help organizations route traffic securely to internal resources rather than exposing services directly to the internet.
Second-generation Cloud Functions are built on top of Cloud Run. As a result, many Cloud Run security controls now apply directly to GCP Cloud Functions.
Identity-based access controls, ingress restrictions, service-to-service authentication, and runtime security policies are increasingly becoming essential components of modern GCP Cloud Functions security.

Google Cloud follows a shared responsibility model. Google secures the underlying infrastructure, while customers remain responsible for securing identities, permissions, and network configurations.
Google's official guidance recommends:
Applying least-privilege IAM policies
Avoiding broad roles wherever possible
Using dedicated service accounts
Restricting network access
Monitoring activity with Cloud Audit Logs
US federal agencies and regulated organizations commonly rely on guidance from NIST and FedRAMP.
NIST Special Publication 800-53 emphasizes:
Least privilege access
Separation of duties
Continuous monitoring
Network segmentation
FedRAMP Moderate and High baselines contain similar requirements for identity controls and logging.
Organizations that fail to implement these controls may experience unauthorized access, compliance findings, or operational disruptions during audits.
The Center for Internet Security, CIS, provides Google Cloud benchmarks that specifically recommend:
Avoiding default service accounts
Enabling audit logging
Restricting privileged roles
Applying network segmentation
Monitoring configuration changes
These recommendations are designed to reduce attack surface rather than react after compromise.
Understanding GCP Cloud Functions security is a useful first step. But knowing a risk exists and knowing how to respond to it under real operational pressure are two different things.
Our Serverless Security For AWS Lambda Azure Functions And GCP course gives architects, cloud engineers, and security teams the practical framework to apply serverless security correctly in the environments they actually manage, not just the ones described in documentation.
One of the most common mistakes in serverless environments is allowing functions to execute using broad default identities.
Dedicated service accounts help isolate workloads and minimize blast radius when a function is compromised.
Following GCP service account best practices, each function should receive only the permissions required for its task.
For example:
A function writing files to Cloud Storage should not have BigQuery administrative rights.
A function processing Pub/Sub messages should not receive Editor access.
Separate functions should use separate identities.
IAM Conditions allow access to depend on context such as resource type, time, or request attributes.
This reduces unnecessary exposure and aligns closely with Zero Trust principles increasingly adopted across US enterprises.
Many organizations focus heavily on IAM permissions but overlook network security.
A Cloud Function with proper permissions can still expose sensitive workloads if it communicates with databases or APIs over public endpoints.
For workloads handling regulated data, relying solely on internet-accessible services increases unnecessary risk.
Serverless architectures should treat network paths as part of the security boundary.
Google's Serverless VPC Access connectors allow Cloud Functions to communicate with internal resources without exposing those resources publicly.
This approach enables functions to access:
Cloud SQL instances
Memorystore
Internal APIs
Private GKE services
Shared VPC environments
By keeping traffic inside trusted environments, organizations reduce attack surface and gain greater control over east-west communication.

Many organizations allow unrestricted outbound traffic from functions. This creates opportunities for data exfiltration or unauthorized API usage.
Using egress settings and VPC Service Controls helps restrict where workloads can communicate.
These controls are particularly useful for healthcare, financial, and government workloads that must maintain strict data boundaries.
Second-generation Cloud Functions are powered by Cloud Run. This means architects should think beyond traditional serverless security and understand the underlying platform controls.
Several Cloud Run security controls directly influence the security posture of Cloud Functions.
Cloud Run allows organizations to define how services are exposed.
Functions can be configured for:
Internal traffic only
Internal and load-balanced traffic
Public internet access
Restricting ingress dramatically reduces exposure and aligns with Zero Trust architecture principles.
Instead of relying on publicly accessible HTTP endpoints, organizations should use authenticated invocations.
Identity-based invocation allows only approved users, services, or workloads to execute functions.
This minimizes abuse and supports stronger access control models.
Cloud Audit Logs provide visibility into:
Function deployments
IAM changes
Service account usage
Invocation events
Administrative activities
These logs support incident investigations and are frequently referenced during compliance assessments.
Use dedicated service accounts.
Avoid default identities whenever possible.
Assign separate accounts to separate functions.
Follow least-privilege IAM principles.
Grant only the permissions required for the specific workload.
Enable Cloud Audit Logs.
Use Serverless VPC Access connectors.
Restrict public ingress.
Allow only authorized users or services to invoke functions.
Review Cloud Run security settings.
Monitor service account activity.
Unexpected permission usage often signals misconfiguration or compromise.
This increases blast radius and makes privilege separation difficult.
The Editor role provides far more permissions than most workloads require.
Private resources should not depend on public endpoints when secure alternatives exist.
Serverless functions may run for milliseconds, but they interact with long-lived databases, APIs, and sensitive business systems.
Security architecture should reflect that reality.
Reading documentation helps teams understand controls, but secure implementation requires consistent processes and operational discipline.
Cloud architects, DevOps engineers, and security teams must understand:
Service accounts, IAM roles, and workload authentication.
Private connectivity, VPC Service Controls, and egress restrictions.
Logging, threat detection, and forensic visibility.
Security models vary significantly between AWS Lambda, Azure Functions, and Google Cloud Functions.
If you are responsible for serverless infrastructure in your organization, structured training is one of the most effective ways to reduce security risk and improve operational confidence.
Our Serverless Security For AWS Lambda Azure Functions And GCP course walks teams through real-world scenarios and the controls required to secure modern serverless environments. The material is designed for busy professionals responsible for production cloud workloads.
For a complete overview of IAM, secrets management, API protection, logging, dependency security, and DevSecOps controls across serverless platforms, return to the main pillar guide: The Complete Guide to Serverless Security: AWS Lambda, Azure Functions & GCP Cloud Run.
Google Cloud Functions provide strong foundational security, but they are not fully secure by default.
Customers remain responsible for configuring IAM permissions, service accounts, network controls, and logging.
Misconfigured identities are a common source of risk. Google's shared responsibility model places infrastructure security on Google and workload security on the customer.
Properly implemented controls significantly improve the overall security posture.
Cloud Functions should follow least-privilege principles.
Instead of assigning broad roles like Editor or Owner, functions should receive only the permissions required for their specific task.
Dedicated service accounts help isolate workloads and reduce the impact of compromise.
Google Cloud Functions IAM supports granular permissions that align with Zero Trust principles and modern cloud security practices.
Second-generation Cloud Functions inherit several Cloud Run security controls. These include ingress restrictions, authenticated invocation, and improved identity management capabilities.
While these features provide stronger security options, organizations must still configure them properly.
Default configurations may not meet internal security or compliance requirements.
VPC connectors are recommended when functions need to access internal resources such as databases, APIs, or shared services.
They allow traffic to remain inside trusted environments instead of traversing public networks.
Organizations handling regulated data often use Serverless VPC Access to improve segmentation and reduce exposure.
Monitoring typically combines Cloud Audit Logs, Cloud Monitoring, and Security Command Center.
Together, these services provide visibility into deployments, permissions, invocations, and suspicious activity.
Continuous monitoring helps teams detect misconfigurations and investigate incidents more effectively.