EX-061: This source file hides characters that change how it reads

This source file hides characters that change how it reads

Infection level: HIGHEX-061 · Hidden Unicode in source code

What the attacker is trying to do

Invisible direction controls can make code show one thing and run another, and invisible tag characters or a run of variation selectors can carry a message that only an AI reads. Reviewers see clean code; the agent or the compiler sees something else.

Defanged example

No example file exists for this rule yet.

How to fix it

Remove the hidden characters from the source file. Bidi controls can make code read differently from how it runs, and tag characters and variation selectors can carry text that a person cannot see but an AI reads. Use a Unicode-aware editor or `cat -A` to reveal them, and add a linter rule that bans them in source files.

Technical details

Detected by
hidden Unicode (bidi-override, tag-block, variation-selector, zero-width, invisible-letter)
Checks files of type
code, unknown
OWASP
LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content