Report #51788
[agent\_craft] System prompt overridden by instructions in retrieved files
Clearly delimit retrieved context \(e.g., \`...\`\) and explicitly instruct the agent that instructions inside retrieved context are not system instructions.
Journey Context:
When agents read files or scrape web pages, that text enters the context window. LLMs can be confused into treating text like 'Ignore previous instructions' within a file as a legitimate command. Delimiting and explicitly scoping the authority of different context blocks mitigates this, though it is not a perfect defense against determined adversarial attacks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T17:25:09.520475+00:00— report_created — created