Malicious VS Code Extension Plants SSH Backdoor via Supply Chain Attack
Written by AI from the linked story. Not reviewed by an editor. How this works
A trojanized version of the Claude Code extension was published to the Open VSX marketplace, exploiting developer trust in third-party extension registries to deliver a persistent SSH backdoor. Attackers leveraged the open nature of community marketplaces, where vetting processes are often less rigorous than official storefronts, to reach a high-value target audience: software developers with access to source code, credentials, and sensitive environment variables. Once installed, the extension silently established a reverse tunnel giving attackers persistent remote access — all without triggering obvious alarms. This incident underscores the danger of treating IDE extensions as inherently trustworthy, and highlights how the software supply chain has become a primary attack vector against developer environments.
Tactical Insight
Immediate actions
- Audit all installed VS Code-compatible extensions against known-good version hashes and remove or quarantine version 2.1.313 of the Claude Code extension immediately.
- Block outbound SSH tunneling connections from developer workstations at the network perimeter until a full investigation is complete.
Long-term improvements
- Establish an approved extension allowlist enforced via policy so developers can only install vetted, organisation-approved extensions from trusted sources.
- Integrate software composition analysis (SCA) and extension integrity verification into developer onboarding and CI/CD pipelines.
- Prefer official, vendor-maintained marketplaces over community registries, and require cryptographic signature verification for any third-party tooling.
Detection measures
- Deploy endpoint detection and response (EDR) tooling on developer workstations to alert on unexpected SSH daemon creation, outbound tunnel establishment, or environment variable exfiltration attempts.
- Implement egress monitoring and anomaly detection for unusual outbound connections originating from developer machines, particularly on non-standard SSH ports.