Malicious Claude Code Extension on Cursor Planted SSH Backdoors
A malicious version of the Claude Code extension was distributed through Cursor’s marketplace for approximately 11 hours on October 29, exposing up to 5,000 developers. The compromised package, version 2.1.313, was live between 2:27 a.m. and 1:35 p.m. Pacific Time and automatically executed malicious code upon installation, collecting system information and Git email addresses, adding attacker-controlled SSH keys, installing persistence mechanisms via macOS LaunchAgent or Windows scheduled tasks, and transmitting reconnaissance data to a server at 134.209.82.225.
Researchers at Phorion and OpenSourceMalware identified the attack relied on a malicious JavaScript loader in the extension.js file. Coding errors severely limited its success: on macOS, the malware failed to enable SSH due to running without elevated privileges; on Windows, it attempted SSH setup through /bin/sh, a Unix shell unavailable on Windows. These failures prevented remote access in most cases, but the malware still collected and transmitted system information including usernames, hostnames, public IP addresses, and environment variable names associated with credentials.
Cursor responded by removing the extension, temporarily shutting down its entire marketplace to audit other packages, rotating access keys, and taking the attacker’s server offline. The company found no evidence that other extension versions or official distribution channels were compromised. However, the attack raises unanswered questions about how threat actors published code under Anthropic’s name on Cursor’s marketplace and whether either Cursor or Anthropic experienced a system compromise.
Read the full article
Continue reading at BleepingComputer →This is an AI-generated summary. Read the original for the full story.