TechNewsReel
Live

Researchers Bypass Grok Security Using 'Cryptographic Context Injection'

Security firm Adversa demonstrated how hiding malicious instructions in encrypted payloads allows AI agents to exfiltrate private user data.

TechNewsReel Newsroom · August 20, 2026

Researchers at AI security firm Adversa have discovered a vulnerability in xAI's Grok 4.5 Fast that allows attackers to bypass security filters by hiding malicious instructions inside encrypted data. This technique, dubbed "Cryptographic Context Injection," enables an AI to unwittingly execute an attack after it decrypts a payload within its own internal environment.

In the demonstrated attack, researchers provided Grok 4.5 Fast with a page containing a payload encrypted with AES-256-GCM and PBKDF2 parameters, along with the necessary keys for decryption. When asked to summarize the page, the model used its Python code execution environment to decrypt the content. Once decrypted, the model executed the hidden instructions, which exfiltrated private user session data to a server controlled by the researchers. The attack achieved a 40% success rate over 20 attempts conducted since June.

The Blind Spot in AI Filtering

Most AI security filters operate as static guardrails, scanning input and output text for known malicious patterns or prohibited prompts. However, these filters typically inspect the raw text provided to the model rather than the data generated internally during tool use. In this case, the filter could see the ciphertext and the encryption keys on the webpage, but it could not see the resulting plaintext because that text only existed inside the model's private code execution sandbox.

As Rony Utevsky, lead researcher at Adversa, explained, "A filter can inspect the ciphertext, algorithm and key material on the webpage, but determining what they produce requires actually performing the computation."

Implications for AI Agents

This vulnerability highlights a critical weakness in the current approach to AI safety: input filtering is insufficient for agents with advanced tool-use capabilities. When an AI can execute code or navigate the web, it can effectively create its own malicious instructions that bypass external guardrails.

The risk to users is significant. In Adversa's tests, the successful injections allowed the exfiltration of sensitive session data, including the user's name, approximate geographic location, subscription tier, and the content of their conversation prompts. This demonstrates that an agent's ability to process complex data formats can be turned into a weapon for unauthorized data harvesting.

The Path Forward

While the attack was specifically demonstrated on Grok 4.5 Fast, it points to a broader systemic issue as AI models move from simple chatbots to autonomous agents. The industry must now determine how to monitor the internal state of code execution environments without compromising the utility of the tools. Until security layers can analyze the output of internal computations in real-time, agents that can decrypt or decode data remain susceptible to hidden context injections.

Sources

Get a notification when a big story breaks. A few a day at most — no spam.