Skip to content

Fake MCP Diagnostic Tool Exposes a Growing AI Supply-Chain Risk

Knostic researchers discovered an MCP configuration tool that delivers information-stealing malware. The findings highlight the need for greater scrutiny of third-party tools entering enterprise AI environments.

A tool designed to diagnose problems with AI infrastructure may instead be creating them, according to new research from Knostic.

The security company's researchers discovered a malicious npm package masquerading as a utility for diagnosing and repairing Model Context Protocol (MCP) configurations. While the tool performs legitimate diagnostic functions, it can also silently deploy information-stealing malware on Windows machines.

The discovery underscores an emerging security challenge: As organizations accelerate AI adoption, the ecosystem of third-party tools supporting that adoption is becoming an increasingly attractive attack surface.

What the researchers found

Knostic researcher Tamir Isaschar detailed how version 1.0.1 of @guicai777/mcp-doctor delivers a legitimate diagnostic report while potentially deploying malware that researchers identified with high confidence as StealC v2.

The malware can harvest browser passwords, session cookies, payment information and Discord authentication tokens without requiring administrator privileges. The researchers also identified functionality for executing additional malicious payloads.

The package registered 242 downloads in the week preceding Knostic's Nov. 20 disclosure, although that figure includes automated downloads. Researchers have not confirmed any successful data theft or identified actual victims. Knostic reported the package to npm Security.

Why it matters

Perhaps the most noteworthy aspect of this discovery is that the tool actually does what it advertises. Its legitimate functionality provides cover for malicious activity.

As developers and security practitioners experiment with AI agents, coding assistants and MCP integrations, they are introducing new software dependencies into enterprise environments, potentially faster than security teams can evaluate them.

A compromised developer workstation could expose not only personal credentials but also privileged enterprise accounts, cloud resources, source code and AI infrastructure.

This isn't evidence of an inherent vulnerability in MCP. Rather, it's a familiar software supply chain problem playing out across a rapidly expanding AI ecosystem.

Part of a bigger AI security problem

Knostic's findings reinforce several themes we've been tracking at CYBR.SEC.Media.

Dragos researcher HD Moore's investigation into the AI supply chain uncovered stolen credentials, unauthorized data access and failures of privacy controls. Our coverage of the Optimizely supply chain attack demonstrated how trusted software dependencies can become malware delivery mechanisms.

Meanwhile, the Hugging Face breach and the emergence of ARTEX have underscored the urgency of establishing effective AI security guardrails.

These are different security events, but they share a common lesson: Organizations are expanding their technology ecosystems faster than they can establish meaningful visibility and control over them.

Knostic's research is another reminder that attackers don't necessarily need to defeat AI security controls. Sometimes, they just need to compromise the tools people use to get AI working in the first place.

Five takeaways for security teams

  • Check for exposure. Search dependency records, npm caches and CI/CD logs for the malicious package.
  • Investigate potential compromise. Use the indicators of compromise included in Knostic's research to determine whether the malicious executable ran.
  • Protect identities. If execution is confirmed, isolate affected machines, revoke active sessions and rotate potentially exposed credentials from a clean device.
  • Extend supply chain controls to AI. Apply existing software vetting and approval processes to MCP servers, utilities and agent integrations.
  • Don't confuse functionality with trustworthiness. A tool that performs its advertised function isn't necessarily safe.

The bigger lesson is that organizations must secure more than their AI models and agents. They must also secure the growing ecosystem of software that makes those technologies work.

Latest