Sneaking Invisible Instructions by Developers in Windsurf
Windsurf Cascade's AI could follow instructions hidden in invisible Unicode Tag characters within files or tool output, which a developer cannot see but the model interprets. An attacker could use this to perform hidden prompt injection and steer the AI's behaviour.
embracethered.com
Published on embracethered.com
Imagine a malicious instruction hidden in plain sight, invisible to you but not to the AI. This is a vulnerability discovered in Windsurf Cascade, it follows invisible instructions.
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 AI model treats invisible Unicode Tag characters as meaningful text, and the product does not strip or flag them before the model processes file or tool output.
Impact
An attacker could hide instructions that the developer cannot see but the AI follows, potentially steering the assistant's actions; the text does not show a full exploit chain.
What the attacker needed
Attacker can place text in a file or tool output; AI model interprets 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.
An AI coding assistant reads files and tool results to help you. This report found that someone could hide instructions using characters that are invisible on screen, so you would not notice them but the AI would read them as commands. That lets an attacker quietly influence what the AI does.
What is AI / LLM?
Prompt injection, data exfiltration and tool abuse in features built on language models, and the ordinary bugs around them.