← Back to all posts
Published on · by Renaud Deraison

The pinned server kept changing

On November 10, Corelight showed that MCP servers pinned to one release and one commit still ran 15 different dependency sets in five weeks, because uvx resolves about 60 transitive packages fresh from PyPI on each rebuild, and the AI assistants trigger those rebuilds on their own. The servers held admin credentials for the firewall and the SIEM. In Bromure Agentic Coding, a release published yesterday isn't on the menu when uvx resolves, every rebuild leaves a row on your Mac, the server holds a stand-in instead of the admin token, and it reaches only the management hosts you named.

The configuration named one release and one commit. Over five weeks, that release ran with 15 different sets of dependencies, and nobody ran an install command.

On November 10, James Lagermann of Corelight published The supply-chain risk hiding in your MCP servers. It began as a blast-radius exercise. Corelight pointed an AI agent at a lab network to work out what a compromise could reach, and the agent found other AI agents on an administrator's workstation: two coding assistants, each running MCP servers the administrator had set up. Nothing on the workstation was compromised. Lagermann asked a narrower question: where does those servers' code come from, and when does it change?

The servers changed far more often than their configuration said. Corelight calls it "a setup choice, not a flaw in MCP", and there is no CVE to patch.

One release, fifteen environments

The servers were started with uvx, the launcher that builds a Python environment and runs a package from one line of settings:

uvx --from git+https://github.com/<owner>/<server>@<release-tag> <server>
uvx --from <package>==<version> <package>

Both lines pin the server and leave its dependencies open. When uvx rebuilds its environment, it resolves those dependencies from PyPI again and takes the newest versions that fit.

Corelight followed one community gateway server, configured to a single release and commit:

  • The launcher's cache held 19 builds of that release. They made up 15 distinct environments.
  • 23 of the server's 69 packages changed versions over five weeks, including cryptography, the JWT library (four versions) and the MCP SDK.
  • The maintainer had pinned seven direct dependencies and published a hash-pinned lock file. uvx never read it. The other 60 or so packages were resolved fresh each time.
  • During testing, one ordinary launch rebuilt the environment with two dependencies released the day before.
  • The assistant started the server 162 times in one week. Counting cache folders, each server on the workstation was rebuilt 17 to 21 times in 30 days.

Every server on the workstation launched this way drifted, whether pinned to a tag, a PyPI version or a commit. Of 35 MCP servers Corelight reviewed across two vendor catalogs and the lab, 23 recommend an install that resolves dependencies from a public registry at launch. Some vendors' local proxies for hosted MCP servers start with npx <proxy>@latest; one such proxy shipped six versions in a month. Another vendor's setup turned off TLS certificate verification.

The assistants start their MCP servers at the beginning of each session, so the workstation made 203 connections to GitHub and 136 to PyPI in one week, all launched by two AI assistants through the runner.

MCP server drift (Corelight, November 10)1. The assistantstarts its MCP serversat every session162 launchesin one weekno install command2. The launcheruvx --from …@tagpins the server onlyignores the maintainer'shash-pinned lock filenpx proxy@latest3. PyPI, every rebuild~60 transitive packagesresolved fresh19 builds → 15 envs23 of 69 changed2 released the day before4. What it holdsadmin API tokens1,600+ connections11 mgmt systemsfirewall, SIEM,sensors, hypervisorEvery dependency loads into the server's processand inherits its tokens, files and network paths. A poisoned release live for minutesonly has to land on one of 17 to 21 rebuilds a month.
Corelight's finding. The settings pin the server's release, and the launcher resolves its roughly 60 unpinned dependencies from PyPI on every rebuild. The assistant starts the server on its own, and the server holds admin credentials for the management plane.

Why the drift is the risk

Each package uvx installs loads into the server's process and gets its access: the API tokens in its environment, the user's files, the network. On this workstation, the servers had made more than 1,600 connections in one week to 11 management systems, including the firewall, the SIEM, sensor management and hypervisor management. Some gateway accounts had full administrator rights. One security vendor's server could read and write across that vendor's whole platform.

Corelight lists what a poisoned dependency would have walked into. The xz Utils backdoor. The Ultralytics PyPI compromise. Nx's "s1ngularity" release, which turned local AI assistants against their owners. The Shai-Hulud worm, which went after AI tool keys and later reached PyPI. Malicious versions in campaigns like these are often live for minutes before they're pulled. A server that rebuilds 20 times a month, with no one watching, gets 20 chances a month to land in that window. The local proxies started with @latest have their own history: mcp-remote, a widely used one, had a CVSS 9.6 command injection reported by JFrog in 2025 (CVE-2025-6514, fixed in 0.1.16).

Finding all this took Corelight three sources: Zeek DNS and TLS logs to narrow the network to four hosts that fetch code at runtime, EDR to tie the connections to processes, and the uvx cache folders in process command lines to count rebuilds. Their own advice: "Treat registry contact as a lead, not proof that code changed." Installed versions are the proof.

The fix they tested was to freeze the servers. Pin to a commit, install once from a hash-pinned lock file into a dedicated environment, launch the server directly, and turn off update checks at startup. Five frozen servers started 457 times over two weeks with identical package lists, and they started in about 2 seconds instead of 4 to 11. A frozen server still needs an owner who re-locks and reviews it on a schedule: in the frozen community server, 40 packages were already older than what the launcher would have fetched that day.

"Treat each one like any other admin account," the post says: "know what it can reach, what it runs, and where its code comes from."

Bromure Agentic Coding answers those three questions on the Mac, for every MCP server your agents start, frozen or not.

The same servers in Bromure Agentic Coding

Bromure Agentic Coding runs Claude Code, Codex, Grok, Kimi and omp in Ubuntu VMs on your Mac, one VM per machine. You list a machine's MCP servers in its MCP pane on the Mac. Bromure writes them into each agent's configuration and hands them to the VM at boot. A uvx or npx server you add there runs inside the VM, next to the agent.

So every rebuild Corelight counted happens behind the Mac's proxy. Each request to PyPI, files.pythonhosted.org or the npm registry crosses it before a byte reaches the VM, and nothing in the VM can loosen the rules applied there.

Yesterday's release isn't on the menu

The age gate is on for every new machine, with a two-day minimum. When uvx asks PyPI which versions of a package exist, the proxy removes versions younger than two days from the answer. As far as the resolver can tell, they haven't been published yet. It picks the newest version that's old enough and moves on, with no error and no prompt.

Corelight's test launch picked up two dependencies released the day before. In a Bromure machine, that rebuild resolves to the versions from before them. A hijacked release that's caught and yanked within hours, the usual fate of a poisoned package, never appears in any rebuild the machine does. The npx <proxy>@latest servers get the same treatment. The proxy points npm's latest tag at the newest version past the cutoff, so @latest means "latest that's at least two days old". If something asks for a too-new version by exact number, the download is refused with HTTP 451 and a message that says how old the version is.

Two more checks run on each downloaded file if you switch them on. The free OSV lookup refuses versions with a published advisory at or above the severity you choose. That covers an mcp-remote older than 0.1.16. socket.dev refuses packages flagged as malware. When a source can't give a verdict, the install waits for you instead of going through unchecked.

Every rebuild leaves a row

Corelight had to count cache folders to learn how often its servers rebuilt. In Bromure, every package fetch the proxy sees is recorded in the Security Timeline, whatever the policy, one row per package and version: pypi · cryptography@…, downloaded, with the time. The Packages checked tile counts the last 24 hours. Rows are kept for 90 days, and Export… writes them to CSV. A rebuild that pulled four JWT library versions in five weeks shows up as four rows you can sort by date.

On Macs enrolled with bromure.io, each fetch is also sent to your organization as a supply_chain.fetch event with the package, version and outcome. That's the inventory Corelight recommends building, across every developer's agents, including machines where no supply-chain check is switched on.

The server holds a stand-in

On Corelight's workstation, the server process held admin tokens. In a Bromure machine, it holds stand-ins.

An HTTP MCP server you add gets its credential on the Mac. Either the Mac runs the OAuth sign-in and the agent's configuration carries no credential at all, or you paste a static token, which the pane labels Never sent to VM — swapped by proxy. For a stdio server that calls your firewall's or your SIEM's API with a key from its environment, add that key under Other API keys with the variable name the server reads and the API's host as the filter. The VM gets a look-alike value. The proxy puts the real key in only on requests to that host.

A poisoned dependency that reads the environment collects the look-alike. When it sends that value anywhere other than the host it belongs to, the proxy blocks the request with HTTP 451, forwards none of it, and pauses the VM. An alert titled This environment may have been compromised names the credential, the host it was made for and the host it was heading to. Shut down, the default, stops the machine and marks it compromised.

The management plane is a list you wrote

Corelight's servers made 1,600 connections a week to 11 management systems. In a machine running OpenShell + Sentry, everything is denied unless a rule allows it. Private ranges such as 10/8 and 192.168/16 are reachable only through an exact hostname or an allowed_ips entry. A server can reach the SIEM you named, and nothing else on the management network.

The rule can also say what it may do there. With protocol: rest and access: read-only on the SIEM's endpoint, the server can search and read but not change anything, whatever code it's running that day. For HTTP MCP servers, the policy inspects MCP traffic call by call and can allow or refuse individual tools. With Enforce binaries, a root-owned attestor in the VM ties every connection to the program that opened it, and each rule names the programs allowed to use it.

On either sandbox engine, the agent watchdog watches each session from outside the VM. One of its signals is a new destination once the session has settled. An MCP server that has talked to the same three hosts for an hour and then opens a connection somewhere else counts against the session. Set to Quarantine, the watchdog cuts the VM's network, pauses it and asks you what to do.

Machine VMMCP servers from the Maclisted in the MCP pane,written in at bootRebuildsuvx --from …@tagnpx proxy@latestThe server's environmentlook-alike tokens only;real keys stay on the MacYour MacAge gate (on by default)versions under 2 days hidden;latest = newest old enoughOSV, socket.dev on downloadsTripwirestand-in to the wrong host:HTTP 451, VM pausedDefault denyonly the management hostsyou named, read-only if you say soSee it, undo itSecurity Timelineone row per package@version,90 days, CSV export;org-wide on enrolled MacsNetwork lineageclaude → uvx → python→ siem.internal:443Rewind homeback to before the rebuild,uv cache included
The same servers in a Bromure machine. The age gate hides releases younger than two days from uvx and npx. Every fetch is a Timeline row. The server's token is a stand-in that pauses the VM if it leaves for the wrong host. Default deny limits the management plane to the hosts and methods you named, and each connection traces back to the agent that started the server.

Every connection names its parent

Corelight needed EDR to link the workstation's connections to the processes behind them. On a machine with the kernel sentry, every program launch and every connection is reported from inside the VM's kernel, over a channel the agent can't silence by killing a process.

Double-click a connection to the SIEM in the Timeline and it opens into its network lineage: the process chain from claude through uvx to the Python process that connected, with each one's arguments, and the decision the Mac made. When a connection came from an agent's tool call, the lineage also shows your prompt, the agent's reasoning and the exact command. You can see which MCP server talked to which management host, and when, without leaving the window.

Undoing a bad rebuild

Suppose a rebuild you don't trust has already happened. The uv cache and every environment it built live in the machine's home folder. Each day's first boot keeps a checkpoint of that home, and Rewind home… rolls it back to the start of an earlier day, cache and all. Reset disk re-clones the system disk from the base image. The real firewall and SIEM keys never entered the VM, so there's nothing in it to rotate.

Fresh releases stay out

The age gate hides PyPI and npm versions younger than two days from uvx and npx, on by default. @latest resolves to a release that has had time to be caught.

An inventory you didn't build

Every package fetch is a Security Timeline row for 90 days, and an organization-wide event on enrolled Macs.

No admin token to take

MCP and API keys stay on the Mac. The server holds a stand-in that pauses the VM if it heads anywhere else.

A short list of hosts

Default deny limits the server to the management hosts you named, read-only if you want, and lineage ties each connection to its process chain.

What to do this week

  • List the MCP servers your developers' assistants start, and the command each one runs. Look for uvx, npx, pipx run and @latest.
  • For any server that holds a credential, follow Corelight's freeze: pin to a commit, install from a hash-pinned lock file into its own environment, launch it directly, and turn off update checks.
  • Check mcp-remote and similar local proxies against current advisories, and pin them to an exact version.
  • Give each server its own scoped, short-lived credential instead of the administrator's, read-only wherever its tools allow.
  • Use DNS and TLS logs to find hosts that reach PyPI, npm or GitHub at runtime. Start with admin workstations and jump hosts.

Then run the servers in a machine where the release that came out yesterday can't be installed, every fetch is on record, and the token the server holds is worthless anywhere but its own host. The age gate and the Timeline rows are covered in Supply-Chain Protection, stand-ins and MCP tokens in Credentials & the Wire Boundary, and default deny, the kernel sentry and the watchdog in Sandbox Policy.

Related articles

The backdoor was in the weights

On November 12, Microsoft's AI Red Team showed that a coding model can be trained to betray its user. Poisoning 1% of a fine-tuning set, or shipping a tampered open-weight checkpoint, taught the model to fetch and run a remote script whenever someone asked for something as ordinary as project documentation. In the Claude Code harness the poisoned Qwen models did it up to 97% of the time. In Bromure Agentic Coding, that tool call runs in a VM whose network is a list you wrote, the request that triggered it sits next to the command in one window, and the watchdog pauses the machine when the model reaches for a host it has never used.

Agentic CodingNews & Analysis

The orders came through the API

On November 12, Darktrace showed how a stolen Claude Console key turns a developer's own Claude Code into a command-and-control implant: jobs arrive in a Claude memory store, the agent scans the network, sprays a password and uploads 1 GB to the Files API, and every packet goes to api.anthropic.com. In Bromure Agentic Coding, the key the attacker steals is a stand-in that pauses the VM on its way out, a key they bring is refused, the network scan is refused at the Mac, and every job is in the trace.

Agentic CodingNews & Analysis

The transcript held the key

On November 13, Cursor published how its October breach worked. An attacker used a key Cursor had issued to Fireworks AI to copy coding-agent traces from a shared bucket. Some of those traces held credentials nobody had redacted, and they led the attacker into Cursor's SaaS tools, its internal systems, and from there to the credential that pushed a trojanized Claude Code extension to up to 5,000 developers. In Bromure Agentic Coding, the agent never holds a real secret, so its transcript can't hold one either. The record of the session stays encrypted on your Mac, and a stand-in lifted from it opens nothing.

Agentic CodingNews & Analysis