Skip to main content

AI Agent Hacked Snowflake's Pipeline Before GitHub's Tools Caught the Bug

Invalid Date|Wiz / Snowflake / GitHub|
Secure AI BrainAI Growth Engine

An autonomous AI security agent from Wiz independently found and exploited a critical script injection flaw in Snowflake's GitHub Actions workflow on June 23, 2026, just five days after vulnerable code went live. The exploit exfiltrated an internal Jira API token before Snowflake patched the issue the same day. Neither GitHub Advanced Security nor the AI tooling that co-authored the commit flagged the flaw before Wiz's agent found it.

Operator Insight

Your CI/CD pipeline is now a live attack surface. This incident shows that AI-assisted code changes can introduce vulnerabilities that automated security scanners miss, and that adversaries will increasingly use their own AI agents to find those gaps faster than human security teams can. If you are deploying AI coding tools without a dedicated security review layer in your pipeline, you are carrying a multi-day window of exposure on every merge.

30-Second Summary

An autonomous AI security agent from Wiz found and exploited a script injection vulnerability in Snowflake's public GitHub repository within five days of the flaw being introduced. The vulnerable code replaced a safe input-handling pattern with direct variable interpolation, opening a shell injection path through GitHub Actions. Wiz's Red Agent autonomously crafted a working exploit, refined it after an initial failure, exfiltrated an internal Jira API token, and confirmed active read access to Snowflake's engineering, compliance, and bug bounty tracking projects before reporting the issue. Snowflake patched the flaw and rotated the token the same day. The incident, disclosed publicly in July 2026, illustrates a shift that security teams can no longer ignore: AI tools are now operating at machine speed on both sides of the attack-and-defend boundary.

At a Glance

  • Topic: AI Security / CI/CD Pipeline Vulnerability
  • Companies: Wiz (discoverer), Snowflake (affected), GitHub (tooling context)
  • Incident dates: June 18, 2026 (vulnerability introduced), June 23, 2026 (found and exploited by AI agent, patched same day)
  • Public disclosure: July 25, 2026; major media coverage picked up August 2026
  • What Changed: A commit to Snowflake's snowflake-connector-net repository introduced a script injection flaw in a GitHub Actions workflow; an autonomous AI agent exploited it five days later without human direction
  • Why It Matters: AI-generated or AI-reviewed code can introduce vulnerabilities that existing automated security tooling misses; autonomous AI attackers are now operating faster than most security response cycles
  • Who Should Care: Any organisation using GitHub Actions, AI coding assistants, or deploying autonomous agents with access to infrastructure

Key Facts

  • The vulnerability was a script injection flaw in Snowflake's jira_issue.yml GitHub Actions workflow, introduced on June 18, 2026 in PR #1218 (Source: Wiz Blog, July 2026)
  • The flaw occurred because the merged code replaced a safe env: plus jq --arg variable parsing pattern with direct shell interpolation of the github.event.issue.title variable, making it exploitable via a crafted issue title
  • GitHub Copilot Autofix is listed as a co-author on the relevant commit; GitHub disputes that it authored the security flaw and states human developers were responsible for the final code (Source: The Next Web, August 2026)
  • GitHub Advanced Security, which was active on the repository, did not flag the vulnerability during the five-day exposure window
  • Wiz Red Agent, an autonomous AI-powered offensive security tool, independently identified and exploited the flaw on June 23, 2026, five days after the vulnerable code went live
  • The agent used shell syntax manipulation after an initial payload failed, demonstrating autonomous error analysis and exploit refinement without human assistance
  • The successfully exfiltrated token was a Jira API token authenticating as qa@snowflake.net, granting read access to engineering, security compliance, and bug bounty Jira projects
  • Snowflake patched the vulnerability (PR #1402, commit 1dc7766) and rotated the affected token the same day Wiz reported it (Source: Wiz Blog, July 2026)
  • Audit logs confirmed only Wiz accessed the endpoint during the five-day exposure window; no malicious third-party access occurred
  • Wiz's offensive security head Gal Nagli stated that "frontier models already can exploit supply chain risks by themselves" without human involvement (Source: Forbes, August 17, 2026)

What Happened

On June 18, 2026, a commit was merged into Snowflake's snowflake-connector-net public GitHub repository. Pull request #1218 modified the jira_issue.yml GitHub Actions workflow file, changing how the workflow handled issue titles passed as shell variables. The changed code moved from a safe pattern that stored user input in an environment variable and parsed it with jq --arg to a pattern that interpolated the github.event.issue.title variable directly into a shell command. This created a script injection path: any GitHub user could open an issue with a crafted title to execute arbitrary commands in the workflow runner.

GitHub Copilot Autofix is recorded as a co-author on the commit. GitHub has stated publicly that human developers were responsible for the final code and that Copilot did not introduce the security flaw. GitHub Advanced Security, configured on the repository, did not raise an alert during the five-day window the vulnerability was active.

On June 23, Wiz's Red Agent independently identified the flaw. The agent constructed an initial payload using a # character to comment out trailing shell syntax, which failed. It then analysed the error output from the GitHub Actions runner, adjusted its approach, and successfully crafted a working payload using ; echo ' to close the shell syntax correctly. The exploit exfiltrated a base64-encoded Jira API token from the runner environment. The agent then verified the token granted active read access to Snowflake's internal Jira instance, specifically engineering, security compliance, and bug bounty tracking projects, and confirmed the blast radius of the compromise.

Wiz reported the vulnerability to Snowflake on June 23. Snowflake patched the workflow the same day, rotated the compromised token, and confirmed no third-party malicious access occurred during the five-day exposure period. The incident was publicly disclosed on July 25, 2026, and has received broad security industry coverage through August.

Why It Matters

AI-assisted code review does not equal security review. The vulnerable change was co-authored or reviewed by AI tooling that GitHub provides specifically to help developers catch issues. That same tooling did not identify the injection flaw before merge. Operators who treat AI coding assistant approvals as equivalent to a security sign-off are carrying hidden risk in their pipelines.

Machine-speed vulnerability discovery is no longer theoretical. Wiz Red Agent found a real, exploitable vulnerability in a major enterprise software company's public repository in five days, without human guidance. It refined its own exploit after an initial failure. Security teams working at human speed cannot assume they have weeks to identify and patch issues in AI-modified code.

GitHub Actions is a high-value target for automated exploitation. Workflows that process user-controlled input, such as issue titles, PR body text, or contributor usernames, are a growing attack surface. As AI agents interact more with repositories automatically, the number of workflows processing external input will only increase.

This is now an AI-versus-AI security environment. Defenders are deploying AI scanning tools; attackers, whether research teams demonstrating capability or actual adversaries, are deploying AI exploitation tools. The speed advantage shifts away from organisations that rely on periodic manual reviews of AI-generated changes.

Supply chain risk applies to your internal tooling, not just your product. The exploited repository was Snowflake's public connector library. A compromised Jira instance gives an attacker visibility into open bugs, security compliance status, and vulnerability disclosures. For a company that handles sensitive customer data, that is a significant secondary risk even where the primary goal is supply chain compromise of the library itself.

The disclosure gap matters. The incident occurred in June; public disclosure happened in July; widespread enterprise awareness is arriving in August. By the time most organisations read about an AI-discovered exploit technique, adversaries deploying similar tools may have had weeks or months to test analogous attacks on other targets.

The David and Goliath View

This incident is not primarily a story about whether Copilot Autofix wrote a bad line of code. That question is disputed, and secondary. The story is that an AI agent, given access to a public repository and no other resources, autonomously found a real injection flaw in a real enterprise workflow, built a working exploit, adjusted when the first attempt failed, and confirmed the blast radius of the compromise, all without human direction.

For the operators we work with, the practical question is not whether this could happen to them. It almost certainly already has, or will. The question is whether they have any detection layer between an AI-assisted code merge and a running production workflow. In most small-to-medium organisations, the honest answer is no. AI coding tools are accelerating the rate at which code enters pipelines; security review processes have not accelerated to match.

The second observation is what Wiz Red Agent demonstrates about the next generation of AI security tools. Autonomous agents that can triage, adapt, and confirm exploits at machine speed will become standard components of both offensive and defensive security programmes. Organisations that deploy only traditional scanners against AI-generated attack surfaces are not running an equal race.

Where This Fits in the AI Stack

This incident sits at the intersection of three layers.

AI-assisted development tooling. GitHub Copilot Autofix, GitHub Advanced Security, and similar tools are becoming part of the standard code review process for thousands of organisations. When these tools miss security-relevant changes, the impact scales with adoption.

CI/CD pipeline security. GitHub Actions workflows process user-controlled input more than most engineers realise. Every workflow triggered by an issue event, PR event, or contributor action is a potential injection surface if input is handled unsafely.

Autonomous AI security agents. Wiz Red Agent represents a category of tool that will expand rapidly: AI systems that autonomously hunt for vulnerabilities, build exploits, and assess blast radius without requiring a human operator at each step.

Questions Operators Are Asking

Should we stop using GitHub Copilot Autofix? Not necessarily, but do not treat its approvals as security clearance. Copilot Autofix is a productivity tool, not a security auditor. Add a security-specific layer to your pipeline, whether a dedicated scanner, a manual security review step, or an AI tool specifically trained for vulnerability detection.

How do we know if our GitHub Actions workflows are vulnerable to script injection? Audit every workflow that uses ${{ github.event.issue.title }}, ${{ github.event.pull_request.body }}, ${{ github.event.comment.body }}, or any other user-controlled GitHub context variable directly in a run: shell step. The safe pattern stores the value in an environment variable and then uses a tool like jq to parse it, never interpolating user-controlled content directly into shell syntax.

Is this a Snowflake-specific problem? No. The vulnerability class, script injection in GitHub Actions via user-controlled context variables, is well documented and widespread. Snowflake's repository was the incident surface; any organisation's repositories carry the same risk if workflows handle user-controlled input without safe variable handling.

What does Wiz Red Agent's speed tell us about adversarial AI timelines? Five days from code merge to autonomous exploitation, with adaptive payload refinement, means organisations can no longer rely on a multi-week response window between vulnerability introduction and detection. If an AI research tool operates at this speed, assume adversarial tools have comparable capability.

Do we need to notify anyone if something like this happened to us? That depends on your jurisdiction and the data that could have been accessed. If a compromised CI/CD token could have exposed customer data, source code, or internal security research, you may have notification obligations under applicable data protection laws, including Australia's Privacy Act for breaches affecting Australian residents. Engage your legal team immediately if you discover a CI/CD pipeline compromise.

Citable Summary

An autonomous AI security agent from Wiz independently found and exploited a script injection vulnerability in Snowflake's GitHub Actions workflow within five days of the vulnerable code going live in June 2026. The flaw replaced safe variable handling with direct shell interpolation of user-controlled input, allowing a crafted GitHub issue title to exfiltrate an internal Jira API token. GitHub Advanced Security and the AI tooling co-authoring the commit did not flag the issue before Wiz's agent exploited it. Snowflake patched the vulnerability and rotated the token the same day it was reported; no malicious access occurred during the five-day window. The incident demonstrates that autonomous AI tools now operate on both sides of the security boundary, and that AI-assisted code changes require dedicated security review rather than relying solely on standard automated tooling. (Sources: Wiz Blog, July 2026; Forbes, August 17, 2026; The Next Web, August 2026; Snowflake public statement, June 2026)

Why This Matters for Operators

  • Treat every AI-assisted code change as untrusted until reviewed by a security-specific tool or a human with security context, not just a general-purpose AI coding assistant.

  • Audit your GitHub Actions workflows for direct variable interpolation in shell commands, particularly around issue titles, PR bodies, and any user-controlled input that flows into a run step.

  • Add AI-powered vulnerability scanning to your CI/CD pipeline before deployment, not after. Wiz Red Agent found this flaw in five days; assume adversarial tools have similar or faster capability.

  • Rotate any CI/CD tokens that were active during periods where AI-assisted code merges went unreviewed by a security-aware process.

  • Check whether your GitHub Advanced Security configuration covers workflow files, not just application source code.

Related Intelligence

Related Comparisons

How This Maps to David & Goliath

Apply This to Your Business

Want to see what this means for your team?

Tell us a little about your business and we will map the specific opportunity for your sector and team size.

No sales pitch. We will review your details and follow up within 24 hours.