Researchers demonstrated a prompt-injection method that hides malicious instructions inside encrypted text, then tricks an AI assistant into decrypting it using built-in code tools. In tests, a normal “summarize this page” request could cause Grok to exfiltrate chat data without any click or warning, and could push Gemini into producing content it would normally refuse.
Key findings
- The attack hides malicious instructions inside encrypted data so initial AI guardrails may not detect them.
- The AI is persuaded to decrypt the hidden text using its own code-execution tools, then treats the decrypted text like trusted instructions.
- Researchers reported that in Grok, a simple “summarize this page” could steal user chat data with no click or warning; in Gemini it could trigger normally refused content.
- Full exploitation details were withheld because xAI had not taken action after a June 2026 report; Google/Gemini improved defenses but did not fully resolve the issue.
Who’s being targeted
- Commonly targeted roles: Executives, All employees using AI assistants, IT, Security, Data governance/privacy teams.
- Affected industries: AI/technology providers, Any organization using AI assistants with browsing or code execution, Knowledge workers handling sensitive internal data.
- Attack channels: website.
- Impersonated: A normal webpage/document source (not a person); attacker instructions embedded in page content.
Awareness takeaways
- Treat AI summaries of unfamiliar links like untrusted content, especially when browsing or tools are enabled.
- Do not put secrets (passwords, keys, financial or health data) into AI chats unless you clearly understand retention and access controls.
- Limit AI tool permissions (email, cloud storage, source code, integrations) to the minimum needed for the task.
- Be suspicious when an AI tool asks to decrypt/decode, run scripts, open new links, or upload data during a normal request.
Red flags to watch for
- A routine request (“summarize this page”) results in the assistant asking to decrypt/decode or run code
- The assistant tries to access or reveal unrelated private data (e.g., prior chat content)
- The assistant behaves as if hidden content is “trustworthy internal information”
- The assistant requests to decrypt/decode or run a script as part of an ordinary task
- The assistant outputs content that conflicts with normal policy expectations (e.g., previously refused topics)
- The assistant claims the decrypted instructions are legitimate or system-approved
Read the video transcript
Imagine you just type: “summarize this page”... and that alone makes the AI leak your past chats. Researchers call this “Cryptographic Context Injection”, malicious instructions are hidden in encrypted text on a webpage, then the AI quietly uses its code tools to decrypt and obey them. In tests, Grok turned that simple request into silent chat-data exfiltration, and Gemini into content it normally refuses, because by the time the text is decrypted, it’s already past the guardrails. Your move: when an AI is summarizing an unfamiliar link, don’t type in secrets, and if it suddenly wants to decrypt, run code, or open extra links, stop and close that chat.