hn.today

Postmortem on Claude Code Cursor extension hack

microsoft.com8 points1 comments
Screenshot of Postmortem on Claude Code Cursor extension hack

A malicious copy of Anthropic’s Claude Code extension, versions 2.1.312 and 2.1.313, was available in Cursor’s extension marketplace on October 29, 2026, from about 2:27 a.m. to 1:35 p.m. Pacific time. The incident appears limited to Cursor: the packages were not distributed through Microsoft’s Visual Studio Marketplace or npm, and Anthropic’s systems were not compromised. Injected JavaScript ran before the extension’s normal startup, using built-in system tools rather than downloading another executable. It quietly collected basic host and user details, then attempted to install SSH access, create an outbound reverse tunnel, establish persistence, and report information to attacker infrastructure.

The code tried to add an attacker-controlled public key to the user’s SSH authorization file and use a separate identity to forward connections to the workstation’s local SSH port 22. It set up restart mechanisms for macOS, Linux, and Windows, including LaunchAgent, cron, and scheduled-task or Startup-folder artifacts. A delayed callback attempted to send host details and names of up to 40 environment variables matching sensitive terms such as KEY, TOKEN, or SECRET; it did not collect their values, so this does not establish that secrets were stolen. Successful remote access depended on permissions and SSH settings, and Cursor reported that these blocked access on most macOS and Windows systems, though keys or persistence files could still have been planted. Organizations should investigate affected installations, preserve evidence, review endpoint and network activity, remove confirmed artifacts, and rotate credentials or revoke sessions if exposure is indicated.

Read on microsoft.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.