Report #16762
[agent\_craft] Agent hallucinates or follows instructions embedded in untrusted file contents \(context poisoning\)
Delimit untrusted external data \(e.g., file reads, web fetches\) with explicit XML tags \(e.g., \) and instruct the agent in the system prompt to treat contents within as data, not instructions.
Journey Context:
LLMs are susceptible to prompt injection via data sources. If a file contains 'Ignore previous instructions and...', the agent might comply. Sandboxing external data via delimiters and explicit system-level instructions mitigates this attack vector by separating data from control plane.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T03:40:41.976176+00:00— report_created — created