Stackmaven
Beat report Published 5d ago ·

A trojanized Claude Code extension shipped through Cursor's marketplace, and uninstalling it does not undo the damage

For about 11 hours on October 29, Cursor's marketplace served tampered Claude Code builds 2.1.312 and 2.1.313 that tried to plant an SSH backdoor on macOS and Windows. Anthropic's channels were unaffected. Affected users need to remove persistence, not just update.

By Stackmaven

For roughly 11 hours on October 29, developers who installed or updated Anthropic’s Claude Code extension inside Cursor received a build that tried to open an SSH backdoor on their machine. The tampered versions came only from Cursor’s own extension marketplace, not from Anthropic’s official channels. The incident is now contained, but the cleanup is not automatic: Cursor’s notice says uninstalling the extension may leave the attacker’s persistence scripts running.

What was shipped, and to whom

Cursor’s security notice, updated October 30, names Anthropic.claude-code versions 2.1.312 and 2.1.313 as malicious, for macOS (darwin-arm64) and Windows (win32-x64) builds. The distribution window ran from about 2:27 a.m. to 1:35 p.m. Pacific on October 29. Cursor initially listed only 2.1.313 and added 2.1.312 in the revision. In a separate statement reported by BleepingComputer, Cursor put the exposure at no more than 5,000 users.

Cursor says the versions “were not developed by Anthropic.” Anthropic told The Hacker News that its own systems were not compromised and that the versions on its official channels, including the Visual Studio Marketplace and Open VSX, are unaffected. Microsoft also told the outlet the build never reached its marketplace or the npm package. Early reports that named Open VSX were later corrected.

What remains unexplained is how an attacker published a build under Anthropic’s publisher identity inside Cursor’s marketplace. Cursor has not said, and neither company has described the access involved.

What the payload did

StepSecurity recovered the sample and found a simple, effective change: a 7,386-byte loader prepended to an otherwise unmodified extension.js from the clean 2.1.312 bundle. It runs as soon as the extension loads, with no user action and no install hook.

According to Cursor’s notice and StepSecurity’s analysis, the loader:

  • Collected host details, including username, hostname, public IP, Git email, and the names (not values) of credential-like environment variables.
  • Added an SSH key labeled svc-telemetry to authorized_keys and tried to enable the local SSH service.
  • Tried to open a reverse SSH tunnel to an attacker server and retried roughly every 60 seconds.
  • Installed persistence: a LaunchAgent named com.apple.sysmond on macOS, or a SysMon scheduled task with a Startup-folder fallback on Windows.

Two details limit the damage. Cursor says enabling SSH would usually fail without administrator rights, and BleepingComputer, citing researcher analysis, reports coding errors that kept the macOS and Windows SSH steps from working on standard setups. StepSecurity found no second-stage download and no credential values read. The attacker server has been taken offline. Even so, the key, the scripts, and the beacon of host data were real, which is why Cursor still treats affected machines as needing remediation.

What affected developers should do

The check is quick. Cursor’s notice gives a one-line test for macOS (grep -qs svc-telemetry ~/.ssh/authorized_keys) and a PowerShell equivalent for Windows that also covers administrators_authorized_keys. If the key is present, the notice recommends:

  • Isolating the host, then removing the key, the LaunchAgent or scheduled task, and any tunnel processes, or rebuilding the machine.
  • Running Cursor’s remediation script (remediate-macos.sh as the affected user, remediate-windows.ps1 as Administrator). Both exit non-zero if anything is left.
  • Rotating credentials and sessions reachable from that machine, from a different, trusted system.

Teams with endpoint tooling can sweep for the published indicators instead of relying on each developer to run a script: the extension.js hash, the attacker IP 134.209.82.225, and the svc-telemetry string. StepSecurity has published a detection rule for exactly that.

The trust boundary most teams were not tracking

Most extension security advice assumes a publisher signs a build and every marketplace serves the same artifact. This incident is a reminder that an editor fork’s marketplace is a separate distribution channel with its own publishing pipeline and its own keys. Anthropic’s official build was fine, and Cursor users still received a malicious one under the same extension ID.

For working developers, the practical shift is that AI coding agents now run with broad local access, so the extension that hosts them is a high-value target. Turning off automatic extension updates in sensitive environments, pinning versions for teams, and including editor marketplaces in software inventory are reasonable responses. The open question worth watching is Cursor’s explanation of how the publish happened. That answer will show whether this was a one-off credential problem or a structural gap in how fork marketplaces mirror third-party extensions.

Sources cited
  1. Security notice: malicious Anthropic.claude-code versions in the Cursor VS Code Extension Marketplace (Cursor, updated October 30, 2026) cursor.com
  2. Trojanized Claude Code Extension Delivered Persistent SSH Backdoor to Developer Machines (StepSecurity) www.stepsecurity.io
  3. Malicious Claude Code extension on Cursor planted SSH backdoors (BleepingComputer) www.bleepingcomputer.com
  4. Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor (The Hacker News) thehackernews.com
esc