Proprietary ·

Cursor marketplace distributed a modified Claude Code extension

Cursor distributed malicious Anthropic.claude-code 2.1.312 and 2.1.313 extensions through its marketplace. The modified package collected host details and attempted to establish a persistent SSH backdoor.

Developers obtaining Claude Code through Cursor's extension marketplace on October 29 could receive a modified extension that tried to leave an SSH backdoor on their computers. Cursor identified versions 2.1.312 and 2.1.313 as affected and bounded availability to roughly 02:27–13:35 Pacific time. The company put the potentially affected population at no more than 5,000 users; that did not establish successful remote access to 5,000 machines.

OpenSourceMalware found a loader prepended to the normal extension.js bundle. It ran when the extension loaded, before legitimate initialization, without requiring the user to begin a Claude conversation. The researchers corrected their initial distribution attribution after hearing from Cursor: the affected channel was Cursor's marketplace. Their revised report distinguished that artifact from the npm package and the Open VSX and Microsoft extension distributions. Microsoft's October 30 analysis confirmed that neither Visual Studio Marketplace nor the npm distribution carried the malicious packages; Anthropic told Microsoft its systems were uncompromised.

The implant added an attacker-controlled SSH key labeled svc-telemetry, attempted to enable the local SSH service, and arranged a reverse tunnel and persistent retries. It also reported host details; OpenSourceMalware distinguished collected environment-variable names from their secret values. Cursor said privilege requirements and implementation errors prevented the SSH-enabling step on most ordinary macOS and Windows installations. Those failures did not necessarily prevent the unauthorized key, persistence files, or reconnaissance traffic from being created. Microsoft distinguished the key authorizing access to the victim from a separate embedded private key used to authenticate outbound tunnel connections. The tunnel requested a server-assigned port forwarding to the victim's local SSH port 22. Persistence used a macOS LaunchAgent, a Linux reboot cron entry, or an attempted Windows SYSTEM task with a Startup-folder fallback. These were code capabilities, not evidence that every mechanism succeeded or that a Linux package was distributed. Updating the extension or disabling the server would leave separately written keys and startup artifacts requiring cleanup.

Cursor removed the extension, temporarily shut the marketplace, rotated keys, rebuilt the service, and worked with the hosting provider to disable the attacker's server. Its recovery guidance addressed standalone persistence as well as the extension itself. Cursor's October 30 advisory update corrected package hashes and clarified affected versions. This collection's artifact recovered using the earlier macOS digest did not match the expected extension identity and remains disputed. It was not used to claim an independently verified Claude Code payload or to broaden the affected distribution channels.

Notes

  • Cursor confirmed its marketplace as the distribution channel. Socket found no corresponding Open VSX publication record. This record does not claim a compromise of Anthropic or Open VSX.
  • Cursor reported that enabling SSH generally failed without administrator privileges. Persistence and host-information collection still required remediation.
  • The recovered earlier macOS advisory digest identifies anysphere.remote-ssh 1.1.17 internally. It is disputed evidence, not a verified Claude Code package; see samples/manifest.yaml.
  • Microsoft identifies ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 as the JavaScript entry-point hash, not a VSIX package hash.

Appendix · Affected releases

  • Cursor's updated advisory maps fcbb327e… to 2.1.312 and 80402fdc… to 2.1.313. The earlier reported macOS digest is disputed by the recovered archive identity; see samples/manifest.yaml.
  • Cursor's updated advisory maps 3de17229… to 2.1.312 and 6786ec90… to 2.1.313.

References

  1. Security notice: malicious Anthropic.claude-code 2.1.312 and 2.1.313 in Cursor Extension Marketplacecursor.com
  2. Cursor Removes Malicious Claude Code 2.1.313 Extension From Its Marketplacesocket.dev
  3. Trojanized Claude Code Extension Plants an SSH Backdooropensourcemalware.com
  4. Inside a malicious Claude Code-branded extension and its persistent SSH backdoormicrosoft.com

Source record: proprietary/cursor-claude-code/meta.yaml