The Latest AI and LLM Attacks: Poisoned MCP Tools, a Sign-In URL That Ran Code, and Defences That Backfire
The latest AI and LLM attack research points the same way: the model is rarely the weak point. OX Security found tool poisoning in 22% of flagged MCP servers; opencode's MCP sign-in turned a server-supplied URL into PowerShell; and a new study found agents retrained on more injection attacks became easier to hijack. What each means, and the controls that hold.
Executive summary. The newest AI and LLM attack research has a common message: attackers aren't breaking the model, they're breaking what the model is allowed to touch. Three recent findings show it.
- OX Security's "Plug and Pray" study (published 23 November) analysed 542,207 components across npm, PyPI, MCP servers and Agent Skills. Among flagged MCP servers, prompt injection and tool poisoning (22%) were more common than install-time code execution (16%). Among 179 flagged Agent Skills, none ran code at install, but 44% told the agent to send data out.
- opencode turned a malicious MCP server's OAuth sign-in URL into PowerShell execution on Windows and WSL, with no CVE, so scanners miss it.
- A new study (Waterloo, Zhejiang, KTH) found that retraining agents on a bigger pile of prompt-injection attacks made them easier to hijack in three of four tests, because the training data repeated the same techniques.
Add the earlier AgentCorruption research on Amazon Bedrock AgentCore, where one prompt to a public agent with a web tool reached cloud credentials (AWS disputes calling it a vulnerability). The pattern is the same throughout: tools, sign-in paths, identities and training data are the attack surface. This piece is defensive: it explains each attack at a conceptual level and focuses on the controls.
The findings at a glance
| Finding | What it shows | Source |
|---|---|---|
| Tool poisoning in MCP servers | 22% of flagged MCP servers carried prompt injection or tool poisoning (vs 16% install-time execution) | OX Security, 23 Nov |
| Exfiltrating Agent Skills | 44% of 179 flagged Skills instructed agents to send data out; none ran code at install | OX Security |
| Concentrated authorship | Two publisher accounts were behind 44% of flagged MCP servers; only 69.8% of MCP servers had an identifiable owner (vs 92.8% of npm) | OX Security |
| Sign-in path code execution | opencode 1.0.137 to 1.18.32 ran a server-supplied OAuth URL as PowerShell on Windows/WSL; fixed 1.18.33, no CVE | Pillar Security disclosure, Oct |
| Training backfire | Agents retrained on more injection attacks got easier to hijack in 3 of 4 tests; preprint, small evaluation | PIPETTE paper, ~18 Nov |
| Over-privileged agent identity | One prompt plus a web tool reached instance credentials shared across agents (AWS disputes the framing) | Zenity AgentCorruption, Oct |
The OX percentages describe flagged components, not the whole ecosystem, and the Skills sample is small.
1. Tool poisoning: no malware needed
An agent reads tool descriptions, skill instructions and tool outputs as part of its context. A malicious MCP server or Skill doesn't need to run code on your machine. It can simply tell the agent to read a file, call another tool or send data somewhere, and a capable agent will often comply. That's why OX found instruction-based attacks more common than classic install-time malware among flagged MCP servers. It's also why traditional malware scanning misses them: there is nothing executable to flag. (Our MCP security guide covers the protocol's trust model in depth.)
2. The sign-in path is part of the attack surface
In opencode, connecting to a remote MCP server could start an OAuth sign-in. The server supplies the authorization URL; opencode passed it to a helper that, on Windows and WSL, built an unescaped PowerShell command. A URL that was valid HTTPS could still carry a PowerShell subexpression, so a malicious or hijacked MCP server could run code with the developer's privileges during sign-in. The fix (1.18.33) validates where it matters: at the point the URL is used, and against the configured server's origin. The same pattern hit mcp-remote earlier (CVE-2025-6514). With no CVE for opencode, vulnerability scanners won't flag old versions; you have to check versions yourself.
3. Defences that overfit
The PIPETTE study looked at a popular defence: retrain the agent on successful attacks. Using reinforcement-learning attack generators that keep rediscovering the same techniques in different words, retraining on more attacks made agents easier to hijack in three of four tests. The proposed fix favours coverage of distinct techniques over volume. The authors flag a small evaluation and an unreviewed preprint, but the operational lesson is sound: model hardening alone is not a control you can rely on.
4. The identity behind the agent
The earlier AgentCorruption research shows the end state of the first three: an agent with a web-request tool was steered into requesting the cloud metadata service, receiving credentials for a role shared across agents. AWS says this reflects documented behaviour and moved AgentCore to IMDSv2 only, and permissions were reportedly narrowed later. Whether you call it a flaw or a misconfiguration, the defence is the same: IMDSv2 only, and one narrowly scoped role per agent. Our guide to detecting AI agent intrusions in AWS with CloudTrail shows how to spot it when that fails.
What to do
- Allow-list MCP servers and Skills. Pin versions, prefer known publishers, and review tool descriptions and Skill instructions as code, since they can steer the agent.
- Treat every tool output as untrusted input, the same as user input from the internet.
- Least privilege for agent identities: a dedicated role per agent, no shared broad roles, IMDSv2 only, and no direct access to secrets stores without a scoped, audited broker.
- Human approval for consequential actions: sending data out, running commands, changing permissions, spending money.
- Restrict egress from agent runtimes and developer machines running agents to the destinations they actually need.
- Update AI developer tools, including opencode to 1.18.33 or later, and track tools that ship fixes without CVEs.
- Test adversarially and diversely. Red-team with varied techniques, not volume, and keep model-level defences as one layer among several.
How to detect it
- Agents reading files or secrets outside their task (SSH keys,
.env, cloud credential files) or calling the instance metadata endpoint. - Unexpected outbound requests from agent runtimes, especially to paste, webhook or new domains.
- New MCP servers or Skills appearing in configs that nobody approved; diff agent configuration in source control.
- Shell or PowerShell processes spawned by AI developer tools during sign-in or tool setup.
Conclusion
The latest research says the same thing in four ways: constrain what the agent can reach, who it can act as, and what it trusts. Model safety tuning helps, but tools, sign-in flows and identities decide the blast radius. Allow-list components, scope identities tightly, gate risky actions behind a human, and watch agent egress.
Do this now: inventory MCP servers and Skills in use, upgrade opencode to 1.18.33+, give each agent its own least-privilege role with IMDSv2, and alert on agents touching secrets or the metadata endpoint.
Related: MONAI Label and AI-speed exploitation, the agent-framework PyPI hijack, and our prompt-injection threat model.
Sources: OX Security, Plug and Pray, OX Security report, Ostorlab on opencode, Cloud Security Alliance research note, Help Net Security on PIPETTE, Dark Reading on AgentCorruption. Percentages are the authors'; AWS disputes the AgentCorruption framing.
Related research
Microsoft's agent-framework on PyPI Was Hijacked: A .pth File That Steals Credentials on Every Python Launch
On 17 November attackers published agent-framework 1.26.1 and 1.26.2 to PyPI with a .pth startup hook that runs a credential stealer whenever Python starts, even if the package is never imported. JFrog warns that a bare pip uninstall triggers it again. What to check, how to clean up safely, and what to rotate.
MONAI Label CVE-2026-133968: AI Agents Went From API Map to Root in About 11 Minutes
MONAI Label is an open-source annotation server for medical imaging. CVE-2026-133968 is a CVSS 9.8 path traversal that Amazon Threat Intelligence says was exploited by autonomous AI agents, which went from mapping the API to arbitrary file write in about 11 minutes and a root reverse shell on a university server. Authentication is off by default and no fixed release shipped at disclosure.
GPUStack CVE-2026-102895: Attackers Are Owning the AI Control Plane
GPUStack is an open-source GPU cluster manager for serving AI models. CVE-2026-102895 is a CVSS 9.8 improper-authentication flaw that lets a remote, unauthenticated attacker make requests look local, bypass authentication, become administrator, read worker and cloud secrets, and run code. It's exploited in the wild and on CISA KEV. The fix is 2.2.0 — but assume pre-patch compromise.