Join our Newsletter — 33% off our NHI Course
Governance, Ownership & Risk

McPhantom

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Governance, Ownership & Risk

McPhantom is a pattern in which an AI coding agent installs or reuses deprecated MCP servers because the package names remain embedded in training data. It describes a governance failure where stale model memory influences software selection on developer machines and exposes organisations to unmaintained components.

What McPhantom Means in Practice

McPhantom is not just a naming quirk, it is a governance failure in which an AI coding agent revives outdated MCP server packages because those package names are still present in its training memory. The result is a selection error that looks plausible to the model but points developers toward stale, unsupported tooling.

What makes the pattern notable is that the agent is not discovering a new dependency from first principles. It is reusing a remembered package name in a live software-selection workflow, so the mistake sits at the boundary between model behaviour and software governance.

Why Stale Model Memory Creates Exposure

Once a deprecated MCP server name has been embedded in training data, the agent can surface it long after the package should have been retired. That creates a mismatch between model recall and current package reality, which can expose teams to unmaintained components, weak support posture, and unnecessary trust in software that should no longer be selected.

This is especially risky in developer environments where suggestions can be copied directly into installation, configuration, or integration steps. A stale recommendation can therefore become an operational dependency before anyone notices the package is obsolete.

Where McPhantom Fits in AI Coding Workflows

McPhantom sits in the broader class of AI-assisted software supply-chain mistakes, but its specific trigger is memory-driven tool selection rather than malicious package impersonation. The issue emerges when the agent treats remembered package names as current recommendations, even if the ecosystem has moved on.

That means the pattern is not limited to one vendor or one framework. Any coding assistant that can suggest installation targets, scaffold integrations, or automate setup steps may reproduce the problem if its output is not checked against current package status and maintainer guidance.

How Organisations Should Think About It

McPhantom is best understood as a control problem, not a purely model-quality problem. Organisations need a way to distinguish between what the agent remembers, what the ecosystem currently supports, and what is actually approved for use in their environment.

In practice, that means treating agent suggestions as untrusted until they are checked against current package provenance, maintainer activity, and platform-approved inventories. The issue is less about whether the model can name a package and more about whether the organisation has a dependable gate before that name becomes part of the build or runtime path.

Risk and Threat Considerations

McPhantom creates a supply-chain exposure because a deprecated package can be reintroduced through model suggestion even when no attacker is directly involved. The immediate risk is use of unsupported software; the deeper risk is that stale recommendations can normalise weak dependencies across many developer workflows.

Failure mechanism: The agent relies on memorised package names instead of current package governance signals, so a deprecated MCP server can be selected, installed, or reused as if it were still valid.

Impact: Organisations can end up with unmaintained components in development paths, weaker assurance over software provenance, and a larger surface for future compromise if that stale component is later trusted in automation or integration logic.

Standards & Framework Alignment

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

OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while SLSA sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10ASI04 — Agentic Supply Chain VulnerabilitiesCovers supply-chain risks in agent-driven tool and dependency choices.
ASI02 — Tool MisuseApplies when an agent selects or invokes tools it should not revive or reuse.
ASI06 — Memory & Context PoisoningCovers stale or misleading model context that distorts runtime decisions.
Recommendation — Validate agent-suggested packages against approved sources before allowing installation. Constrain agent tool selection to approved, current packages and integrations. Filter agent outputs against current package metadata before acting on remembered names.
OWASP Non-Human Identity Top 10NHI-03 — Vulnerable Third-Party NHIRelevant because the pattern exposes risk from relying on third-party components the agent revives.
Recommendation — Review third-party package trust before reusing agent-recommended components.
SLSASupply-chain Levels for Software ArtifactsAddresses software artifact provenance and integrity concerns raised by package reuse.
Recommendation — Require provenance checks before promoting agent-suggested artifacts into use.

Practitioner Guidance

What to watch for: Treat agent-suggested package names as a prompt for verification, especially when the suggestion concerns MCP servers, tooling plugins, or setup helpers. The useful question is not whether the name sounds familiar, but whether the package is current, maintained, and approved for the intended workflow.

Governance implication: Teams should define who validates AI-generated dependency suggestions and which sources are authoritative for package approval. If the organisation allows coding agents to propose infrastructure or tooling changes, that approval path needs to be explicit rather than assumed.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org