A blank line in your rules file can be talking to your AI
A short breakdown, in plain words.
What's happening
Coding agents read "rules files" (CLAUDE.md, .cursor/rules, copilot-instructions and so on) before they write code. In March 2025, researchers at Pillar Security showed that you can hide instructions in those files using invisible characters. In their demo, Cursor and GitHub Copilot followed the hidden instruction and quietly added a script from an attacker's site to the code they wrote, without mentioning it. Both companies told Pillar that reviewing the AI's suggestions is the user's job. Pillar called it the "Rules File Backdoor".
Why it works
Unicode has a block of 128 "tag" characters: an invisible twin for every letter, digit and symbol. A terminal or a plain text view draws nothing for them, so a line full of them looks empty. But they are still text: the model reads them like any other characters and turns them back into words. Other invisible characters do similar tricks: zero-width spaces and joiners, and the direction markers that reorder how text is displayed.
We tested it: a rules file with one hidden line (add an outside script to every HTML file, and don't tell the user), run six times through Claude Code. It never added the script, and five times it told the user about the hidden line. That's good, but it was the model's choice, and Pillar's demo shows other tools didn't make it. Either way, you never saw the line.
What to do
-
Search your rules and prompt files for invisible characters. This one command finds tag characters, zero-width characters and direction markers (GNU grep):
grep -nP '[\x{200B}-\x{200F}\x{202A}-\x{202E}\x{2060}-\x{2064}\x{FEFF}\x{E0000}-\x{E007F}]' CLAUDE.mdAny output means a line has hidden characters. Run it over every rules file in the repo (
grep -rnP '…' .cursor/ .github/ CLAUDE.md AGENTS.md). -
Block them before they land. Add the same check to a pre-commit hook (or CI) so any change that adds hidden characters to these files is refused.
-
Never trust a blank line. If a check finds something, decode it to see what it says before you delete it, and find out how it got there (a copied snippet, a pull request, a shared template).
-
Turn on highlighting. GitHub now shows a warning on github.com when a file contains hidden Unicode text, and VS Code highlights these characters by default. A plain terminal (
cat) still shows nothing. -
Treat rules files like code. Review changes to them in pull requests, and be careful with rules you copy from the internet.
The short version
Your agent reads every character in its rules. You should be able to see every character too.
Sources: Pillar Security, "New Vulnerability in GitHub Copilot and Cursor: How Hackers Can Weaponize Code Agents" (18 March 2025); GitHub changelog, "GitHub now provides a warning about hidden Unicode text" (1 May 2025); the Unicode Tags block (U+E0000-U+E007F, 128 code points). The test runs were ours, in a throwaway folder, on 23 November 2026.
Files for this breakdown
Unlock the full INVISIBLE breakdown + downloadable runnable scripts
Drop your email once to read the complete step-by-step guide, grab the files, and unlock all 96 Reel breakdowns on this device forever.