What is insecure inter-agent communication?

Insecure inter-agent communication is the risk that messages agents send each other in multi-agent systems travel without authentication, encryption or integrity checks, so they can be read, altered, sent by fake agents or used to spread harmful instructions; it ranks seventh in OWASP's 2026 agentic risk list.

Agent impersonation, an attacker acting as another agent, is often enabled by insecure communication; the risk also covers messages being read, altered and replayed.

Topic
AI security
Also known as
Insecure agent-to-agent communication

How insecure inter-agent communication works

  1. Agents exchange tasks and results over plain-text links, shared queues or shared memory.
  2. Without authentication an attacker can send messages as a fake agent; without encryption it can read or alter them in transit.
  3. The receiving agent treats incoming messages as trusted instructions, so a prompt injection against one agent spreads to others.
  4. Without timestamps or one-time IDs, old messages can be resent to repeat actions.

In more detail

Beyond transport security: semantic poisoning and payload separation

Transport encryption (TLS/mTLS) protects channels against network eavesdropping, yet authenticated agents can still forward prompt injections or poisoned context ('semantic MitM' or cognitive contagion) inside valid payloads. Receiving agents must treat peer messages as untrusted data, separating structured task schemas from free-text payloads.

Agent card spoofing, discovery poisoning and message signing (JWS)

In A2A-style ecosystems, attackers may spoof or tamper with Agent Cards, discovery registries or capability advertisements to intercept delegated tasks. Signing Agent Cards cryptographically, pinning trusted registry endpoints and verifying message-level signatures (JWS) alongside nonces prevents spoofing and replay across message brokers.

Scope attenuation and confused deputy prevention

When Agent A delegates a subtask to Agent B, Agent B must not execute with broad static service credentials ('confused deputy' problem). Using scoped delegation tokens (such as OAuth 2.0 On-Behalf-Of) ensures downstream actions remain bounded by both the originating human user's permissions and the narrow task scope.

Shared memory and bus isolation and cascading failure (ASI08) limits

Multi-agent messaging over shared memory, blackboards or event buses can trigger infinite delegation loops or cascading failures (OWASP ASI08) if agents echo errors or malformed directives. Enforcing hop-count limits (TTL), circuit breakers, idempotency keys and per-agent topic ACLs keeps failures contained.

Commonly confused terms

TermHow it differs
Agent impersonationAgent impersonation is a specific identity-spoofing threat where an attacker masquerades as a legitimate agent; insecure inter-agent communication is the broader transport, authentication, integrity and semantic-validation weakness that enables impersonation along with eavesdropping, tampering and replay.
Single-agent prompt injectionPrompt injection typically enters from a user prompt or external document into one model; inter-agent propagation (cognitive contagion) occurs when an already-compromised agent forwards malicious instructions across agent-to-agent channels where peers blindly trust internal messages.
Model Context ProtocolAgent-to-tool communication (such as MCP) governs how an agent invokes deterministic tools or data servers, whereas inter-agent communication (such as A2A) coordinates autonomous peer agents delegating goals, state and multi-turn tasks to one another.

Why insecure inter-agent communication matters for on-premises AI

Organisations increasingly split work across several agents; the weakest link sets the whole system's security. Inter-agent protocols define standard security patterns to close the gap: the A2A specification, for instance, expects HTTPS in production and authentication schemes such as API keys, OAuth 2.0, OpenID Connect or mutual TLS. Beyond that, each message is validated as untrusted input, agents talk only to defined agents and all messaging is logged.

ON-PREMISES EXAMPLE

A logistics company's planning and ordering agents talk over mutual TLS with short-lived tokens; the ordering agent still validates instructions from the planning agent against its own policy, sending order changes above a set amount for human approval.

Common questions

What attacks does insecure inter-agent communication enable?

Reading and altering messages, fake agents sending messages, replaying old messages and spreading harmful instructions between agents.

How is inter-agent communication secured?

With encrypted links, strong authentication, message integrity and replay protection, validating each message as untrusted input and logging.

Sources

In the glossary: Glossary, D to L

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.