3 minhigh
Cursor Removes Malicious Claude Code 2.1.313 Extension From Its Marketplace
Malicious Claude Code extension v2.1.313 distributed via Cursor marketplace adds SSH keys and reverse tunnels, potentially affecting 5,000 developers. Cursor confirmed malicious Claude Code extension v2.1.313 was available on its marketplace October 29, affecting up to 5,000 users. The macOS build adds SSH authorized keys, establishes reverse SSH tunnels, and installs persistence. Socket found no publication records on Open VSX or npm, establishing Cursor's marketplace as the sole confirmed distribution path.
Sens:■ ImmediateConf:mediumAnalyzed:2026-11-05Z.ai
Authors: Socket Research Team
Actorsigorkofman
Source:Socket
Detection / HunterZ.ai
Immediate Actions
- Check developer workstations for Claude Code extension version 2.1.313
- Review ~/.ssh/authorized_keys for unauthorized entries on affected machines
- Rotate SSH keys and credentials on any machine that ran v2.1.313
Key Takeaways
- Version 2.1.313 absent from npm, Open VSX, and GitHub release records
- Malicious extension adds SSH authorized keys and reverse SSH tunnels
- Cursor rotated marketplace keys and took attacker server offline
- Publisher account 'igorkofman' shown for malicious extension on Open VSX
- Suspicious GitHub commit b69bc36 with message 'ci: bump cache config'
Attack Chain
- Initial Access: Malicious Claude Code v2.1.313 published to Cursor marketplace
- Execution: Extension installed via marketplace update on developer machines
- Persistence: Malware adds SSH authorized key and installs persistence
- C2: Reverse SSH tunnel established to attacker-controlled server
- Remediation: Cursor removed extension, rotated keys, took server offline
Affected Systems
- Cursor IDE users who installed extensions from marketplace
- macOS developer workstations
- Windows developer workstations
- VS Code and Cursor extension marketplace users
Detection Availability
- Platforms: Cursor security notice
Cursor published hashes, IOCs, and remediation scripts in its security notice; not reproduced in this article.
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Monitor for new entries in ~/.ssh/authorized_keys on developer workstations (T1098.004) | File integrity monitoring | Persistence | Low — rare on developer workstations |
| Hunt for outbound SSH connections from IDE or extension host processes to non-corporate IPs (T1572, T1021.004) | Egress firewall logs | Command and Control | Medium — developers use SSH legitimately |
| Detect new persistence mechanisms created within minutes of extension installation events in Cursor (T1547) | EDR process execution logs | Persistence | Low — correlation narrows scope |
Required Log Sources
- SSH authorized_keys file modifications
- EDR process execution logs
- Egress firewall or proxy logs
- Cursor extension install logs
- Open VSX registry change feed
- npm publication metadata
Control Gaps
- Extension marketplace lacked publisher verification for Claude Code extension
- No integrity verification between official npm packages and marketplace listings
Recommendations
Infrastructure Hardening
- Block outbound SSH from developer workstations to non-whitelisted IPs
- Enforce extension signing and publisher verification on IDE marketplaces
- Monitor npm and Open VSX registry feeds for unauthorized version publications
User Protection
- Update Claude Code to version 2.1.314 or later from official sources
- Reinstall extensions only from verified publisher accounts
- Run Cursor remediation scripts on potentially affected machines
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping5 techniques
Tactic
Initial Access
Tactic
Persistence
Tactic
Lateral Movement
Tactic
Command and Control
Showing defanged values
- npm_package@anthropic-ai/claude-codeMalicious version 2.1.313 distributed via Cursor marketplace