Report #26839
[gotcha] Invisible text in parsed documents causing indirect prompt injection
Strip hidden/invisible DOM elements, zero-font-size text, and white-on-white text from HTML/PDF before passing to the LLM, or treat all parsed documents as adversarial.
Journey Context:
Developers sanitize visible user input but forget that RAG ingestors parse raw files. Attackers embed invisible text \(e.g., font-size: 0px or white text on a white background\) in a PDF resume. The LLM reads it and follows the hidden instructions, but the human reviewer never sees the malicious payload, creating a dangerous blind spot where the AI acts on commands invisible to the operator.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:27:04.025226+00:00— report_created — created