2 Sources
[1]
An AI broke Snowflake's code. Then another AI agent exploited it
An AI broke Snowflake's code; then another AI, an attack agent, autonomously found the bug, exploited it, and extracted credentials without human intervention. Luckily, this wasn't yet another case of rogue AI agents doing evil things. It was a sanctioned bug hunt, conducted through Snowflake's HackerOne vulnerability disclosure program, and Snowflake fixed the flaw the same day Wiz reported it and rotated the affected credentials the following day. Wiz's red agent, an AI-powered autonomous attacker designed for offensive security, found the GitHub Actions workflow flaw during a routine scan of public repositories on June 23. The script injection vulnerability existed in snowflakedb/snowflake-connector-net, and it allowed an unauthenticated user to execute arbitrary commands within a GitHub Actions runner by opening a GitHub issue with a specially crafted title. And it turned out an AI had inadvertently injected the bug into the code five days earlier. GitHub Copilot Autofix, an AI coding assistant, co-authored the commit on June 18, and it introduced a script injection bug in run: blocks by removing the repository's existing sanitized input pattern and replacing it with direct string expansion in a shell script. "We crafted an issue title that, after template expansion, breaks out of the echo string and exfiltrates the Jira credentials via an out-of-band callback," Wiz's head of threat exposure Gal Nagli said in a Monday blog. These credentials gave Wiz read access to Snowflake's engineering, security compliance, and bug bounty tracking projects. Wiz reported the workflow vulnerability to the cloud data platform on June 23, and Snowflake patched it the same day. It also revoked and rotated the Jira token, and confirmed, via audit logs, that Wiz was the only third-party to access the endpoint during the five-day exposure window. The disclosure "was immediately investigated and remediated, and our investigation found no evidence of unauthorized access," a Snowflake spokesperson told The Register. "We are working together with Wiz to share these learnings with the broader industry to encourage widespread adoption of these security best practices." Wiz, for its part, deleted all of the data it accessed during the vulnerability research and proof-of-concept exploit testing, and told us that this incident proves human code review isn't sufficient to quickly detect vulnerabilities - especially as developers increasingly use AI. "This incident highlights a rapidly emerging reality in software development: how AI coding assistants can inadvertently introduce workflow injection vulnerabilities, and how automated AI agents can rapidly surface them in the wild," Nagli wrote. Of course, the Google-owned biz has a vested interest in saying this. But this doesn't make it not true.®
[2]
Copilot Autofix did not write the Snowflake flaw, GitHub say
Wiz's autonomous agent really did find and exploit a live flaw in five days. The claim that GitHub's AI wrote that flaw unravelled within eight hours, and it rested on a git trailer. A security company said on Monday that an AI wrote a critical flaw into Snowflake's code, and that another AI found it and broke in. The second half holds up. The first half came apart in about eight hours. What is left is still worth your attention. It is just not the story that travelled. What the agent actually did Wiz Research runs an autonomous tool it calls Red Agent. It scanned Snowflake's GitHub organisation under the company's HackerOne disclosure programme and flagged a workflow file in the public repository for Snowflake's .NET connector. The workflow ran whenever anyone opened an issue. It dropped the issue title straight into a shell script. Any account on the internet could reach it. The escaping sat in the wrong order. GitHub's template engine substituted the title first, and the commands meant to sanitise it ran afterwards. A single quote in the title therefore broke out of the shell string. A guard condition looked protective. It compared a pull request property against a bot name, but on issue events that property does not exist. GitHub evaluates a missing property as an empty string, so the comparison always returned true and every user walked through. Then the part that matters. Red Agent's first payload used a hash character to comment out the rest of the line, and the runner threw a syntax error. The agent read the error, worked out that the comment had swallowed a closing bracket, rewrote the payload, and tried again. The callback arrived within seconds. Nobody touched a keyboard. The token it pulled out granted read access across Snowflake's engineering, security compliance, and bug bounty projects. Snowflake moved the same day Wiz reported the flaw on 23 June. Snowflake patched it that day, restored the safe pattern, and rotated the Jira token on 24 June. Audit logs matched every anomalous query to Wiz's own testing addresses. Wiz says it deleted what it took. "The disclosure was received on June 23, 2026, and it was immediately investigated and remediated, and our investigation found no evidence of unauthorized access," Snowflake said. The co-author line is a squash artefact Here is where it went wrong. The commit that carried the flaw onto the main branch lists "Copilot Autofix powered by AI" among its co-authors. Wiz read that as an AI writing the vulnerable code. Its own post said an AI autofix commit created the injection vector. Most coverage followed. The Hacker News went and read the commits underneath. Copilot's co-authored commit changed a different file. The unsafe refactor sits in a separate commit dated 25 August 2025, which GitHub attributes to a named Snowflake engineer. Squashing folds every commit in a pull request into one. The co-author line came along for the ride. It records participation in the pull request, not authorship of the lines that broke. Reporter Swati Khandelwal put it plainly: the history confirms Copilot took part, and does not establish that it wrote the flaw. GitHub's answer GitHub ran an internal review and rejected the framing. It says a human wrote the contributions that led to the vulnerability, and that Copilot Autofix neither reviewed nor contributed to them. Wiz softened its own post the same evening. An update timestamped 19:57 UTC now says Copilot was a co-author that checked the merged pull request and called it clear without noticing the vulnerability. Then it adds the sentence that undoes the headline: "It's unclear whether the code-change was AI-assisted." The Register had already published. By midnight it had changed its headline from an AI breaking the code to an AI failing to detect it, and appended a correction. Cybersecurity editor Jessica Lyons ended it with a line you do not often see about a major vendor. "The Register regrets this error, has updated this story to reflect the revised information, and won't be trusting Wiz for a very long time." Two owners worth naming Google owns Wiz. Microsoft owns GitHub, and Copilot with it. That does not make the research wrong. It does mean a Google-owned firm published a claim that a Microsoft product wrote a critical flaw, then withdrew the load-bearing part of it once people checked. What survives, and it is not small Strip out the disputed half and a real finding remains. An autonomous agent scanned a public repository, spotted a live injection, wrote an exploit, hit an error, diagnosed it, corrected itself, and took working credentials. The flaw was live for five days. That was the entire window. We have been tracking this curve. Researchers jailbroke Copilot workflows in July, and a separate GitHub agent leaked private repositories a day earlier. Since then AI-discovered flaws have moved into real exploitation. Yesterday we reported that an agent built a working exploit for a macOS flaw in four hours. Greg Brockman conceded on Sunday that OpenAI had underestimated its own models on exactly this. The direction of travel is not in question. What the record does not show Several things remain unestablished, and the gap matters given how the claim spread. No CVE exists. No CVSS score, and no entry in the US catalogue of exploited vulnerabilities. The weakness sat in repository automation, so no connector release carried it, and no evidence points to anyone else exploiting it. Snowflake's audit logs are not public. Neither are the Jira permissions or the workflow run. Everything about the blast radius rests on what Snowflake and Wiz say they saw. One more detail deserves a mention. GitHub published guidance in July 2025 warning against exactly this pattern, a month before the commit that introduced it. What would settle it The useful question is not which AI to blame. It is whether GitHub's AI review looked at this change and passed it. Wiz says it did. GitHub says Copilot Autofix never reviewed the code at all. Those cannot both be true, and only one company holds the logs that would show it.
Share
Copy Link
An autonomous AI agent from Wiz discovered and exploited a script injection vulnerability in Snowflake's GitHub Actions workflow within just 5 days. The AI-powered autonomous attacker found the flaw, crafted an exploit, corrected itself after an initial error, and successfully extracted Jira credentials—all without human intervention.
Wiz's Red Agent, an AI-powered autonomous attacker designed for offensive security, discovered a critical injection vulnerability in Snowflake's public GitHub repository on June 23, 2026. The autonomous AI agent not only identified the flaw in the snowflakedb/snowflake-connector-net repository but also crafted and executed an exploit that extracted working credentials
1
. What makes this incident particularly significant is that the AI security tool operated entirely without human intervention, demonstrating how rapidly AI-assisted development environments can be both compromised and defended.The vulnerability in Snowflake's GitHub Actions workflow allowed any unauthenticated user to execute arbitrary commands within a GitHub Actions runner simply by opening a GitHub issue with a specially crafted title
1
. The flaw existed because the escaping mechanism sat in the wrong order—GitHub's template engine substituted the issue title first, and commands meant to sanitize it ran afterwards2
. This allowed a single quote in the title to break out of the shell string and enable command execution.Wiz's red agent demonstrated remarkable adaptability during the attack. When its first payload used a hash character to comment out the rest of the line, the GitHub Actions runner threw a syntax error. The agent read the error, determined that the comment had swallowed a closing bracket, rewrote the payload, and tried again
2
. The callback arrived within seconds, proving the autonomous nature of the exploit.According to Gal Nagli, Wiz's head of threat exposure, the team "crafted an issue title that, after template expansion, breaks out of the echo string and exfiltrates the Jira credentials via an out-of-band callback"
1
. The extracted credentials granted read access to Snowflake's engineering, security compliance, and bug bounty tracking projects—a significant AI-driven security breach that could have had serious implications if conducted maliciously.
Source: The Register
Snowflake responded with impressive speed to the Snowflake vulnerability report. The company patched the workflow vulnerability the same day Wiz reported it on June 23, restored the safe pattern, and rotated the Jira token on June 24
1
2
. Audit logs confirmed that Wiz was the only third-party to access the endpoint during the five-day exposure window, with every anomalous query matching Wiz's own testing addresses.
Source: The Next Web
"The disclosure was received on June 23, 2026, and it was immediately investigated and remediated, and our investigation found no evidence of unauthorized access," a Snowflake spokesperson confirmed
2
. Snowflake emphasized its commitment to working with Wiz to share these learnings with the broader industry to encourage widespread adoption of security practices.Related Stories
Initial reports suggested that GitHub Copilot Autofix, an AI coding assistant, had introduced the vulnerability. The commit that carried the flaw onto the main branch listed "Copilot Autofix powered by AI" among its co-authors, leading Wiz to initially claim an AI had written the vulnerable code
1
. However, this claim unraveled within eight hours when investigators examined the underlying commits.The co-author line turned out to be a squash merge artifact. When squashing commits, every commit in a pull request folds into one, and the co-author line came along for the ride
2
. The actual unsafe refactor sits in a separate commit dated August 25, 2025, which GitHub attributes to a named Snowflake engineer. Copilot's co-authored commit changed a different file entirely.GitHub ran an internal review and rejected the framing, stating that a human wrote the contributions that led to the vulnerability and that Copilot Autofix neither reviewed nor contributed to them
2
. Wiz subsequently updated its post to clarify that "it's unclear whether the code-change was AI-assisted," acknowledging that Copilot was a co-author that checked the merged pull request without noticing the vulnerability but did not necessarily write the flaw itself.Despite the controversy over authorship, the core finding remains significant for AI security. An autonomous agent scanned a public repository, spotted a live injection vulnerability, wrote an exploit, encountered an error, diagnosed it, corrected itself, and extracted working credentials—all within a five-day window
2
. This demonstrates that credential extraction and command execution by AI agents are no longer theoretical concerns but practical realities.Nagli emphasized that "this incident highlights a rapidly emerging reality in software development: how AI coding assistants can inadvertently introduce workflow injection vulnerabilities, and how automated AI agents can rapidly surface them in the wild"
1
. The speed at which Wiz's autonomous AI agent operated underscores that human code review alone isn't sufficient to quickly detect vulnerabilities, especially as developers increasingly rely on AI-assisted development tools.Watch for continued evolution in both offensive and defensive AI capabilities, as the five-day discovery-to-exploitation timeline suggests attackers may soon operate at speeds that outpace traditional security practices and vulnerability detection methods.
Summarized by
Navi
[1]
[2]
08 Jul 2026•Technology

15 Apr 2026•Technology

19 May 2026•Technology

1
Technology

2
Policy and Regulation

3
Technology
