Claude Code VS Code Extension Backdoored via Supply Chain Compromise
Written by AI from the linked story. Not reviewed by an editor. How this works
The official Anthropic Claude Code extension was compromised through a breach of the Cursor Marketplace and Open VSX registry, allowing attackers to distribute a persistent SSH backdoor to unsuspecting developers who trusted the official source. This incident illustrates the critical danger of supply chain attacks targeting developer tooling: because developers inherently trust extensions from official marketplaces, malicious code can propagate rapidly and deeply into development environments. The SSH backdoor's persistence mechanism means affected systems remain vulnerable long after the initial infection vector is removed. This matters enormously because developer workstations frequently have access to source code, credentials, cloud environments, and production systems, making them high-value pivot points for further compromise.
Tactical Insight
Immediate actions
- Audit all installed VS Code and IDE extensions for unexpected updates or version changes, and remove or quarantine the compromised Claude Code extension immediately.
- Scan development machines for unauthorized SSH keys, new authorized_keys entries, and unexpected outbound SSH connections indicative of the backdoor.
- Rotate all credentials, API keys, and SSH keys stored on or accessible from potentially affected developer machines.
Long-term improvements
- Implement a vetted, internal extension allowlist and private extension registry so only approved, hash-verified extensions can be installed by developers.
- Enforce code-signing and integrity verification for all third-party tools and extensions before deployment across the organization.
- Apply the principle of least privilege to developer workstations, restricting outbound SSH connections and limiting access to production systems.
Detection measures
- Deploy endpoint detection and response (EDR) solutions on developer workstations to alert on persistence mechanisms such as new SSH authorized_keys modifications or unexpected cron jobs.
- Monitor software bill of materials (SBOM) and dependency inventories continuously, alerting on unexpected changes to extension versions or hashes in the development toolchain.