Cursor pulls malicious Claude Code extension, warns uninstalling may leave malware behind
Cursor says at most 5,000 users were affected. The package attempted persistent remote access, though permission limits blocked a key step on most machines.
Loading page…
Cursor says at most 5,000 users were affected. The package attempted persistent remote access, though permission limits blocked a key step on most machines.
Listen to this story
Cursor’s investigation isolates the incident to version 2.1.313 of the Anthropic.claude-code extension, a package not developed by Anthropic; it found no evidence that the official Claude Code distribution or other versions were affected. The package was available through Cursor’s VS Code marketplace for about 11 hours, and Cursor estimates up to 5,000 users may have been exposed. Because it could leave SSH keys and persistence scripts behind, removing the extension alone is insufficient: affected users should inspect and clean their machines, consider rebuilding them, and rotate accessible credentials from a trusted device.
The package was available from about 2:27 a.m. to 1:35 p.m. PT on October 29, 2026.
It collected host details and environment-variable names, but Cursor says it did not collect the variables’ values.
Administrator rights required for remote login blocked the tunnel on most macOS and Windows machines, but the payload could still add an SSH key and persistence mechanisms.
Removing a malicious Claude Code extension may not be enough to clean affected computers, Cursor warned in an October 29 security notice. The company pulled the package from its marketplace after it attempted to install persistent remote access. Cursor says at most 5,000 users were affected and that it will contact them directly.
The malicious package, identified as Anthropic.claude-code version 2.1.313, was available through Cursor’s VS Code extension marketplace from about 2:27 a.m. to 1:35 p.m. PT on October 29, 2026. That left it available for roughly 11 hours before removal. Cursor says this version was not developed by Anthropic.
Cursor said it found no evidence that other versions or the official distribution were affected. Its findings concern this particular package, rather than Claude Code as a whole. The company’s response included both stopping distribution and disabling the server used by the attacker.
The payload collected computer and user details, including the hostname, username, operating system, home-directory path, configured Git email and public IP address. Its listed collection also included environment-variable names—the labels used for settings—not their values. It sent host information and backdoor status to an attacker-controlled server.
For remote access, it attempted to add an attacker-controlled SSH key, enable the computer’s SSH remote-login service and open a reverse tunnel back to the attacker. Cursor says enabling that service requires administrator rights, which the extension lacked on most macOS and Windows machines. Errors in the malicious code further limited that step.
On those hosts, Cursor says, the attacker could not have logged in through the tunnel. But the extension still added the attacker’s key, installed persistence and sent host details. It attempted to keep the tunnel running through a macOS LaunchAgent or a Windows scheduled task, with a Windows Startup-script fallback. Background scripts retried roughly every 60 seconds.
Uninstalling the extension may not be sufficient — the payload drops standalone persistence scripts that keep running.
Cursor security notice, October 29, 2026
Cursor removed the malicious version and blocked further distribution, then temporarily shut down its extension marketplace as a precaution. It audited access, said it confirmed no other extensions had been tampered with, rotated its keys and rebuilt the marketplace before bringing it back online.
The company also worked with the attacker’s hosting provider to take the server offline. Cursor says that made the reverse connection and host-detail reporting nonfunctional. Its instructions nevertheless call for affected users to remove the local changes and investigate their computers.
Users who installed or updated to the affected version during that window should follow Cursor’s remediation instructions. The notice provides macOS and Windows checks for an unauthorized SSH key labeled svc-telemetry. Finding that key means the machine is impacted, Cursor says. The notice also lists package hashes, network addresses, files and process commands for security teams to investigate.
Loading discussion...
Join the conversation
Explain when you would favor a full shutdown over a targeted removal.
Be the first to share a perspective or an experience.
Reader comments
Newest comments first. Replies stay oldest first.