Cursor Claude Code extension compromise

Cursor removed malicious versions 2.1.312 and 2.1.313 and warned that uninstalling the extension alone does not remove its changes.

Last modified

Summary

  • Environment: Cursor extension marketplace and developer machines
  • Operational impact: Marketplace temporarily closed; potentially affected hosts require remediation
  • Financial impact: No confirmed incident cost quantified
  • Record status: Developing record. Reviewed October 31, 2026; updated as evidence emerges.

What happened

Cursor reported a maliciously modified Claude Code extension, versions 2.1.312 and 2.1.313 for Windows and macOS, in its marketplace on October 29. The altered package was not developed by Anthropic. [1]

Impact

The revised notice omits the earlier estimate of at most 5,000 affected users and gives no replacement count. The extension collected host and user metadata, including public IP, configured Git email and environment-variable names. [1]

Timeline

  1. Malicious package distributed and removed

    Cursor’s security notice gives an approximate 02:27–13:35 PT distribution window.

    [1]
  2. Affected versions and cleanup guidance expanded

    The 11:30 PT notice revision adds version 2.1.312 and platform-specific indicators.

    [1]
  3. Briefing updated

    This briefing was last reviewed and updated on October 31, 2026.

Threat Group & Attack Vector

The code attempted SSH-key insertion, a reverse tunnel and persistent startup tasks. Errors and privilege requirements limited some backdoor functions, but did not eliminate key insertion, persistence or metadata collection. [1]

Actors

  • No threat actor group has been identified in the reviewed public evidence.

TTPs

Response

Cursor removed the package, rotated keys and rebuilt the marketplace; its audit found no other altered extensions. The hosting provider disabled the attacker’s server. Affected hosts require investigation and persistence cleanup; uninstalling alone is insufficient. Cursor advised considering rebuilds and rotating exposed credentials from a trusted device. [1] The updated notice provides macOS and Windows cleanup scripts targeting the extension, unauthorized SSH key, persistence and tunnel processes. Users should consult the current vendor guidance when investigating affected machines. [1]