Home / Tools / Claude Code / Extension 2.1.312/2.1.313 in Cursor marketplace

Malicious Claude Code extension (2.1.312 and 2.1.313) in Cursor's marketplace

Correction, Nov 2, 2026: Cursor updated its notice on Oct 30 (11:30 AM PT) to say two tampered versions were served, 2.1.312 and 2.1.313, on macOS and Windows. This page first said only 2.1.313. If you installed or updated the Claude Code extension in Cursor on Oct 29, run the check below whichever version you got. [Cursor]

From about 5:27 AM to 4:35 PM ET on Oct 29, 2026, Cursor's extension marketplace served tampered Claude Code VS Code extension builds, Anthropic.claude-code 2.1.312 and 2.1.313 for macOS and Windows (Cursor added 2.1.312 in an Oct 30 correction), to at most 5,000 users. Cursor and Anthropic say Anthropic didn't build them. It plants an attacker SSH key labeled svc-telemetry, tries to open a persistent reverse SSH tunnel and reports host details; the attacker server is now offline. If you installed or updated the Claude Code extension in Cursor that day, search ~/.ssh/authorized_keys for svc-telemetry, run Cursor's remediation script if it's there (uninstalling isn't enough), rotate credentials that machine could reach, and update to 2.1.314. The npm CLI isn't implicated.

Published · Last updated · Main source: Cursor's security notice. Applies to Cursor users of the Claude Code extension.

Am I affected?

Only if you installed or updated Anthropic.claude-code 2.1.312 or 2.1.313 from Cursor's extension marketplace on macOS or Windows between about 5:27 AM and 4:35 PM ET on Oct 29, 2026 (2:27 AM to 1:35 PM PT). Cursor says that's at most 5,000 users and that it will contact them directly. [Cursor] The clearest sign is the attacker's SSH key, labeled svc-telemetry, in your authorized keys.

macOS:

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found"
ls ~/.cursor/extensions | grep -iE 'anthropic.claude-code-2.1.31[23]'
ls -la ~/Library/LaunchAgents/com.apple.sysmond.plist ~/.config/.smt ~/.config/.smtk 2>/dev/null

Linux (Phorion's analysis covers a Linux path too):

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found"
crontab -l 2>/dev/null | grep -n '.config/.smt'
ls -la ~/.config/.smt ~/.config/.smtk /tmp/.stk_* 2>/dev/null

Windows (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" }
schtasks /query /tn SysMon 2>$null

The first line of each is Cursor's own check. The other lines look for persistence files and tasks listed in Cursor's and Phorion's indicators. [Cursor] [Phorion]

What to do

  1. Update the extension to 2.1.314, which Cursor asks all customers to install. [Cursor on X]
  2. If the svc-telemetry key is there, run Cursor's remediation script (linked from its notice: remediate-macos.sh as your normal user, or remediate-windows.ps1 as Administrator). It removes the extension, persistence, tunnel processes and the key, and exits non-zero if anything remains. Uninstalling the extension alone may leave the persistence running. [Cursor]
  3. Treat the machine as exposed. Cursor says to isolate hosts showing the payload ran, consider rebuilding them, and rotate credentials and sessions reachable from them, from a trusted computer. The beacon only sent environment variable names, but that doesn't rule out later access over the backdoor. [Cursor]
  4. Check whether anyone logged in. Inbound sessions through the tunnel show up in SSH logs as coming from localhost (127.0.0.1 or ::1) with the svc-telemetry key. [Phorion]

What the malicious builds do

Cursor says it worked with the hosting provider to take the attacker's server offline, so the tunnel and beacon no longer reach anyone. It removed the build, shut down and rebuilt its marketplace, rotated its keys, and found no other tampered extensions. [Cursor]

What the registries show

Note: the version numbers alone don't tell you whether you're safe. 2.1.312 is also the number of Anthropic's genuine Oct 27 release; the tampered 2.1.312 and 2.1.313 copies existed only in Cursor's marketplace, and neither was pushed to the Microsoft marketplace, Open VSX or npm. [SecurityWeek] Use the svc-telemetry check instead.

As of Oct 30, 2026, 9:30 AM ET, npm and Open VSX list no 2.1.313: both jump from 2.1.312 (Oct 27) to 2.1.314, published Oct 29 at about 8:13 PM ET on npm and 9:08 PM ET on Open VSX. The GitHub release for 2.1.314 is dated 9:06 PM ET. Some early posts said the bad build was on Open VSX too; OpenSourceMalware says the Open VSX, npm and Microsoft Marketplace versions are not malicious. [OpenSourceMalware]

FAQ

Was Anthropic hacked?

Not as far as anyone has shown. Cursor says the malicious 2.1.312 and 2.1.313 builds were "not developed by Anthropic". Anthropic's Felix Rieseberg told SecurityWeek that a malicious actor used access to Cursor's marketplace to publish a tampered copy that Anthropic didn't build or publish, that Anthropic's official channels are not affected, and that only Cursor users are impacted.

I use the Claude Code CLI from npm, or the extension in regular VS Code. Am I affected?

Cursor's notice covers only the extension installed from Cursor's own marketplace. OpenSourceMalware, which analyzed the sample, says the npm package, the Open VSX extension and the Microsoft VS Code Marketplace extension are not malicious. npm and Open VSX list no 2.1.313 at all; their 2.1.312 is Anthropic's real Oct 27 release, not the tampered Cursor copy with the same number. Running the svc-telemetry check below takes a second either way.

I removed the extension. Am I safe?

Not necessarily. Cursor says uninstalling may not be enough because the payload drops standalone persistence scripts (a LaunchAgent on macOS, a cron entry on Linux, a scheduled task or Startup script on Windows) that keep running. Use Cursor's remediation script, which exits non-zero if anything remains.

Could the attacker get into my machine?

On most Macs and Windows PCs, probably not through the tunnel: turning on the local SSH server needs admin rights the extension usually doesn't have, so Cursor says that step fails. It still adds the attacker's SSH key, installs persistence and sends host details, including the names (not values) of environment variables that look like keys or tokens. If SSH was already on, or you turn it on later, the planted key would work, so remove it either way.

Does this change PickOneAI's picks?

No. Security notes never change scores or picks. Claude Code remains our terminal coding agent pick and Cursor our AI code editor pick; both pages now carry a dated note about this incident.

Does this change our picks?

No. Scores come from a published formula that doesn't factor in security incidents. Claude Code stays our terminal coding agent pick (99.1/100) and Cursor our AI code editor pick (79.9/100). All security notes: /security/.

Sources

  1. Cursor: Security notice, malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) (Oct 29, 2026; updated Oct 30, 11:30 AM PT)
  2. SecurityWeek: Malicious Claude Code Extension Served in Cursor Supply Chain Attack (Nov 2, 2026; includes Anthropic's statement)
  3. Cursor on X (Oct 30, 2026, 3:46 AM ET)
  4. Phorion: Official Claude Code Extension Compromise (Oct 30, 2026)
  5. OpenSourceMalware: Trojanized Claude Code extension plants an SSH backdoor
  6. npm version history for @anthropic-ai/claude-code and Open VSX listing
  7. Claude Code v2.1.314 release on GitHub

Sources checked Oct 30, 2026, about 9:30 AM ET, and re-checked Nov 2, 2026, about 9:45 AM ET. We'll update this page when Anthropic or Cursor publish more. Spotted an error? Tell us.

The weekly pick sheet

Once a week: what shipped, which picks changed, and why. Free.

  • Pick changes, with the scores behind them
  • The week's notable releases, each linked to its source
  • No paid placement. Unsubscribe in one click.