Backdoor found in Claude Code for VS Code extension on the Cursor Marketplace
Latest in the story ·
Phorion reported a backdoor in version 2.1.313 of the Claude Code for VS Code extension on the Cursor Marketplace, which installs a persistent backdoor over SSH[1] on macOS, Linux, and Windows. Cursor removed the release from its marketplace and also pulled the 2.1.313 versions from the NPM and VS Code registries; according to Cursor, the maliciously modified extension was live from about 2:27 a.m. PT to 1:35 p.m. PT on Thursday. Felix from Anthropic stated that Anthropic's systems and employee laptops were not compromised: a malicious actor used access to Cursor's marketplace to publish the tampered copy, and the versions on official channels are unaffected.
Extensions run with the permissions of the IDE and the user running it, so a backdoored extension gets immediate access to local files, source code, and developer tooling. The extension bundle contains an injected immediately invoked function expression (IIFE)[2] that runs as soon as Node loads the file, before the extension's activate callback, and requires no user interaction. The payload appends an attacker-controlled Ed25519 public key with the comment svc-telemetry to ~/.ssh/authorized_keys, tries to enable the local SSH daemon on each platform without a privilege escalation exploit, and connects out to 134.209.82[.]225 on port 22 with an embedded private key, comment svc-telemetry-tun, to set up a reverse SSH tunnel[3] with -R *:0:localhost:22. On macOS, a bug breaks the inbound access path where Remote Login is not already on: systemsetup -getremotelogin run without administrator privileges exits with status 0 instead of returning Off, so the script never attempts to enable SSH. The malware still installs persistence[4] and beacons host reconnaissance back to the operator; Phorion advises organizations to review their environments for use of version 2.1.313 and engage incident response where the extension is discovered.
Commenters noted that the compromised build appears to have existed only on the Cursor Marketplace and Open VSX, with version 2.1.313 never published on the official Microsoft registry, and one pointed out that VS Code's auto-update delay does not apply to extensions from trusted publishers such as Microsoft, GitHub, and OpenAI.

