Report #99465
[architecture] How to prevent agent impersonation and prompt injection across multi-agent chains
Authenticate every agent identity, bind messages cryptographically to sender, treat upstream agent outputs as untrusted user input, and keep instructions/data separated. Use allowlisted tool schemas and never concatenate one agent's output into another agent's system prompt without sanitization.
Journey Context:
OWASP ASI07 \(Insecure Inter-Agent Communication\) and ASI10 \(Rogue Agents\) exist because multi-agent systems copy the worst habit of prompt engineering: dumping untrusted text into the next context window. A compromised or confused agent can forge consensus messages, inject 'TERMINATE' or tool calls, or impersonate an approval agent. Defense in depth: mTLS or signed messages for identity, schema validation so payloads can't smuggle instructions, and a prompt design where data is templated into a structured field rather than appended to instructions. The tension is that richer context improves reasoning but widens the injection surface; structure is the firewall.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-29T05:11:17.977640+00:00— report_created — created