Independent analysis by NHI Mgmt GroupSource article: Glow, “McPhantom: AI Coding Agents Are Installing Vulnerable Deprecated MCP Servers from Training Data” (November 10, 2026)

TL;DR: AI coding agents are independently installing deprecated MCP servers from training data, and Glow’s research shows some of those servers contain high-severity flaws, including remote code execution risk. Old package names can survive long after maintenance stops, so governance has to move from dependency review to approval-time control.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Glow's blog post: AI coding agents are selecting deprecated MCP servers from training data, and that behaviour can land unmaintained, vulnerable software on developer machines.

Why it matters: This matters because agentic tool selection can bypass the inventory and dependency controls security teams rely on, leaving deprecated local servers outside normal review and patch processes.


Context

AI coding agents now make package choices that can have security consequences even when no attacker is directly involved. When the model’s memory points to an outdated MCP server, the install path can shift from current service-owned tooling to archived software that no one maintains.

That creates a governance problem for developer platforms, because the control failure happens at selection time rather than at traditional vulnerability management time. The issue is especially visible in environments where MCP servers are created locally and never appear in standard software inventory views.


Key questions

Q: What signs suggest a deprecated MCP server has been installed by an AI agent?

A: Look for local MCP configs, npm-launched servers, or runtime processes that reference archived or deprecated package names rather than current service-owned servers. The most useful clue is a tool install that appears in endpoint activity but not in normal software inventory or dependency manifests, because that usually means the agent selected and launched it outside standard approval paths.

Q: Why do AI coding agents keep picking old MCP server packages?

A: AI coding agents often pick old MCP server packages because their model priors and retrieved examples still favour familiar package names, while dependency search may surface stale code first. That can lead to unsupported interfaces, insecure defaults, or missing fixes. Reduce this with package allow-lists, dependency pinning, repository freshness checks, and human review of generated installs.

Q: How should teams govern MCP server installation in developer environments?

A: Treat MCP server installation as a controlled enrollment step, not a convenience action. If the installer can collect API keys, register tools, or establish persistent session authority, then approval, logging, and ownership need to happen at install time. The key control is deciding who can add trusted tools before they become part of daily developer workflow.

Q: How do prompt injections turn MCP browser access into code execution?

A: Prompt injections can steer an agent to use MCP browser capabilities to visit attacker-controlled content, read hidden instructions, and then invoke tools or page actions that expose browser or automation authority to malicious code. The failure mode is untrusted text influencing delegated runtime decisions, so browser isolation, strict tool scoping, and command approval boundaries are critical.


Technical breakdown

Why training data can drive deprecated MCP server selection

AI coding agents do not reason about package freshness the way a human reviewer would. They pattern-match on names and context learned during training, then fill in the most familiar server label when asked to connect a service. If that label once mapped to a reference implementation, the agent may still prefer it even after the official service has moved on. That makes “what the model remembers” a hidden input into software acquisition. The result is not just outdated naming, but outdated code paths with no active maintainer watching for newly discovered flaws. Read What Is MCP? The Model Context Protocol Explained (2026).

Practical implication: Treat model-recommended package selection as an untrusted decision surface, not an implementation detail.

Why local MCP installs evade ordinary endpoint controls

The risky pattern emerges because the server is often launched through a Node process rather than a conventional installed application or declared project dependency. Software composition analysis depends on manifests, EDR looks for suspicious execution, and inventory tools look for installed packages or apps. A local npm install driven by an agent can sit outside all three views. In practice, the asset exists only as a runtime command and a config entry, which is enough for the agent to use it but not enough for many tools to classify it as software that should be governed. See the MCP Security Guide.

Practical implication: Extend discovery to runtime-launched developer tooling, not just declared dependencies and installed applications.

How prompt injection turns a browser-capable MCP server into command execution

The most dangerous cases are those where an MCP server exposes broad browser or automation permissions. If an attacker can inject instructions into the agent’s context, the agent may convert a browser task into arbitrary process execution on the endpoint. The failure is architectural: the permission granted for one legitimate action becomes a bridge to unrelated commands because the harness trusts the agent’s choice of tool too broadly. That means the server’s capability surface matters as much as its code quality, especially when the package is archived and no patch will arrive.

Practical implication: Constrain browser and automation permissions so a single granted capability cannot expand into arbitrary command execution.


Threat narrative

Attacker objective: Exploit the trust placed in agent-driven tool selection to run unmaintained software on a developer endpoint and gain code execution.

  1. Entry begins when a developer asks an AI coding agent to connect a service such as GitHub, and the agent selects a deprecated MCP server name from its training data.
  2. Credential or execution risk appears when the agent writes the config or runs the install locally, pulling in archived software that no longer receives fixes.
  3. Escalation occurs when a vulnerable server exposes browser or automation capability that prompt injection can redirect into arbitrary command execution on the endpoint.
  4. Impact is the execution of unmaintained code on developer machines, including the possibility of remote code execution and wider workstation compromise.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

McPhantom is a governance failure, not just a supply chain oddity. The core problem is that an AI coding agent can choose software based on stale memory instead of current approval state. That moves control failure upstream of the install event and makes package freshness part of agent governance, not just dependency hygiene. Security teams should treat model-recommended tool selection as a governed action, not an implementation convenience.

Archived MCP servers create a long-tail risk window that normal software controls do not close. Once maintainers step away, deprecation notices and archived repositories do not stop agents from reinstalling the package. The result is a durable exposure path where the organisation inherits both the package’s old vulnerabilities and its lack of future fixes. The practical lesson is that approval criteria must include lifecycle status, not just function or popularity.

Endpoint inventory is the wrong last line of defence for local agent tooling. The installs happen in runtime processes and hidden config paths, so inventory tools and manifest-based scanners can miss them entirely. That is why this pattern matters for NHI governance as well: the agent is effectively acting as a delegated software selector with its own trust boundary. Organisations need controls that govern the selection event itself, not only the software after it lands.

Deprecated MCP packages should be treated as a named class of exposure, not an isolated bug. A useful concept here is training-data software drift: the model surfaces a package name that was valid when the model learned it, but no longer maps to the safest or supported option. That drift is especially dangerous in fast-moving agent ecosystems where package names, maintainers, and security posture change faster than training cycles. Practitioners should assume the agent’s recall is not the same thing as software currency.

The identity angle is real because the agent becomes the selector of privileged runtime tooling. In practice, the coding agent is deciding which local server to instantiate, which means it is exercising delegated authority over a developer endpoint. That makes the decision path part of AI coding agent security and part of non-human identity governance, because the agent is not merely recommending code. Organisations should align approval, policy, and inventory with the agent’s runtime choices, not just with human-reviewed manifests.

From our research library:

What this signals

Training-data software drift: AI coding environments need a control plane for package freshness, because model recall can outlive maintainership and reinstall retired tooling long after the ecosystem has moved on. That shifts governance from patch management to selection governance, and the right control is to validate whether a package is still current before an agent can use it.

The best defence is to make deprecation a first-class policy signal in the developer workflow, then bind agent permissions to that signal so stale packages never become trusted runtime dependencies. This is where runtime inventory, approval state, and delegated agent authority have to converge, especially when local servers sit outside conventional software scanning.


For practitioners

  • Audit agent-selected MCP installs Search developer machines for MCP configs that reference deprecated servers, then map each install to the service owner’s current server where one exists.
  • Approve one server per service Create a single approved MCP server choice for each service so agents do not fall back to older names remembered from training data.
  • Add deprecation status to approval checks Block any MCP server from approval when its npm record is deprecated or when the maintainers no longer support security fixes.
  • Constrain browser-capable agent tools Limit browser and automation permissions for agents that can launch local servers, because broad tool authority can become arbitrary command execution.

Key takeaways

  • AI coding agents can create security exposure by selecting software from stale training data instead of current package state.
  • Deprecated MCP servers are dangerous because they can remain installable and exploitable even after maintainers stop supporting them.
  • Governance has to move left to the selection decision, with deprecation checks and one approved server per service.

Related NHI Mgmt Group resources: AI Coding Agents Security Guide · What Is MCP? The Model Context Protocol Explained (2026) · MCP Security Guide · MCP Gateway and MCP Server Governance Guide


Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationAgent-selected local MCP installs can expose weak or outdated authentication paths in archived servers.
NHI-07 — Long-Lived SecretsArchived MCP servers and local installs extend exposure windows beyond active maintenance.
NHI-03 — Vulnerable Third-Party NHIDeprecated MCP servers are third-party components that can remain vulnerable after maintainers stop updating them.
Recommendation — Review MCP server authentication paths before approval and reject deprecated packages with obsolete auth flows. Retire MCP servers with unsupported lifecycle status before they can linger as trusted dependencies. Track third-party MCP servers as governed NHIs and block unsupported versions from production use.
MITRE ATT&CKTA0006;TA0002 — Credential Access; ExecutionPrompt-driven local installs can lead from tool selection into execution on developer endpoints.
Recommendation — Map agent-driven local installs to execution risk and monitor for unexpected runtime launches.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsAgent permissions that allow local installs must be limited to the minimum needed for the task.
Recommendation — Limit agent entitlements so tool selection cannot expand into unrestricted local execution.

Key terms

  • Model Context Protocol: Model Context Protocol is an open protocol that lets AI agents connect to tools and data sources. It expands what an agent can reach, so governance has to cover not only the model and its prompts, but also every system that can receive or return agent-driven data.
  • Deprecated Package: A deprecated package is software that is no longer recommended for new use because it has been superseded, unsupported, or marked for future removal. In IT practice, it may still install and run, but it carries lifecycle risk, compatibility drift, and greater exposure to unresolved defects or missing security updates.
  • AI Coding Agent: An AI coding agent is software that writes, edits, reviews, or tests code with limited human prompting. It operates as an agentic system that can plan actions, call tools, and modify development artifacts, so its identity, permissions, and audit trail must be governed like any other privileged software actor.
  • Prompt Injection (Agentic): An attack on applications built on large language models, where crafted text in a prompt or in content the model reads, such as a document, web page or email, overrides the intended instructions. OWASP lists it as LLM01:2025. It becomes most dangerous when an agent can call tools, because the injected instruction can run actions using the agent's own legitimate credentials.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity, secrets management, and agentic AI identity. It helps practitioners build policy and lifecycle controls for systems where non-human actors make security-relevant decisions.
NHIMG Editorial Note
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org