Skip to content
MediumNewsLLM-specific

Sneaking Invisible Instructions by Developers in Windsurf

Published
Record updated
View JSON

Summary

Windsurf Cascade follows instructions hidden as invisible Unicode Tag characters in files or tool results, which the developer cannot see but the LLM can. In a demo using Claude Sonnet 3.7, an apparently empty file caused Cascade to invoke the web tool. The author says the Windsurf SWE-1 model can see these characters but cannot yet interpret them as instructions.

Mitigation

The author suggests making the characters visible in the UI. He also says many apps and agents remove invisible Unicode Tag characters before and after inference, which he calls probably the most practical mitigation. Amp and Amazon Q Developer for VS Code mitigate this at the application level. Windsurf said it is looking to implement fixes and mitigations, but the source does not describe them.