SecOraLens
CriticalBreach

Hackers Could Exploit MCP Server Supply Chain Weaknesses to Steal API Keys and Administrator Credentials

Cyber Security News·Source published ·1 min read·Video available
Advisory videoOpen on YouTube ↗

What happened?

Security teams that run AI coding assistants may be exposing their most powerful credentials without knowing it. A new study shows that Model Context Protocol (MCP) servers can quietly change their own code after they are set up. If an attacker poisons just one package in that chain, they could steal API keys and administrator logins. MCP servers let AI assistants talk to other tools, such as firewalls, SIEM platforms and cloud consoles. To do this work, they usually hold the keys of the person who installed them. Attackers already know this.

Key details

  • Poisoning one package in the dependency chain can steal API keys and admin logins.
  • Launching MCP servers with uvx downloads a Python package and runs it from a single line of settings.
  • Pinning the main package does not pin the packages underneath it, allowing dependency drift.
  • One server rebuilt 19 times over five weeks, producing 15 different dependency sets with 23 packages changing versions.
  • Servers running inside the same process as their packages can read API tokens and user files.
  • Starting a local proxy with npx and a 'latest' tag fetches the newest version at every start, increasing hijack risk.

How do I fix or mitigate it?

  1. Pin to a specific commit, install from a hash-pinned lock file, and launch the server directly.
  2. Each server should get its own account with least access, and a named owner should review updates on a schedule.

What should defenders look for?

  • Domain github.com indicates code download hunting.
  • Domain codeload.github.com indicates code download hunting.
  • Domain raw.githubusercontent.com indicates code download hunting.
  • Domain objects.githubusercontent.com indicates code download hunting.
  • Domain pypi.org indicates package registry contact.
  • Domain files.pythonhosted.org indicates package file downloads.

Summarised by SecOraLens from Cyber Security News. Always read the original source before acting. How SecOraLens verifies advisories.

What to do next

For CISOs and SOC leads

Brief your board. Brief your team.

Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.