Malicious Claude Code Extension Infects 5,000 Developer Machines via Cursor Marketplace

3 min read
Source: WIRED
Malicious Claude Code Extension Infects 5,000 Developer Machines via Cursor Marketplace
Photo: WIRED
TL;DR

A tampered version of the Anthropic Claude Code extension was distributed through the Cursor IDE marketplace for approximately 11 hours on October 29, 2026, affecting up to 5,000 users. The malicious package, versions 2.1.312 and 2.1.313, contained a JavaScript loader designed to install an SSH backdoor, enable reverse tunneling, and collect host reconnaissance data. Although the malware attempted to establish persistence on Windows, macOS, and Linux, coding flaws and permission restrictions prevented full remote access on most devices. Cursor removed the extension and published remediation steps, while Anthropic confirmed its own systems were not compromised. The incident remains a significant security concern due to the potential exposure of cloud credentials and API tokens, even though the backdoor largely failed to execute.

Key points

  • The malicious extension was live in the Cursor marketplace from 2:27 AM to 1:35 PM Pacific Time on October 29, 2026.
  • Up to 5,000 users downloaded or auto-updated to the compromised versions, which included an SSH backdoor and persistence mechanisms.
  • The malware collected host information, including environment variable names, to identify potential cloud credentials and API tokens.
  • Flaws in the malware code and lack of administrator privileges prevented the SSH tunnel from successfully establishing on most macOS and Windows systems.
  • Cursor shut down its marketplace briefly to rotate keys and audit access controls, while Anthropic confirmed its official channels were unaffected.

Background

This incident follows a series of supply chain attacks targeting developer tools and AI infrastructure in late October 2026. Earlier in the month, a leaked master key enabled attackers to hijack the LiteLLM release pipeline, distributing malicious Python packages that stole credentials. Additionally, GitHub recently deployed an install-time firewall for npm packages to mitigate similar risks from automated agents. These events highlight a growing trend of attackers compromising trusted distribution channels to access sensitive developer environments.

How outlets are covering it

Wired and Ars Technica both emphasize the severity of the supply chain compromise, noting that the malicious extension was published through Anthropic’s official account on Cursor. However, Ars Technica highlights that Anthropic has not yet issued a public warning to customers, raising questions about transparency. Microsoft’s technical analysis provides a detailed breakdown of the attack chain, confirming that the malware attempted to install SSH keys and reverse tunnels but largely failed due to coding errors and permission issues. Phorion, a security firm, noted that while the backdoor failed to execute fully, the collection of environment variable names still posed a significant risk for follow-up attacks targeting cloud credentials. All sources agree that the incident was limited to the Cursor marketplace and did not involve a compromise of Anthropic’s internal systems.

Why it matters

This incident underscores the risks associated with third-party extension marketplaces in integrated development environments. Even with failed execution, the potential for credential theft and network access remains a critical threat for developers. The incident also highlights the need for stricter controls on extension publishing and auto-update mechanisms to prevent similar supply chain attacks in the future.

What to watch

Developers who installed or updated the Claude Code extension from Cursor between 5:27 AM ET and 4:35 PM ET on October 29, 2026, should review their systems for malicious artifacts and rotate credentials if exposure is suspected. Organizations should monitor for the listed indicators of compromise and ensure that extension installation policies are hardened to prevent unauthorized updates. Further investigation into how the attackers gained access to the Cursor marketplace remains ongoing.

Share this article

Want the full story? Read the original reporting

Read on WIRED