Grok Exposes Chat Data Through Encrypted Prompt Injection
Adversa AI disclosed on August 20 a prompt-injection technique that can induce xAI's Grok web chat to transmit conversation prompts and selected account data after summarizing a malicious web page. The Hacker News reports that the proof of concept targeted Grok 4.5 Fast and used encrypted instructions that Grok decrypted through its Python runtime before navigating to an attacker-controlled URL.
Adversa AI disclosed a technique it calls Cryptographic Context Injection that can cause xAI's Grok web chat to exfiltrate a user's active-chat prompts, name, coarse location, and subscription tier after the user asks it to summarize a malicious web page. According to The Hacker News, Adversa reproduced the proof of concept against grok.com running Grok 4.5 Fast on August 19, with the data sent to an attacker-controlled server without a confirmation prompt or visible warning.
The report concerns an indirect prompt injection, in which a model instructed to read or summarize untrusted content encounters attacker-supplied instructions embedded in that content. The Register reports that Adversa's variation places the instructions in ciphertext alongside the key material and a request to decrypt the payload.
How encrypted instructions bypass inspection
According to Adversa lead researcher Rony Utevsky, quoted by The Register, the attack requires the model to run PBKDF2 and AES-256-GCM inside its code-execution sandbox to recover the plaintext. A conventional content scanner cannot inspect the encrypted payload merely by reading the page, even though the decryption key and code are present there.
The Hacker News reports that Grok's Python code-execution runtime decrypts the JSON payload, after which the resulting instructions direct the agent to resolve private session context and place it in a URL. Grok's navigation tool then loads that URL, exposing the data through query parameters in the request.
This distinction matters technically because it shifts the malicious instruction from fetched page content to output created by the model's own execution environment. The Register characterizes that transition as "trust laundering": the model processes its decrypted output as trusted context despite its untrusted origin.
Reported scope and reliability
Adversa told The Hacker News it attempted the attack 20 times since June and observed a 40% success rate. The company attributed failures to Grok's inability to complete decryption rather than to safety filters blocking the prompt or response. The writeup did not provide a broader success-rate study, report exploitation in the wild, or assign a CVE identifier.
Ars Technica reported that xAI had been informed about the issue in June and that Grok continued to return data when Ars published its report on August 20. The Hacker News similarly reported no patch or user-facing workaround at the time of publication.
Implications for web-enabled agents
The case extends a familiar prompt-injection problem: models often cannot reliably distinguish user-authorized instructions from text supplied by an untrusted webpage, email, or document. Here, strong encryption adds a runtime step that static inspection systems may not emulate.
For teams building browser-enabled or code-executing agents, comparable attacks illustrate why input filtering alone is insufficient when models can decrypt payloads and invoke navigation tools. Common defensive patterns in similar systems include isolating untrusted content, treating runtime-produced text as untrusted when it derives from external inputs, restricting access to sensitive session data, and requiring explicit authorization before an agent sends data to external domains. Those controls do not eliminate prompt injection, but they can reduce the consequences of a successful instruction-following failure.
The reported proof of concept is specifically about Grok web chat, not a demonstrated vulnerability across all LLM applications. Its broader relevance is the combination of page summarization, code execution, private context, and outbound network access, capabilities increasingly bundled into agentic AI products.
Key Points
- 1Adversa's proof of concept combines encrypted web content, code execution, and navigation to extract Grok session data without user confirmation.
- 2PBKDF2 and AES-256-GCM force plaintext recovery at runtime, creating an evasion path beyond ordinary static content inspection.
- 3Comparable web-agent architectures need layered controls because runtime-generated text can inherit untrusted instructions from external content.
Scoring Rationale
The report describes a practical prompt-injection chain against a public AI web agent that can expose active conversation data and account context. It is particularly relevant to practitioners deploying browsing, code-execution, and external-navigation capabilities together, although the published evidence is a limited proof of concept against Grok rather than a cross-platform exploit.
Sources
Public references used for this report.
Practice interview problems based on real data
1,625 SQL & Python problems across 15 industry datasets — the exact type of data you work with.
Try 250 free problems
