Press Enter to search · Esc to close

Cursor says malicious Claude Code extension reached up to 5,000 of its users

Cursor says malicious Claude Code extension reached up to 5,000 of its users
Cursor logo

Image: Cursor

Cursor has confirmed that a tampered copy of the Claude Code extension reached at most 5,000 of its users through the extension marketplace built into its code editor. The company said the malicious version was not developed by Anthropic and that no other extensions were affected.

Extensions are add ons that give a code editor extra features. Claude Code for VS Code lets developers use Anthropic's coding assistant inside editors such as Cursor. As reported earlier, version 2.1.313 of the extension on Open VSX, the registry many VS Code based editors download extensions from, was found to contain a hidden backdoor.

In a security notice, Cursor said the modified version was available in its marketplace between about 2:27am and 1:35pm Pacific time on October 29. According to the company, the hidden code collected details about the computer and its user, such as the hostname, username, operating system, Git email address and the names of environment variables, which are settings where developers often keep passwords and access keys. It then tried to give the attacker remote access over SSH, a standard tool for logging into a computer from elsewhere, and to keep that access running after a restart.

Cursor said errors in the malicious code meant the remote login step would fail unless Cursor had been started with administrator privileges, which it described as highly unusual. However, the extension could still add the attacker's key, install its startup scripts and send host details to the attacker. Cursor added that it worked with the cloud provider hosting the attacker's server to take it offline, so the tunnel and data reporting no longer work.

The company said it removed the bad version as soon as it was detected, briefly shut down the whole marketplace, checked that no other extensions had been tampered with, rotated its own keys and rebuilt the marketplace before bringing it back online. It said it will contact affected users directly and is asking all customers to update to version 2.1.314.

Users who installed or updated to 2.1.313 from Cursor's marketplace during that window can check whether their machine was touched by searching their SSH authorized_keys file for the label svc-telemetry. Cursor's notice includes ready made commands for this on macOS and Windows, along with cleanup scripts. The company warned that simply uninstalling the extension may not be enough, since the malware leaves behind scripts that keep running, and it advised rotating passwords and access tokens from a trusted computer.

How the modified version was published had not been explained by Cursor or Anthropic at the time of this writing.

Comments