One malicious MCP server can steer the trusted tools next to it. Here is how that works and which habits actually reduce the risk.
Short answer: The core MCP security best practice is to treat every connected server as part of one shared trust zone. A single malicious server can steer the trusted tools beside it, so connect fewer servers, only from sources you trust, and read what each approval screen actually sends. Approving each call is necessary but not enough on its own.
Key takeaways
- An MCP server's tool descriptions are read by the AI model, so a hostile description can act as hidden instructions.
- One bad server can change what a good server does. In Invariant Labs' experiment, a trusted email tool sent mail to an attacker's address.
- A preprint from January 2026 found that going from one connected server to five raised attack success from 47.8% to 78.3%.
- Approval prompts help, but they can hide the data being sent, and a tool can change after you approved it.
- Fewer servers, trusted sources, re-approval on change and least privilege cut the risk most.
You install an MCP server because it promises a handy extra, say a little calculator tool. Your agent already talks to your email and your messaging app through servers you trust. Everything looks fine. The calculator does maths.
Then a prompt pops up asking to send a message through the app you trust. It looks routine, so you click approve. What you didn't see is that the message carried your chat history, and the instruction to send it came from the calculator.
What is going on
MCP, the Model Context Protocol, is the standard that lets AI agents connect to outside tools: email, files, chat apps, accounting systems. People are searching for best practices because researchers keep showing that the trust model has gaps, and the connected tools are where real data lives.
According to a November 2026 XenoSpectrum report, two representative attacks are tool poisoning and the rug pull. Tool poisoning hides malicious instructions in a tool's description to steer the agent. A rug pull swaps a tool's description or content after you have approved it. Security firm Invariant Labs disclosed these techniques on 1 April 2025. On 30 June 2026, Microsoft Incident Response used an accounting agent as an example: where a setup doesn't ask for re-approval when a tool description changes, a summary of unpaid invoices could be sent out through a third-party MCP server.
The same report describes shadowing, where one server's tools steer another server's tools. In an Invariant Labs experiment, a trusted email server and a malicious server sat on the same agent. The malicious server's addition tool carried hidden instructions that made the other server's send_email tool change its recipient to the attacker's address.
A 7 April experiment by Invariant Labs in Cursor went further. With a trusted whatsapp-mcp server and a malicious one connected, WhatsApp message history was sent out without the malicious tool ever being called. The attacker's server looked harmless at first launch, then changed its descriptions on the second launch, after the user had approved it.
The report also notes a gap in the guidance. As of 16 November 2026, the MCP security best practices document for the 28 July 2026 version has 11 sections, covering things like Confused Deputy, Token Passthrough and SSRF, but does not contain the terms tool poisoning, shadow or prompt injection. The spec's principles do say not to trust tool descriptions from untrusted servers and to get explicit consent, but they don't define how to isolate servers from each other.
How worried should you be?
Medium
The attacks are demonstrated and real for anyone wiring agents to email, chat or finance tools, but they depend on you connecting an untrusted or compromised server, which you control.
How it works
Start with how an agent decides what to do. It loads the descriptions of every tool from every connected server and puts them into the text the model reads. From that text it chooses which tool to call and with what arguments. The model has no solid way to tell which words are documentation and which are commands, and, as researchers Narek Maloyan and Dmitry Namiot point out, information from different servers is mixed together without marking where it came from.
That mixing is the whole problem. A malicious server doesn't need to hack your email server. It only needs its own description text to be in the room. If that text says, in effect, that whenever mail is sent it should go somewhere else, the model may treat it as a rule and apply it to a tool that belongs to someone else.
The rug pull exploits timing. Approval happens once, on what you saw that day. If the server can change its descriptions later and the client doesn't ask again, the thing you approved and the thing now running are different. That is why the WhatsApp demonstration looked clean on first launch.
Approval screens add a second weakness. The spec says a confirmation should be shown but doesn't dictate how. In the WhatsApp demonstration, you were asked to approve a send by the trusted server, not a call to the malicious one, and the history being sent was tucked off to the right of the screen, visible only by scrolling sideways. You clicked yes to something that looked ordinary.
Finally, more servers means more chances. The January 2026 preprint found that with one compromised server in the mix, raising the number of connected servers from one to five lifted attack success from 47.8% to 78.3%. Each extra server is more text for an attacker to hide in and more tools to steer.
How it unfolds, step by step
- InstallWhat you see: A useful-looking MCP server with harmless tools, like a simple calculator.What is really happening: It is a vehicle. Its descriptions can carry hidden instructions aimed at other tools.
- ApproveWhat you see: You approve the server and its tools. Nothing odd happens.What is really happening: You approved a snapshot. If the client doesn't re-check, later changes slip through.
- SwitchWhat you see: On a later launch everything looks the same.What is really happening: The descriptions have changed and now steer your trusted tools.
- MisuseWhat you see: A normal-looking request to send a message or email through a trusted tool.What is really happening: The recipient or content has been altered, and your data is in it.
- ExitWhat you see: Perhaps nothing at all.What is really happening: The data has left through a tool you already trusted, so it can look like your own app sending it.
An example
An illustration, not a real case
Here is an illustrative scenario. Dana, a freelancer, connects an AI assistant to her email and her invoicing tool. She adds a free formatting helper someone recommended in a forum. It does nothing visible beyond tidying text.
A week later, say, the helper updates quietly. Dana asks her assistant to email a client a payment reminder. A confirmation appears for the email, with a long body. She sees the client's name in the To line and clicks approve.
Suppose the body included a summary of her unpaid invoices, and a copy went to a second address she never saw because it was out of view. She could have caught it twice: when she installed a helper from an unknown source onto an agent holding her email and finances, and when she approved without reading the full content.
A real case
On 7 April, Invariant Labs published an experiment in Cursor with a trusted whatsapp-mcp server and a malicious server connected together. The malicious server showed harmless tools at first launch, then swapped its descriptions on the second launch after approval. WhatsApp message history was then sent out through the trusted server, without the malicious tool being called.
The approval prompt asked the user to confirm a send by the trusted tool, and the outgoing history sat to the right of the screen where it could only be seen by scrolling horizontally.
Who is most at risk
- People who connect many MCP servers to one agent, because each added server raises the odds of a successful attack.
- Anyone whose agent can reach email, chat or finance data, since that is what gets leaked.
- Teams installing community servers without review, as a poisoned description looks like ordinary documentation.
- Users who click through approvals quickly, especially on screens that hide long content.
Warning signs to watch for
- A recipient, address or destination you didn't choose appears in an approval prompt.
- An approval prompt contains far more text than the task needed, or content you have to scroll sideways to read.
- A tool you approved earlier behaves differently after an update.
- The agent calls a tool that has nothing to do with what you asked.
- A server asks for broad access that its stated purpose doesn't need.
- A server's description text includes instructions about other tools.
Would you spot it?
You want to add a small utility server to an agent that already has access to your email. What is the safest move?
- Install it, since it only does maths
- Check who publishes it, and try it on an agent without email access first
A harmless-looking tool can still carry instructions that steer your other tools. Keeping it away from sensitive connections limits the damage.
An approval prompt for sending a message shows a short line, but the box has a horizontal scroll bar. What do you do?
- Approve, since the first line looks right
- Scroll and read the whole content before deciding
In a demonstrated attack, the leaked data sat off to the right of the approval screen. What you can't see is what you are approving.
A server you approved last month updated, and nothing asked you again. Is that fine?
- Yes, you approved it once
- No, a changed description should trigger fresh approval
A rug pull works by changing a tool after approval. Re-approval on change closes that gap.
Common myths
Myth: If I approve every tool call, I'm safe.
Truth: Approval helps, but the dangerous call may come from a trusted tool, and the harmful details can be hidden in the prompt display. Approval is one layer, not the whole defense.
Myth: A malicious tool has to be called to do damage.
Truth: Not necessarily. In the WhatsApp experiment, the malicious server's tool was never called. Its description alone steered the trusted tool.
Myth: The official MCP guidance already covers these attacks.
Truth: The spec states principles such as not trusting untrusted descriptions, but as of the November 2026 check, its security best practices document doesn't have a section on instructions hidden in tool descriptions or responses.
Do and do not
Do
- Connect only servers from publishers you can identify and verify.
- Read the full content of every approval prompt, including anything that scrolls.
- Keep the number of servers on any one agent as low as you can.
- Use separate agents for sensitive work and for experiments.
- Re-review a server whenever it updates.
Do not
- Don't add a server to an agent with email or finance access just to try it.
- Don't click approve out of habit on routine-looking prompts.
- Don't assume a trusted server makes every request it relays trustworthy.
- Don't give servers broader permissions than their job needs.
- Don't ignore a tool that suddenly acts differently.
Your protection checklist
- Connect the fewest servers possible, because research found attack success rising from 47.8% to 78.3% as servers went from one to five.
- Split work across separate agents, so a bad server never shares context with your email or finance tools.
- Choose clients that ask for approval again when a tool description changes, which helps against the rug pull.
- Give each server least privilege, such as read-only access, so a hijacked tool can't send or delete.
- Read approval prompts in full and check recipients and destinations, since hidden content is how leaks pass.
- Review tool descriptions of new servers before approving, and be suspicious of any that mention other tools or tell the model what to do.
- Prefer servers whose source you can inspect, and stay on a version you have reviewed rather than updating automatically.
- Give each server its own limited credentials rather than one shared login, so one compromise doesn't open every door.
- If your client keeps a log of tool calls, skim it now and then for recipients you don't recognise.
If it has already happened to you
- Disconnect the suspicious server from the agent straight away.
- Revoke the tokens and API keys that the agent and its servers held, then issue new ones.
- Check sent mail, messages and outgoing logs to see what left and where it went.
- Tell anyone whose data or accounts were exposed, including your workplace if it was work data.
- Rebuild the agent setup with fewer servers and tighter permissions before reconnecting.
My advice
Before connecting any new MCP server, ask what else shares the agent with it and what that agent can send. If the answer is email or money, the new server doesn't go on that agent. Isolation is the habit worth keeping most, because it works even when you miss something on a prompt.
Mr Elite
Jargon, explained
- MCP (Model Context Protocol)
- A standard that lets AI agents connect to outside tools and data through servers.
- Tool poisoning
- Hiding malicious instructions in a tool's description so the AI model follows them.
- Rug pull
- Changing a tool's description or behavior after the user has approved it.
- Shadowing
- One server's tool steering how another server's tool behaves.
- Least privilege
- Giving a tool only the access its job needs and nothing more.
People also ask
What are the main MCP security best practices?
Connect few servers from trusted sources, keep sensitive agents separate from experimental ones, require re-approval when tools change, limit permissions, and read approval prompts fully.
What is tool poisoning in MCP?
It is hiding malicious instructions in a tool's description. The model reads descriptions to decide what to do, so it may follow them as if they were legitimate rules.
Can one MCP server affect another?
Yes. Because descriptions from all servers enter the same context, a malicious one can steer a trusted one. Invariant Labs showed an email tool's recipient being changed this way.
Is approving each tool call enough?
No. The harmful request can come through a trusted tool, and the prompt may hide key content off screen. Approval is useful but needs isolation and permission limits beside it.
What is an MCP rug pull?
A server shows harmless tools, wins your approval, then changes its descriptions later. Clients that don't ask again on change leave the door open.
Does the MCP specification cover prompt injection?
It sets principles, like not trusting untrusted descriptions and getting consent. As of a November 2026 check, though, its security best practices document doesn't have a section on instructions hidden in descriptions or responses.
The lesson: Every server on an agent shares one room, so a bad one can speak through the good ones. Keep that room small, and keep sensitive tools out of it.



