Tampered Claude Code Extension on Cursor Exposes Up to 5,000 Users

Cursor confirmed that a tampered version of Anthropic’s Claude Code extension was available in its marketplace and may have reached up to 5,000 users. The package collected machine data and attempted to install a persistent SSH backdoor.

Tampered Claude Code Extension on Cursor Exposes Up to 5,000 Users

Cursor confirmed on Friday, October 30, 2026, that a tampered version of Anthropic’s Claude Code extension was available in its VS Code extension marketplace and may have reached up to 5,000 users. According to the company, the malicious package identified itself as anthropic.claude-code version 2.1.313 and was accessible from approximately 2:27 a.m. to 1:35 p.m. Pacific Time on October 29 — equivalent to 6:27 a.m. and 5:35 p.m. in Brasília. The compromised version also appeared in the Open VSX registry, according to CaveiraTech. The extension was removed on October 30, and Anthropic has already released version 2.1.314 to fix the issue. Cursor said there is no evidence that other packages were tampered with and rebuilt the marketplace before bringing it back online.

The attack’s mechanics were described by Jenn Gile, co-founder of OpenSourceMalware, to The Hacker News: the extension’s main JavaScript file contained a 66-line malicious loader inserted ahead of the legitimate code. The code attempted to collect information about the computer and user, including the operating system, directories, environment variable names, and the email address configured in Git. It then tried to install an SSH backdoor to ensure persistent remote access to the machine. However, the attempt did not work as planned in most cases. According to Cursor, the code contained errors and required elevated permissions to activate the SSH service, limiting the actual risk to machines where the editor had been granted administrator or root privileges.

O código malicioso era um loader de 66 linhas inserido antes do trecho legítimo da extensão
O código malicioso era um loader de 66 linhas inserido antes do trecho legítimo da extensão

The exposure window was short, but long enough to warrant a check. Anyone who installed the extension or had it update automatically during the nearly eleven-hour window should inspect their machine, even if they did not notice any unusual behavior — the malware showed no visible signs. Cursor recommends immediately updating Claude Code for VS Code to version 2.1.314 and following the instructions in the company’s published alert to locate the malicious package. The alert also makes clear that the tampered version was not published by Anthropic, despite carrying the extension’s official identifier. The check should start by looking for unknown SSH keys in the system’s authorized-key files, which could indicate that the backdoor was installed.

The incident fits a familiar pattern of software supply chain attacks. It comes just over a week after an unidentified attacker replaced the release binaries for five already-published versions of OVHcloud’s official CLI with malware that stole secrets. The files were uploaded through the GitHub account of legitimate OVH contributor “HassenBF,” which was compromised in March 2026 during the GlassWorm operation. The Claude Code incident follows the same logic: tools installed in development environments often have access to code, tokens, repositories, and credentials, making them valuable targets. And a well-known company’s name in a package identifier is not, by itself, a guarantee of authenticity — the version, publisher, requested permissions, and security notices should also be checked.

For anyone who suspects they were affected, the steps are straightforward: remove any unrecognized SSH access, scan the device with security tools, and change credentials that may have been exposed, including API tokens, repository keys, and passwords saved in the browser. It is also worth reviewing the permissions granted to the code editor and reducing root privileges where they are not needed. Cursor maintains a blog with step-by-step mitigation instructions and has asked all customers to upgrade to version 2.1.314. Security researchers are still investigating the incident, and the company has not specified how many of the up to 5,000 installations actually had the backdoor activated.

Comments 0

Loading comments...

Loading comments...