Backdoored Claude Code Extension Drops SSH Implant

The 30-Second Skim
- What happened: A backdoored version of the official Claude Code for VS Code extension distributed via the Cursor Marketplace installed a persistent SSH backdoor on developers' machines, attempting to enable remote access across macOS, Linux, and Windows.
- Key facts & numbers: Phorion detected a backdoor in the official Claude Code for VS Code extension 2.1.313 on the Cursor Marketplace that drops a persistent SSH implant on macOS, Linux, and Windows systems. Cursor removed the compromised extension version 2.1.313 from its marketplace and pulled associated NPM and VSCode packages after confirmation of the compromise. The backdoored extension executes an injected JavaScript payload immediately upon loading, before the legitimate extension activates, granting immediate access to local files and development environments.
- What happens next: The malware flew under the radar by piggybacking on a legitimate AI extension—most coverage missed that the SSH enable bug on macOS only breaks the attack if Remote Login wasn’t already on.
- Phorion detected a backdoor in the official Claude Code for VS Code extension 2.1.313 on the Cursor Marketplace that drops a persistent SSH implant on macOS, Linux, and Windows systems.
- Cursor removed the compromised extension version 2.1.313 from its marketplace and pulled associated NPM and VSCode packages after confirmation of the compromise.
- The backdoored extension executes an injected JavaScript payload immediately upon loading, before the legitimate extension activates, granting immediate access to local files and development environments.
- On macOS, the implant attempts to enable Remote Login via systemsetup but fails under standard user privileges due to a logic flaw where permission-denied output is misinterpreted as SSH already being enabled.
Why It Matters
Developers using the compromised extension unknowingly granted attackers a pathway to long-term access to source code and internal systems. The flaw in the macOS SSH check reduced immediate risk, but machines with Remote Login already enabled—or those later configured to allow it—remained exposed, turning a trusted AI coding tool into a potential breach vector.
Sources Cited
- Hacker News — Backdoor in Claude Code for VS Code extension on the Cursor Marketplace
- Step Security — Trojanized Claude Code Extension Delivered Persistent SSH Backdoor to Developer Machines
- The Hacker News — Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
- Help Net Security — Claude Code extension poisoned with persistent SSH backdoor
- OX Security — Malicious Claude Code Extension (2.1.313) in Cursor Marketplace Plants Attacker SSH Key and Persistence
- Rescana — Trojanized Claude Code Extension 2.1.313 in Cursor Marketplace Plants SSH Backdoor
Related Coverage
- Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH BackdoorThe Hacker News
- Claude Code backdoor; Anthropic backs crawler opt-outSkimNews
- GlassWorm Uses Zig Dropper in Fake WakaTime ExtensionThe Hacker News
- npm mouse5212-super-formatter steals Claude AI dataThe Hacker News
Ask SkimNews