Backdoors in official Claude Code extensions
Source Entity
Hacker News

A malicious backdoor has been discovered in the Claude Code VS Code extension on the Cursor Marketplace. The compromised version, 2.1.313, allows for persistent remote SSH access across major operating systems, prompting immediate removal and security review.
Security Alert: Compromised Claude Code Extension
A critical security vulnerability has emerged within the developer ecosystem following the discovery of a malicious backdoor embedded in the 'Claude Code' VS Code extension. Security researchers at Phorion identified that version 2.1.313 of the extension, distributed via the Cursor Marketplace, contained a payload designed to establish persistent Secure Shell (SSH) access on host machines. This incident represents a significant supply-chain attack targeting software developers, who are increasingly reliant on AI-assisted coding tools integrated directly into their development environments.
Mechanics of the Backdoor
The malicious code identified in the extension bundle was engineered to operate across macOS, Linux, and Windows platforms. Once installed, the extension executes routines to configure unauthorized SSH access, effectively turning the developer's workstation into a compromised node. On macOS systems specifically, the exploit establishes persistence, ensuring that the attacker retains remote access even after the IDE is closed or the machine is rebooted. This level of intrusion suggests a sophisticated attempt to gain a foothold in professional development environments where proprietary source code and sensitive API keys are typically stored.
The Risks of Marketplace Trust
The Cursor Marketplace, like many third-party extension repositories, serves as a hub for productivity tools. However, this incident highlights the inherent risks of trusting third-party bundles that may not undergo the same rigorous security auditing as official vendor releases. By compromising the 'official' extension bundle, the attackers leveraged the trust that developers place in legitimate tools to execute a remote access trojan (RAT). This vector is particularly dangerous because developers frequently grant these extensions broad permissions to access their file systems to facilitate AI-driven code suggestions and refactoring.
Industry Response and Mitigation
In response to the discovery, Cursor acted swiftly to remove the compromised release from their marketplace and took steps to pull the affected NPM and VS Code versions to prevent further installations. Organizations that utilize Claude Code for VS Code must treat this as a high-priority incident. It is essential for IT and security teams to conduct immediate audits of their development workstations, specifically checking for the presence of version 2.1.313. If discovered, machines should be treated as compromised, requiring a thorough incident response process, including credential rotation and forensic analysis to determine if any data exfiltration occurred.
Broader Implications for AI Development
This event underscores the growing trend of attackers targeting the software supply chain through the very tools meant to accelerate development. As AI-coding assistants become standard in enterprise environments, the security of their distribution channels becomes a primary attack surface. Organizations must move toward a 'zero-trust' approach for IDE extensions, implementing stricter controls on which plugins are permitted in production environments. Furthermore, this incident serves as a cautionary tale for developers to monitor the permissions requested by AI tools and to verify the integrity of marketplace extensions before deployment.
Conclusion and Future Outlook
While the immediate threat posed by the malicious Claude Code extension is being mitigated, the long-term impact on developer trust and marketplace security policies remains to be seen. As developers and companies continue to integrate AI into their workflows, the need for enhanced verification, automated security scanning of extensions, and proactive monitoring of development environments will become paramount. Security researchers and marketplace operators will likely face increased pressure to implement more stringent vetting processes to prevent similar supply-chain compromises in the future.