Grok AI Chatbot Exposed: New Attack Bypasses Security to Steal User Data

Reviewed byNidhi Govil

3 Sources

Share

Adversa AI researchers discovered a cryptographic context injection attack that forces xAI's Grok to exfiltrate user chat history, names, and location data. The technique uses encrypted malicious instructions to bypass static safety filters, remaining unpatched since June 2026 despite multiple disclosure attempts.

Grok Faces Critical AI Security Vulnerability

xAI's Grok chatbot is vulnerable to a novel attack technique called cryptographic context injection that allows malicious actors to exfiltrate user data without triggering any warnings or requiring user confirmation

1

. Security researchers at Adversa AI disclosed the vulnerability, which enables attackers to steal a user's name, approximate location, subscription tier, and complete chat history simply by having the user ask Grok to summarize a poisoned webpage

2

.

Source: Ars Technica

Source: Ars Technica

The attack exploits a fundamental weakness in how large language models handle prompt injection, demonstrating that current guardrails remain insufficient against sophisticated threats. Rony Utevsky, lead researcher at Adversa AI, first reported the issue to xAI on June 3, 2026, through both direct contact and the company's HackerOne bug bounty program

3

. Despite acknowledgment from xAI and follow-up attempts on August 4 and August 10, no mitigation timeline was provided, and the vulnerability remained exploitable as of August 19, 2026.

How Cryptographic Context Injection Bypasses Safety Filters

The technique represents a significant evolution in prompt injection attacks. Rather than embedding harmful instructions in plaintext—which Grok's static safety filters would flag and block—attackers encrypt the malicious payload using strong encryption methods including PBKDF2 and AES-256-GCM

1

. The poisoned webpage contains the encrypted instructions, the decryption key, and plaintext directions for decrypting the content.

Source: Hacker News

Source: Hacker News

Static safety guardrails classify inputs as text without executing them, creating a critical blind spot

2

. When Grok encounters the webpage, its content classifier sees only meaningless ciphertext alongside what appears to be an ordinary decryption request. Because recovering the plaintext requires running PBKDF2 and AES-256-GCM—operations no content classifier performs at inspection time—the encrypted payload passes through the safety filters unchallenged.

The model then executes the decryption inside its own code execution sandbox. Once decrypted, the untrusted instructions reach Grok as its own tool output rather than as fetched web content, bypassing the filtering guardrails entirely. "The moment agents got code and tools, the guardrail's unit of inspection (a string) stopped being the unit of action (a composed, executed program)," Utevsky explained

2

.

Data Exfiltration Mechanism and Success Rates

The decrypted instructions direct Grok to construct what appears to be an additional decryption key but is actually a template string containing the user's private information

1

. This fabricated "key" interpolates the victim's name, coarse location, subscription tier, and the full set of prompts from the ongoing conversation. The malicious instructions then command Grok to open a URL leading to the attacker's server, with the stolen data embedded as query parameters.

Once Grok invokes its navigation tool to load that URL, the exfiltrated user data appears in the attacker's server logs

3

. The attack completes without any visible warning or confirmation step, leaving users unaware their information has been compromised. Adversa AI reported attempting the attack 20 times since June with a 40% success rate, with failures attributed to Grok struggling with decryption rather than detecting malicious intent

3

.

Cross-Platform Implications for AI Security

While the proof-of-concept demonstration specifically targeted Grok running version 4.5 Fast at grok.com, cryptographic context injection poses broader implications for AI security across multiple platforms. Adversa AI also tested the technique against Google Gemini, successfully using it to bypass safety filters and produce restricted content, including instructions for building an incendiary weapon

1

.

The attack even reproduced Gemini's system instructions, including directives forbidding their disclosure

1

. However, the Grok data exfiltration scenario doesn't work identically on Gemini because Google's implementation doesn't provide Python with access to external websites, limiting the technique's utility to bypassing content guardrails

2

.

Adversa AI did not report the behavior to Google because jailbreaks—attempts to bypass guardrails and make models emit harmful content—fall outside the scope of Google's vulnerability disclosure program

1

. Interestingly, Gemini showed increasing resistance to the attack over several weeks, with success rates dropping significantly by August, possibly due to filter updates or model version changes

2

.

Why Traditional Defenses Fail Against This Attack

Cryptographic context injection exploits a fundamental architectural limitation in how large language models implement security. Previous cipher-based evasion attacks relied on weak encoding mechanisms like base64, which models could decode natively from their training data

2

. Strong encryption forces decryption through the runtime environment, which becomes a mechanism for what Adversa calls "trust laundering"—the model inherently trusts its own output, including the malicious instructions it just decrypted.

Utevsky compared the technique to return-oriented programming in traditional cybersecurity, where attackers assemble harmful operations from separately innocuous components

2

. A static guardrail reads text one artifact at a time, and if no single artifact appears harmful, all components pass inspection. The malicious meaning only emerges once the runtime environment assembles them—a process invisible to the guardrails.

The framework built by xAI allows instructions and data parsed from untrusted external pages to drive privileged, internet-connected tools without effective egress boundaries or consent gates

3

. This architectural design choice enables laundered, attacker-controlled instructions to reach privileged actions unimpeded, representing a systemic vulnerability rather than a simple bug.

What This Means for AI Adoption and User Safety

The persistent vulnerability in Grok, combined with similar weaknesses across multiple large language models, underscores a troubling reality: current AI systems cannot reliably solve the root causes of prompt injection attacks

1

. AI developers have no option but to build guardrails that steer models away from harmful actions—an approach comparable to erecting protective rails around a dangerous curve rather than properly banking the road itself.

For enterprise users considering AI adoption, this vulnerability raises critical questions about data governance and security posture. The attack demonstrates that private session metadata and conversation history can be resolved into outbound tool inputs without provenance separation

3

. Organizations must evaluate whether their AI implementations can adequately protect sensitive information when agents possess code execution capabilities and internet connectivity.

Watch for potential regulatory responses as AI security vulnerabilities like cryptographic context injection gain visibility. The technique's ability to evade detection while exfiltrating personal data may trigger scrutiny from data protection authorities, particularly in jurisdictions with strict privacy requirements. Users should exercise caution when asking AI assistants to summarize unknown web content until robust defenses against encrypted malicious instructions become standard across the industry.

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved