Skip to Content

Security Analysis: Weaponized AI Agents in Google Cloud Vertex AI

1 April 2026 by
TechStora

Excessive Permissions in P4SA: A Gateway to Exploitation

Palo Alto Networks researchers discovered that the Per-Project Per-Product Service Agent (P4SA) within Google Cloud Vertex AI suffers from dangerously excessive default permissions. These permissions allow attackers to obtain service agents credentials, which are pivotal in accessing the execution context of AI agents deployed by users. This security flaw essentially turns AI agents into potential insider threats, capable of compromising sensitive data and infrastructure.

The exploitation process involves leveraging the compromised credentials to infiltrate the owner's Google Cloud project and associated data storage. This level of access permits malicious actors to exfiltrate sensitive data, manipulate environments, and even establish persistent backdoors. The implications of these privilege escalations are severe, as they enable widespread infiltration across the affected cloud infrastructure.

Abuse of Proprietary Resources and Intellectual Property

Once attackers gain access to the compromised credentials, they can download container images from private repositories hosting the Vertex AI Reasoning Engine. This exposes Googles proprietary code, providing attackers with a blueprint to identify further vulnerabilities in the system. The researchers noted that this kind of unauthorized access not only compromises intellectual property but also escalates the risk of targeted attacks on other interconnected systems.

Additionally, attackers can exploit access to restricted Artifact Registry repositories and Google Cloud Storage buckets. These repositories may contain sensitive images and data that can be weaponized for further malicious purposes. This highlights the need for rigorous access control measures to limit exposure.

Potential for Remote Code Execution and Persistent Backdoors

During their investigation, Palo Alto Networks researchers identified a specific file that attackers could manipulate to execute remote code within the AI agents environment. This vulnerability can be exploited to create a persistent backdoor, granting attackers long-term access to the compromised environment. Such a backdoor significantly amplifies the scope of potential damage, including data theft and infrastructure sabotage.

The ability to execute remote code also introduces risks of deploying malicious programs, disrupting operations, and even creating a launching pad for broader attacks across interconnected systems. Addressing such vulnerabilities requires proactive measures to secure execution environments and enforce stringent security protocols.

Recommendations and Mitigation Strategies

In response to these findings, Palo Alto Networks recommended using the Bring Your Own Service Account (BYOSA) feature to enforce least-privilege execution. This approach ensures that AI agents are granted only the permissions they require to function, mitigating the risk of privilege escalation. BYOSA represents a practical solution to control service agent permissions effectively and reduce the attack surface.

Google has also updated its documentation to highlight potential risks associated with default permissions. The inclusion of strong non-overridable controls further limits the ability of service agents to alter production images, addressing one vector of exploitation. These measures underscore the importance of adhering to the principle of least privilege in cloud security.

Implications for AI and Cloud Security

The vulnerabilities uncovered in Google Cloud Vertex AI reveal broader challenges in securing AI and cloud platforms. As AI agents become more sophisticated, their susceptibility to exploitation also increases. The ability of attackers to transform AI agents into double agents underscores the need for continuous security assessments and robust defenses.

Organizations leveraging AI-driven platforms must adopt comprehensive security frameworks to protect against insider threats and privilege abuse. This includes regular audits, strong identity and access management controls, and proactive monitoring of deployed agents. Failure to address these risks could result in significant operational disruptions and reputational damage.