OX Security: instructions aimed at agents in 22 per cent of suspicious MCP servers
Security company OX Security said 22 per cent of MCP servers flagged as suspicious contained instructions aimed at the agent, and 16 per cent contained code that runs at install or import time. This way, an attacker can use the agent’s existing permissions, the company said.
OX Security announced its report Plug and Pray in a press release published on 23 November. The company sells an AI-based application security platform. It analysed 542,207 software components from npm, PyPI, MCP servers and Agent Skills packages. The company gathered the findings between July and October 2026 with its own OX Radar monitoring system. The release does not say whether the results have been independently verified.
MCP is a way to connect external tools to an AI agent, a program that uses a model to act. An MCP server provides tools to the agent. A tool does not need to run malicious code, because it can give the agent instructions, the company said. ‘A poisoned tool can tell an AI agent to access customer records, execute commands or send sensitive information to an attacker. The agent already has the permissions it needs,’ said Moshe Siman Tov Bustan, research director at OX Security.
The researchers flagged components based on suspicious characteristics. Of the flagged MCP servers, 22 per cent contained prompt injection or tool poisoning, meaning instructions aimed at the agent. Sixteen per cent contained code that runs at install or import time. Flagged npm packages showed the reverse pattern: code-execution techniques were six times more common. A flagged component is not necessarily malicious. The results do not show that every weakness found was exploited.
None of the 179 flagged skills – instruction packages installed for an agent – ran code on installation, but 44 per cent instructed the agent to send data out. The company noted that the sample is small.
The origin of tools is hard to verify. Of 834 flagged MCP servers, 67 per cent ran on publisher-controlled infrastructure, where the deployed code could not be independently verified. Another 16 per cent served files that differed from what publishers declared. The source code owner was identified for 69.8 per cent of MCP servers and 92.8 per cent of npm packages.
Two publisher accounts were responsible for 44 per cent of flagged MCP servers, and one account published 2,364 servers in 17 days. Volume alone does not show malicious intent, the company said, but a single hijacked account could give access to thousands of tools.
Of the components researchers confirmed as malicious, 82 per cent were malicious in their first observed version. Checking updates alone therefore will not reveal a component that is malicious from the moment it is adopted, the company said. The report asks organisations using agents who controls their tools, whether the code those tools run can be verified, and whether they would notice the code changing.
Read more: How an agent works · Agent map