Report #30519
[architecture] Upstream agent output contains prompt injection that hijacks downstream agent's instructions
Implement strict data-instruction separation using XML tags \(e.g., ...\) for inter-agent payloads, and explicitly instruct the downstream agent to treat content within data tags as untrusted literal input, never as instructions.
Journey Context:
In multi-agent chains, the output of Agent A becomes part of the prompt context for Agent B. If Agent A processes a malicious user input, it passes that instruction to Agent B. Naive escaping fails. The architectural fix is boundary isolation: explicitly demarcating what is instruction \(from the orchestrator\) and what is data \(from the previous agent\). The tradeoff is that LLMs are not perfect at ignoring instructions in data tags, so defense-in-depth \(like input sanitization or separate system/user message routing\) is still required.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T05:36:45.754232+00:00— report_created — created