Anthropic VS Code Extension Program, Backdoor Distributed for 12 Hours on Cursor Marketplace

Anthropic's official VS Code extension program was distributed on the Cursor Marketplace as version 2.1.313, embedding a backdoor in the systems of up to 5,000 developers. The malicious code performed SSH key injection, reverse shell tunneling, host reconnaissance, and beacon functionality, while some persistence features failed to operate due to bugs. Cursor temporarily closed the marketplace and rotated keys, but Anthropic has not yet issued an official warning to customers. The impact timeframe was approximately 12 hours from Thursday 5:27 AM to 4:35 PM (ET).

The Story of the Supply Chain Attack: Malicious Distribution via Official Channels

The VS Code extension program version 2.1.313, distributed through Anthropic's official account, infiltrated developer environments via the Cursor Marketplace. Luke Roberts, CTO and co-founder of security firm Phorion, described it to Ars Technica as a "supply chain compromise where attackers accessed the official distribution channel." The malicious version replaced the normal version 2.1.312, and since the Cursor extension is set to auto-update by default, many cases were installed without user intervention.

According to independent researcher Kevin Beaumont, Anthropic distributed version 2.1.314 a few hours later, but neither company has disclosed how the attacker gained account privileges.

VersionStatusDistribution Time (ET)
2.1.312Normal VersionBefore Malicious Version Distribution
2.1.313Malicious Version (Including Backdoor)Thursday 05:27 ~ 16:35
2.1.314Patch VersionA Few Hours After Malicious Version Discovery

Technical Analysis of the Backdoor: SSH Tunnels and Reconnaissance Features

According to analyses released by Phorion and Cursor, the malicious extension ran with Cursor IDE privileges, allowing access to local files, source code, and development tools. Key features include:

"It appears that the variable name theft was aimed at quickly identifying cloud credentials and API tokens to prioritize subsequent attacks" — Phorion Analysis

However, there were bugs in the malicious code for both Windows and macOS, causing failures in adding SSH keys and activating services if Cursor was not started with administrative privileges. Phorion assessed it as "a significant threat despite coding flaws that prevented persistence and reconnaissance beacons from being installed."

  1. Account Compromise
  2. Malicious Version 2.1.313 Distribution
  3. Developer Machines Infected via Auto Update
  4. Information Collection·SSH Backdoor Installation·Beacon Communication
  5. Data Exfiltration to C2 Server

Current Response Status and Remaining Challenges: Lack of Transparency and User Protection

After recognizing the incident, Cursor collaborated with cloud providers to block access to the C2 server, closed the marketplace to perform key rotation and access control audits, and then resumed operations. However, Anthropic has not yet issued an official notice to customers, and both companies have not explained the circumstances of the supply chain compromise. They did not respond to inquiries from Ars Technica.

Users who installed or updated the Anthropic extension during the impact timeframe (Thursday 05:27~16:35 ET) should be considered infected, and recent installers are also advised to check.

Compromise Indicators Developers Should Immediately Check

The IOC (Indicators of Compromise) released by Cursor and Phorion includes:

Developers should immediately verify extension version, check SSH settings, and review network logs for communication on port 8099.

Verified figures

Our take

The compromise of the official distribution channel, exposing the environments of thousands of developers directly, significantly undermines the trust in the AI development tools ecosystem. Anthropic's silence violates responsible disclosure principles, and corporate clients must enforce vendor incident response transparency as a contractual condition.

Open questions

Source

Back to catalog