Grok AI Vulnerability Could Expose User Data Through Encrypted Web Commands
Table of Contents
Cybersecurity firm Adversa AI has disclosed a vulnerability in Grok AI that could allow attackers to extract sensitive user information by hiding malicious instructions inside an ordinary webpage.
The technique, named “Cryptographic Context Injection” by Adversa researcher Rony Utevsky, uses encrypted commands that can potentially bypass conventional prompt-injection defenses. Adversa reported the vulnerability to xAI on June 3, 2026, and said the exploit remained reproducible on Grok.com as of August 19.
According to the disclosure, the attack could potentially expose information such as a user’s name, approximate location, subscription tier and conversation prompts.
How the Attack Works
The technique exploits the way Grok AI processes external content and uses its code-execution capabilities.
Instead of displaying suspicious instructions in plain text, an attacker can encrypt the malicious payload using AES-256-GCM and embed it within a webpage. Because the content appears as ciphertext, conventional filters looking for obvious malicious instructions may not identify the hidden commands.
The attack becomes relevant when a user asks Grok to summarize or analyze the compromised webpage. According to Adversa, Grok can retrieve the page, process the encrypted content and decrypt the hidden instructions within its execution environment.
The decrypted payload can then be interpreted as instructions for the AI agent.
Potential Data Exfiltration
Adversa’s proof of concept demonstrates how the decrypted instructions can direct Grok to construct a URL containing information derived from the user’s available data and conversation context.
When Grok accesses the attacker-controlled URL, the information can be transmitted to the attacker’s server and recorded in its logs.
The demonstrated data included details such as the user’s name, approximate location, subscription tier and prompts from the conversation.
However, the disclosure should not be interpreted as evidence that all Grok users have been compromised. It describes a demonstrated attack technique that depends on a user interacting with a malicious webpage through Grok.
xAI Was Notified in June
Adversa said it reported the Grok AI vulnerability directly to xAI and through the company’s HackerOne bug-bounty programme on June 3.
According to reporting surrounding the disclosure, xAI acknowledged the vulnerability but did not provide a public timeline for a fix. Utevsky reportedly followed up with the company on August 4 and August 10.
Adversa said the exploit remained functional on Grok.com as of August 19, more than 11 weeks after the initial report.
xAI had not publicly responded to the disclosure at the time of publication.
Why the Vulnerability Matters
The issue highlights a broader challenge for AI agents that can browse websites, execute code and interact with external tools.
Traditional prompt-injection defenses generally attempt to identify malicious instructions in incoming content. Cryptographic Context Injection attempts to hide those instructions until the content reaches the AI’s execution environment.
This creates a security boundary problem: information supplied by an untrusted webpage could potentially be transformed into instructions that the AI agent treats as trusted.
Adversa said its recommended fix should focus on the agent’s runtime harness rather than the underlying AI model itself.
Broader AI Security Concerns
The disclosure comes amid increasing scrutiny of AI-agent security. Researchers have recently demonstrated other techniques capable of extracting information through enterprise AI assistants, while Adversa previously disclosed vulnerabilities involving AI coding assistants, including Grok.
As AI systems gain greater access to external websites, files, code and tools, security researchers are increasingly examining how attackers can manipulate those interactions.
The Grok AI case demonstrates why protecting an AI model alone may not be sufficient. The systems surrounding the model—including browsing, execution and data-handling components—can also become important security targets.
Key Details
| Category | Details |
| Affected system | Grok AI |
| Company | xAI |
| Technique | Cryptographic Context Injection |
| Researcher | Rony Utevsky, Adversa AI |
| Initial report | June 3, 2026 |
| Attack method | Encrypted instructions embedded in webpages |
| Potential data | Name, approximate location, subscription tier and chat prompts |
| Reported status | Reproducible on Grok.com as of August 19 |
| Recommended focus | Runtime-level security controls |
FAQs
What is the Grok AI vulnerability?
It is a technique disclosed by Adversa AI that hides malicious instructions inside encrypted webpage content, potentially allowing those instructions to be processed and executed by Grok.
What data could the attack expose?
According to Adversa’s proof of concept, the technique could potentially extract information including a user’s name, approximate location, subscription tier and conversation prompts.
What is Cryptographic Context Injection?
It is the name Adversa gave to the technique of hiding malicious AI instructions inside encrypted content so they are less likely to be detected by conventional filters.
Has xAI fixed the vulnerability?
Adversa said the exploit remained reproducible on Grok.com as of August 19, 2026. At the time of disclosure, there was no publicly announced fix timeline from xAI.
Does this mean every Grok user has been hacked?
No. The disclosure demonstrates a potential attack under particular conditions. It does not establish that all Grok users were compromised.
Conclusion
The Grok AI vulnerability disclosed by Adversa AI highlights a new dimension of AI security risks. By concealing instructions inside encrypted webpage content, attackers may be able to exploit the way an AI agent processes external information and uses its tools.
The incident also reinforces the importance of securing the entire AI-agent environment, not just the underlying model. As systems such as Grok AI become more capable of browsing and interacting with external content, stronger runtime isolation and clearer separation between untrusted data and trusted instructions will become increasingly important.