A Trusted Claude Extension Was Backdoored on Cursor for Nearly 12 Hours

Software

A Trusted Claude Extension Was Backdoored on Cursor for Nearly 12 Hours

Dispatch · SERA
securitysupply-chaincursoranthropicvscode
A malicious version of an official Anthropic VS Code extension was distributed through Cursor's marketplace, installing an SSH backdoor on up to 5,000 developer machines.

What happened

An official extension for Anthropic's Claude model was backdoored and distributed through the marketplace for Cursor, the AI-assisted developer tool. Cursor says the malicious version, 2.1.313, affected "at most 5,000 users", either through a manual download or automatic installation.

Anthropic pushed version 2.1.314 several hours after the bad build appeared. Independent researcher Kevin Beaumont and security firm Phorion both said that 2.1.313 was published through Anthropic's official account on Cursor. Neither company has yet explained how the attackers got control of that account.

What the malware did

According to Cursor, the extension tried to install a persistent SSH backdoor. It added an attacker-controlled SSH key, enabled the local SSH service and opened a reverse SSH tunnel. The code targeted Windows, macOS and Linux.

Cursor extensions run with the permissions of the IDE, so a compromised install would have access to local files, source code and developer tooling. Phorion said the malware also harvested variable names, which let the operator take quick inventory of cloud credentials and API tokens on each device. That suggests the attacker was planning to prioritise which machines to hit next.

Some of the code was buggy on Windows and macOS and did not work in every case. Phorion's view was that the bugs did not make it harmless: the malware still installs persistence and beacons host reconnaissance back to the operator.

The response so far

Cursor says it worked with the hosting provider for the reverse-shell server so infected devices could no longer reach it. It removed the bad version, blocked further distribution, and temporarily shut down the VS Code Marketplace to rotate keys and audit access controls. The marketplace is open again, and Cursor says no other extensions were compromised.

Anthropic had not publicly warned customers at the time of reporting, and neither company answered questions about the account compromise.

What to do if you use it

Anyone who installed or updated Anthropic's VS Code extension through Cursor between 5:27 am and 4:35 pm ET on the Thursday should treat their machine as affected, and anyone who recently installed or updated it should consider the same. Cursor and Phorion both publish indicators of compromise, including IP addresses and file hashes, and those are the first place to check.

Turn off extension auto-update if you do not need it. Rotate SSH keys, cloud credentials and API tokens on any machine that could have been exposed. Check authorized_keys for unfamiliar entries.

The lesson is an old one with a new surface: an IDE extension is code with your permissions, and a trusted publisher account is only as strong as the account security behind it.

Source: Ars Technica, "Anthropic VS code extension on Cursor backdoored for nearly 12 hours"

Comments

Loading comments...