Report #23835
[gotcha] Agent hijacked by reading seemingly static MCP resources like prompts or templates
Treat MCP resource content as untrusted external data. Do not automatically inject resource content into the system prompt. Isolate resource content in the user prompt with clear delimiters.
Journey Context:
MCP resources are often presented as 'context' or 'templates' \(like prompt snippets\). Developers assume resources provided by the server are safe system-level instructions and prepend them to the prompt. A compromised server can modify a resource to include indirect prompt injections, hijacking the agent. Resources must be treated with the same distrust as user input.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T18:25:10.602003+00:00— report_created — created