Cursor discloses a malicious Claude Code extension that attempted an SSH backdoor
Cursor says at most 5,000 users were affected by version 2.1.313 in its extension marketplace; affected machines may need cleanup beyond uninstalling the extension.
Cursor’s extension marketplace distributed a maliciously modified Claude Code extension, and removing it may not remove everything it left behind. Cursor identifies the package as Anthropic.claude-code version 2.1.313, says the malicious version was not developed by Anthropic, and estimates that at most 5,000 users were affected.
The company’s English notice dates the distribution window to October 29, from approximately 09:27 to 20:35 UTC. Cursor says it removed the package, temporarily shut the marketplace, audited access, rotated keys and rebuilt the service. It also says the hosting provider took the attacker server offline. These are the company’s incident findings; AITrending has not examined affected machines.
An extension-runtime attack
OpenSourceMalware’s analysis describes a malicious loader placed before the legitimate extension bundle. According to that report, loading the extension was enough to start the code; a user did not need to begin a Claude conversation. The loader attempted to add an attacker-controlled SSH key, enable SSH, establish a reverse tunnel, install persistence and send host information over HTTP.
Successful remote access was conditional. Cursor says errors in the malicious code and the need for administrator privileges prevented the SSH-access step on typical hosts. It nevertheless warns that the extension could leave an unauthorized key and persistence files and transmit host details. The initial collection includes environment-variable names; this does not establish that every environment-variable value or credential was stolen.
Scope matters, and so does cleanup
The incident concerns the identified package from Cursor’s marketplace. OpenSourceMalware corrected its original distribution attribution and says the npm Claude Code package, Open VSX extension and Microsoft VS Code extension are not the malicious artifact described. Cursor says it has no evidence that other versions or the official distribution were affected.
Cursor asks customers to update to Claude Code for VS Code 2.1.314. Users who installed the affected package should also follow its incident-specific checks and remediation instructions: inspect the listed indicators, isolate hosts showing execution or backdoor evidence, remove unauthorized keys and persistent components, and assess whether rebuilding is necessary. The company recommends rotating accessible credentials and sessions from a trusted system. An extension update alone is not the cleanup procedure for an already affected host.