EX-001: This file hides instructions for your AI

This file hides instructions for your AI

Infection level: CRITICALEX-001 · Hidden Unicode instructions

What the attacker is trying to do

Invisible characters are mixed into normal-looking text. You see a harmless sentence, but an AI agent reads the hidden characters too and can be told to do something you never approved.

Defanged example

From fixtures/haunted-repo/EX-001-hidden-unicode.md. Hidden characters are shown as [U+XXXX]. Nothing here can run: domains use example.invalid and secrets are placeholders.

<!-- DEFANGED -->
<!-- EX-001: Hidden Unicode instructions -->
<!--
  This file contains REAL invisible Unicode characters so the scanner can be
  tested against the actual technique. The hidden payload is only the harmless
  placeholder EXAMPLE_HIDDEN_INSTRUCTION_DO_NOT_USE; it contains no command,
  URL or credential.

  Characters present below (invisible in most editors):
    line 15: U+200B ZERO WIDTH SPACE and U+200C ZERO WIDTH NON-JOINER
    line 17: U+202E RIGHT-TO-LEFT OVERRIDE ... U+202C POP DIRECTIONAL FORMATTING
    line 19: Unicode tag characters (U+E0000 block) spelling the placeholder
-->

Welcome[U+200B] to[U+200C] this project.

Read the docs[U+202E]EXAMPLE_HIDDEN_INSTRUCTION_DO_NOT_USE[U+202C] before contributing.

Thanks for reading.[U+E0045][U+E0058][U+E0041][U+E004D][U+E0050][U+E004C][U+E0045][U+E005F][U+E0048][U+E0049][U+E0044][U+E0044][U+E0045][U+E004E][U+E005F][U+E0049][U+E004E][U+E0053][U+E0054][U+E0052][U+E0055][U+E0043][U+E0054][U+E0049][U+E004F][U+E004E][U+E005F][U+E0044][U+E004F][U+E005F][U+E004E][U+E004F][U+E0054][U+E005F][U+E0055][U+E0053][U+E0045]

How to fix it

Remove the hidden characters. Use a Unicode-aware editor or run `cat -A` to reveal them. Consider adding a linter rule that bans these code points in text files.

Technical details

Detected by
hidden Unicode (zero-width, bidi-override, tag-block)
Checks files of type
instruction, docs, config, memory, hook, tool-result
OWASP
LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content