Trojanized Claude Code Extension Added Persistent SSH Backdoor

· Original article ↗

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

TypeIndicatorContext
IPV4134[.]209[.]82[.]225C2 IP used for the reverse SSH tunnel and HTTP beacon by the malicious extension.
SHA2567e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278SHA-256 hash of the embedded tunnel key identified in the malicious build.
SHA256ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15SHA-256 hash of the malicious extension.js file.

MITRE ATT&CK

Vendors

Products

Related Articles