# Security notice — malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) identified in the Cursor VS Code Extension Marketplace

Tampered Anthropic.claude-code 2.1.312/2.1.313 on Cursor Marketplace ran code adding attacker SSH key, persistence, and exfiltrating host details.

- Payout: Real-world hack
- Severity: high
- Program: Cursor
- Analysis by: Cursor
- Disclosed: 2026-10-29
- Write-up quality: 6/10
- Original: https://cursor.com/blog/claude-code-extension-security-notice
- Library page: https://bugbountylibrary.com/r/blog%3Acursor-com-blog-claude-code-extension-security-notice
- Tags: area:oss domain:oss impact:integrity impact:internal-access kind:incident platform:threat-intel sev:high tech:ci-cd technique:source-review vuln:rce vuln:secrets-leak

**Target:** VS Code extension (Anthropic.claude-code) in Cursor Marketplace
**Root cause:** A maliciously modified build of Anthropic's Claude Code extension was published to the Cursor VS Code Extension Marketplace; its extension.js contained attacker code referencing 134[.]209[.]82[.]225 and svc-telemetry.
**Steps:**
1. Attacker publishes tampered Anthropic.claude-code 2.1.312/2.1.313 (darwin-arm64, win32-x64) to Cursor Marketplace.
2. On install, extension.js collects hostname, username, OS, arch, home dir, env var names, working dirs, git email, public IP.
3. POSTs host details to `hxxp://134[.]209[.]82[.]225:8099/beacon` (loopback 127[.]0[.]0[.]1:8099/beacon also attempted).
4. Appends attacker key `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry` to authorized_keys.
5. Attempts `systemsetup -setremotelogin on` / `Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0` and reverse tunnel `ssh -N -R '*:0:localhost:22'` with StrictHostKeyChecking=no.
6. Installs persistence: LaunchAgent com.apple.sysmond.plist (macOS), scheduled task SysMon as SYSTEM with Startup sysmon.cmd fallback (Windows), cron @reboot (Linux); retries tunnel every ~60s.
**How found:** Cursor detected the incident and audited marketplace access, confirming no other extensions were tampered with; no researcher reasoning trail given.
**Exploitation:** Trojanized extension executes on install/update, exfiltrates host fingerprint data to attacker C2, plants attacker SSH key and persistence, and opens a reverse SSH tunnel to 134[.]209[.]82[.]225:22 for remote access; enabling SSH service requires admin rights so tunnel step failed on most hosts, but key and persistence remained.
**Escalation:** Persistence via LaunchAgent/scheduled task (SYSTEM attempt) and 60s retry loop to survive reboots and re-establish tunnel.
**Insight:** Supply-chain tampering of a trusted third-party extension in a marketplace: monitor published VSIX hashes against upstream releases and alert on extension.js referencing raw IPs or writing to authorized_keys/LaunchAgents.

