Encrypted Prompt Injection in Grok Exfiltrates Chat History and User Details
Emerging Technology Risk · 12 sources · Updated 3mo ago · First seen Aug 20, 2026

Researchers at Adversa AI disclosed a prompt-injection method dubbed Cryptographic Context Injection that can reportedly make xAI's Grok web chat agent steal user data while summarizing a malicious webpage. The attack hides instructions inside ciphertext placed on a page alongside decryption steps and key material, allowing Grok's initial safety scanning to miss the payload and later decrypt and execute it inside its code execution environment. In proof-of-concept testing, the decrypted instructions caused Grok to collect data including chat history, prompts, the user's name, coarse location, and subscription tier.
The stolen information was then appended to a URL and sent to an attacker-controlled site, where it could be captured in server logs. Adversa said it reported the issue to xAI in June through HackerOne and followed up again in August, while claiming the flaw remained reproducible on Grok.com as of August 19. The researchers said the same technique also affected Google's Gemini by bypassing some safety filters to produce otherwise blocked content, although Gemini's environment reportedly prevented the same website-based exfiltration path because its Python tooling could not reach external sites.


