A hooded user works at a laptop as red data trails lead to a server beside a private-key display.
A malicious Claude Code-branded extension in Cursor’s marketplace attempted to turn developer workstations into persistent SSH access points. Microsoft identifies the affected extension as anthropic.claude-code versions 2.1.312 and 2.1.313, distributed on October 29, 2026, between approximately 2:27 a.m. and 1:35 p.m. PDT. Microsoft says its Visual Studio Marketplace and the official npm distribution were unaffected; Anthropic told Microsoft its systems were not compromised.

The distinction matters: this was a tampered distribution, not evidence that Anthropic deliberately shipped a backdoor.

A hooded user works at a laptop as red data trails lead to a server beside a private-key display. What the injected code attempted​

Microsoft’s analysis describes JavaScript executing before normal extension initialization. It collected host information, attempted SSH-key installation and reverse tunneling, created startup persistence, and scheduled reconnaissance reporting. The extension could continue functioning while the malicious code suppressed errors. Collected environment-variable names—not values were included in reporting; that finding does not establish theft of the corresponding secrets.

Two identities served separate purposes: an authorization key marked svc-telemetry enabled potential workstation access, while another key authenticated the outbound tunnel. Successful access remained dependent on privileges and SSH configuration.

Cursor says permission requirements and implementation errors generally blocked SSH access on macOS and Windows unless the editor ran with administrator privileges. Nevertheless, keys, persistence and host reporting could remain. Cursor reports removing the packages, rebuilding its marketplace, rotating keys and arranging the attacker server’s takedown.

An unsuccessful tunnel is not the same as an unaffected workstation.

Persistence survives the extension​

Microsoft identifies these attempted persistence mechanisms outside the extension directory. Their presence requires investigation, not an assumption that execution succeeded.

PlatformStartup mechanism and associated artifacts
WindowsSysMon scheduled task; %USERPROFILE%\.config\smt.cmd and smtk; Startup-folder sysmon.cmd fallback
macOS~/Library/LaunchAgents/com.apple.sysmond.plist; ~/.config/.smt and .smtk
LinuxUser-crontab @reboot entry; ~/.config/.smt and .smtk

These are the reported artifact names, not a license to delete anything resembling system monitoring software. Inspect each startup action before removal.

The Windows SSH detail worth checking​

Microsoft Learn documents an important Windows-specific distinction: OpenSSH normally uses .ssh/authorized_keys beneath the user’s home directory, but administrator-group accounts use %ProgramData%\ssh\administrators_authorized_keys instead.

That explains why Windows investigations should examine both locations rather than treating one empty file as an all-clear. The practical implication is configuration-dependent: discovering a planted key and proving that SSH would accept it are separate questions. Preserve the evidence and assess the server’s effective configuration.

Respond in the right order​

Cursor’s notice supports the following response priorities:

  • Identify exposure: correlate the affected versions and marketplace origin with installation records.
  • Preserve and isolate: retain relevant evidence and isolate hosts showing payload execution.
  • Remove the whole installation: address unauthorized keys, persistence scripts and tunnel processes—not merely the extension.
  • Assess recovery: investigate possible subsequent access and rotate exposed credentials from a trusted system.

Cursor lists 134.209.82[.]225 as the attacker endpoint and publishes separate platform-specific VSIX hashes. Its extension.js hash identifies the payload file, not the complete extension package. Comparing the wrong artifact against a hash can produce a misleading negative result.

The central lesson is straightforward: marketplace containment stops further distribution; endpoint recovery must address what already ran. Cursor explicitly warns that uninstalling the extension alone may leave standalone persistence behind. The server takedown is welcome containment—not a substitute for cleanup and investigation.


Update: Report Estimates Up to 5,000 Developers Potentially Exposed (November 2, 2026)​

According to Windows Report, up to 5,000 developers may have been exposed to the malicious extension. The report does not explain how that estimate was calculated.

The figure is a potential exposure estimate, not a count of confirmed compromises. Windows Report says the investigation has not established how many of those potentially exposed experienced a successful compromise.

For IT teams, the estimate points to a potentially broad investigation, but it cannot establish whether any particular workstation was affected. Administrators should use their own installation and endpoint records to determine the scope within their organizations rather than treating the reported figure as a confirmed victim count.

The report also says the route by which the malicious package was distributed under Anthropic’s name remains unexplained. It does not establish that attackers gained access to either Anthropic’s or Cursor’s systems. The estimated number of potentially exposed developers therefore does not, by itself, resolve how the package entered the marketplace or whether remote access succeeded.

 

References

  1. Inside a malicious Claude Code-branded extension and its persistent SSH backdoor Microsoft 2026-10-31T01:02:57+00:00
  2. Malicious Claude Code Extension Exposes 5,000 Developers to SSH Backdoors Windows Report 2026-11-02T10:15:57+00:00
  3. Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace · Cursor prod.cursor.com