EX-028: Text you cannot see is giving your AI orders

Text you cannot see is giving your AI orders

Infection level: HIGHEX-028 · Hidden text, meta tags or image alt text that instruct the AI

What the attacker is trying to do

A page or file contains text that is styled to be invisible (white, tiny, off-screen or hidden) but a model still reads it. Here it talks to the AI or tells it to write, run, fetch or send something. This is how a web page can try to steer an agent that was only asked to summarise it.

Defanged example

No example file exists for this rule yet.

How to fix it

Remove the hidden element, or make its text visible. Text a person cannot see but a model reads can give an agent orders. Do not let an agent act on a page or file that contains it.

Technical details

Detected by
Checks files of type
instruction, docs, memory, tool-result, unknown
OWASP
LLM01:2025 Prompt Injection; ASI03 Prompt Injection via External Content