Security ProbLLMs in xAI's Grok: A Deep Dive
The write-up describes several prompt-injection and output-rendering weaknesses in xAI's Grok chatbot, including injections arriving from other users' posts, images and PDFs, clickable links rendered in answers, and invisible text used to smuggle hidden instructions. An attacker could use these to steer Grok's answers, push disinformation, phish users or exfiltrate data, though the text frames these as findings disclosed to xAI rather than confirmed exploits.
embracethered.com
Published on embracethered.com
Grok is the chatbot of xAI. It’s a state-of-the-art model, chatbot and recently also API.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could influence Grok's answers, spread targeted disinformation, lure users to phishing pages through rendered links, or hide instructions and secrets in invisible text; the text does not show a full end-to-end compromise beyond the demonstrated data exfiltration.
What the attacker needed
Attacker can post content Grok reads; victim interacts with Grok output; no special access stated
The fix
The issues should be fixed by treating fetched content as untrusted data rather than instructions, and by sanitising rendered output such as links and invisible characters.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A chatbot like Grok reads text from many places, including posts, pictures and documents, and it cannot always tell instructions from content. If someone hides instructions in that content, the chatbot may follow them as if its owner had asked. The report looks at these tricks and at how the chatbot's replies can show links or invisible text that mislead people.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.