DriftLock

Can an AI Assistant's MCP Server Change Itself and Keep Admin Access?

Yes. Corelight's researchers found AI coding assistants on an administrator's workstation running Model Context Protocol (MCP) servers that held privileged credentials for security tools, and those servers' underlying code could change every session because installs pulled the "latest" version from a public registry rather than a fixed one. Corelight reviewed 35 MCP servers and found 23 recommended this unpinned install pattern; freezing dependencies fixed it — five frozen servers started 457 times over two weeks kept an identical package list to the day they were installed.

What Corelight found

Corelight was investigating a compromise and, in the course of checking an administrator's workstation, its researchers found something they hadn't been looking for: AI coding assistants were running Model Context Protocol (MCP) servers that the administrator had set up, and those servers held privileged credentials for security tools and other administrative resources. There was no malware on the machine — the risk was architectural, not an infection.

MCP is the connector standard that lets an AI assistant reach outside its own chat window into real systems: a ticketing queue, a cloud console, a security tool, a file share. An administrator wiring one up once, approving it, and moving on is normal practice. What Corelight found is that "once" doesn't mean what people assume it means.

Why "no malware" is scarier than malware

Many of the npm-based proxies that start these MCP servers were configured to install from a "latest" tag rather than a pinned version. Of the 35 MCP servers Corelight reviewed, 23 recommended exactly this install pattern. Every dependency that loads into the server's process inherits its access — API tokens, user files, network paths — and because assistants start these servers automatically each session, the server can rebuild itself with newer, different dependency code without anyone running an install command, editing a config file, or approving anything. The administrator who set the connection up sees the same tool name in the same place. What's actually running underneath it can be different from last week.

Corelight also flagged a separate, more conventional issue in the same review: a command-injection flaw rated CVSS 9.6 in the mcp-remote proxy used by some of these servers. That one is a patchable bug. The dependency-drift problem is not a bug — Corelight is explicit that this is a configuration and setup choice, not a flaw in the MCP protocol itself. That's the part worth sitting with: nothing here required an attacker to do anything clever. It required an admin to install a tool the normal way.

Why this isn't only a developer problem

MCP servers aren't limited to coding agents and repositories. The same connector pattern shows up behind desktop AI assistants and any AI tool that's been wired into an internal system — a security dashboard, an HR platform, a finance tool, a shared drive. Anywhere someone set up an MCP connection and handed it a credential with more access than the assistant strictly needs, the same drift risk applies: dependencies update silently, and whatever access was granted at setup time carries forward into code nobody re-reviewed.

The administrator in Corelight's case wasn't careless by ordinary standards. They set up tools the way documentation recommended. That's exactly why this is a policy gap and not a training gap — the fix has to apply across every machine that runs these assistants, not rely on each person remembering to check.

The fix that worked

Corelight's data shows the mechanism clearly:

Setup Behavior over two weeks
Install pulls from "latest" tag Dependency set can change on every server start, with no edit, approval, or install command visible to the admin
Install pinned/frozen at a known-good version Five servers, started 457 times total, kept an identical package list to the day they were installed

Corelight's recommendation beyond freezing is to scope the credentials down: give each MCP server its own account or API client with only the access its tools actually need — read-only where the server supports it, limited to the systems it uses, with tokens that expire. A frozen server still has whatever access it was given at setup. Freezing stops the code from silently drifting; scoping limits the damage if something still goes wrong.

What to check today

  • Inventory every MCP server configured on every machine that runs an AI coding assistant or desktop assistant — not just developer laptops.
  • For each one, check whether the install references a pinned version or an unpinned "latest" tag.
  • Check what credential each MCP server is actually running with. If it's an administrator-level token because that was convenient at setup time, replace it with a scoped, limited-lifetime one.
  • Ask whether anyone has reviewed what's currently installed against what was approved when the connection was first set up — Corelight's finding is that the two can diverge without any visible event.

What DriftLock does and doesn't do here

DriftLock, coming soon for macOS and Windows, watches what AI assistants and agents actually do on company machines — Claude Code, GitHub Copilot CLI, Cursor, VS Code, Windsurf, Claude Desktop, and AI built into Chrome, Edge and Brave — with a Console for setting policy across every laptop in the company. It is built to flag when an assistant tries to act outside the access and behavior a company has set as acceptable, and to give security teams one place to see that across the whole fleet instead of trusting that each admin remembered to check.

It does not inventory, pin, or audit the package dependencies inside an MCP server, and it does not replace scoping a credential down to least privilege — that's infrastructure hygiene that has to happen at the MCP server and credential level, the fix Corelight itself recommends. No vendor, DriftLock included, can claim to stop every form of prompt injection or supply-chain drift. What a layer like this can do is make sure that when an assistant's access or behavior changes, somebody with the authority to care finds out.

DriftLock is coming soon. Join the waitlist

What to take away

  • Corelight found AI coding assistants running MCP servers with administrator-level credentials, and the code inside those servers could change every session without any approval step.
  • 23 of 35 MCP servers Corelight reviewed recommended installs that pull from an unpinned "latest" tag — the mechanism that allows this silent drift.
  • Pinning dependency versions worked in Corelight's test: five frozen servers stayed identical across 457 starts over two weeks.
  • Corelight frames this as a setup choice, not a flaw in the MCP protocol — the fix is scoping each server's credentials to least privilege and freezing what it's allowed to install, applied across the whole fleet, not just reviewed once at approval time.
  • This applies anywhere an MCP connection was set up, not only on developer machines — any assistant wired into a system with a standing credential carries the same risk.

Sources

Related