Cursor Warns of Malicious Claude Code Marketplace Packages

Cursor urged users to clean macOS and Windows systems and reset credentials after malicious Claude Code versions 2.1.312 and 2.1.313 appeared in its marketplace. Uninstalling may not remove persistence.

Cursor urged developers who installed malicious Claude Code packages from its marketplace to clean affected macOS and Windows systems and rotate accessible credentials and active sessions from a trusted computer. Removing the extensions alone may leave components that enable continued access.

The affected packages, listed as Anthropic.claude-code versions 2.1.312 and 2.1.313, were available from about 2:27 a.m. to 1:35 p.m. Pacific time on Oct. 29, 2026. Cursor’s security notice says Anthropic did not develop the malicious versions. The company found no evidence that other versions or the official distribution were affected.

Security researcher Phorion found that the code attempted to add an attacker-controlled SSH key, enable remote login and create a reverse tunnel to an external server. On macOS, it could install a LaunchAgent. On Windows, it attempted to create a scheduled task and could use the Startup folder if that failed.

The payload ran when Node loaded the extension module, before the extension’s normal activation callback. Users did not need to interact with the package for the code to run. A permission-checking error could prevent the macOS code from enabling Remote Login for standard users. An existing SSH service, or one enabled later, could still allow access through the added key while the tunnel remained active.

Cursor worked with the hosting provider to take the attacker’s server offline. It removed the packages, rotated its marketplace keys, rebuilt the service and reopened the marketplace. Those actions do not remove files or settings already placed on users’ computers.

The initial beacon sent host information and up to 40 matching environment-variable names without sending their values, according to Phorion. Cursor warned that the limited initial collection did not rule out later access to credentials through the backdoor. Credentials accessible from an affected computer could include development accounts, cloud services and financial-service accounts.

Cursor recommended reviewing endpoint, network and extension-installation records, isolating systems where the payload ran or a backdoor was installed, and removing unauthorized SSH keys, persistence mechanisms and active tunnels. The company provided platform-specific remediation scripts and advised users to consider rebuilding affected computers.

Cursor clarified the affected versions and indicators on Oct. 30. Phorion updated its analysis on Oct. 31 to include version 2.1.312 after initially identifying version 2.1.313. The advisories do not establish cryptocurrency theft or crypto-specific targeting.

Articles by this author