Trojanized Claude Code Extension Distributed Through Cursor Marketplace

· Original article ↗

Summary

A trojanized Claude Code 2.1.313 extension was available in Cursor’s marketplace on Oct. 29, 2026; up to 5,000 users may have installed it. Its loader collected host data, added an SSH key, installed persistence and attempted a reverse tunnel.

Key points

  • Cursor said the malicious version 2.1.313 was available from approximately 2:27 a.m. to 1:35 p.m. PT on Oct. 29, 2026; up to 5,000 users may have installed it.
  • A 66-line loader ran automatically when the extension loaded, added an adversary-controlled SSH key, installed OS-specific persistence, and attempted to establish a reverse SSH tunnel.
  • The loader collected host and development-environment information, including usernames, hostnames, working directories, Git configuration, public IP addresses, and names of environment variables commonly associated with credentials and cloud services.
  • Errors reportedly prevent key parts of the SSH backdoor from working on most Windows and macOS systems unless Cursor has administrator privileges. Reports did not indicate successful follow-on activity through the tunnel, and no actor was publicly identified.
  • Cursor removed the package, temporarily took its marketplace offline, rotated keys, and reported no evidence that other extensions were tampered with. The article reports no evidence that the Microsoft Visual Studio Code Marketplace, Open VSX, or npm distributed a malicious version.
  • Removing or updating the extension does not remove SSH keys or persistence already written to disk. The article recommends investigating affected systems, removing artifacts, blocking related infrastructure, rotating accessible credentials, and upgrading after remediation.

Article Details

Attack Vectors
  • A trojanized Claude Code extension version 2.1.313 was distributed through the Cursor marketplace on October 29, 2026, under Anthropic’s legitimate extension identifier.
  • The injected loader executes automatically when the extension loads, without further user interaction.
  • The loader added an adversary-controlled SSH key, attempted to enable SSH access and establish a reverse SSH tunnel, and installed platform-specific persistence. The SSH backdoor’s functionality was limited on most Windows and macOS systems unless Cursor ran with administrator privileges.
Defensive Notes
  • Identify systems that installed or updated Claude Code version 2.1.313 from the Cursor marketplace between approximately 2:27am and 1:35pm PT on October 29, 2026; use installation and update logs to scope affected hosts.
  • Isolate affected systems and preserve forensic evidence. Review for the svc-telemetry SSH key, connections to 134.209.82[.]225 on ports 22 and 8099, scheduled tasks such as SysMon, the com.apple.sysmond LaunchAgent, and cron-based persistence.
  • Remove identified SSH keys, persistence mechanisms, and tunnel processes; block communication with the published infrastructure and investigate connected systems.
  • Rotate cloud credentials, access tokens, repository credentials, and API keys accessible from affected hosts. Upgrading or uninstalling the extension does not remove artifacts already written to disk.
  • After remediation, upgrade affected installations to version 2.1.314 or later and monitor cloud environments, repositories, deployment systems, and administrative tooling for follow-on access.

Indicators of compromise

TypeIndicatorContext
IPV4134[.]209[.]82[.]225Published malicious infrastructure; the article advises investigating connections to this address on ports 22 and 8099.

MITRE ATT&CK

Vendors

Products

Related Articles