Official Claude Code Extension Compromise: Security Advisory | Phorion

Phorion identified a compromised release, version 2.1.313, of the official Claude Code for VS Code extension on the Cursor Marketplace. The malicious bundle injects code that executes immediately when loaded, before normal extension activation, giving it the permissions of the IDE and user. Cursor removed the affected marketplace release and corresponding NPM and VS Code packages. The payload targets macOS, Linux, and Windows. It creates or modifies the user’s `.ssh` directory and appends an attacker-controlled Ed25519 public key, labeled `svc-telemetry`, to `authorized_keys`. It then attempts to enable SSH and establishes a reverse SSH tunnel to `134.209.82[.]225`, using an embedded private key labeled `svc-telemetry-tun`. This allows operators to reach the victim through the tunnel and obtain an interactive shell or transfer files. On macOS, a logic error reduces—but does not eliminate—the immediate impact. The malware checks Remote Login without administrator privileges; macOS returns an access-denied message with a successful exit status, so the script incorrectly assumes SSH is enabled and skips the activation command. Consequently, access may fail if Remote Login was already disabled, although the planted key, tunnel, reconnaissance, and persistence remain. The malware also launches a detached retry loop and installs reboot persistence, including macOS LaunchAgents, Linux cron entries, and platform-specific files. Organizations should urgently identify systems that used version 2.1.313, inspect SSH keys, tunnels, persistence locations, and outbound connections, and involve incident response teams.

Build this article’s timeline

Extract dated events, key actors, and open questions using the same timeline analysis available in Signal.

Log in to build

Timeline generation is available to signed-in community members.

Five Ws 🤖 3 AI prefills · 2 still unanswered
Who
Phorion, Cursor, and NPM
🤖 AI prefill
What
Phorion identified a compromised release, version 2.1.313, of the official Claude Code for VS Code extension on the Cursor Marketplace.
🤖 AI prefill
When When did this happen, or what is the timeframe?
Where Where did this occur?
Why
Centers on backdoored Claude Code for VS Code extension, Cursor Marketplace compromise, and persistent SSH backdoor
🤖 AI prefill

Login to answer and earn XP for each gap you fill.

Extension Supply Chain Compromise Cursor Marketplace, Claude Code, VS Code extension, extension.js, injected IIFE SSH Backdoor Installation authorized_keys, Ed25519 public key, SSH daemon, Remote Login, systemsetup Reverse SSH Tunneling reverse SSH tunnel, 134.209.82.225, private key, remote port forwarding, localhost:22 Platform Persistence Analysis LaunchAgents, cron, crontab, reboot persistence, .smt Detection And Response incident response, fleet review, host reconnaissance, process telemetry, SSH key fingerprint
backdoored Claude Code for VS Code extension99% Cursor Marketplace compromise97% persistent SSH backdoor99% reverse SSH tunnel98% SSH authorized_keys persistence94% macOS Remote Login enablement bug93% Ed25519 SSH keys91% outbound SSH port forwarding92% LaunchAgent persistence89% crontab reboot persistence86%
38
Manipulation Score: Medium How much this article uses emotional framing vs. straight reporting
Loaded Language 4225%
Absolutist 2415%
Threat/Panic 5825%
Us vs Them 1815%
Engagement Bait 1220%
Manipulation score look right?

Factual Claims (10)

high technology
Phorion detected a backdoor in the official Claude Code for VS Code extension bundle on the Cursor Marketplace.
high technology
The backdoored extension contains a persistent SSH backdoor affecting macOS, Linux, and Windows.
medium technology
Cursor removed the associated release and pulled NPM and VSCode versions for 2.1.313 from relevant registries.
medium technology
Extensions run with the permissions of the IDE and user, giving a backdoored extension access to local files, source code, and developer tooling.
high technology
The payload appends an attacker-controlled Ed25519 public key to ~/.ssh/authorized_keys.
high technology
The payload attempts to enable or start SSH services on Linux, macOS, and Windows.
medium technology
On macOS, a permissions-related systemsetup behavior can cause the malware to skip enabling Remote Login for standard users.
high technology
The script establishes a reverse SSH tunnel to 134.209.82[.]225 using an embedded private key.
high technology
The tunnel uses remote port forwarding to expose the victim's localhost SSH service through an attacker-controlled server.
high technology
The malware establishes persistence using cron on Linux and a user LaunchAgent on macOS.

Comments

Login to view and post comments.

🏠Portal 📰Links ❓Q&A 📅Events 💼Jobs