Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
What Happened — Researchers from the security firm Cynerio Labs reported that a malicious version of Anthropic’s official Claude Code extension for Visual Studio Code was uploaded to the Cursor Marketplace on 23 October 2026. The package, labeled version 2.1.313, carried the same publisher metadata as the legitimate extension, allowing it to pass Cursor’s automated vetting process. Once installed, the extension executed a hidden script that attempted to drop a persistent SSH backdoor on the host machine.
The backdoor logic added an attacker‑controlled public key to the user’s ~/.ssh/authorized_keys file and configured a systemd service to re‑inject the key after reboots, thereby maintaining long‑term remote access. The malicious code was obfuscated within the extension’s JavaScript bundle and only activated after the user opened a Claude Code‑generated file, reducing the chance of immediate detection.
Cursor’s security team responded within hours, removing the package from the marketplace and temporarily disabling all Claude Code extensions pending a full review. Anthropic issued a statement confirming that the compromised version was not authored by its development team and that the official extension’s codebase remains clean.
The incident was first disclosed in a blog post by The Hacker News on 28 October 2026, citing the Cynerio Labs analysis. No evidence has emerged that any end‑users have been successfully compromised, and there are no reports of data exfiltration. However, the presence of a persistent SSH key on affected machines would give an attacker unrestricted command‑line access, potentially enabling further lateral movement or ransomware deployment.
Why It Matters for Trust & Control Assurance — This supply‑chain attack underscores the need for continuous third‑party risk monitoring and verification of software artifacts before deployment.
Who Is Affected —
- Cloud‑native development teams using VS Code extensions
- Enterprises that source tools from public marketplaces (e.g., Cursor, VS Marketplace)
- Software vendors that publish extensions under their brand
Recommended Actions
- Validate Extension Provenance – Verify publisher signatures and hash values against the vendor’s official repository before installation.
- Enforce Least‑Privilege SSH Policies – Restrict write access to
authorized_keysand monitor for unauthorized key additions. - Deploy Endpoint Detection – Enable file‑integrity monitoring and process‑behavior analytics to flag unexpected SSH service modifications.
- Audit Marketplace Controls – Review your organization’s policy for third‑party marketplace usage and require approval workflows.
- Incident Readiness – Prepare a response playbook for unauthorized SSH access, including key revocation and forensic capture.
Source: The Hacker News – Official Claude Code Extension Trojanized
Technical Notes
- Attack Vector: Trojanized VS Code extension distributed via Cursor Marketplace.
- Payload: Obfuscated JavaScript that writes an attacker‑controlled SSH public key to
~/.ssh/authorized_keysand creates a systemd service for persistence. - Persistence Mechanism: Systemd unit
ssh-backdoor.servicethat restores the key on boot. - Detection: File‑integrity alerts on changes to
authorized_keys; anomalous systemd unit creation. - No CVE Assigned: The issue stems from a malicious supply‑chain artifact rather than a software vulnerability.