Malicious Claude Code VS Code Extension Distributed via Cursor Marketplace Installs Persistent SSH Backdoors
What Happened – On October 29 2026, a tampered copy of Anthropic’s Claude Code extension (version 2.1.313) appeared in Cursor’s VS Code‑compatible extension marketplace. The malicious package was available for roughly 11 hours, from 02:27 a.m. to 13:35 p.m. Pacific Time, and was downloaded by an estimated 5,000 developers.
Researchers at Phorion and OpenSourceMalware discovered that the attackers injected a JavaScript loader at the top of the extension’s extension.js file while leaving the legitimate Claude Code code untouched. The loader executes automatically when the extension loads, requiring no user interaction.
Once executed, the malicious code performs a short reconnaissance phase—collecting the user’s Git email, public IP address, hostname, and environment‑variable names that often contain credentials. It then drops an attacker‑controlled SSH public key (svc‑telemetry) into the user’s ~/.ssh/authorized_keys (or the Windows equivalent) and attempts to enable the OpenSSH server. Persistence is achieved via a macOS LaunchAgent or a Windows scheduled‑task/Startup script that retries the reverse‑tunnel every minute. All telemetry is sent to the attacker‑controlled server 134.209.82[.]225.
The payload contains several coding errors that cripple the backdoor on most systems. On macOS, the script checks the SSH service status with systemsetup -getremotelogin but runs without elevated privileges, causing an “administrator‑access” error and preventing the activation step. On Windows, the installer tries to invoke /bin/sh—a Unix shell that does not exist on standard Windows installations—so the OpenSSH service never starts. Consequently, while the malicious key is installed, the reverse tunnel cannot be used unless the victim already runs an SSH server.
Cursor responded by removing the malicious extension, shutting down its marketplace for a short audit, rotating all marketplace access keys, and coordinating with the hosting provider to takedown the attacker’s command‑and‑control server. The company reported no evidence that any other extension versions or the official Anthropic distribution were compromised.
The incident raises unanswered supply‑chain questions: how the threat actors were able to publish a trojanized package under Anthropic’s brand, and whether Cursor’s or Anthropic’s internal build pipelines were breached.
Why It Matters for Trust & Control Assurance – The episode underscores the need for continuous verification of third‑party software components and evidence‑driven vendor‑risk programs.
Who Is Affected – Software developers using Cursor’s marketplace (primarily JavaScript, Python, and cloud‑native developers); organizations that embed developer workstations into their CI/CD pipelines; any enterprise that trusts extensions from external marketplaces.
Recommended Actions
- Inventory all VS Code extensions installed on developer machines; flag any that originated from the Cursor marketplace during the exposure window.
- Detect the presence of the
svc‑telemetrySSH key or unknown scheduled tasks/LaunchAgents; use endpoint detection tools to hunt for the specific indicator of compromise (IOC) IP 134.209.82.225. - Isolate any affected hosts, rotate SSH keys, and invalidate any sessions that may have been established.
- Rebuild compromised environments from known‑good backups rather than attempting ad‑hoc remediation.
- Review extension‑signing and marketplace vetting processes; enforce a policy that only signed, verified extensions from trusted sources may be installed.
- Engage with your vendor‑risk team to reassess the security posture of third‑party software supply chains and update evidence collection for audit readiness.
Technical Notes –
- Attack vector: malicious VS Code extension distributed via Cursor’s marketplace.
- Malware components: JavaScript loader, SSH key injection, persistence via macOS LaunchAgent or Windows scheduled task, reverse‑tunnel to C2 IP 134.209.82.225.
- Failure points: macOS check runs without admin rights; Windows installer calls
/bin/sh. - Data exfiltrated: system hostname, public IP, Git email, environment‑variable names (no credentials directly stolen).
- CVE: none reported; the issue is a supply‑chain compromise rather than a product vulnerability.