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
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.
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.
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.
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.
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.
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.
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.
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
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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)
| Type | Value |
|---|---|
| SHA256 | ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf157e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278fcbb327e38e61c4fec795e0d0591f52cd1014b813d20a5912104953c3a17c3643de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd08180402fdcad8799285fd93044976973ca000da7995fb93363f819bb8e4f84ee6c6786ec90cbd45949695bd7805c9fbb26cfc91bc5fc897de0183d9bcb9cb21731 |
| MD5 | f49bcd657ef1e626e85ce858958c1769e0d64d53e802a0217ba6f0e656ed2f20bd3b71ddf3d0cc3af76249afd2c0eda134e491161e056c9b899a79b602ac73b97838a3be2ca0ff08c1bdb160ef516d39 |
| IPv4 | 134[.]209[.]82[.]225 |
| IPv4:Port | 134[.]209[.]82[.]225[:]22134[.]209[.]82[.]225[:]8099 |
| URL | hxxp[:]//134[.]209[.]82[.]225[:]8099/beacon |
| Extension Version | anthropic.claude-code@2.1.313anthropic.claude-code@2.1.312 |
| SSH Public Key | ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry |
| SSH Key Fingerprint | SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htkSHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ |
| SSH Key Comment | svc-telemetrysvc-telemetry-tun |
| SSH Tunnel Destination | tunnel[@]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 Task | SysMon |
| LaunchAgent Label | com.apple.sysmond |
| Cron Entry | @reboot /bin/sh "<HOME>/.config/.smt" |
| Command Line | ssh -N -R '*:0:localhost:22'schtasks /create /tn SysMon/bin/sh ~/.config/.smt |
Potential MITRE ATT&CK TTPs
T1195Supply Chain CompromiseT1195.002Compromise Software Supply ChainT1059Command and Scripting InterpreterT1059.007JavaScriptT1059.004Unix ShellT1059.001PowerShellT1098Account ManipulationT1098.004SSH Authorized KeysT1543Create or Modify System ProcessT1543.001Launch AgentT1053Scheduled Task/JobT1053.003CronT1053.005Scheduled TaskT1547Boot or Logon Autostart ExecutionT1547.001Registry Run Keys / Startup FolderT1548Abuse Elevation Control MechanismT1548.003Sudo and Sudo CachingT1036MasqueradingT1036.004Masquerade Task or ServiceT1564Hide ArtifactsT1564.001Hidden Files and DirectoriesT1082System Information DiscoveryT1033System Owner/User DiscoveryT1016System Network Configuration DiscoveryT1572Protocol TunnelingT1071Application Layer ProtocolT1071.001Web ProtocolsT1041Exfiltration Over C2 ChannelReferences
- https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor
- https://www.broadcom.com/support/security-center/protection-bulletin/trojanized-claude-code-extension-distributed-via-cursor-marketplace
- https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/
- https://cursor.com/blog/claude-code-extension-security-notice
- https://cursor.com/blog/security-incident-update
- https://threatlabs.netskope.com/blog/2026/10/trojanized-claude-code-extension
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.
