Last Updated On

Cursor Marketplace Claude Code Extension Injected With Persistent SSH Backdoor
A maliciously modified build of Anthropic official Claude Code extension version 2.1.313 was distributed through the Cursor VS Code Marketplace for eleven hours on October 29, 2026. Up to 5,000 software developers and AI engineers downloaded or auto updated the trojanized package before marketplace operators took the platform offline. The injected sixty six line JavaScript loader executes immediately upon editor launch without requiring user interaction with Claude Code. It harvests developer environment metadata, appends an unauthorized Ed25519 SSH public key to authorized keys, drops reboot persistence scripts, and establishes a reverse SSH tunnel to command and control infrastructure at 134.209.82[.]225. Although implementation bugs prevented automated SSH server enablement on standard macOS and Windows workstations, active persistence mechanisms and rogue authorized keys remain installed. Upgrading the extension to version 2.1.314 or uninstalling Cursor does not remove dropped artifacts, requiring immediate manual endpoint triage and credential revocation. #CyberSecurity #ThreatIntelligence #SupplyChainSecurity #Cursor #ClaudeCode #SecOps #DevOps #DetectionEngineering #InfoSec
14
IOC Count
8
Source Count
95
Confidence Score
[INSUFFICIENT SOURCE DATA]
Under Attribution
Software Development, Information Technology, AI Engineering, DevOps, Cloud Computing
Global, North America, Europe, Asia Pacific, India
Chapter 01 - Executive Overview
A critical supply chain compromise struck the Cursor VS Code Extension Marketplace on October 29, 2026, when an unauthorized entity distributed a backdoored build of Anthropic official Claude Code extension under package identifier Anthropic.claude-code version 2.1.313. The malicious distribution window persisted for eleven hours and eight minutes, between 09:27 UTC and 20:35 UTC, before platform administrators detected the anomaly, pulled the artifact, took the marketplace offline, and rotated signing infrastructure keys.
[+] Zero Click Execution Lifecycle: The payload does not rely on a user initiating prompt conversations, running coding agent tasks, or approving workspace permissions inside the IDE. The threat actor prepended sixty six lines of compact JavaScript directly ahead of legitimate code in extension.js, triggering execution instantly when the Cursor Node.js runtime loads the extension during editor startup.
[+] Unauthorized SSH Public Key Injection: The malware immediately writes an attacker controlled Ed25519 public key labeled svc-telemetry into the local authorized keys file of the developer workstation. This action grants the adversary pre authorized cryptographic credentials to authenticate directly into the developer machine as the current user.
[+] Dual Key Reverse Tunneling Architecture: To bypass inbound corporate perimeter firewalls and NAT barriers, the implant writes an embedded private key labeled svc-telemetry-tun to disk and spawns an outbound SSH connection to an adversary server at 134.209.82[.]225. Establishing a remote port forward back to localhost port 22 routes operator traffic through the internal loopback adapter, causing interactive adversary sessions to register in local authentication logs as connections originating from 127.0.0.1 or ::1.
[+] Upstream Ecosystem Integrity Verification: Forensic audits confirmed that neither Anthropic upstream software repositories, nor the Microsoft VS Code Marketplace, npm registry, or the Eclipse Foundation Open VSX registry distributed malicious version 2.1.313. The distribution vector was isolated specifically to the Cursor marketplace pipeline, affecting darwin-arm64 and win32-x64 extension packages.
[+] Critical Persistence Inadequacy Of Standard Uninstalls: Removing the extension via the Cursor graphical interface or upgrading to clean version 2.1.314 removes only the extension directory itself. The standalone LaunchAgents, startup scripts, crontab modifications, background retry loops, and authorized keys dropped by the implant remain intact and active, necessitating dedicated host eradication across all affected estates.
Chapter 02 - Threat & Exposure Analysis
The attack chain of the trojanized Anthropic.claude-code package demonstrates a deliberate blend of zero click initial execution, environment discovery, credential harvesting preparation, and cross platform persistence.
[+] Extension Loader Entry Point And Error Suppression: The threat actor retained the entire genuine Claude Code extension bundle intact to prevent runtime crashes or missing capability warnings that would alert developers. The injected sixty six line prefix imports standard Node.js native modules including child_process, fs, os, path, http, and crypto. Crucially, virtually all functional operations reside within wrapped exception handlers that silently swallow errors, allowing the legitimate extension activate lifecycle to complete unimpeded.
[+] Environment Reconnaissance And Selective Secret Enumeration: Approximately 1.5 seconds following editor launch, the script issues an HTTP POST beacon to hxxp://134.209.82[.]225:8099/beacon. The exfiltrated JSON document aggregates public IP telemetry via api[.]ipify[.]org or ifconfig[.]me, local hostname, OS release details, CPU architecture, current working directory, and user identity via git config --global user.email. The script enumerates the names of up to forty process environment variables containing substrings KEY, TOKEN, SECRET, PASS, AWS, or GCP. By extracting variable names rather than raw values, the adversary evades pattern matching Data Loss Prevention rules while pinpointing high value engineering endpoints holding cloud infrastructure credentials.
[+] Asymmetric Dual Key Architecture And Loopback Masking: The malware decouples client outbound tunneling from operator inbound authentication. Key 1 (svc-telemetry-tun) is an embedded private key written to ~/.config/.smtk on Unix or %USERPROFILE%.config\smtk on Windows, used solely to authenticate an outbound SSH session as the tunnel user to 134.209.82[.]225:22 with argument -R *:0:localhost:22. Key 2 (svc-telemetry) is an Ed25519 public key appended to authorized keys. When an operator connects into the forwarded port on the command and control node, the traffic tunnels into local port 22, evading external network egress monitoring and disguising interactive sessions behind 127.0.0.1.
[+] Local SSH Daemon Enablement Flaws Across Operating Systems: For the backdoor tunnel to provide an interactive shell, an OpenSSH daemon must be actively running on the target endpoint. The threat actor attempted automated service enablement across all platforms, but introduced notable logical flaws:
On macOS, the script executes systemsetup -getremotelogin without root privileges and matches stdout against regex /Off/i. On modern macOS versions, non root invocation outputs an authorization error rather than the string Off, causing the regex check to fail and skipping the subsequent sudo -n systemsetup -setremotelogin on command. Even if reached, sudo -n fails on standard systems without cached credentials or passwordless sudo privileges. However, on developer systems where Remote Login was already enabled legitimately, the backdoor functions immediately.
On Windows, the payload attempts OpenSSH Server installation through PowerShell, but routes the execution through a detached helper that hardcodes /bin/sh, resulting in immediate command failure on standard Windows installations lacking a Bourne shell binary.
On Linux, the script attempts systemctl enable --now sshd and ssh, falling back to legacy service invocations.
[+] Cross Platform Reboot Persistence Vectors: Despite flaws in SSH daemon activation, the dropped persistence mechanisms function reliably:
macOS hosts receive a rogue user LaunchAgent placed at ~/Library/LaunchAgents/com.apple.sysmond.plist, configured with RunAtLoad and KeepAlive flags set to true, pointing to /bin/sh executing ~/.config/.smt. The agent masquerades as Apple legitimate sysmond service, which legitimately lives in /System/Library/LaunchDaemons/ rather than user LaunchAgents.
Windows hosts receive an attempted scheduled task named SysMon requesting SYSTEM context, falling back to writing %APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd.
Linux hosts receive an @reboot entry in the user crontab executing ~/.config/.smt every sixty seconds. A logic bug in the crontab parser can also inadvertently overwrite existing user scheduled tasks.
[+] Supply Chain Vector And Distribution Scope: Cursor telemetry indicates up to 5,000 individual users downloaded or auto updated the malicious 2.1.313 release during the eleven hour window. While early social reporting incorrectly alleged an upstream compromise of Anthropic or Open VSX, registry verification confirms the incident was confined entirely to the Cursor marketplace serving infrastructure, which was rebuilt and rekeyed before restoration.
Chapter 03 - Operational Response
Remediation requires comprehensive host based eradication. Updating the extension to version 2.1.314 or removing Cursor does not neutralize dropped persistence scripts or remove injected authorized keys.
[+] Mandatory Multi Stage Host Containment And File Eradication: Incident response personnel must disconnect suspected developer machines from internal corporate networks and run surgical eradication commands across user profiles.
macOS Remediation:
Linux Remediation:
Windows Remediation (Run via elevated PowerShell):
[+] Surgical Inspection And Removal Of Unauthorized SSH Authorized Keys: Audit all authorized keys files across ~/.ssh/authorized_keys and Windows C:\ProgramData\ssh\administrators_authorized_keys. Specifically match both the comment string svc-telemetry and the cryptographic public key SHA256 fingerprint SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk.
[+] Process Termination And Network Egress Blocking: Terminate running ssh or autossh processes connecting out to remote IP 134.209.82[.]225. Enforce border and host firewall rules blocking all outbound communication to 134.209.82[.]225 across ports 22 and 8099.
[+] Targeted Credential Revocation And Secret Invalidation: Because the initial beacon collected the names of environment variables matching AWS, GCP, TOKEN, KEY, SECRET, and PASS, and because hosts with pre active SSH allowed arbitrary terminal interaction, security teams must treat all secrets on affected developer endpoints as compromised. Revoke and rotate AWS access keys, GCP service account tokens, GitHub Personal Access Tokens, corporate VPN certificates, and database credentials accessible from the user workspace.
[+] Complete Reimaging Assessment For Pre Enabled SSH Hosts: If a compromised macOS or Linux workstation already had Remote Login or sshd running prior to October 29, 2026, the reverse SSH tunnel provided full interactive shell execution while the adversary C2 was online. Such machines must be designated as active intrusions, forensically imaged, and completely reimaged from known good base media.
Timestamp (UTC) | Phase | Entity Involved | Operational Milestone Summary |
|---|---|---|---|
2026-10-29T09:27:00Z | Initial Distribution | Cursor VS Code Marketplace | Trojanized Anthropic.claude-code version 2.1.313 is published and served to users. |
2026-10-29T10:00:00Z | Telemetry Ingestion | Adversary Infrastructure | Automated beacons transmit developer metadata and env var names to 134.209.82[.]225:8099. |
2026-10-29T20:35:00Z | Detection & Isolation | Cursor Security Team | Cursor detects unauthorized package tampering, delists version 2.1.313, and takes marketplace offline. |
2026-10-29T22:00:00Z | Infrastructure Null Route | DigitalOcean & Cursor | Upstream hosting provider null routes adversary command and control node at 134.209.82[.]225. |
2026-10-30T00:12:00Z | Clean Upstream Release | Anthropic & Open VSX | Clean version 2.1.314 is released across official distribution registries, skipping 2.1.313. |
2026-10-30T07:46:00Z | Public Disclosure | Cursor Security Team | Cursor issues public security notice, remediation scripts, and direct notifications to 5,000 affected users. |
2026-10-30T11:00:00Z | Reverse Engineering | Phorion macOS Security | Phorion publishes technical analysis detailing the 66 line loader, dual keys, and macOS privilege bugs. |
2026-10-30T16:00:00Z | Ecosystem Verification | Socket Security & Sophos | Security researchers confirm Microsoft VS Code Marketplace and Open VSX registries remained uncompromised. |
2026-10-30T20:30:00Z | Incident Tracking | Global SOC & CTI Teams | Enterprise detection engineering teams deploy Sigma rules and osquery sweeps to eradicate persistence artifacts. |
Chapter 04 - Detection Intelligence
Indicator Value | Indicator Type | Threat Role | Recommended Handling Action |
|---|---|---|---|
134.209.82[.]225 | IPv4 Address | Adversary Command and Control & Reverse SSH Endpoint | Enforce universal firewall drop and hunt endpoint connections |
tunnel@134.209.82[.]225:22 | SSH Tunnel Endpoint | Reverse Port Forwarding Tunnel Target | Terminate matching system connections and block egress |
hxxp://134.209.82[.]225:8099/beacon | URL | Reconnaissance Data Exfiltration HTTP Endpoint | Monitor proxy logs and block HTTP communications |
hxxp://127.0.0.1:8099/beacon | URL | Local Loopback Diagnostic Beacon Attempt | Correlate with local endpoint web telemetry |
ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 | SHA-256 Hash | Trojanized extension.js Inside Version 2.1.313 | Quarantine file and purge matching extension folder |
7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278 | SHA-256 Hash | Embedded Private Tunnel Key (.smtk) | Locate and securely delete from all filesystem locations |
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry | SSH Public Key | Unauthorized Attacker Authentication Credential | Surgically purge from all user authorized keys files |
SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk | SSH Key Fingerprint | Cryptographic Fingerprint for Login Key (svc-telemetry) | Query SSH authentication logs for inbound connections |
SHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ | SSH Key Fingerprint | Cryptographic Fingerprint for Tunnel Key (svc-telemetry-tun) | Cross reference against endpoint identity stores |
~/Library/LaunchAgents/com.apple.sysmond.plist | File Path | Rogue macOS User Persistence LaunchAgent | Unload via launchctl and permanently delete file |
~/.config/.smt | File Path | Unix Background Tunnel Loop Shell Script | Kill running processes and remove from filesystem |
~/.config/.smtk | File Path | Unix Tunnel Authentication Private Key File | Purge file and audit directory access times |
%USERPROFILE%.config\smt.cmd | File Path | Windows Background Tunnel Batch Script | Delete file and verify process termination |
%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd | File Path | Windows Startup Folder Persistence Script | Remove file and audit user startup entries |
MITRE ATT&CK Tactic | Technique ID | Technique Name | Observed Or Demonstrated Adversarial Procedure |
|---|---|---|---|
Initial Access (TA0001) | T1195.002 | Compromise Software Supply Chain | Trojanizing Anthropic.claude-code version 2.1.313 on Cursor Extension Marketplace. |
Execution (TA0002) | T1059.007 | Command and Scripting Interpreter: JavaScript | Executing 66 line malicious loader inside extension.js upon editor initial load. |
Execution (TA0002) | T1059.004 | Command and Scripting Interpreter: Unix Shell | Spawning background shell loop via /bin/sh executing ~/.config/.smt. |
Persistence (TA0003) | T1098.004 | Account Manipulation: SSH Authorized Keys | Appending attacker Ed25519 public key labeled svc-telemetry to authorized keys. |
Persistence (TA0003) | T1543.001 | Create or Modify System Process: Launch Agent | Deploying rogue LaunchAgent at ~/Library/LaunchAgents/com.apple.sysmond.plist. |
Persistence (TA0003) | T1053.003 | Scheduled Task/Job: Cron | Injecting @reboot entry into user crontab executing ~/.config/.smt. |
Persistence (TA0003) | T1547.001 | Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder | Writing persistent sysmon.cmd script into Windows user Startup directory. |
Defense Evasion (TA0005) | T1036.005 | Masquerading: Match Legitimate Name or Location | Labeling malicious LaunchAgent as com.apple.sysmond and scheduled task as SysMon. |
Defense Evasion (TA0005) | T1564.001 | Hide Artifacts: Hidden Files and Directories | Writing payloads and keys to dotfiles in ~/.config/.smt and ~/.config/.smtk. |
Discovery (TA0007) | T1082 | System Information Discovery | Harvesting operating system version, CPU architecture, and local hostname. |
Discovery (TA0007) | T1033 | System Owner/User Discovery | Extracting developer identity via git config --global user.email and local username. |
Discovery (TA0007) | T1016.001 | Internet Connection Discovery | Resolving public egress WAN IP through api[.]ipify[.]org and ifconfig[.]me. |
Credential Access (TA0006) | T1552.001 | Unsecured Credentials: Credentials In Files / Environment | Scanning process.env keys matching AWS, GCP, TOKEN, SECRET, KEY, and PASS. |
Command and Control (TA0011) | T1572 | Protocol Tunneling | Spawning reverse SSH tunnel (-R *:0:localhost:22) to tunnel@134.209.82[.]225. |
Command and Control (TA0011) | T1071.001 | Application Layer Protocol: Web Protocols | Sending reconnaissance metadata via HTTP POST to 134.209.82[.]225:8099/beacon. |
MITRE D3FEND ID | Countermeasure Name | Defensive Implementation Guidance |
|---|---|---|
D3-SCA | Software Configuration Audit | Inspect authorized keys and user LaunchAgents continuously for unauthorized additions. |
D3-PM | Process Modification | Terminate rogue background shell loops executing .smt scripts and reverse SSH tunnels. |
D3-FA | File Access Mediation | Restrict write permissions to ~/.ssh/authorized_keys and ~/Library/LaunchAgents/. |
D3-OTP | Outbound Traffic Policy | Block external egress to untrusted remote hosts over port 22 and unencrypted port 8099. |
D3-CH | Certificate / Key Hardening | Mandate Ed25519 key rotation and revoke all environment tokens present on affected hosts. |
Chapter 05 - Governance, Risk & Compliance
While this incident originated through a third party IDE marketplace distribution pipeline, its execution on developer workstations directly implicates regulatory compliance boundaries and internal corporate risk governance frameworks.
[+] SOC 2 Type II And ISO 27001 Annex A Compliance: Service Organization Control (SOC 2) Common Criteria CC6.8 and ISO 27001 Annex A control A.8.19 require organizations to implement robust controls preventing malicious software execution on development assets. Because workstations running version 2.1.313 had unauthorized SSH keys and persistence scripts installed, compliance teams must document complete endpoint audit logs, containment actions, and credential rotations to satisfy external auditor scrutiny.
[+] Secret Exposure And Breach Notification Assessment: The automated enumeration of environment variable keys matching AWS, GCP, TOKEN, and SECRET means developer workstations holding production cloud tokens suffered exposure. If affected machines were operating an active SSH daemon prior to October 29, 2026, interactive access across the reverse tunnel must be treated as an unauthorized system intrusion. Compliance officers must evaluate whether developer machines held customer Personally Identifiable Information (PII) to determine if mandatory data breach notifications under GDPR Article 33 or state privacy laws are triggered.
[+] Third Party Software Extension Governance: The rapid adoption of AI coding assistants and third party marketplace plugins creates an unmonitored shadow IT vector. Enterprise security governance policies must enforce marketplace whitelisting, preventing developers from installing extensions that lack automated provenance verification, code signing validation, and reproducible build pipelines.
Chapter 06 - Adversary Emulation
Security engineering teams should execute the following non destructive adversary emulation scenario in an isolated test laboratory environment to evaluate whether existing endpoint detection and response (EDR) rules detect the threat.
[+] Step 1 Emulate Malicious LaunchAgent Placement: On a macOS staging virtual machine, generate a benign mock plist at ~/Library/LaunchAgents/com.apple.sysmond.plist containing a test echo script:
Verify that the host EDR alerts on a non Apple binary creating a LaunchAgent masquerading under the com.apple namespace.
[+] Step 2 Test Synthetic Authorized Keys Addition: Append a dummy test key containing the comment svc-telemetry to a secondary user authorized keys file:
Verify that file integrity monitoring (FIM) and osquery scheduled searches generate an immediate high priority detection for the malicious key string.
[+] Step 3 Emulate Outbound Reverse SSH Tunnel Command Line: Execute a simulated reverse SSH command pointing toward an internal local sinkhole IP (e.g., 127.0.0.2) rather than the external malicious IP:
Confirm that SIEM process execution rules trigger on the combined presence of remote port forwarding flags (-R *:0:localhost:22) initiated from non standard developer terminal contexts.
Analytical confidence is high based on verified incident advisories from Cursor alongside static reverse engineering disclosures published independently by Phorion, OpenSourceMalware, Sophos, and Socket Security. Telemetry confirms that malicious build 2.1.313 of the Anthropic Claude Code extension was live on the Cursor Extension Marketplace between 09:27 UTC and 20:35 UTC on October 29, 2026, reaching up to 5,000 developer endpoints. Forensic inspection verified the malicious JavaScript loader prepended to extension.js, the attacker Ed25519 public key, the command and control endpoint at 134.209.82[.]225, and local persistence artifacts. Upstream registry verification confirmed Microsoft VS Code Marketplace, npm, and Open VSX did not distribute the backdoored build. Identity of the threat actor remains under attribution as of October 30, 2026.
