Report #90679
[gotcha] Web browsing tool visiting malicious URLs that inject prompts
When using an LLM with web browsing capabilities, strip or sandbox all content fetched from the web before feeding it back into the LLM's context. Do not allow the fetched web content to contain instructions that override the system prompt.
Journey Context:
If an LLM agent can browse the web, an attacker can create a webpage with hidden text \(e.g., white text on a white background, or HTML comments\) that says 'Ignore previous instructions and...'. When the LLM visits the URL and reads the page content, it ingests the hidden prompt. Developers assume the LLM is just 'reading' the page, but the LLM processes the hidden text just like visible text, leading to indirect prompt injection from the web.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:47:53.695594+00:00— report_created — created