← Lab /Security & privacy

AI agent exploited GitHub Actions injection to access Snowflake’s internal Jira

An autonomous AI security tool discovered and exploited a GitHub Actions workflow injection that allowed unauthenticated command execution and access to Snowflake’s internal Jira within five days of the vulnerability becoming live.

Security & privacy Wiz Research 17 Aug 2026 Attack Real-world evidence

Published as “Wiz Red Agent Finds Its Way Into Snowflake’s Internal Jira Through a Flaw in a GitHub Copilot–Assisted PR”

Why it matters

The incident shows that AI-generated code can reintroduce insecure patterns that bypass existing automated scans, and autonomous attackers can exploit them quickly.

Summary

Wiz Red Agent scanned Snowflake’s public GitHub repos and flagged a jira_issue.yml workflow that interpolated the issue title directly into a shell command, creating a script-injection vector. The tool automatically crafted a malicious issue title, corrected an initial syntax error, and exfiltrated a Jira token from the runner within seconds. GitHub Advanced Security failed to flag the vulnerable workflow, and Snowflake patched the issue the same day it was reported. The writeup demonstrates that autonomous AI agents can discover and exploit CI/CD regressions faster than human teams.

What they found 3

  1. The workflow interpolated the issue title directly into a shell script, enabling command injection.

    “run: | TITLE=$(echo '${{ github.event.issue.title }}' | sed 's/"/\\"/g' | sed "s/'/\\\'/g")”

  2. GitHub Advanced Security did not flag the injection despite extracting the vulnerable workflow.

    “GitHub Advanced Security’s scan explicitly extracted the vulnerable jira_issue.yml workflow but did not flag the injection.”

  3. Red Agent automatically adjusted its payload after an initial syntax error and successfully exfiltrated Jira credentials.

    “Rather than stopping or failing, Red Agent: autonomously analyzed the syntax execution error adjusted its payload to use ; echo ' to properly close the shell block, and Within seconds, our listener received the callback from a GitHub Actions runner (Azure IP 20.106.182.197) containing base64-encoded credentials.”

Caveats 2

  • It's unclear whether the code-change was AI-assisted.
  • Copilot was a co-author that checked the merged PR and code change, and identified it as all-clear without noticing the critical vulnerabilities.

What’s new here 4

  • An autonomous AI security agent discovered and exploited a live GitHub Actions injection without human intervention.
  • The injection allowed any unauthenticated GitHub user to execute arbitrary commands in the runner via the issue title.
  • GitHub Advanced Security’s static analysis missed the vulnerability despite scanning the merged PR.
  • Snowflake remediated the workflow and rotated credentials within the same day of disclosure.