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.
| Version | Status | Distribution Time (ET) |
|---|---|---|
| 2.1.312 | Normal Version | Before Malicious Version Distribution |
| 2.1.313 | Malicious Version (Including Backdoor) | Thursday 05:27 ~ 16:35 |
| 2.1.314 | Patch Version | A 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:
- Host and User Information Collection: Hostname, username, OS, architecture, home directory, environment variable names, working directory, Git email, public IP
- SSH Backdoor Installation: Adding attacker-controlled SSH keys to `authorized_keys`, activating local SSH service, initiating reverse SSH tunnel
- Persistence Attempts: macOS `LaunchAgent`, Windows scheduled tasks (attempting SYSTEM privileges), and fallback startup scripts
- Beacon Communication: Sending host details and backdoor status via HTTP POST to the `/beacon` endpoint (port 8099), retrying approximately every 60 seconds
"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."
- Account Compromise
- Malicious Version 2.1.313 Distribution
- Developer Machines Infected via Auto Update
- Information Collection·SSH Backdoor Installation·Beacon Communication
- 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:
- Malicious version SHA-256 hash
- C2 server IP addresses and domains
- Beacon communication port 8099
- Suspicious SSH keys added to `authorized_keys`
- Traces of `LaunchAgent` (macOS) or scheduled tasks (Windows) creation
Developers should immediately verify extension version, check SSH settings, and review network logs for communication on port 8099.