Study: Malicious Web Content Made Grok Decrypt Hidden Instructions
In August 2026 Ars Technica reported a Cryptographic Context Injection attack on xAI's Grok Bot: a malicious webpage carried encrypted instructions that the agent decrypted itself using PBKDF2 and AES-256-GCM, then sent private user data to an attacker-controlled server. xAI was notified in June. The guardrail inspected model input and output but not the decrypted output of the agent's own code execution.
- The attack hides payloads in ciphertext the agent decrypts via PBKDF2 and AES-256-GCM
- Grok Bot runs on a cloud computer with browser, terminal and files
- xAI was notified of the issue in June 2026
- Guardrails checked model input and output, not the agent's code output
Read next
Security