Threat reportSupply ChainTL-2026-4820
Malicious Anthropic.claude-code extension version 2.1.313 distributed via Cursor Extension Marketplace (SSH backdoor and persistence on macOS and Windows)
Cursor reported that a malicious version (2.1.313) of the Anthropic.claude-code extension was available on the Cursor extension marketplace for macOS (darwin-arm64) and Windows (win32-x64) on 2026-10-29 from 2:27 AM PT until it was removed at 1:35 PM PT. The package collected host and user data, tried to add an attacker SSH key and enable SSH with a reverse tunnel, installed persistence, and reported to 134.209.82.225; at most 5,000 users were affected.
Key facts
| Identifiers | TL-2026-4820 |
|---|---|
| Severity | HIGH |
| First disclosed | |
| Affected products | Cursor Cursor Extension Marketplace - Anthropic.claude-code extension (darwin-arm64, win32-x64) |
| Weaknesses (CWE) | CWE-506, CWE-1357 |
| MITRE ATT&CK techniques | T1016 System Network Configuration Discovery, T1021.004 SSH, T1033 System Owner/User Discovery, T1036.005 Match Legitimate Resource Name or Location, T1041 Exfiltration Over C2 Channel, T1053.003 Scheduled Task/Job, T1053.005 Scheduled Task, T1059.001 PowerShell, T1059.003 Windows Command Shell, T1059.004 Unix Shell, T1059.007 Command and Scripting Interpreter, T1071.001 Web Protocols and 10 more in the attack flow |
| Motivation | UNKNOWN |
| Target sectors | technology, software-development |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 6 cited sources |
Detection coverage
As of 2026-11-01, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-4820 across Splunk SPL, Microsoft KQL and Sigma, covering 50 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: Cursor Process Spawning SSH Backdoor Setup Commands (Anthropic.claude-code 2.1.313) - Exploitation
Detects a Cursor process (the Electron/extension host) spawning commands that enable OpenSSH Server, inject the svc-telemetry attacker key into authorized_keys, create the SysMon scheduled task, open an ssh/autossh reverse tunnel, or reference the 134.209.82.225 C2. This is the execution stage of the malicious Anthropic.claude-code 2.1.313 extension distributed through the Cursor marketplace on 2026-10-29. Behaviour-first: it keys on what the extension host does, not on a single IOC, so it still fires if the C2 address changes.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1195.002, T1059.001, T1059.003, T1098.004, T1053.005, T1572, T1133
- Data sources: Sysmon EventCode 1 (XmlWinEventLog:Microsoft-Windows-Sysmon/Operational, index=windows)
- Severity: high
- Confidence: high
Splunk SPL
```comment
TL-2026-4820 malicious Anthropic.claude-code 2.1.313 - Cursor child process enabling SSH, injecting the svc-telemetry key, creating the SysMon task or opening a reverse tunnel to 134.209.82.225
```
index=windows sourcetype="XmlWinEventLog:Microsoft-Windows-Sysmon/Operational" EventCode=1 ParentImage="*Cursor.exe" earliest=-24h
| eval cmd=lower(CommandLine)
| eval signal=case(
like(cmd,"%add-windowscapability%") AND like(cmd,"%openssh.server%"), "openssh_server_install",
like(cmd,"%schtasks%") AND like(cmd,"%/create%") AND like(cmd,"%sysmon%"), "sysmon_scheduled_task",
like(cmd,"%authorized_keys%") OR like(cmd,"%svc-telemetry%"), "ssh_key_injection",
like(cmd,"%ssh%") AND like(cmd,"% -n %") AND like(cmd,"% -r %") AND (like(cmd,"%stricthostkeychecking=no%") OR like(cmd,"%:0:localhost:22%")), "reverse_ssh_tunnel",
like(cmd,"%autossh%") AND like(cmd,"%-m 0%"), "autossh_tunnel",
like(cmd,"%134.209.82.225%"), "c2_ip_reference")
| where isnotnull(signal)
| stats count min(_time) as firstTime max(_time) as lastTime values(signal) as signals values(CommandLine) as commands by host, User, ParentImage, Image
| convert ctime(firstTime) ctime(lastTime)Microsoft KQL
let cursorProcs = dynamic(["Cursor.exe","Cursor","Cursor Helper","Cursor Helper (Plugin)"]);
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName in~ (cursorProcs)
| extend Cmd = tolower(ProcessCommandLine)
| extend Signal = case(
Cmd contains "add-windowscapability" and Cmd contains "openssh.server", "openssh_server_install",
Cmd contains "-setremotelogin on", "macos_remote_login_enable",
Cmd contains "schtasks" and Cmd contains "/create" and Cmd contains "sysmon", "sysmon_scheduled_task",
Cmd contains "authorized_keys" or Cmd contains "svc-telemetry", "ssh_key_injection",
Cmd contains "ssh" and Cmd contains " -n " and Cmd contains " -r " and (Cmd contains "stricthostkeychecking=no" or Cmd contains ":0:localhost:22"), "reverse_ssh_tunnel",
Cmd contains "autossh", "autossh_tunnel",
Cmd contains "com.apple.sysmond", "launchagent_persistence",
Cmd contains "134.209.82.225", "c2_ip_reference",
"")
| where Signal != ""
| project Timestamp, DeviceName, AccountName, InitiatingProcessFileName, InitiatingProcessCommandLine, FileName, ProcessCommandLine, Signal, SHA256Sigma
title: Cursor Process Spawning SSH Backdoor Setup Commands
id: 3f6a1c2e-8d47-4b9a-a5e1-0c7d92b4f801
status: experimental
description: Detects a Cursor process spawning commands that enable OpenSSH Server, inject the svc-telemetry SSH key, create the SysMon scheduled task or open a reverse SSH tunnel, as performed by the malicious Anthropic.claude-code 2.1.313 extension.
references:
- https://cursor.com/blog/claude-code-extension-security-notice
- https://attack.mitre.org/techniques/T1195/002/
author: Threadlinqs Team
date: 2026-10-30
tags:
- attack.initial-access
- attack.t1195.002
- attack.execution
- attack.t1059.001
- attack.t1059.003
- attack.persistence
- attack.t1098.004
- attack.t1053.005
- attack.command-and-control
- attack.t1572
logsource:
category: process_creation
product: windows
detection:
selection_parent:
ParentImage|endswith: 'Cursor.exe'
payload_openssh:
CommandLine|contains|all:
- 'Add-WindowsCapability'
- 'OpenSSH.Server'
payload_task:
CommandLine|contains|all:
- 'schtasks'
- '/create'
- 'sysmon'
payload_key:
CommandLine|contains:
- 'authorized_keys'
- 'svc-telemetry'
payload_tunnel:
CommandLine|contains|all:
- 'ssh'
- ' -N '
- ' -R '
payload_c2:
CommandLine|contains: '134.209.82.225'
condition: selection_parent and 1 of payload_*
falsepositives:
- Developers legitimately using the Cursor integrated terminal to run ssh or schtasks
level: highKnown false positives:
- Developers running ssh, schtasks or PowerShell manually from the Cursor integrated terminal (Cursor.exe is the parent of terminal shells)
- Legitimate Remote-SSH or port-forwarding workflows started from Cursor
Tuning notes: Adjust index=windows to the index holding Sysmon data. Exclude the integrated-terminal shell by requiring the parent command line to contain an extension-host marker (for example --type=utility) or by excluding known developer accounts. Hosts that legitimately forward ports over SSH should be allowlisted by destination, never by the -N/-R flags alone.
- Cursor Extension Host Host-Reconnaissance Burst (Hostname, User, Git Email, Public IP, Env) - Exploitation · unlock with TL Creds
- Fake SysMon Scheduled Task and [indicator] LaunchAgent Persistence - Post-Exploitation · unlock with TL Creds
- Reverse SSH Tunnel via ssh -N -R or autossh to Untrusted Host (StrictHostKeyChecking=no) - C2 / Lateral Movement · unlock with TL Creds
- Malicious Anthropic.claude-code 2.1.313 Extension Package Installed in Cursor - Exploitation · unlock with TL Creds
- Attacker SSH Key Injection and SSH Service Enablement on macOS ([indicator]) - Post-Exploitation · unlock with TL Creds
- HTTP Beacon POST to /beacon on TCP 8099 (Claude Code Extension Backdoor Status Report) - C2 · unlock with TL Creds
- Persistence Artifacts Dropped by Malicious Claude Code Extension (LaunchAgent, Startup Script, Hidden Helpers) - Post-Exploitation · unlock with TL Creds
- Network Contact with Claude Code Extension Backdoor Server [indicator] (SSH Tunnel and Beacon) - C2 · unlock with TL Creds
Indicators of compromise
As of 2026-11-01, Threadlinqs Intelligence tracks 50 indicators of compromise for TL-2026-4820.
Sample indicators (3 of 50)
- IP address:
134.209.82[.]225 - File hash:
432ccdee3801f99e52b8fe31f69ea9870118e96ea7ef9ecabed1479621b5ab62 - File hash:
3de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd081
Defanged, TLP:CLEAR. Full set of 50 indicators: unlock with TL Creds.
Technical analysis
On 2026-10-29 at 2:27 AM PT a malicious build of the Anthropic.claude-code extension, version 2.1.313, became available through the Cursor VS Code extension marketplace. Cursor detected the incident and removed it at 1:35 PM PT the same day (about 11 hours). Only the darwin-arm64 (macOS Apple silicon) and win32-x64 (Windows) packages were malicious. Cursor states that at most 5,000 users were affected. The vendor notice does not describe how the malicious version reached the marketplace, and no CVE, CVSS score or threat-actor attribution has been published.
Per Cursor's notice the extension performs four actions in sequence. (1) It collects system data: hostname, username, OS type, architecture, home directory, environment variable names, working directories, Git email and public IP address. (2) It attempts to append an attacker ed25519 SSH public key (comment 'svc-telemetry') to authorized_keys, enable the SSH service (systemsetup -setremotelogin on on macOS; Add-WindowsCapability OpenSSH.Server on Windows) and establish a reverse tunnel (ssh -N -R '*:0:localhost:22', or autossh -M 0, with StrictHostKeyChecking=no, UserKnownHostsFile=/dev/null, ServerAliveInterval=30 and ServerAliveCountMax=3) to tunnel@134.209.82.225:22. This step fails on most systems because it requires administrator privileges. (3) It installs persistence that retries the tunnel roughly every 60 seconds: a LaunchAgent (~/Library/LaunchAgents/com.apple.sysmond.plist, label com.apple.sysmond) on macOS, and a scheduled task named 'SysMon' (which attempts to run as SYSTEM) plus a Startup-folder script sysmon.cmd on Windows. Helper files include ~/.config/.smt, ~/.config/.smtk (smt.cmd and smtk on Windows) and a temp file named .stk_<10 hex>. (4) It posts host details and backdoor status over HTTP to the /beacon endpoint on port 8099 of 134.209.82.225; a loopback beacon (127.0.0.1:8099/beacon) is also listed as an indicator.
Response: Cursor removed the malicious version, blocked further distribution, temporarily shut down the marketplace, audited access and confirmed no other extensions were compromised, rotated cryptographic keys, rebuilt marketplace infrastructure and coordinated with the hosting provider to take the attacker server offline. The hunt record states the vendor assessed the attacker server as no longer functioning and most privilege-escalation attempts as failed, so the incident is treated as contained. Hosts that installed 2.1.313 may nevertheless retain persistence artifacts and an authorized SSH key; Cursor warns that uninstalling the extension may not be sufficient because the payload drops standalone persistence scripts. Cursor provides a one-line check for the svc-telemetry key in authorized_keys (and C:\ProgramData\ssh\administrators_authorized_keys on Windows) and remediation scripts remediate-macos.sh (run as the affected user, not root) and remediate-windows.ps1 (run as Administrator). The notice says environment variable names, not values, were collected; credentials in affected developers' environments may still warrant review as a precaution.
MITRE ATT&CK techniques by tactic:
Discovery
T1016 System Network Configuration Discovery; T1033 System Owner/User Discovery; T1082 System Information Discovery
Lateral Movement
Defense Evasion
T1036.005 Match Legitimate Resource Name or Location; T1564.001 Hidden Files and Directories
Exfiltration
T1041 Exfiltration Over C2 Channel
Persistence
T1053.003 Scheduled Task/Job; T1053.005 Scheduled Task; T1098.004 SSH Authorized Keys; T1133 External Remote Services; T1543.001 Launch Agent; T1547.001 Registry Run Keys / Startup Folder
Execution
T1059.001 PowerShell; T1059.003 Windows Command Shell; T1059.004 Unix Shell; T1059.007 Command and Scripting Interpreter
Command and Control
T1071.001 Web Protocols; T1571 Non-Standard Port; T1572 Protocol Tunneling
Initial Access
T1195.002 Compromise Software Supply Chain
Privilege Escalation
Remediation
Patches
- Malicious version 2.1.313 was removed from the Cursor Extension Marketplace on 2026-10-29; uninstall it if present and note that uninstalling alone does not remove dropped persistence
Immediate actions
- Check for the svc-telemetry key in ~/.ssh/authorized_keys (macOS) and %USERPROFILE%\.ssh\authorized_keys plus C:\ProgramData\ssh\administrators_authorized_keys (Windows)
- Run Cursor's remediation script: remediate-macos.sh as the affected user (not root) or remediate-windows.ps1 as Administrator
- Block outbound traffic to 134.209.82.225 (TCP 8099 and TCP 22) at the perimeter and egress proxies
- Hunt for the SysMon scheduled task, com.apple.sysmond.plist LaunchAgent, sysmon.cmd Startup script, ~/.config/.smt and .smtk files, and ssh/autossh reverse-tunnel processes
- As a precaution, review credentials and tokens referenced by environment variables on hosts that installed Anthropic.claude-code 2.1.313 (vendor states only variable names were collected)
Workarounds
- Disable or remove the Anthropic.claude-code extension in Cursor until verified clean
- Disable SSH/Remote Login on developer machines where it is not required
Longer-term hardening
- Restrict extension installation in IDEs to an allowlist of vetted publishers and pinned versions
- Alert on new SSH authorized_keys entries, enabling of Remote Login/OpenSSH Server, and new LaunchAgents or scheduled tasks created by IDE processes
- Monitor developer endpoints for reverse SSH tunnels to untrusted hosts
Affected and fixed versions
- Cursor — Cursor Extension Marketplace - Anthropic.claude-code extension (darwin-arm64, win32-x64)
Vulnerable versions: 2.1.313
Fixed in: Malicious version removed from the marketplace on 2026-10-29; uninstall 2.1.313 and run the vendor remediation script
Timeline
Last updated · 5 updates · revalidated 5× · latest source
Showing the 20 most recent tracked events.
- Cursor community forum thread raised concerns about Cursor's Open VSX extension marketplace security and spoofable extension metadata.
- Earlier developer-tool supply-chain attack (LiteLLM 1.107.0) that Cursor links to this incident in its notice.
- Clean Claude Code extension v2.1.312 published (20:26 UTC per StepSecurity); adjacent versions later verified clean.
- Phorion and OpenSourceMalware researchers identify the malicious JavaScript loader injected into extension.js.
- Cursor released remediation scripts remediate-macos.sh and remediate-windows.ps1 to remove the extension, persistence, tunnel processes and the svc-telemetry SSH key.
- Cursor published a security notice stating at most 5,000 users were affected and listing IOCs, package SHA-256 hashes and detection commands.
- Cursor rotated cryptographic keys and rebuilt marketplace infrastructure after the incident.
- Cursor coordinated with the hosting provider to take the attacker server (locked-ioc-28) offline; the hunt record notes the server no longer functions.
- Cursor blocked further distribution and temporarily shut down the marketplace while it audited access and confirmed no other extensions were compromised.
- Cursor detected the malicious version and removed it from the marketplace at 1:35 PM PT, roughly 11 hours after it was published.
- Malicious Anthropic.claude-code 2.1.313 (darwin-arm64 and win32-x64) became available on the Cursor extension marketplace at 2:27 AM PT.
- Microsoft published guidance to restrict extensions to approved publishers and to configure an extension installation cooldown that delays newly published versions.
- Microsoft documented Defender Antivirus detections (Trojan:MacOS/SmtShellMal.A, Trojan:JS/CredTheft.MS!MTB, Trojan:MacOS/MalPlistSysmond.A, HackTool:MacOS/RevAnthShell.A), Defender for Endpoint alerts and advanced hunting queries.
- Microsoft Security Blog published a technical analysis of the extension's loader, SSH key planting, reverse tunnel, persistence and IOCs.
- As reported in Microsoft's post, Anthropic confirmed that its systems were not compromised and that it did not develop the malicious package posted to the Cursor marketplace. Evidence indicates the incident was limited to the Cursor marketplace (not the Visual Studio Marketplace or npm).
- Expel publishes findings from four incidents at four customers (all macOS); one active tunnel was found without the svc-telemetry key in authorized_keys.
- Cursor updates its notice at about 11:30 PT (18:30 UTC) to add version 2.1.312 and correct IOCs.
- Expel observes first malicious activity in one incident at 04:45 UTC, about 8 hours after the exposure window closed; the tunnel is still active on the affected Mac at 14:29 UTC.
- BleepingComputer and security vendors publish analyses, including implementation flaws (unprivileged systemsetup call on macOS, /bin/sh on Windows) that prevented SSH activation on many hosts.
- Clean v2.1.314 published (01:07 UTC per StepSecurity); C2 infrastructure reported offline.
Update history
- 2026-11-01 — Trojanized Claude Code Extension (anthropic.claude-code 2.1.312/2.1.313) on Cursor Marketplace Delivered Persistent SSH Backdoor: What changed No severity, exploitability or status change. The trigger lists status MONITORING, which would be a de-escalation from ACTIVE, so it was not applied. New indicators (8) Indicator values are withheld at this access level.
- 2026-10-31 — Trojanized Claude Code-branded Cursor marketplace extension (anthropic.claude-code 2.1.312/2.1.313) deploys persistent SSH backdoor: What changed No change to severity (HIGH), exploitability (ACTIVE), status or attribution. Microsoft's independent analysis corroborates the existing record, including 2.1.312 and 2.1.313 as malicious.
- 2026-10-30 — Trojanized Claude Code Extension (v2.1.312/2.1.313) in Cursor Marketplace Installs SSH Backdoor: What changed Status MONITORING → ACTIVE: Expel saw malicious activity ~8 hours after the exposure window closed and a tunnel still active at 14:29 UTC on 2026-10-30, contradicting the 'contained' assessment.
- 2026-10-30 — Trojanized Claude Code Extension (anthropic.claude-code 2.1.313) Pushed to Cursor Marketplace With SSH Backdoor and Reverse Tunnel: What changed No severity, exploitability or status change; the existing HIGH / ACTIVE / MONITORING values stay as they are. The update adds loader-level technical detail only.
- 2026-10-30 — Trojanized Claude Code Extension (v2.1.313) on Cursor Marketplace Planted SSH Backdoors: What changed No severity/exploitability change (already HIGH / ACTIVE). Clean fixed version 2.1.314 now confirmed by third parties; adjacent 2.1.312 verified clean.
Sources cited
- Security notice - malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension Marketplace cursor.com · Vendor report · 2026-10-29
- Cursor Extensions Marketplace security (Open VSX) - Cursor community forum (earlier marketplace concerns) forum.cursor.com · Vendor report · 2025-08-03
- MITRE ATT&CK T1195.002 - Supply Chain Compromise: Compromise Software Supply Chain MITRE · Research · 2026-10-29
- MITRE ATT&CK T1098.004 - Account Manipulation: SSH Authorized Keys MITRE · Research · 2026-10-29
- MITRE ATT&CK T1572 - Protocol Tunneling MITRE · Research · 2026-10-29
- How to not lose $500k to a malicious Cursor extension (related earlier Cursor extension incident) dev.to · Blog · 2025-07-24
Previous and next in supply chain
Further reading
Drafted by the Threadlinqs research pipeline from 6 sources; published ; last updated .