Trusted Tool, Malicious Build: What the Trojanized Claude Code Extension Means for Developer Endpoints
Trojanized Claude Code extension v2.1.313 on Open VSX and Cursor installed SSH backdoor persistence on developer workstations for ~11 hours, exposing ~5,000 users to remote access. The malicious build added an attacker SSH key to authorized_keys and created scheduled task or LaunchAgent persistence to maintain a reverse SSH tunnel to 134.209.82.225. Host and user details were exfiltrated to an attacker-controlled server. Credential rotation and host rebuilding are recommended for affected machines.
Detection / HunterZ.ai
Immediate Actions
- Isolate affected hosts before remediation
- Remove SSH key and persistence; uninstalling extension does not remove backdoor
- Rotate credentials reachable from affected machines: SSH keys, cloud tokens, Git credentials
- Hunt fleet-wide for indicators in endpoint, network, and extension-install logs
Key Takeaways
- Extension version 2.1.313 was malicious; distributed via Open VSX and Cursor marketplace for ~11 hours
- ~5,000 users affected per Cursor; malicious build was not developed by Anthropic
- Persistence retried reverse SSH tunnel every 60 seconds via LaunchAgent or scheduled task
- SSH key comment 'svc-telemetry' marks the attacker's unauthorized key in authorized_keys
- Enabling SSH server required admin rights and generally failed; key and persistence still installed
Attack Chain
- Initial Access: Malicious extension v2.1.313 distributed via Open VSX and Cursor marketplace
- Execution: Extension collects host/user details, sends to attacker-controlled server
- Persistence: SSH key svc-telemetry added to authorized_keys; LaunchAgent/scheduled task created
- C2: Reverse SSH tunnel to 134[.]209[.]82[.]225 retried every 60 seconds
- Exfiltration: Persistent access enables ongoing data theft from developer workstation
Affected Systems
- Windows developer workstations running Cursor IDE
- macOS developer workstations running Cursor IDE
- Any editor pulling extensions from Open VSX registry
Detection Availability
- Platforms: Cursor advisory
No detection rules published; Cursor advisory lists file hashes, key fingerprints, and remediation scripts.
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Editor process modifying SSH authorized_keys files indicates credential manipulation (T1098.004) | File modification events on authorized_keys | Persistence | Low — legitimate SSH key management rarely originates from editors |
| Scheduled task named SysMon created by non-system process indicates persistence (T1053.005) | Scheduled task creation events with task name | Persistence | Low — SysMon name mimics legitimate Windows tool |
| Outbound SSH connections from developer workstations to unknown IPs indicate C2 (T1021.004) | Network connection logs with destination port 22 | Command and Control | Medium — developers may have legitimate SSH sessions |
| HTTP beacon to non-standard port 8099 with /beacon path from editor process (T1071.001) | Network connection logs with destination port 8099 | Command and Control | Low — port 8099 HTTP traffic from editors is unusual |
Required Log Sources
- Endpoint EDR telemetry
- Process creation logs
- Network connection logs
- Scheduled task creation events
- File modification logs
Control Gaps
- Extension marketplace trust model allows malicious builds under legitimate publishers
- Application allowlisting by reputation does not prevent trojanized approved tools
- No behavioral controls on AI tools modifying SSH configuration files
Recommendations
Infrastructure Hardening
- Block 134[.]209[.]82[.]225 on all egress firewall rules
- Monitor Open VSX for unexpected extension version changes or new publisher activity
- Restrict outbound SSH from developer workstations to known, approved hosts
- Implement behavioral controls for AI tools modifying SSH configuration
User Protection
- Update Claude Code extension to a known-clean version
- Audit all developer machines for extension version 2.1.313
- Run Cursor remediation scripts on affected macOS and Windows hosts
- Enable EDR behavioral controls for AI coding tool extensions
MITRE ATT&CK Mapping
- filenamecom.apple.sysmond.plistmacOS LaunchAgent persistence disguised as system monitor
- filenamesmt.cmdWindows .config directory persistence script
- filenamesysmon.cmdWindows Startup folder persistence script
- file_path%APPDATA%\Microsoft\Windows\StartMenu\Programs\Startup\sysmon.cmdWindows Startup folder persistence script full path
- file_path~/.config/.smtmacOS hidden persistence/tunnel file
- file_path~/.config/.smtkmacOS hidden persistence/tunnel file
- file_path~/Library/LaunchAgents/com.apple.sysmond.plistmacOS LaunchAgent persistence full path
- file_path%USERPROFILE%\.config\smt.cmdWindows persistence script in .config directory
- ip134[.]209[.]82[.]225Attacker C2 for reverse SSH and HTTP beacon
- urlhxxp://134[.]209[.]82[.]225:8099/beaconHTTP beacon endpoint on non-standard port 8099