Hackers compromised version 2.1.313 of the Claude Code extension distributed through the Cursor Marketplace, embedding malicious JavaScript that establishes persistent SSH access on developer machines.
Published on October 29, 2026, the tampered extension identifies itself as anthropic.claude-code and retains legitimate functionality while executing a hidden loader before normal initialization.
According to OpenSourceMalware’s updated account, Cursor confirmed that the compromise originated in its marketplace, not Open VSX.
Hackers Compromise Claude Code Extension
The report distinguishes the affected extension from the legitimate @anthropic-ai/claude-code npm package, Open VSX distribution, and Microsoft VS Code Marketplace extension, which it identifies as unaffected.
Researcher Paul McCarty’s analysis identified a 66-line immediately invoked function prepended to extension.js. The remaining extension contents, including its bundled binary, matched the legitimate application.
Loading the extension module triggers the implant; users don’t need to start a Claude conversation. Execution occurs at runtime rather than through package installation hooks.

The loader imports Node.js modules for process execution, filesystem access, operating system information, networking, and cryptography. It suppresses most exceptions, allowing the legitimate extension to continue operating even when individual backdoor operations fail.
Its initial reconnaissance collects the hostname, username, operating system, architecture, working directory, home directory, and global Git email.
OpenSourceMalware stated that it also gathers names of up to 40 environment variables associated with credentials or cloud services, but does not include their values in the initial beacon.
The implant appends an attacker-controlled Ed25519 public key labeled svc-telemetry to ~/.ssh/authorized_keys. It then attempts to activate macOS Remote Login, Linux SSH services, or Windows OpenSSH Server. Successful service enablement depends on available privileges.
An embedded private key authenticates a reverse SSH connection to tunnel@134.209.82.225. The forwarding argument, -R ‘*:0:localhost:22’, requests a dynamically allocated remote port connected to the victim’s local SSH service. Host-key verification is disabled, and reconnect loops retry after 60 seconds.
macOS receives hidden configuration files and a deceptive com.apple.sysmond LaunchAgent. Linux uses an @reboot crontab entry. Windows attempts a SYSTEM-level scheduled task named SysMon, falling back to a Startup-folder script when necessary.
After a brief delay, the malware retrieves the public IP address and sends reconnaissance JSON through unencrypted HTTP beacons to localhost and 134.209.82.225 on port 8099. The analyzed loader downloads no additional executable payload and ignores beacon responses.
Defenders should investigate the extension version, unauthorized SSH keys, persistence files, and outbound SSH connections. Isolate affected systems and preserve evidence before cleanup.
Rotate credentials accessible to compromised accounts from clean devices. Because interactive SSH access enables unobserved follow-on activity, investigators should review authentication, process, shell, and network logs and consider rebuilding affected hosts.
IoC
| Type | Indicator |
|---|---|
| Extension | anthropic.claude-code@2.1.313 |
| C2 address | 134.209.82[.]225 |
| Network ports | SSH 22; HTTP 8099 |
| Remote beacon | hxxp://134.209.82[.]225:8099/beacon |
| Local beacon | hxxp://127.0.0.1:8099/beacon |
| SSH marker | svc-telemetry |
| SSH fingerprint | SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk |
| Unix artifacts | ~/.config/.smt; ~/.config/.smtk; ${TMPDIR}/.stk_* |
| macOS persistence | ~/Library/LaunchAgents/com.apple.sysmond.plist |
| Windows artifacts | .config\smt.cmd; .config\smtk; SysMon; sysmon.cmd |
| extension.js SHA-256 | ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 |
| Embedded private-key SHA-256 | 7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278 |
Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.
Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team