Security
MCP & tool supply-chain security
Tool descriptions are prompts; tool servers are dependencies; both can be malicious.
What it is and why it exists
Tool poisoning hides instructions in a tool’s description or results; a rug pull changes a server’s tools after you approved them; confused deputy issues arise when a server uses its own broad credentials for your request; token passthrough leaks user tokens to third parties.
Quick prototype
Install any MCP server from a README.
In production, at scale
Allow-list and pin servers and tool definitions, review descriptions, alert on changes, scope OAuth tokens per server, run local servers sandboxed, and log every tool invocation.
Vendors and tools
| MCP security best practices (spec) | Official guidance |
|---|---|
| Invariant / MCP scanners | Tool-poisoning detection |
On AWS: AgentCore Gateway as a controlled point for tool access with identity and logging.
How it fails
- A “weather” server whose description tells the model to read ~/.ssh
What the interviewer asks next
What’s a rug pull in MCP?
A server you approved later changes its tool definitions (or behaviour) to something malicious. Pin and hash definitions and re-approve on change.