Malicious 'Claude Code' VS Code Extension Deploys Backdoor

Trojanized 'Claude Code' VS Code Extension Installs SSH Backdoor

HIGH
October 30, 2026
5m read
Supply Chain AttackMalwareThreat Intelligence

Impact Scope

People Affected

Up to 5,000 users

Industries Affected

Technology

Related Entities

Organizations

Open VSXOpenSourceMalware

Other

Anthropic Jenn Gile

Full Report

Executive Summary

A software supply chain attack targeted developers using the Cursor IDE, a fork of VS Code. On October 29, 2026, a trojanized version of the popular 'Claude Code' extension from Anthropic was published to the Cursor marketplace. The malicious version, 2.1.313, was disguised as a legitimate update and is estimated to have been installed by up to 5,000 users who had the extension or received it via auto-update. The malware's primary function was to install a persistent SSH backdoor by adding an attacker's public key to the user's ~/.ssh/authorized_keys file, granting the attacker remote access to the compromised development environment. Cursor has since removed the malicious package and is notifying affected users.

Threat Overview

The incident represents a classic supply chain attack targeting the software development lifecycle, where trusted tools and update mechanisms are abused to distribute malware.

  • Attack Vector: Compromise of a software distribution channel (T1195.002 - Compromise Software Supply Chain). The attackers managed to publish a malicious package under the legitimate publisher ID anthropic.claude-code within the Cursor marketplace.
  • Payload: The malicious extension contained a 66-line JavaScript loader prepended to the legitimate code. This loader was responsible for the persistence mechanism.
  • Objective: To gain persistent, remote access to developer machines for potential code theft, lateral movement, or further attacks.

Technical Analysis

The attack was executed in a simple yet effective manner:

  1. Distribution: The attacker published the malicious extension v2.1.313 to the Cursor marketplace. The method used to compromise the publisher account or the publishing process is not detailed.
  2. Installation: Developers installed the extension manually or received it through the IDE's auto-update feature, a common source of inadvertent compromise.
  3. Execution: Upon VS Code startup, the malicious JavaScript loader within the extension would run.
  4. Persistence: The script's primary action was to append an attacker-controlled public SSH key to the ~/.ssh/authorized_keys file on the host system. To appear benign, the key was commented with the label svc-telemetry.

This provides the attacker with the ability to log into the victim's machine via SSH without needing a password, effectively creating a permanent backdoor.

MITRE ATT&CK Techniques

Impact Assessment

The potential impact is severe. Up to 5,000 developers may have had their machines compromised. A backdoor on a developer's machine provides attackers with access to source code, API keys, internal network resources, and other sensitive intellectual property. The swift removal of the package by Cursor and public notification helped limit the window of exposure. However, any user who installed the malicious version remains vulnerable until the backdoor is removed. This incident also damages trust in the security of IDE marketplaces and the extension ecosystem.

IOCs — Directly from Articles

No specific file hashes, domains, or IP addresses were mentioned in the source articles. The SSH key itself was not published.

Cyber Observables — Hunting Hints

Security teams may want to hunt for the following patterns to identify compromised systems:

Type
file_path
Value
~/.ssh/authorized_keys
Description
The file modified by the malware. Monitor for any additions, especially those with suspicious comments.
Context
File Integrity Monitoring (FIM), EDR
Type
string_pattern
Value
svc-telemetry
Description
The deceptive comment label used for the attacker's public SSH key.
Context
File content scanning, SIEM queries on FIM logs
Type
process_name
Value
node or Code
Description
The parent process of the malicious script. Monitor for child processes that modify sensitive files like authorized_keys.
Context
EDR, Process Auditing (e.g., Sysmon)
Type
log_source
Value
IDE extension logs
Description
Check logs from Cursor or VS Code for errors or unusual activity related to the anthropic.claude-code extension around the incident date.
Context
Application Logs

Detection & Response

  • Detection: Use File Integrity Monitoring (FIM) to alert on any changes to critical files like ~/.ssh/authorized_keys. EDR solutions can be configured to detect processes spawned by IDEs that attempt to modify system configuration files. Regularly auditing installed extensions and their permissions is also a crucial step.
  • Response: The immediate response for affected users is to:
    1. Isolate the machine from the network.
    2. Inspect the ~/.ssh/authorized_keys file and remove any unrecognized public keys.
    3. Rotate all credentials stored on the machine, including SSH keys, API tokens, and passwords.
    4. Perform a full audit for any other signs of malicious activity.
    5. Update the 'Claude Code' extension to a clean version (2.1.314 or later) or remove it entirely.

Mitigation

  • Restrict Auto-updates: While convenient, auto-updating IDE extensions can be risky. Consider disabling it or moving to a model where updates are reviewed before deployment in enterprise environments.
  • Code Signing and Verification: Marketplaces should enforce strict code signing and verification for all extensions to ensure publisher identity and code integrity.
  • Principle of Least Privilege: Run development tools as a standard user, not as an administrator, to limit the potential impact of a compromise.
  • Endpoint Detection and Response (EDR): Deploy EDR solutions that can monitor for suspicious behavior, such as an IDE process writing to an SSH configuration file. This aligns with D3FEND's D3-PA: Process Analysis.

Timeline of Events

1
October 29, 2026
Malicious version 2.1.313 of 'Claude Code' extension becomes available in the Cursor marketplace.
2
October 29, 2026
The compromised package is removed from the Cursor marketplace.
3
October 30, 2026
This article was published

MITRE ATT&CK Mitigations

Use endpoint security solutions to detect and block malicious scripts or unauthorized file modifications.

Implement policies to restrict the execution of unsigned or untrusted code within development environments.

Audit

M1047enterprise

Enable and monitor file integrity for critical configuration files like `~/.ssh/authorized_keys` to detect unauthorized changes.

D3FEND Defensive Countermeasures

To counter threats like the trojanized 'Claude Code' extension, organizations must implement continuous System File Analysis, specifically focusing on critical configuration files on developer endpoints. This involves using a File Integrity Monitoring (FIM) tool to create a baseline of sensitive files, such as ~/.ssh/authorized_keys, and immediately alerting on any unauthorized modifications. The rule should be highly specific: trigger an alert if any process associated with the IDE (e.g., Code, node) writes to this file. The alert should capture the process, user, and the exact change made. This provides security operations with a high-fidelity signal of a potential backdoor installation, enabling rapid investigation and response before an attacker can use the newly established access.

In a development environment, a strict executable allowlisting policy can be challenging. However, a more targeted approach can be effective. Organizations should maintain a repository of approved and vetted IDE extensions. A policy should be enforced, either technically or administratively, that prevents developers from installing extensions from un-vetted sources. For marketplaces like Cursor or VS Code, security teams can curate a list of approved extensions and their specific, known-good versions. Scripts can be used to audit installed extensions against this allowlist. This moves the organization from a reactive posture to a proactive one, preventing the installation of malicious extensions in the first place and reducing the risk of supply chain attacks.

Timeline of Events

1
October 29, 2026

Malicious version 2.1.313 of 'Claude Code' extension becomes available in the Cursor marketplace.

2
October 29, 2026

The compromised package is removed from the Cursor marketplace.

Sources & References

Malicious Claude Code VS Code Extension Installs SSH Backdoor on Dev Systems
The Hacker News (thehackernews.com) •October 30, 2026

Article Author

Jason Gomes

Jason Gomes

• Cybersecurity Practitioner

Cybersecurity professional with over 10 years of specialized experience in security operations, threat intelligence, incident response, and security automation. Expertise spans SOAR/XSOAR orchestration, threat intelligence platforms, SIEM/UEBA analytics, and building cyber fusion centers. Background includes technical enablement, solution architecture for enterprise and government clients, and implementing security automation workflows across IR, TIP, and SOC use cases.

Threat Intelligence & AnalysisSecurity Orchestration (SOAR/XSOAR)Incident Response & Digital ForensicsSecurity Operations Center (SOC)SIEM & Security AnalyticsCyber Fusion & Threat SharingSecurity Automation & IntegrationManaged Detection & Response (MDR)

Editorial Standards & Analyst Review

CyberNetSec.io uses automation to assist source monitoring, deduplication, observable extraction, and structured intelligence generation. Published analysis follows human-defined editorial standards and adds defensive context including MITRE ATT&CK, D3FEND, STIX, and Sigma where applicable. Read our editorial policy.

Tags

supply chain attackvscodecursoranthropicsshbackdoormalware

📢 Share This Article

Help others stay informed about cybersecurity threats

🎯 MITRE ATT&CK Mapped

Every tactic, technique, and sub-technique used in this threat has been identified and mapped to the MITRE ATT&CK framework for consistent, actionable threat language.

🧠 Enriched & Analyzed

Observables and indicators of compromise (IOCs) have been extracted and cataloged. Risk has been assessed and correlated with known threat actors and historical campaigns.

🛡️ Actionable Guidance

Detection rules, incident response steps, and D3FEND-aligned mitigation strategies are included so your team can act on this intelligence immediately.

🔗 STIX Visualizer

Structured threat data is packaged as a STIX 2.1 bundle and can be visualized as an interactive graph — relationships between actors, malware, techniques, and indicators.

⚡ Sigma Generator

Sigma detection rules are derived from the threat techniques in this article and can be converted for deployment across any major SIEM or EDR platform.