Security researchers at Adversa have demonstrated a novel prompt injection vulnerability in xAI's Grok that enables the exfiltration of private user data. This attack utilizes a technique termed "Cryptographic Context Injection," which bypasses existing safety guardrails by avoiding plaintext malicious instructions. Instead of providing direct commands, an attacker hosts a webpage containing ciphertext alongside the necessary decryption key and plaintext instructions for the decryption process. When a user directs Grok to summarize that specific webpage, the large language model (LLM) executes the hidden, decrypted commands without triggering security warnings or requiring user confirmation. This method effectively circumvents the pattern-matching filters developers use to flag suspicious instructions, as the model cannot identify the harmful intent while the payload remains encrypted. The vulnerability highlights a fundamental limitation in current LLM architectures: because these models cannot reliably distinguish between untrusted external content and direct user input, they remain susceptible to sophisticated injection attacks. The research underscores that current mitigation strategies, which rely on external guardrails rather than addressing the underlying architectural inability to differentiate instruction from data, are inherently reactive and potentially insufficient against evolving obfuscation methods.

Read original