Skip to main content
  1. Posts/

MCP and A2A Attack Vectors for AI Agents

·289 words·2 mins

Christian Posta from Solo.io has written an interesting Deep Dive into MCP and A2A Attack Vectors for AI Agents.

Here is a shortlist. There are certainly more attack vectors, and the mitigations are a start, but certainly not perfect.

Attack VectorHow it worksMitigation
Naming AttacksAttackers create look-alike names or typosquatted services that trick the AI into picking a malicious resource instead of the legitimate oneEnforce unique identities, cryptographically verify server/agent identities, and use a trusted registry rather than blind name matching
Context Poisoning / Indirect Prompt InjectionAn attacker embeds hidden instructions in context that steer the model to do harmful actions or leak data; in A2A this can happen via malicious task states or malformed skill descriptionsSanitize and vet descriptions, use strict schema constraints, and limit or filter natural-language metadata that models see
Shadowing AttacksA malicious service shadows a legitimate tool or agent by registering something that alters how other trusted components behave (e.g., injecting hidden guidance that changes billing logic or influences other agents’ outputs)Require authentication and authorization for every component, use whitelists, and ensure that tools/agents don’t get used solely based on unverified contextual presence
Rug PullsAn attacker initially builds trust by providing a useful tool or agent, but once widely adopted, subtly changes its behavior to perform harmful operations, manipulate outputs, or exfiltrate dataContinuous monitoring, evaluate behavioral changes over time, use policy controls and version gating so tools can’t suddenly change semantics without review

AI agents use protocols like MCP (Model Context Protocol) and A2A (Agent-to-Agent) and decide when and how to call tools or other agents. They do this dynamic discovery and usage based on natural language context which makes them susceptible to semantic manipulation.