Security News

AI Agents Can Be Hijacked by Instructions Alone, No Malicious Code Needed

Infosecurity Magazine · 24 Nov 2026
Key Takeaway Before connecting an AI agent to business systems, vet the instructions and tool descriptions it will follow, and who controls them, not just the code it runs.

Attackers are finding ways to hijack AI agents without planting any malicious code, according to a new report from Ox Security. The vendor analysed 542,207 open source components between July and October 2026 for its Plug and Pray report, and concluded that the instructions given to an agent are becoming a new attack path.

The researchers tracked suspicious components across four ecosystems: npm, PyPI, MCP servers and agent skills. Prompt injection and tool poisoning appeared in 22% of flagged MCP servers, while code that runs at install or import time appeared in 16%. For agent skills the gap was wider: 26% and 0%. Some 44% of flagged agent skills contained instructions directing agents to send data out.

"The agent already has the permissions it needs. Attackers just have to convince it to use them," said Moshe Siman Tov Bustan, research lead at Ox Security.

The report warns that traditional approaches are poorly suited to spotting this trickery. Teams have long judged software by who published it, what code it runs and whether that code has been altered. Ox Security found a source owner for only 70% of MCP servers, compared with 93% of npm packages. Some 67% ran on publisher-controlled infrastructure, so the deployed code could not be independently verified. And 82% were malicious in their first observed version, leaving no clean version to compare against.

The report argues that organisations deploying AI agents must go beyond checking whether dependencies contain vulnerable or malicious code. It suggests security teams answer three questions as part of their assessment, though the source excerpt does not list them.

Why it matters

Code scanning and publisher reputation checks assume the danger sits in executable code from an identifiable owner, but an agent that already holds permissions can be turned against you by text alone. Any business giving agents access to email, files or other systems is exposed, especially when tools come from MCP servers where 82% were malicious from their first version, so there is no clean baseline to diff against. This forces a decision to treat agent instructions and tool descriptions as untrusted input and to limit what an agent can do by default.

What to do

  • Review the instructions and tool descriptions of any MCP server or agent skill for directives to send data out before installing it.
  • Check whether each MCP server has an identifiable owner and whether you can verify the code it actually runs.
  • Limit the permissions granted to AI agents so a hijacked agent cannot reach critical systems or send data externally.
Answering to more than one framework? Run them as one security and AI governance programme ->

Summarised by CISO AI from Infosecurity Magazine, written with Claude Sonnet 5.5. We link back to every original so you can read it yourself.