Claude Code extension on Cursor found backdoored
2026-10-31 · Phorion
Security firm Phorion published findings on Oct. 30 that the official Claude Code for VS Code extension on the Cursor Marketplace was backdoored. Versions 2.1.312 and 2.1.313 had malicious code prepended to the bundle, running as soon as the module loads, even before the extension's normal activation.
Phorion says the payload creates ~/.ssh, appends an attacker-controlled Ed25519 key to authorized_keys, sets up persistence and sends host reconnaissance to the operator. It contains logic for macOS, Linux and Windows; Phorion focuses on macOS. A bug on macOS means a standard-user check of SSH state returns an error, so the script skips enabling Remote Login, breaking inbound access on Macs where SSH was off, though keys and persistence are still written.
Cursor removed both affected versions. Phorion advises organizations to check for the version, start incident response if found, and hunt for the key fingerprint rather than the comment string.
Public information does not yet explain how the attacker obtained publishing access or how many users were affected; Cursor has published a security notice, and a fuller statement from Anthropic is pending. The incident underscores that IDE extensions run with the user's permissions, making supply-chain attacks costly.