[KongchangAI]
· 1 min read· 883 words

Fake Claude Code Hides Backdoor: The Inside Story of the Cursor Supply Chain Attack

Fake Claude Code Hides Backdoor: The Inside Story of the Cursor Supply Chain Attack

Cursor's extension marketplace suffered a supply chain attack via a fake plugin, exposing the fragility of trust in AI coding tools.

A malicious plugin impersonating "Claude Code" appeared in Cursor's extension marketplace for about 11 hours, with up to 5,000 developers estimated to have installed it. The attack began with a leaked Fireworks access key, which the attacker used to obtain old AI coding sessions containing plaintext passwords and access Cursor's internal tools, uploading a malicious version disguised as a legitimate plugin. Once installed, the plugin attempts to open a secret backdoor that uninstalling does not close. Cursor has rotated all keys, but credentials already exposed in historical sessions cannot be eliminated by rotation. The incident reveals the fragility of trust across model providers, IDE platforms, and developer behavior in the AI coding tool chain, reminding developers to avoid pasting real credentials and to audit extension sources.

An 11-Hour Supply Chain Attack

According to a YouTube tech channel, Cursor's extension marketplace once hosted a fake "Claude Code" AI coding plugin containing a malicious backdoor, remaining listed for 11 hours. The attacker gained access to Cursor's internal tools through a leaked access key and uploaded a malicious version disguised as a legitimate plugin. An estimated 5,000 developers may have installed it. The incident exposed a long-overlooked weak point in the AI coding tool ecosystem: the trust mechanism of extension marketplaces.

Fireworks runs AI models for Cursor

The Attack Chain: Starting from a Leaked Key

The origin of the incident was not complicated. Fireworks, the company providing AI model hosting for Cursor, exposed an access key. The attacker used this key to obtain old AI coding session logs, some of which still contained plaintext passwords. Developers habitually paste keys and credentials directly into AI chat windows, and this widespread behavior became the attacker's stepping stone.

According to the video, the attacker used this to enter Cursor's internal tools. The next steps were more targeted: they uploaded their own copy of the Claude Code plugin to the Cursor marketplace—same name, completely legitimate-looking interface, but with malicious logic embedded in the code.

The attacker enters Cursor's internal tools

Access Key is a string of credentials used for identity verification in cloud services and APIs, typically issued by a platform to service providers or developers, allowing the holder to call interfaces, read data, or perform operations. It is essentially a "pass"—once leaked, an attacker can impersonate a legitimate user without cracking a password. In the AI coding tool chain, model service providers often hold keys to access platform-internal resources, making key management a critical node in supply chain security. In this incident, the key exposed by Fireworks was not directly user-facing, yet it was enough to let the attacker move laterally into Cursor's internal tools—showing that the scope of permissions and isolation mechanisms for keys are equally important.

The Backdoor's Stealth: Uninstalling Is Not Removal

The danger of this plugin lies in its persistence design. Once installed, it attempts in the background to open a covert channel to the attacker on the user's machine. The video specifically notes that a simple uninstall will not close this backdoor. This means affected developers may remain exposed without knowing it.

Cursor took emergency measures upon discovery and rotated all keys, but as the video emphasizes, the AI tool itself retains a "lock"—those historical logs still remember everything users have pasted.

Malicious code hidden in the plugin

Persistence Backdoor refers to malicious code that, after first execution, establishes a long-term resident channel on the user's machine by modifying system configurations, creating scheduled tasks, writing to the registry, or implanting independent processes. Unlike ordinary malware, the goal of a persistence backdoor is to "survive after the main program is uninstalled," so merely deleting plugin files often fails to remove it. Defending against such threats requires system-level monitoring tools to check for abnormal processes, network connections, and startup items, rather than relying solely on application-layer uninstall functions. For developers, after installing extensions of unknown origin, a full security scan should be performed and any unknown outbound connections checked.

After Key Rotation, the Risk Does Not Drop to Zero

Cursor's key rotation was necessary, but it addresses "future" access issues, not "past" data exposure. According to the video analysis, the old session logs the attacker obtained may contain sensitive information such as passwords, and this part of the risk cannot be eliminated by rotating keys. Affected developers need to assess which credentials were exposed in AI conversations and proactively change them.

Cursor rotates all keys

Key Rotation is a standard operation in security operations, referring to the periodic or emergency replacement of access credentials to invalidate old keys, thereby blocking an attacker's continued access using leaked keys. Rotation can effectively limit "future" unauthorized access, but it cannot trace or revoke data the attacker has already obtained. If old session logs ever contained plaintext passwords, tokens, or other sensitive information, that information was copied before rotation, and the risk is already fixed. Therefore, key rotation must be combined with credential auditing, log cleanup, and user notification to form a complete exposure response loop.

Lessons for the AI Coding Ecosystem

The core issue of this incident is not one company's negligence, but the stacking of trust across multiple links in the AI coding tool chain: the model service provider holds access keys, the IDE platform runs the extension marketplace, and developers feed sensitive information directly into conversations. A breach at any single link can trigger a chain reaction.

The video's assessment is that "it's not beyond hope yet, but some people's passwords have definitely leaked." For developers, practical steps include: avoid pasting real credentials into AI conversations, regularly audit installed extensions, and pay attention to plugin sources and listing times. For platforms, review mechanisms for extension marketplaces and key management strategies need stricter constraints than traditional software repositories, because AI tools naturally come into contact with large amounts of sensitive context.

This incident also points to a deeper issue: when AI coding assistants become infrastructure in the development workflow, their supply chain security is no longer just the platform's responsibility, but a risk surface every user must actively manage.

#Cursor supply chain attack#Claude Code fake plugin#AI coding tool security#access key leak#backdoor persistence#key rotation
Share:

Related articles