Attackers hide instructions in rule files with invisible Unicode or bury them in content an agent will read. Scan instruction files for hidden characters, and treat any unexplained change as a possible compromise.
Read in this order
- ArticleNew Vulnerability in GitHub Copilot and Cursor: How Hackers Can Weaponize Code Agents (Pillar Security)Start here: a working attack with hidden text in rule files.
- OfficialGitHub now provides a warning about hidden Unicode text (GitHub Changelog)The platform warning that surfaces hidden Unicode in reviews.
- ArticleASCII Smuggler Tool: Crafting Invisible Text and Decoding Hidden Codes (Embrace The Red)How to encode and decode invisible text, to test your scanner.