**Google AI Coding Tool Flaw Exposes Internal Cloud Project to Editor-Level Access**

A recent discovery by cybersecurity researchers at Pillar Security has highlighted a critical flaw in Google's artificial intelligence (AI) coding tool, leaving internal cloud projects vulnerable to Editor-level access. The flaw, since remediated, was discovered in the command line interface (CLI) of Google's Gemini AI coding tool, which is used internally to automatically read and sort bug reports filed on its public GitHub page.

According to Dan Lisichkin, a cybersecurity researcher at Pillar Security, the flaw was exploited by inserting a prompt injection into a GitHub repository, which resulted in a legitimate credentials file being issued via the Workload Identity Federation (WIF) framework. This allowed the researchers to gain access to an internal Google project running in a dedicated sandbox, with one credential permitting the impersonation of a far more powerful account with Editor-level control.

This vulnerability is significant not only because it represents a rare instance where an open-source tool was used to breach a proprietary cloud computing environment, but also because it demonstrates the ease with which a malicious prompt can be injected into an AI coding tool. In theory, an entire software supply chain could be compromised at machine speed, with malicious prompt injections raising the stakes for DevSecOps teams. As a consequence, organizations may need to slow the pace of application development in the AI era to regularly ensure that malicious prompts have not compromised their software supply chains.

**How the Flaw Was Exploited**

The Pillar Security researchers used a prompt injection to exploit the flaw in the Gemini CLI setup code, which is used to automatically read and sort bug reports filed on Google's public GitHub page. By inserting a malicious prompt into a GitHub issue, the researchers were able to process it through an internal Gemini CLI-based workflow, ultimately gaining access to Google Cloud credentials. One of the credentials issued was particularly powerful, allowing the researchers to impersonate a more privileged account with Editor-level access to an internal Google project.

**The Implications of AI-Coded Malware**

The discovery highlights the growing risk of AI-coded malware, which can be injected into software supply chains through vulnerabilities in AI coding tools. Cybercriminals have been targeting software supply chains for years, and the ease with which a malicious prompt can be injected into an AI coding tool is making it increasingly trivial to compromise a software supply chain. As Lisichkin noted, "a malicious prompt can be inserted into almost any web page or email that a coding agent accesses, and once accessed, those instructions can be replicated multiple times across each successive task."

**The Challenge of Securing AI Coding Tools**

The discovery of this flaw in Google's AI coding tool is the second issue related to Google AI technologies revealed by Pillar Security researchers this month. The challenge of securing AI coding tools is complex, given the relatively new nature of these technologies. As Lisichkin noted, "no one is quite sure what issue might arise next." However, the discovery highlights the need for DevSecOps teams to pay closer attention to exactly what websites and other sources of data an AI coding tool is accessing.

**Conclusion**

The discovery of the flaw in Google's AI coding tool highlights the growing risk of AI-coded malware and the need for DevSecOps teams to pay closer attention to the security of AI coding tools. As organizations continue to develop and deploy AI-powered applications, they must also prioritize the security of their software supply chains. The remediation of this flaw is a step in the right direction, but it also underscores the need for ongoing vigilance in the face of emerging threats.

**Recommendations for DevSecOps Teams**

1. **Monitor AI coding tool access**: DevSecOps teams must monitor exactly what websites and other sources of data an AI coding tool is accessing. 2. **Regularly review software supply chains**: Organizations must regularly review their software supply chains to ensure that malicious prompts have not compromised their systems. 3. **Implement AI-specific security measures**: DevSecOps teams must implement AI-specific security measures to mitigate the risks of AI-coded malware. 4. **Prioritize security in AI development**: Organizations must prioritize security in AI development, including the use of secure coding practices and regular security testing.

By prioritizing the security of AI coding tools and software supply chains, organizations can mitigate the risks of AI-coded malware and ensure the integrity of their cloud computing environments.