Report #91507
[gotcha] LLM executing commands found in tool return data like Jira tickets or local files
Treat all tool outputs as untrusted data. Use data marking \(e.g., \`\` tags\) and explicit system prompts instructing the agent not to obey commands within data tags.
Journey Context:
Agents concatenate tool outputs directly into the context window. If a tool reads a Jira ticket containing a prompt injection payload, the agent loses its original instruction context. Sandboxing the execution isn't enough if the cognitive layer \(the LLM\) is compromised by the data it reads. The tradeoff is that marking data reduces the LLM's ability to reason about the data, but it prevents catastrophic instruction hijacking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T12:11:12.151177+00:00— report_created — created