The attack, dubbed "cryptographic context injection," exploits a blind spot in the guardrails designed to protect AI assistants from harmful instructions. According to Adversa AI lead researcher Rony Utevsky, an attacker can embed encrypted malicious instructions—along with the decryption key—on a web page that an AI model is tasked with summarizing. Because content scanners cannot decrypt the ciphertext, the instructions pass through to the model, which then decrypts them within its own code execution sandbox and acts upon them. The model effectively trusts its own output, a process Utevsky describes as "trust laundering."
In a proof-of-concept demonstration targeting Grok.com, the researchers showed how the technique can force the chatbot to exfiltrate a user's chat history, name, coarse location, subscription tier, and the full set of prompts in the conversation. The stolen data is appended to a URL as parameters, making it accessible to the attacker. The attack differs from previous cipher-based evasion methods, such as base64 encoding, which models can decode natively from their training data. Strong encryption like AES-256-GCM requires runtime decryption, making it harder for guardrails to detect.
The vulnerability was reported to xAI on June 3, 2026, through its HackerOne bug bounty program. The company acknowledged the report but did not provide a timeline for a fix. Adversa AI followed up on August 4 and August 10, but as of August 19, the technique still worked on Grok.com. SpaceX, which acquired xAI earlier this year, did not respond to a request for comment.
Similar testing on Google's Gemini public chat interface revealed that the attack is less effective there because Gemini does not provide Python with access to external websites. However, cryptographic context injection could still be used to bypass Gemini's safety filters and generate prohibited content, such as instructions for building incendiary weapons. Adversa did not report the issue to Google, as the company considers jailbreaks out of scope for its vulnerability disclosure program. By August, the attack success rate against Gemini had declined, possibly due to filter updates or model version changes.
The broader security community has noted that prompt injection remains a fundamental vulnerability for LLMs. As Ars Technica's Dan Goodin observed, guardrails are akin to erecting a protective rail around a dangerous bend rather than fixing the curve itself. The Microsoft 365 Copilot attack disclosed earlier this week similarly exploited secret inputs to exfiltrate a password. These incidents underscore the difficulty of securing LLMs that are trained to comply with user requests, leaving them susceptible to manipulation through carefully crafted inputs.