A trojanized version of the Claude Code extension was distributed through the Cursor Marketplace, masquerading as an official update while installing a persistent SSH backdoor on affected systems.
Any user or organization utilizing the Claude Code extension, particularly those who updated to version 2.1.313, is at risk of compromise.
The infiltration allows attackers to maintain persistent access to systems, potentially leading to data theft and lateral movement within networks.
- Review and audit installed extensions for unauthorized modifications.
- Immediately remove the trojanized version and revert to a known safe state.
- Implement network segmentation to limit lateral movement potential.
- Enhance monitoring for unusual SSH activity and connections.
Key Technical Findings
Trojanized software distribution with a persistent SSH backdoor.
Systems running version 2.1.313 of the Claude Code extension.
Distribution through the Cursor Marketplace as an official update.
Installation of malicious code upon update of the extension.
SSH backdoor established via configuration modifications.
Not specified in the source material.
Utilization of legitimate publisher identity for distribution.
Not specified in the source material.
Potential through established SSH access.
Not specified in the source material.
High – persistent access and potential data compromise.
Technical Background
The incident involves a sophisticated form of software supply chain attack, wherein the legitimacy of a widely-used tool is exploited to distribute malicious code. The trojanized version of the Claude Code extension was disguised as an update, leveraging social trust in the software’s publisher while embedding a persistent SSH backdoor within affected systems. This method not only facilitates initial access but also ensures that attackers can maintain long-term control over compromised machines.
This type of attack typically seeks to establish a foothold within an organization’s network, enabling further exploitation such as data exfiltration or lateral movement across systems. Security controls that rely solely on signature-based detection may struggle to identify such threats, particularly when they are embedded in trusted software. Continuous validation of security controls is crucial to mitigate risks associated with such advanced threats.
Attack Chain Analysis
-
Initial Access
ActivityUser downloads and installs the malicious update from Cursor Marketplace.
EvidencePresence of version 2.1.313 with unauthorized changes in the extension files.
TelemetryLog entries showing installation sources from Cursor Marketplace.
Detection opportunityMonitor installation logs for unusual sources or updates outside established processes.
-
Execution
ActivityMalicious code executes upon installation, establishing a backdoor connection.
EvidenceNetwork connections initiated from previously dormant systems.
TelemetryMonitor outbound SSH connections for unexpected activities.
Detection opportunityAlert on new SSH connections from endpoints lacking prior communication patterns.
-
Persistence
ActivityBackdoor remains active through system reboots via SSH configuration changes.
EvidenceModified SSH config files allowing unauthorized access.
TelemetryAudit logs for SSH configuration changes.
Detection opportunityDetect modification patterns in SSH configuration files across systems.
Deep Technical Behavior Analysis
The behavior of the trojanized Claude Code extension indicates a methodical approach to maintaining persistence on compromised systems. The malware likely modifies SSH configurations to ensure that even after reboots or updates, the backdoor remains functional. Such persistence techniques can include altering authorized keys or creating new user accounts that allow remote access without raising immediate alarms. Additionally, network traffic analysis may reveal unusual patterns consistent with command-and-control (C2) communication, although specific indicators are not identified in the source material.
The C2 behavior potentially involves periodic check-ins from compromised systems, using standard ports typically associated with legitimate SSH traffic to evade detection. This technique complicates efforts to differentiate between benign and malicious traffic, thereby increasing the challenge for security teams. Continuous monitoring and behavioral analysis are essential to identify anomalies that may indicate exploitation through such advanced persistent threats (APTs).
Indicators of Compromise
Indicators of Behavior
| Behavioral Indicator | Description | Data Source | Confidence |
|---|---|---|---|
| Unauthorized SSH Access Attempts | Attempts to connect via SSH from unusual IP addresses or accounts. | SSH logs, EDR telemetry | Potential |
Detection Engineering Guidance
index=network (src_ip!=) | stats count by src_ip | where count >
index=edr process=powershell.exe (command_line='*-enc*')



