Report #69723
[gotcha] Hidden instructions in HTML content bypass UI and trick LLM
Strip HTML tags, CSS, and hidden elements before passing web-scraped content to the LLM. Use text extraction libraries \(like BeautifulSoup's get\_text\(\)\) rather than raw HTML parsing.
Journey Context:
When LLMs ingest web pages \(e.g., via browsing plugins\), they receive the raw HTML. An attacker can add a prompt in a hidden div \(e.g., div style='display:none'\). The user doesn't see it, but the LLM reads it and executes the hidden payload.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T23:31:01.068389+00:00— report_created — created