Backdoored Anthropic extension hit Cursor users for about 12 hours
A malicious version of Anthropic's official VS Code extension was published through its verified account on Cursor's marketplace and reached at most 5,000 users. It tried to plant a persistent SSH backdoor and collected host details and environment variable names.

A supply-chain attack hit developers who use Anthropic's official VS Code extension inside Cursor. According to Ars Technica, a malicious version, 2.1.313, was pushed through Anthropic's verified publisher account on Cursor's extension marketplace on Thursday, October 29. Cursor says it reached at most 5,000 users. Anthropic shipped a clean version, 2.1.314, several hours later, and Cursor removed the bad release and blocked further distribution.
How the attackers got control of Anthropic's account is still unknown. At the time of the report, neither Anthropic nor Cursor had explained it, and Anthropic had not issued a public notice to customers.
What the malicious extension did
Because Cursor extensions run with the permissions of the editor, the backdoored version could reach local files, source code and developer tooling. Cursor's analysis says the code, written for Windows, macOS and Linux, tried to:
- collect the hostname, username, operating system, home directory, working directories, Git email, public IP and the names of environment variables;
- add an attacker-controlled key to authorized_keys, turn on the local SSH service and open a reverse SSH tunnel;
- keep that tunnel alive with a LaunchAgent on macOS or a scheduled task on Windows, retrying about every minute;
- report its status to a remote server.
Bugs in the code meant the SSH step usually failed unless Cursor was running with administrator rights. Security firm Phorion still calls it a significant threat, because it installs persistence and sends reconnaissance home. Harvesting environment variable names lets an operator quickly see which machines hold cloud credentials and API tokens, likely to pick targets for follow-up attacks.
Cursor's response
Cursor worked with the hosting provider to cut infected machines off from the attacker's server, then temporarily shut its extension marketplace to rotate keys, audit access controls and confirm no other extensions were affected. The marketplace has since reopened. Extensions in Cursor auto-update by default, which is how the bad version spread so fast.
Anyone who installed or updated the extension from Cursor between 5:27 am and 4:35 pm US Eastern time on October 29 should treat their machine as affected. Cursor and Phorion have published indicators of compromise, including IP addresses and file hashes. Note that updating to the fixed version does not remove persistence that was already installed.
Why it matters for builders
AI coding tools sit on the most valuable part of a developer's machine: source code, SSH keys and API tokens. This incident shows that a trusted publisher badge is no guarantee when the account itself is compromised. If you use Cursor, check your extension version and the indicators of compromise, look for unknown keys in authorized_keys and new launch agents or scheduled tasks, and rotate any secrets that were in your environment. More broadly, consider turning off automatic extension updates on machines that hold production credentials, keep long-lived secrets out of shell environments, and treat editor extensions as part of your software supply chain.
Source: Ars Technica. This article is PickAI’s own summary and analysis based on the original reporting, prepared with AI assistance under our editorial policy.