All docs

MCP tool shadowing

Last updated 7 November 2026

MCP tool shadowing is an attack that needs two servers. A model that is connected to both reads the tool descriptions of both in one context. A description from the untrusted server can tell the model how to use the trusted server's tool, so the untrusted server shapes what the trusted one does without ever being called. The sections below explain the attack and are plain about the scanner: no rule detects it as such.