This file hides text with terminal escape codes
Infection level: HIGHEX-065 · Terminal escape sequences that hide text from a reader
What the attacker is trying to do
Special escape codes can conceal text, erase a line or move the cursor back when a file is shown in a terminal. You see clean text; the AI reads everything that was hidden.
Defanged example
No example file exists for this rule yet.
How to fix it
Remove the escape sequences. They make text invisible or overwrite it when the file is shown in a terminal, while an AI agent still reads it. View the file with `cat -v` to see them.
Technical details
- Detected by
- a text pattern
- Checks files of type
- instruction, docs, memory, hook, mcp-config, tool-result
- OWASP
- LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content