Anthropic’s official Claude Code extension was compromised and used to distribute a backdoor that may have exposed the machines of up to 5,000 developers, according to multiple reports published Friday. The malicious package was available through Cursor’s marketplace, and Anthropic had not yet notified customers about the incident.
The affected package was a VS Code extension distributed through Cursor, a company that develops AI-assisted programming tools. Cursor said that the compromised version, 2.1.313, may have reached “up to 5,000 users.” The extension could have been installed when users downloaded it or when Cursor automatically retrieved and installed an update.
Anthropic released version 2.1.314 hours after version 2.1.313 became available on Cursor, according to independent security researcher Kevin Beaumont. Beaumont and Luke Roberts, co-founder and CTO of security company Forian, said version 2.1.313 was distributed through Anthropic’s official Cursor account. Neither Cursor nor Anthropic has explained how the attackers gained control of the accounts.
The extension requested cloud credentials
“This was a supply chain breach and the attackers had access to official distribution channels,” Roberts told Ars. “A malicious version 2.1.313 was posted on Anthropic’s official account, effectively replacing 2.1.312. By default, extensions auto-update with Cursor, but users can configure this in Settings.” Forian provided additional information about the incident in a blog post.
Anthropic had not disclosed the incident to customers at the time of the reports.
According to Cursor, the malicious extension installs a persistent SSH backdoor with additional SSH keys controlled by the attacker. It also enables the local SSH service and attempts to establish a reverse SSH tunnel. The code is designed to run on Windows, macOS, and Linux.
Because the Cursor extension runs with the privileges of the integrated development environment, an installation of the backdoored version could potentially provide access to local files, source code, and developer tools.
Source: arstechnica.com


