Security researchers have identified a significant shift in how threat actors target artificial intelligence systems, moving away from traditional malicious code injection toward the manipulation of agent instructions. A recent analysis conducted by Ox Security, which examined over 540,000 open-source components between July and October 2026, highlights that AI agents are increasingly vulnerable to prompt injection and tool poisoning. These techniques allow attackers to hijack the decision-making processes of AI agents without the need for conventional malware.
The research focused on four distinct software ecosystems: npm, PyPI, Model Context Protocol (MCP) servers, and agent skills. The findings indicate that the threat landscape varies significantly across these platforms. In the context of MCP servers, researchers observed that 22% of flagged components contained elements of prompt injection or tool poisoning, while 16% utilized install- or import-time execution. The risks were even more pronounced within agent skills, where 26% of components were found to contain prompt injection or tool poisoning.
A critical component of this new attack surface is the exfiltration of data. The analysis revealed that 44% of the examined components included specific instructions designed to direct AI agents to transmit data to external locations. Because AI agents are often granted broad permissions to interact with sensitive systems, attackers do not necessarily need to bypass security controls; instead, they simply need to manipulate the agent into utilizing its existing, authorized permissions for malicious purposes.
The study underscores that traditional security models, which rely on verifying the provenance and integrity of code, are insufficient for protecting AI agents. Historically, security teams have evaluated software based on the publisher’s reputation and the absence of unauthorized code modifications. However, the research found that these trust signals are failing in the AI era. For instance, only 70% of MCP servers had a clearly identifiable source owner, compared to 93% of npm packages.
Furthermore, the infrastructure hosting these tools often prevents independent security verification. The report noted that 67% of MCP servers operated on publisher-controlled infrastructure, making it impossible for organizations to audit the code actually being executed. Perhaps most concerning is the finding that 82% of the analyzed components were malicious from their first observed version, meaning there was no legitimate baseline or clean version available for security teams to compare against.
The findings suggest that organizations must adopt a more rigorous assessment framework for AI agents. Rather than focusing solely on whether a dependency contains known vulnerabilities, security teams are encouraged to ask fundamental questions about the tools their agents connect to. This includes identifying the publisher, determining where the tool is hosted, and establishing whether the code can be independently verified.
The research emphasizes that verifying the code is only the first step. Organizations must also determine if the tool’s behavior aligns with the publisher’s claims and establish mechanisms to monitor for changes in real-time. Because many tools run on external infrastructure, maintaining visibility into code updates remains a significant challenge for security operations.
Ultimately, the shift toward agent-based attacks necessitates a new model for software trust. As AI agents become more deeply integrated into critical business workflows, the reliance on legacy trust signals—such as simple publisher verification—is increasingly viewed as a liability. The research concludes that security teams must treat the instructions provided to an agent with the same level of scrutiny as the underlying software code itself.





