Claude Code Extension on Cursor Plants SSH Backdoor

Red | Attack
Claude Code Extension on Cursor Plants SSH Backdoor | Hive Pro Threat Advisory
Date of publication
November 25, 2026
Admiralty code
A1
TA number
TA2026354
First Seen
October 29, 2026
Malware
SSH Backdoor
Targeted Platforms
Windows, macOS, Linux (Linux code paths present; no Linux build served)
Targeted Products
Cursor IDE, Claude Code extension (anthropic.claude-code) versions 2.1.312 and 2.1.313 served through the Cursor extension marketplace

Summary

A trojanized build of the Claude Code extension, carrying Anthropic's legitimate extension identifier, was placed on the Cursor extension marketplace with a stolen credential and served on October 29, 2026 for roughly eleven hours, reaching up to 5,000 users. A 66-line JavaScript loader added to the extension's main script runs silently on extension load, profiles the host, adds an attacker-controlled SSH key to the user's authorized keys, attempts to enable the local SSH service, opens a persistent reverse SSH tunnel to attacker infrastructure, and establishes OS-specific persistence disguised as system monitoring components.

Uninstalling or updating the Claude Code extension does not remove the SSH backdoor.


Attack Details

#1

A supply chain compromise of the Cursor extension marketplace, not a Claude Code vulnerability. On October 29, 2026 (09:27 to 20:35 UTC), the marketplace served tampered builds under the legitimate anthropic.claude-code identifier as versions 2.1.312 and 2.1.313 for macOS and Windows, reaching up to 5,000 users through normal installs and auto-updates.

#2

The attacker gained initial access through a Cursor-issued key exposed by Fireworks AI, then used a credential found in Cursor's internal data to place the tampered copies directly on the cache serving Cursor's marketplace. Anthropic did not build the package, and the VS Code Marketplace, Open VSX, and npm never delivered a malicious version.

#3

An unobfuscated 66-line JavaScript loader prepended to extension.js runs when the extension loads, before the legitimate code, and suppresses errors so the extension keeps working normally.

#4

The loader appends an embedded Ed25519 key labeled svc-telemetry to authorized_keys, then tries to enable SSH: Remote Login via sudo -n systemsetup on macOS, sshd via systemctl on Linux, and on Windows, PowerShell installs and starts OpenSSH Server.

#5

A second embedded key is decoded to a hidden temp file (.stk_*) and used to run ssh -N -R '*:0:localhost:22' as user tunnel to 134[.]209[.]82[.]225, forwarding a remote port back to the host's port 22. Host-key checks are disabled, autossh or a hidden PowerShell loop keeps it alive, and it reconnects every 60 seconds.

#6

Persistence imitates monitoring components: on macOS, ~/.config/.smt and .smtk plus a com.apple.sysmond LaunchAgent; on Linux, the same files and an @reboot cron entry; on Windows, smt.cmd and smtk plus a SysMon task running as SYSTEM, with sysmon.cmd in the Startup folder as fallback.

#7

The loader looks up the public IP via api[.]ipify[.]org and ifconfig[.]me and collects the hostname, username, OS, architecture, directories, Git email, and names (not values) of up to 40 environment variables matching KEY, TOKEN, SECRET, PASS, AWS, or GCP. It sends this as a JSON beacon over plain HTTP to hxxp[:]//134[.]209[.]82[.]225[:]8099/beacon.

#8

The backdoor gives interactive access to developer workstations that often hold repository, CI/CD, and cloud credentials. No second stage, lateral movement, or follow-on access has been reported, and the SSH step failed on most hosts without admin rights. The key, persistence, and beacon still survive extension removal, so affected hosts should be treated as compromised.


Recommendations

  1. 01

    Enforce Extension Allowlisting and Update Cooldowns

    Limit Cursor and other VS Code-compatible editors to approved extensions and pinned versions, and delay auto-updates so new builds are vetted before they reach developers.

  2. 02

    Verify Extension Sources and Integrity

    Treat IDE marketplaces and their mirrors as third-party suppliers, compare installed extension hashes against the publisher's official release, and alert on versions that exist in only one marketplace.

  3. 03

    Restrict SSH and Local Admin Rights on Developer Workstations

    Keep sshd and macOS Remote Login disabled where inbound SSH is not needed, and remove standing administrator rights so an extension cannot turn them on.

  4. 04

    Detect Editor-Spawned Tunneling and Persistence

    Alert when Cursor or VS Code processes spawn ssh, autossh, schtasks, launchctl, or crontab, and on long-running ssh sessions using -R forwarding with host-key checks disabled.

  5. 05

    Block the Attacker Infrastructure

    Block 134[.]209[.]82[.]225 at the perimeter and on endpoints, and review network logs for outbound SSH or port 8099 traffic to it since October 29, 2026.

  6. 06

    Identify, Isolate, and Preserve Affected Hosts

    Find endpoints that installed anthropic.claude-code 2.1.312 or 2.1.313 from Cursor on October 29, 2026, disconnect them, and capture the extension, keys, and persistence files before cleanup.

  7. 07

    Remove the Backdoor, Not Just the Extension

    Delete the svc-telemetry key, the .smt and .smtk files, the com.apple.sysmond LaunchAgent, the SysMon task or sysmon.cmd, and @reboot cron entries, stop tunnel processes, then reinstall a clean release (2.1.314 or later) or rebuild the host.

  8. 08

    Rotate Credentials and Review Downstream Access

    From a clean system, rotate cloud, Git, CI/CD, and SSH credentials reachable from affected hosts, and review cloud, repository, and pipeline logs for follow-on activity.


Indicators of Compromise (IoCs)

TypeValue
SHA256ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf157e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278fcbb327e38e61c4fec795e0d0591f52cd1014b813d20a5912104953c3a17c3643de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd08180402fdcad8799285fd93044976973ca000da7995fb93363f819bb8e4f84ee6c6786ec90cbd45949695bd7805c9fbb26cfc91bc5fc897de0183d9bcb9cb21731
MD5f49bcd657ef1e626e85ce858958c1769e0d64d53e802a0217ba6f0e656ed2f20bd3b71ddf3d0cc3af76249afd2c0eda134e491161e056c9b899a79b602ac73b97838a3be2ca0ff08c1bdb160ef516d39
IPv4134[.]209[.]82[.]225
IPv4:Port134[.]209[.]82[.]225[:]22134[.]209[.]82[.]225[:]8099
URLhxxp[:]//134[.]209[.]82[.]225[:]8099/beacon
Extension Versionanthropic.claude-code@2.1.313anthropic.claude-code@2.1.312
SSH Public Keyssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry
SSH Key FingerprintSHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htkSHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ
SSH Key Commentsvc-telemetrysvc-telemetry-tun
SSH Tunnel Destinationtunnel[@]134[.]209[.]82[.]225
Filename.smt.smtksmt.cmdsmtksysmon.cmdcom.apple.sysmond.plist.stk_[0-9a-f]{10}
File Path~/.config/.smt~/.config/.smtk~/Library/LaunchAgents/com.apple.sysmond.plist$TMPDIR/.stk_*/tmp/.stk_*%TEMP%\.stk_*%USERPROFILE%\.config\smt.cmd%USERPROFILE%\.config\smtk%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd
Scheduled TaskSysMon
LaunchAgent Labelcom.apple.sysmond
Cron Entry@reboot /bin/sh "<HOME>/.config/.smt"
Command Linessh -N -R '*:0:localhost:22'schtasks /create /tn SysMon/bin/sh ~/.config/.smt

Potential MITRE ATT&CK TTPs

Initial Access
T1195Supply Chain Compromise
T1195.002Compromise Software Supply Chain
Execution
T1059Command and Scripting Interpreter
T1059.007JavaScript
T1059.004Unix Shell
T1059.001PowerShell
Persistence
T1098Account Manipulation
T1098.004SSH Authorized Keys
T1543Create or Modify System Process
T1543.001Launch Agent
T1053Scheduled Task/Job
T1053.003Cron
T1053.005Scheduled Task
T1547Boot or Logon Autostart Execution
T1547.001Registry Run Keys / Startup Folder
Privilege Escalation
T1548Abuse Elevation Control Mechanism
T1548.003Sudo and Sudo Caching
Defense Evasion
T1036Masquerading
T1036.004Masquerade Task or Service
T1564Hide Artifacts
T1564.001Hidden Files and Directories
Discovery
T1082System Information Discovery
T1033System Owner/User Discovery
T1016System Network Configuration Discovery
Command and Control
T1572Protocol Tunneling
T1071Application Layer Protocol
T1071.001Web Protocols
Exfiltration
T1041Exfiltration Over C2 Channel

References

What Next?

At Hive Pro, it is our mission to detect the most likely threats to your organization and to help you prevent them from happening.

Reduce real exposure. Not just vulnerability volume.