Hidden Prompt Injections with Anthropic Claude
Anthropic Claude interpreted invisible Unicode Tag code points embedded in text, allowing hidden instructions to be followed. An attacker could use this to inject instructions that the user cannot see.
embracethered.com
Published on embracethered.com
A few weeks ago while waiting at the airport lounge I was wondering how other Chatbots, besides ChatGPT, handle hidden Unicode Tags code points.
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
Root cause
Likely the model's tokeniser or input handling does not strip or neutralise invisible Unicode Tag code points before processing.
Impact
An attacker could hide instructions in text that a user cannot see, and the model may follow them.
What the attacker needed
Ability to submit text to Claude
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.
Some Unicode characters are invisible on screen but still read by software. If a chatbot reads them, someone can hide instructions in text that look normal to a person. The chatbot may then follow those hidden instructions.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.