From about 2:27am to 1:35pm PT on 10-29 (β14:57 IST 10-29 to 02:05 IST 10-30), Cursor's VS Code extension marketplace distributed tampered builds of Anthropic.claude-code 2.1.312 and 2.1.313 for macOS and Windows. Anthropic did not build them. A loader injected into extension.js runs when the extension loads. It reports hostname, username, OS, home path, working directories, git email, public IP and environment-variable *names* to 134.209.82[.]225. It appends an attacker Ed25519 key with the comment svc-telemetry to ~/.ssh/authorized_keys, tries to enable the local SSH server, and keeps a reverse tunnel (ssh -N -R '*:0:localhost:22' as tunnel@134.209.82[.]225) retrying about every 60 s. Persistence is a LaunchAgent com.apple.sysmond on macOS (plus ~/.config/.smt, .smtk and $TMPDIR/.stk_*), or a SysMon scheduled task with a Startup sysmon.cmd fallback on Windows. Cursor pulled the versions, shut down and rebuilt the marketplace, rotated its keys, and got the attacker server taken offline. It says turning on SSH needs admin rights, so on most hosts the tunnel login could not have worked, but the key, the persistence and the host report still landed. Microsoft confirms the packages never went through the VS Code Marketplace or npm, and that Anthropic's systems weren't compromised. The Verge reports Cursor's estimate of up to about 5,000 installs, and Anthropic has published 2.1.314.
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo FOUND (on Windows, also check C:\ProgramData\ssh\administrators_authorized_keys) and look for ~/Library/LaunchAgents/com.apple.sysmond.plist. If anything turns up, run Cursor's remediation script, consider rebuilding the machine, and rotate every credential reachable from it, working from a clean machine. The general lesson for an agent-heavy setup: IDE extensions run with your full user privileges and auto-update silently, so pin versions or turn off auto-update for high-privilege extensions.