News

Malicious Claude Code extension distributed through Cursor marketplace with SSH backdoors

The Back Room Tech Staff · Edited by Aseem Kishore
11 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

On October 29, 2026, Cursor’s own extension marketplace served a tampered package posing as Anthropic’s Claude Code extension. It was published as anthropic.claude-code versions 2.1.312 and 2.1.313 for Windows and macOS, and it tried to plant SSH backdoors on developer machines. It was live for about 11 hours, from roughly 2:27 a.m. to 1:35 p.m. Pacific Time. Then Cursor pulled it (Cursor security notice; BleepingComputer).

The short answer: You’re only in scope if you installed or auto-updated Claude Code inside Cursor to 2.1.312 or 2.1.313 during that window. Cursor and Microsoft Threat Intelligence say Microsoft’s Visual Studio Marketplace, the npm @anthropic-ai/claude-code package, and Anthropic’s own systems weren’t affected by this specific incident.

That finding is specific to this incident, not a general guarantee about those channels’ security going forward.

If you were in scope, start with Cursor’s official validation and cleanup script, included in its security notice — uninstalling the extension alone won’t remove the artifacts the backdoor leaves behind.

What Happened: Claude Code Extension Malware on the Cursor Marketplace

Cursor says Anthropic didn’t build the package. Someone uploaded it under Anthropic’s extension identifier with a JavaScript loader inside. The loader ran as soon as the editor loaded the extension module. A victim didn’t need to run a Claude Code command or touch the extension at all (Cursor; Microsoft Security blog, October 30, 2026).

Microsoft says the package was never published on the Visual Studio Marketplace or in npm’s @anthropic-ai/claude-code package, and that Anthropic confirmed its own systems were not compromised. VS Code users who never used Cursor’s marketplace aren’t part of this incident.

Cursor's public "Claude Code extension security notice" blog post, showing the incident summary with the affected versions 2.1.312 and 2.1.313 and the remediation section visible

Timeline, October 29, 2026

Time (PT, approximate)EventSource
~2:27 a.m.Malicious anthropic.claude-code 2.1.312/2.1.313 available on Cursor’s marketplaceCursor, BleepingComputer
~1:35 p.m.Package removedSame
After removalCursor shuts down the marketplace, audits other listed extensions, rotates marketplace signing keys, rebuilds the marketplace, and restores serviceCursor
October 30Microsoft Threat Intelligence publishes its technical analysis of the loaderMicrosoft

Nobody has explained how the attacker got a package published under Anthropic’s identity. It could have been an account takeover, weak publisher checks, or something else. Treat that question as open.

BleepingComputer’s report also cites analysis from a firm called Phorion. The cited sources don’t show whether Phorion, Cursor, or Microsoft found the package first. So we aren’t assigning discovery credit.

What the loader tried to do

According to Microsoft’s writeup and Cursor’s notice, the loader had four jobs:

  • Fingerprint the host. It collected the hostname, username, OS, architecture, home directory path, working directories, Git email, public IP address, and the names of environment variables. That’s recon data for follow-on targeting.
  • Inject an SSH key. It appended an attacker-controlled public key, labeled svc-telemetry, to the SSH authorized keys file (~/.ssh/authorized_keys; on Windows, also checked at C:\ProgramData\ssh\administrators_authorized_keys). If that worked, the attacker could log in over SSH without a password.
  • Open a reverse tunnel. It tried to enable local SSH and open a reverse SSH tunnel to an attacker server. It retried about every 60 seconds. A reverse tunnel goes outbound from your machine, so your inbound firewall and NAT never see a connection to block.
  • Persist. It tried to survive reboots with a LaunchAgent on macOS, or a scheduled task or startup script on Windows.

Cursor says the malicious package builds were for Windows and macOS. Microsoft’s analysis notes the loader code also contains a Linux persistence path (a user-crontab @reboot entry), but neither source reports a Linux build of the package in this incident.

What limited the damage

Cursor says turning on the local SSH service requires admin rights, which the malicious extension doesn’t have on most macOS and Windows hosts. Outside unusual cases where Cursor was started with administrator privileges, errors in the malicious code made that step fail, so the attacker couldn’t log in through the tunnel on those hosts. Cursor also worked with the hosting provider to take the attacker’s server offline.

That still leaves cleanup to do. On affected machines, Cursor says the extension added the attacker’s SSH key, installed persistence, and sent host details to the attacker. The persistence scripts keep retrying, and the injected key stays in place until you remove it.

Exposed versus compromised

BleepingComputer estimated that up to 5,000 developers were exposed. That’s a download and exposure estimate. It doesn’t count confirmed compromises. No source gives a number of machines where the backdoor fully worked. Given the failures above, the number of machines an attacker could actually reach is likely much lower.

Who This Affects

  • In scope: Cursor users who installed or auto-updated Claude Code from Cursor’s marketplace to 2.1.312 or 2.1.313 during the October 29 window.
  • Not in scope for this incident (per Cursor and Microsoft): VS Code users pulling from Microsoft’s Visual Studio Marketplace, anyone who installed the CLI from npm (@anthropic-ai/claude-code), and Anthropic’s infrastructure.

Does your team run Cursor with extension auto-update on? Then assume any machine that had Cursor open that day may have pulled the update. Auto-update is how an 11-hour window turns into thousands of exposed installs.

What to Do Next: Start With Cursor’s Official Check

You’re in scope if you installed or updated to anthropic.claude-code 2.1.312 or 2.1.313 from Cursor’s marketplace on macOS or Windows between about 2:27 a.m. and 1:35 p.m. PT on October 29, 2026. Extension auto-update can do that without you noticing, so check rather than rely on memory.

1. Confirm which Claude Code version Cursor installed

In Cursor, open the Extensions view, find Claude Code, and check the version number. Extension folder names on disk can also show versions, but paths vary by platform, profile, and install type, so treat a folder listing as a hint, not proof. Your extension-installation telemetry, if you have it, is the better record for a fleet.

2. Run Cursor’s check for the injected key

The malicious extension appends the attacker’s public key, labeled svc-telemetry, to SSH authorized keys. These are the checks published in Cursor’s notice.

On macOS:

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

On Windows, in PowerShell:

$files = "$HOME\.ssh\authorized_keys", "C:\ProgramData\ssh\administrators_authorized_keys" | Where-Object { Test-Path $_ } 
if ($files -and (Select-String svc-telemetry $files)) { "svc-telemetry key found" } else { "No key found; machine not impacted" }

If the key is found, the machine is impacted. A negative result covers this known indicator for the account you ran it as. On shared or multi-user machines, run it for each account. Still review the persistence artifacts and telemetry below, because a clean authorized_keys file alone doesn’t prove nothing else was left behind.

Warning: Before you edit authorized_keys on a machine you manage remotely, make sure you have another way in, such as console access or a second session. Deleting the wrong line can lock you out.

3. Look for the known persistence artifacts

Cursor and Microsoft publish specific file and startup names, so you don’t have to guess by modification date:

PlatformPersistenceFiles
macOSLaunchAgent ~/Library/LaunchAgents/com.apple.sysmond.plist (label com.apple.sysmond)~/.config/.smt, ~/.config/.smtk, $TMPDIR/.stk_<10 hex>
WindowsScheduled task SysMon (attempts to run as SYSTEM); fallback sysmon.cmd in %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup%USERPROFILE%\.config\smt.cmd, %USERPROFILE%\.config\smtk, %TEMP%\.stk_<10 hex>

The names imitate monitoring components. Microsoft advises inspecting each startup object’s configured action before removing it, since a name alone doesn’t distinguish it from legitimate software.

4. Check network telemetry for the attacker endpoint

Cursor lists the attacker endpoint as 134[.]209[.]82[.]225 (defanged), with a reverse SSH tunnel on TCP 22 and an HTTP beacon on port 8099. Search endpoint and network logs for connections to it since October 29. A one-off look at current connections, such as lsof -i -n -P | grep ssh on a Mac, can miss short-lived connections, so historical telemetry matters more. Cursor notes that lookups to ifconfig.me or api.ipify.org alone are not an indicator.

5. Remediate with Cursor’s scripts

If you find the key or any artifact, isolate the host, then run Cursor’s remediation script for your platform from its notice. Per Cursor, remediate-macos.sh runs as the affected user (not root), and remediate-windows.ps1 runs from an elevated PowerShell. The scripts remove the extension, the persistence mechanisms, running tunnel processes and the attacker’s key, and exit non-zero if anything remains.

Uninstalling the extension alone isn’t enough, because the payload drops standalone persistence scripts that keep running. Microsoft also recommends preserving evidence before removal if you need to investigate.

If you find anything, or can’t rule it out

Rotate SSH keys, credentials, and sessions the machine could reach, from a separate, trusted device. The loader collected environment variable names, not values. Cursor says that limited collection doesn’t rule out later credential access over the backdoor, so rotation is the safe call on an impacted host. Assess whether to rebuild it, and confirm the tunnel and startup artifacts don’t return after a restart.

If you’re re-issuing SSH keys anyway, consider moving developer keys onto a hardware security key such as a YubiKey. A key that lives on hardware can’t be copied off a compromised laptop.

How It Stacks Up

The sources don’t compare admin cost, migration effort, or security outcomes between Cursor and other platforms. They do support a comparison of distribution channels for this one incident:

ChannelAffected by this incident?Source
Cursor’s VS Code Extension Marketplace (anthropic.claude-code 2.1.312/2.1.313)YesCursor
Microsoft Visual Studio Marketplace (VS Code)No evidence it was affectedMicrosoft
npm @anthropic-ai/claude-codeNo evidence it was affectedMicrosoft
Anthropic’s own systemsNo evidence they were affectedCursor, Microsoft

Read this table narrowly. It shows the malicious package wasn’t on Microsoft’s marketplace. It doesn’t prove Microsoft’s publisher checks are stronger in general. Nobody has published a benchmark of marketplace controls. The fair takeaway: forks like Cursor run their own extension distribution. That channel is its own trust boundary, and you need to judge it on its own.

The Reaction

The public record is Cursor’s notice, Microsoft’s analysis, and BleepingComputer’s report. This article relies on those three sources.

Our Take

Verdict: Pilot. Don’t drop Cursor, but hold on unmanaged extension auto-updates.

Cursor’s response was solid. It removed the package the same day and shut the marketplace down. Then it audited other listings, rotated keys, and rebuilt before restoring service. The attack was also clumsy: per Cursor, errors and missing admin rights blocked the SSH login path on most hosts.

Neither fact changes the core lesson. One spoofed listing ran code on load, with no user action, inside a tool that sits next to your SSH keys and cloud credentials. Cursor hasn’t explained how the attacker published under Anthropic’s identity. Until it does, you can’t judge whether the hole is closed or just patched.

What that means for an IT shop:

  • Existing Cursor fleets: Run Cursor’s check on every Mac and Windows machine that had Cursor open on October 29, and search fleet telemetry for the published indicators.
  • Extension policy: Turn off auto-update for AI-coding extensions, or pin versions and approve updates after a short delay. An 11-hour window does very little damage to a fleet that waits a day before updating.
  • New rollouts: Pilot Cursor with a small group under that pinned-extension policy. Wait for Cursor to publish the root cause before you expand.
  • Workstation hygiene: Keep local SSH servers off on dev machines unless someone needs them, and don’t run editors with admin rights. Audit authorized_keys as part of normal endpoint checks. For broader remote-access hardening, see our guide to defending against Remote Desktop Protocol attacks.

The cost here is mostly staff time for audits, key rotation, and maybe rebuilding machines that show artifacts. Policy changes cost almost nothing. They also protect you from the next spoofed extension, whatever editor it targets.

Wrapping Up

This incident’s exposure path is narrow: Claude Code 2.1.312 or 2.1.313 installed or updated from Cursor’s marketplace on macOS or Windows during the October 29, 2026 window. But auto-update could have pulled it while Cursor was simply open, so don’t treat “I didn’t run Claude Code” as proof. Verify the installed version and check endpoint telemetry.

If you were in scope, run Cursor’s svc-telemetry check, look for the named persistence artifacts, and use Cursor’s remediation script if anything turns up.

If anything looks off, rotate keys from a clean device. The attacker’s bugs probably saved a lot of people, but “probably” is a bad reason to skip the check.

StepActionApplies To
1Confirm Claude Code version in CursorAnyone running Cursor on Oct 29
2Run Cursor’s svc-telemetry key checkMac and Windows users in scope
3Look for the named LaunchAgent / SysMon task and .smt filesMac and Windows users in scope
4Search telemetry for the attacker endpointIT teams and anyone in scope
5Run Cursor’s remediation script; isolate firstAny machine with the key or artifacts
6Rotate SSH keys and credentials from a trusted device; rebuild if unsureAny impacted machine
7Pin or delay AI-extension updatesIT teams managing Cursor fleets