Skip to Content

Security Analysis of Google Cloud's Vertex AI Permission Model

3 April 2026 by
TechStora

Excessive Permission Scoping in Vertex AI's Service Agents

The identified vulnerability within Google Cloud's Vertex AI platform stems from the default permission scoping of its service agents. Specifically, the PerProject PerProduct Service Agent (P4SA), deployed via the Agent Development Kit (ADK), is granted excessive permissions by default. This configuration can be exploited to extract sensitive credentials, granting attackers unauthorized access to Google Cloud Storage buckets and other resources within the project.

Once a Vertex AI agent is deployed using the Agent Engine, every call to the agent invokes Google's metadata service. This mechanism inadvertently exposes the credentials of the service agent, along with details such as the associated GCP project identity and machine scopes. Attackers exploiting these credentials can bypass isolation controls, leading to unauthorized access to critical data and infrastructure.

Potential Risks of Credential Misuse

Unit 42 researchers demonstrated how stolen service agent credentials could be leveraged to disrupt the secure execution context of AI agents. This could allow malicious actors to transition from an AI agent's limited context into the broader customer project. Such unauthorized access undermines data isolation guarantees, creating opportunities for data exfiltration, infrastructure compromise, and unauthorized resource utilization.

The extracted credentials also provide access to Google-managed tenant projects, further escalating the risk. While these credentials lacked permissions to access certain internal storage buckets, their presence highlights the need for more stringent access control policies to prevent potential abuse in future configurations or scenarios.

Role of Metadata Services in the Vulnerability

The core issue lies in how Google's metadata service interacts with deployed Vertex AI agents. By design, metadata services facilitate interaction between the cloud infrastructure and running instances. However, in this case, the service inadvertently contributes to the unintended exposure of sensitive authentication details.

Once credentials are exposed, attackers can utilize them to conduct privileged actions, transforming AI agents into insider threats. These risks emphasize the importance of re-evaluating how metadata service interactions are scoped and secured within high-value cloud environments.

Impact on Organizational Security

The discovered vulnerability poses a significant risk to organizations relying on Vertex AI for critical operations. Misconfigured or compromised AI agents could act as double agents, masquerading as legitimate tools while secretly exfiltrating sensitive data. This compromises both the confidentiality and integrity of cloud-hosted resources.

Moreover, the ability to jump execution contexts within the GCP environment undermines trust in the platform's isolation mechanisms. This issue underscores the necessity for organizations to scrutinize default permissions and ensure that service agents operate with the principle of least privilege.

Mitigation Strategies for Vertex AI Deployments

Organizations should adopt a proactive approach to secure their Vertex AI deployments. Key measures include auditing default permissions for all service agents and enforcing strict access controls to minimize exposure. Regular monitoring and logging of metadata service interactions can also help identify and mitigate potential abuse early.

Additionally, organizations should explore custom role definitions to replace default permissions, ensuring that agents operate with only the privileges required for their intended functionality. By addressing these gaps, enterprises can significantly reduce the attack surface associated with AI-driven cloud workflows.