Trojanized Claude Code Extension Added Persistent SSH Backdoor

Summary
Netskope says a non-Anthropic Claude Code v2.1.313 build on Cursor’s marketplace added an SSH backdoor, collected host details and persisted via a reverse tunnel. It was available about 11 hours; Cursor removed it and estimates up to 5,000 installs.
Key points
- The malicious Claude Code extension build, version 2.1.313, was published to Cursor’s marketplace on October 29, 2026, and was not produced by Anthropic.
- A loader ran when the IDE started, gathered host and environment details, added an attacker-controlled SSH key to authorized_keys, and attempted to enable SSH or Remote Login.
- The extension opened a persistent reverse SSH tunnel and sent collected host details to a command-and-control server over HTTP on port 8099.
- The build targeted darwin-arm64 and win32-x64 on Cursor; the backdoor code also handled Linux.
- Cursor removed the build after roughly 11 hours and estimated up to 5,000 users installed it. The C2 server was offline; npm and VS Code Marketplace releases were pulled as a precaution.
- Netskope advises affected users to check for SSH keys, persistence files, and tunnel processes, then rotate credentials accessible from the machine.
- Netskope identifies 134.209.82[.]225 as the C2 IP for hunting in network events.
Article Details
- Attack Vectors
- A malicious build of the Claude Code IDE extension, version 2.1.313, was published to the Cursor extension marketplace and ran a loader when the IDE started.
- The loader added an attacker-controlled SSH key to authorized_keys, attempted to enable SSH or Remote Login, and opened a persistent reverse SSH tunnel to the attacker.
- The extension collected host details, including hostname, user, OS, Git email, public IP, and names of environment variables matching KEY|TOKEN|SECRET|PASS|AWS|GCP.
- The malware sent collected host details to its C2 server over HTTP on port 8099.
- The build installed persistence using platform-specific mechanisms, including a macOS LaunchAgent, a Linux @reboot crontab entry, and a Windows scheduled task and Startup-folder file.
- Defensive Notes
- Uninstalling version 2.1.313 is not sufficient. Check for the listed SSH key, persistence files, and tunnel processes, and rotate credentials that were accessible from the machine.
- Netskope Cloud Firewall customers should check Network Events for traffic to 134.209.82[.]225 to identify machines that installed and ran the malicious build.
- Cursor removed the build; the npm and VS Code Marketplace releases of version 2.1.313 were pulled as a precaution. OpenSourceMalware reported that those releases and the Open VSX build were not malicious.
Indicators of compromise
| Type | Indicator | Context |
|---|---|---|
| IPV4 | 134[.]209[.]82[.]225 | C2 IP used for the reverse SSH tunnel and HTTP beacon by the malicious extension. |
| SHA256 | 7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278 | SHA-256 hash of the embedded tunnel key identified in the malicious build. |
| SHA256 | ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 | SHA-256 hash of the malicious extension.js file. |
MITRE ATT&CK
T1016 · System Network Configuration DiscoveryThe loader collected the host's public IP address using IP-lookup services.T1053.003 · CronOn Linux, persistence included an @reboot crontab entry.T1053.005 · Scheduled TaskOn Windows, persistence included a scheduled task named SysMon.T1071.001 · Web ProtocolsThe malware sent host details to its C2 server over HTTP on port 8099.T1082 · System Information DiscoveryThe loader collected host details including hostname, username, and operating system.T1098.004 · SSH Authorized KeysThe loader added an attacker-controlled SSH key to authorized_keys.T1543.001 · Launch AgentOn macOS, persistence included a LaunchAgent plist.T1547.001 · Registry Run Keys / Startup FolderOn Windows, persistence included a script placed in the Startup folder.T1572 · Protocol TunnelingThe malware opened a persistent reverse SSH tunnel to the attacker.
Vendors
AnthropicA malicious build of the Claude Code IDE extension, anthropic.claude-code version 2.1.313, was published to the Cursor extension marketplace on October 29, 2026.CursorA malicious build of the Claude Code IDE extension, anthropic.claude-code version 2.1.313, was published to the Cursor extension marketplace on October 29, 2026.
Products
Claude CodeA malicious build of the Claude Code IDE extension, anthropic.claude-code version 2.1.313, was published to the Cursor extension marketplace on October 29, 2026.CursorA malicious build of the Claude Code IDE extension, anthropic.claude-code version 2.1.313, was published to the Cursor extension marketplace on October 29, 2026.
