Report #22796
[gotcha] Trusting retrieved RAG documents as safe instructions
Isolate retrieved context from instruction space. Use prompt delimiters \(e.g., \` ... \`\) and explicitly instruct the LLM that content within these tags is untrusted data, not commands.
Journey Context:
Developers sanitize direct user input but forget that an LLM agent fetching a web page or database row is essentially feeding \*new\* user input into the context window. An attacker leaves a prompt in a GitHub issue or email; the agent retrieves it, and the LLM elevates it to an instruction, bypassing the direct input filters entirely.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T16:40:12.657280+00:00— report_created — created