Microsoft Warns of Trojanized Claude Code Extension Planting Persistent SSH Backdoor

Microsoft has warned that a trojanized Claude Code extension distributed through Cursor’s marketplace attempted to install a persistent SSH backdoor on developer workstations.

The malicious packages, identified as anthropic.claude-code versions 2.1.312 and 2.1.313, contained injected JavaScript designed to establish unauthorized access while preserving normal extension functionality.

Cursor reported the incident on October 29, 2026, saying the packages were available from about 2:27 AM to 1:35 PM PDT. Microsoft said its Visual Studio Marketplace and the Claude Code npm distribution were unaffected.

Microsoft Warns of Trojanized Claude Code Extension

Anthropic confirmed that its systems were not compromised and that it did not develop the malicious packages. The malicious function executes before normal extension initialization, using Node.js APIs to collect system information, modify files, and execute operating-system commands.

It gathers the hostname, username, operating system, architecture, directories, and global Git email address. The loader also identifies up to forty environment-variable names containing strings such as KEY, TOKEN, SECRET, PASS, AWS, or GCP.

 Attack chain (Source: Microsoft)
 Attack chain (Source: Microsoft)

A delayed callback attempts to transmit those names, not their values, meaning this behavior alone does not establish theft of the underlying secrets.

To prepare remote access, the malware checks authorized_keys for the svc-telemetry marker and appends an embedded Ed25519 public key if it’s absent.

A separate private key authenticates the outbound tunnel connection, initially using a hidden temporary file beginning with .stk_.

The SSH command requests reverse forwarding through -N -R '*:0:localhost:22', connecting a server-allocated remote port to the victim’s local SSH service. It disables ordinary host-key verification and uses retry loops to maintain connectivity.

On macOS, the loader creates a LaunchAgent at ~/Library/LaunchAgents/com.apple.sysmond.plist. Linux persistence uses a user-crontab @reboot entry referencing ~/.config/.smt. Both platforms use ~/.config/.smtk for the tunnel identity.

Windows persistence attempts a SysMon scheduled task requesting SYSTEM execution, with a Startup-folder sysmon.cmd fallback. These artifacts reside outside the extension directory, so uninstalling or updating the extension does not remove them.

Microsoft cautioned that attempted execution does not prove successful access. Host privileges, local SSH configuration, and attacker-server settings determine whether the backdoor works.

Cursor reported that errors and administrator-permission requirements blocked SSH access on most macOS and Windows hosts. Defenders should identify affected installations, preserve evidence, and isolate devices showing loader execution or backdoor artifacts.

Microsoft identified 134.209.82[.]225 as the configured SSH and HTTP destination. Investigators should correlate network activity with unauthorized SSH keys, tunnel processes, startup entries, and authentication events.

Remove confirmed malicious artifacts separately, preserve legitimate keys, and rotate credentials or revoke sessions when exposure is indicated. Restricting extensions to approved publishers and delaying newly published releases can reduce future supply-chain exposure.

Indicators of compromise (IOCs)

IndicatorTypeDescription
134.209.82[.]225IP addressConfigured remote SSH and HTTP destination
hxxp://134[.]209[.]82[.]225:8099/beaconURLReconnaissance endpoint; correlate with the configured address
svc-telemetryKey commentInstalled authorization-key marker; verify the key material
SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htkSSH key fingerprintInstalled authorization-key fingerprint
.stk_[0-9a-f]{10}Filename patternTemporary tunnel identity; pattern rather than literal filename
ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15SHA256JavaScript entry point; not a Visual Studio extension (VSIX) package hash
7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278SHA256Decoded tunnel private-key file
~/Library/LaunchAgents/com.apple.sysmond.plistFilepathmacOS persistence artifact; inspect its launch action

Note: IP addresses and domains are intentionally Qdefanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories