Trojanized claude-code Cursor extension
Trojanized Anthropic.claude-code 2.1.312 and 2.1.313 on the Cursor marketplace install a persistent SSH backdoor
Posted · Updated · Spectrum Delta Research Team
Summary
An unattributed actor published trojanized Anthropic.claude-code extension versions 2.1.312 and 2.1.313 on the Cursor marketplace between 02:27 and 13:35 PT on 29 October 2026. Microsoft's analysis shows the loader appends an attacker key commented svc-telemetry to authorized_keys, opens a reverse SSH tunnel to 134.209.82.225, posts host details and the names of secret-bearing environment variables to /beacon on port 8099, and installs per-OS persistence that survives uninstalling the extension. Cursor removed the package, rebuilt the marketplace, shipped fixed version 2.1.314 and estimated at most 5,000 users were exposed (Cursor, A/1); compromise of every exposed system is not established.
Breakdown
Targets
- Industry: Opportunistic
Technical exposure
- Anthropic.claude-code 2.1.312 or 2.1.313 installed from the Cursor marketplace
- Installed 29 Oct 2026 02:27-13:35 PT; fixed version is 2.1.314
- Persistence (key, tunnel, task) survives uninstalling the extension
Adversary
Unknown
Procedures (13)
Install trojanized Anthropic.claude-code 2.1.313
- T1195.002Supply Chain Compromise: Compromise Software Supply Chain
Logs
- Extension Marketplace and extension management logs · Extension install or update: Anthropic.claude-code; 2.1.313; Cursor
- Endpoint management Software inventory · Installed application or extension inventory: Anthropic.claude-code; 2.1.313; 2026-10-29 02:27–13:35 PT
Microsoft Defender for Endpoint Advanced Hunting · Software inventory or extension-file event: Anthropic.claude-code; 2.1.313; 2026-10-29 02:27–13:35 PT
Windows Sysmon Operational · Event ID 11 — FileCreate: 2026-10-29 02:27–13:35 PT
Execute payload on editor startup or webview activation
- T1204.002User Execution: Malicious File
Logs
- Visual Studio Code/Cursor Extension Host logs · Extension activation: Anthropic.claude-code; 2.1.313
Windows Sysmon Operational · Event ID 1 — ProcessCreate
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents
CrowdStrike Falcon Data Replicator · ProcessRollup2 or equivalent process execution
SentinelOne Deep Visibility · Process eventLinux auditd Audit log · SYSCALL execve
Collect host and operating-system metadata
- T1082System Information Discovery
Logs
Windows Sysmon Operational · Event ID 1 — ProcessCreate
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents
CrowdStrike Falcon Data Replicator · ProcessRollup2 or equivalent process execution
SentinelOne Deep Visibility · Process eventLinux auditd Audit log · SYSCALL execve
Collect username and Git email identity
- T1033System Owner/User Discovery
Logs
Windows Sysmon Operational · Event ID 1 — ProcessCreate
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents
CrowdStrike Falcon Data Replicator · ProcessRollup2 or equivalent process executionLinux auditd Audit log · SYSCALL execve
- Process_events · Process execution event
Discover public IP address
- T1016.001System Network Configuration Discovery: Internet Connection Discovery
Logs
Microsoft Defender for Endpoint Advanced Hunting · DeviceNetworkEvents
Windows Sysmon Operational · Event ID 3 — NetworkConnect
- Zeek Conn and http logs · Outbound connection or HTTP request
- Web proxy HTTP transaction logs · Outbound web request
Append attacker key to authorized_keys
- T1098.004Account Manipulation: SSH Authorized Keys
Logs
Windows Sysmon Operational · Event ID 11 — FileCreate: *.ssh\authorized_keys | Event ID 15 — FileCreateStreamHash: *.ssh\authorized_keys
Microsoft Defender for Endpoint Advanced Hunting · DeviceFileEvents: authorized_keys
CrowdStrike Falcon Data Replicator · File write or create event
SentinelOne Deep Visibility · File modification eventLinux auditd Audit log · PATH and SYSCALL openat/write/rename
- File_events · File change event
Enable or start the local SSH service
- T1543Create or Modify System Process
Logs
Windows Service Control Manager System log · Event ID 7035 or 7036 — Service control or state change
Windows Security log · Event ID 4697 — Service installed
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents or DeviceEvents
Linux auditd Audit log · SYSCALL execve
Service logs · SSH service unit state change
- Apple Unified Log Service and launch logs · SSH or remote-login service state event
Establish reverse SSH forwarding
- T1572Protocol Tunneling
Logs
Windows Sysmon Operational · Event ID 1 — ProcessCreate | Event ID 3 — NetworkConnect: 134.209.82.225
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents | DeviceNetworkEvents: 134.209.82.225
CrowdStrike Falcon Data Replicator · ProcessRollup2 and network-connect events: 134.209.82.225
SentinelOne Deep Visibility · Process and network events: 134.209.82.225- Zeek Conn and ssh logs · SSH connection: 134.209.82.225
- Network firewall Connection logs · Outbound connection: 134.209.82.225
Create Windows scheduled-task persistence
- T1053.005Scheduled Task/Job: Scheduled Task
Logs
Windows Security log · Event ID 4698 — Scheduled task created
Windows Sysmon Operational · Event ID 1 — ProcessCreate
Microsoft Defender for Endpoint Advanced Hunting · DeviceProcessEvents or DeviceEvents
CrowdStrike Falcon Data Replicator · Scheduled-task or process execution event
SentinelOne Deep Visibility · Persistence or process event- Scheduled_tasks · Scheduled task inventory
Create cron-based persistence
- T1053.003Scheduled Task/Job: Cron
Logs
Linux auditd Audit log · SYSCALL execve and openat/write/rename
- Crontab · Cron entry inventory
Cron logs · Cron configuration or execution event
- Falco EBPF runtime telemetry · Process execution or sensitive-file write
- EBPF process and file telemetry · ProcessExec or file access event
Install macOS LaunchAgent persistence
- T1543.001Create or Modify System Process: Launch Agent
Logs
- Apple Unified Log Launchd logs · LaunchAgent load or execution event
- Process and file telemetry · File create/write and process exec
- Launchd and file_events · Launchd inventory or file change
SentinelOne Deep Visibility · File modification and process eventMicrosoft Defender for Endpoint Advanced Hunting · DeviceFileEvents and DeviceProcessEvents
POST host and backdoor status to /beacon:8099
- T1071.001Application Layer Protocol: Web Protocols
Logs
Microsoft Defender for Endpoint Advanced Hunting · DeviceNetworkEvents: 134.209.82.225; 8099; /beacon
Windows Sysmon Operational · Event ID 3 — NetworkConnect: 134.209.82.225; 8099
CrowdStrike Falcon Data Replicator · Network connect event: 134.209.82.225; 8099- Zeek Http and conn logs · HTTP request: 134.209.82.225; 8099; POST
- Suricata HTTP and flow events · HTTP transaction: 134.209.82.225; 8099; POST
- Web proxy HTTP transaction logs · Outbound HTTP request: 134.209.82.225; 8099; POST
Executable written to the per-user startup folder
- T1547.001Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Logs
Microsoft Sysmon · Event ID 11 (FileCreate)
- EDR file events · File creation: contains \Microsoft\Windows\Start Menu\Programs\Startup\; ends with .cmd, .bat or .exe; FileCreated
Indicators of compromise
IPs (1)
- 134.209.82.225reverse SSH and HTTP beacon destination
URLs (1)
- http://134.209.82.225:8099/beaconhost-profile beacon URL
Hashes (2)
- ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15SHA-256, malicious JavaScript entry point
- 7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278SHA-256, decoded tunnel private-key file
Sources
- A/1Cursor: Security notice — malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension Marketplace
- B/1The Hacker News: Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
- B/1Reuters: Cursor says up to 5,000 users affected by tampered Claude Code extension
- B/2The Verge: Cursor says around 5,000 people may have installed a malicious Claude Code extension
Grades are source reliability (A–F) and information credibility (1–6).
Questions, detections or sightings of Trojanized claude-code Cursor extension? Bring them to the community.