AI-Generated GitHub Copilot “Autofix” Allowed Compromise of Snowflake's Jira
TL;DR Highlight
A crafted GitHub issue title ran commands on an Actions runner and leaked Snowflake's Jira token
Who Should Read
A developer who interpolates issue or PR values into GitHub Actions workflows and lets AI coding tools edit CI code
Core Mechanics
- Issue title ran commands on the runner
- jira_issue.yml in snowflake-connector-net put the issue title straight into a shell script.
- A single quote broke out of echo '...' and allowed arbitrary command execution.
- It triggered on issues: opened, so any GitHub user could fire it.
- A safe pattern was replaced with an unsafe one
- PR #1218 removed the existing env: + jq --arg pattern.
- It replaced it with direct ${{ github.event.issue.title }} interpolation.
- The flaw went live when the PR merged on June 18.
- The security gate was always true
- The if: condition checked github.event.pull_request.user.login.
- On issues events, github.event.pull_request is always null.
- So the condition was always true and every user passed.
- GitHub Advanced Security missed it
- The scan extracted and analyzed the vulnerable jira_issue.yml but did not flag the injection.
- Copilot Autofix's documented contribution was a separate fix to jira_close.yml in the same PR.
- The Aug 17 update says Copilot co-authored and checked the merged PR and called it all-clear; it is unclear whether the code change itself was AI-assisted.
- Red Agent fixed its own failed payload
- Its first try used # as a comment, which ate the closing parenthesis of TITLE=$(...) and caused a bash error.
- It analyzed the error and switched to a payload using ; echo ' to close the shell syntax.
- Within seconds it received a callback from an Azure-IP runner with base64-encoded credentials.
- The leaked token gave read access to internal Jira
- It authenticated as qa@snowflake.net to snowflakecomputing.atlassian.net.
- It could read engineering, security compliance, and bug bounty tracking projects.
- Snowflake patched the same day (June 23) and rotated the token; audit logs showed no actor other than Wiz.
Community Reactions
- Opinion that static analysis would have caught it
- A commenter said to run zizmor in CI and pasted its template-injection error on the exact jira_issue.yml line.
- The finding is rated High confidence and comes with an auto-fix.
- Opinion that cheap AI cleanups invited the risk
- A change that would once rot in a tech-debt backlog is now easy to generate with an agent.
- The commenter argued code is not free to review or maintain even when generation is free.
- Opinion that Snowflake owns the blame, and a counterargument
- One commenter said Snowflake allowed autofixes, so it shot itself in the foot.
- Another said anti-AI posts are overblown and humans remain responsible for oversight.
- Point that Copilot's commit looked unrelated
- A commenter noted PR #1218 had only one Copilot co-authored commit, unrelated to the vulnerability.
- The article later added an update clarifying Copilot's role.
How to Apply
- Run zizmor on your workflows
- Today, run zizmor against .github/workflows in your repo and check template-injection warnings.
- List every run: block that gets flagged.
- Move ${{ }} interpolations out of run: into env
- Receive external input like github.event.issue.title in an env: variable.
- Reference it as "$ISSUE_TITLE" in the shell and build JSON with jq --arg.
- Check AI-made CI diffs for deleted safe patterns
- In review, first look for removed defenses like env: or jq.
- Require human approval for changes to workflow files.
- Use least-privilege, short-lived workflow secrets
- Limit external service tokens like Jira to read-only.
- Set up a routine to rotate them.
Try It
# Paste into Claude or ChatGPT (GitHub Actions workflow injection review)
Security-review the GitHub Actions workflow below.
{{workflow YAML}}
Check for the following.
1. Places in run: blocks where external input like ${{ github.event.* }} is interpolated directly
2. if: conditions that become null depending on the event type and are always true (e.g., referencing github.event.pull_request on an issues event)
3. Steps that access secrets and can be triggered by untrusted user input
For each problem, show the risky line, why it is risky, and a fix using an env: variable and jq --arg.
Next step: pip install zizmor, then run zizmor .github/workflows and compare the results.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques