A malicious Cursor extension and an SSH backdoor

How a modified copy of Claude Code tried to open remote access to a developer’s computer, and what to check after a possible installation.

Illustration for the article on a malicious Cursor extension and SSH backdoor

A malicious Cursor extension disguised as Claude Code attempted to open hidden SSH access to a developer’s computer. No assistant prompt was needed: third-party code executed when the extension module loaded. I will examine the attack path, why a working interface did not guarantee safety and what to check after a possible installation of the modified package.

The malicious Cursor extension: what is known about the incident

On 29 October 2026, a maliciously modified copy of the Claude Code extension was distributed through the Cursor marketplace for approximately 11 hours. The package used the legitimate identifier anthropic.claude-code, but Anthropic did not develop the malicious copy.

According to Microsoft, available evidence confines this incident to the Cursor marketplace. The malicious packages were not distributed through the Microsoft Visual Studio Marketplace or the official npm package. BleepingComputer also reports that Cursor removed the modified extension and temporarily paused its marketplace for review.

The supplied sources do not explain how the attacker managed to publish the modified package under a legitimate identifier. I would therefore avoid conclusions about the precise substitution method. What matters to users is that a familiar name and identifier did not mean the package code was unchanged.

How module loading became a backdoor attempt

Microsoft analysed a JavaScript loader inserted ahead of the extension’s normal code. It executed when the module loaded, without separate user interaction with Claude Code. The legitimate part could continue working, so the extension would not necessarily appear broken.

The sequence researchers reconstructed from the code involved several steps:

  • Host reconnaissance. The loader collected information about the computer and user, including the hostname, account name and global Git email address.
  • Preparing authentication. The code added the attacker’s public SSH key to authorized_keys and attempted to enable the local SSH service.
  • Reverse tunnel attempt. The code initiated a connection to the attacker’s server and requested forwarding to the workstation’s SSH port.
  • Persistence. Sources describe a LaunchAgent on macOS and a scheduled task or startup script on Windows to recreate the tunnel.
  • Sending information. After attempting to set up access, the loader tried to transmit the collected host data.

This sequence describes what the code attempted, not proof that each step succeeded on every computer. Microsoft notes that the loader suppressed errors and command output. A failed attempt or the malicious activity itself could therefore have gone unnoticed.

What the key and reverse tunnel enabled

The authorized_keys file contains public keys that an SSH server can use to authenticate a user. The malicious code added a key labelled svc-telemetry. If the server and account were configured accordingly, the holder of the matching private key could authenticate.

The reverse tunnel had a different purpose: to create a path from the attacker’s server to the workstation’s SSH service over a connection initiated by the workstation. If access succeeded, an operator could run commands or transfer files. For a developer, the risk extends beyond one project: resources available to their account could be affected.

A backdoor in the code does not prove a successful remote login. The outcome depended on permissions, SSH configuration and the attacker’s server. BleepingComputer describes errors in attempts to enable SSH on some systems. If the local SSH server was not running, the tunnel did not provide access to it. The key and persistence mechanisms could nevertheless remain on the machine.

The loader also searched for names of environment variables associated with secrets. Its initial message transmitted names, not values, of those variables. Names could reveal categories of sensitive configuration, but do not themselves prove that secret values were stolen. A separate risk would arise after a successful SSH login, when the operator could investigate the account.

How to check the publisher and installed extensions

Start with the list of installed Cursor extensions. Find Claude Code, open its details and check the stated publisher and identifier. Then determine where the package came from and whether it could have been installed or automatically updated during the incident.

Available editor logs or corporate deployment records may be needed to establish provenance. If records are unavailable, the absence of evidence of installation does not prove the package never reached the machine. In a team environment, communicate the uncertainty to the security owners and agree on a host investigation.

Checking the publisher and distribution channel is useful, but checking only the identifier would not have distinguished the malicious copy in this case: it used the legitimate ID. The name in the interface also does not establish that the downloaded package was unchanged.

What to do after finding a suspicious package

If there is reason to believe the malicious package was on a machine, I would treat it as a possible host incident rather than only a plugin problem. Agree on the response with the security team so that remediation does not erase evidence needed for investigation.

  • Isolate the host. Disconnect the suspicious machine according to your organisation’s procedure and notify the responsible people.
  • Preserve evidence. Record available package and installation-time details, plus host, editor and network logs. Do not rely on removing the extension alone.
  • Check SSH keys. Inspect authorized_keys, including for an entry labelled svc-telemetry. Remove a confirmed unauthorised key; establish the purpose of other entries before changing them.
  • Check persistence. Investigate relevant startup mechanisms, including LaunchAgent on macOS and scheduled tasks or startup scripts on Windows. Remove confirmed malicious artefacts.
  • Assess possible access. Review available host and network telemetry to determine what may have happened. If the investigation suggests exposure, rotate accessible secrets and revoke sessions. BleepingComputer also recommends restoring affected environments from safe backups.

Conclusion

In this case the attack began not with a suspicious user command but with loading a package that looked like a familiar extension. Checking the publisher helps assess provenance but does not replace checking the distribution channel and signs of tampering. After possible compromise, investigate more than the plugin: an SSH key and startup mechanisms could remain even if remote login failed.

Draft and cover details

  • Status: draft, not published.
  • Suggested category: Cybersecurity.
  • Slug: cursor-claude-code-ssh-backdoor.
  • Alt: A dark illustration of a code editor, an SSH key and a hidden network tunnel.
  • Cover prompt: Create a horizontal editorial illustration for the Platforma Lab blog in a dark graphite and burgundy palette. In the foreground, show a stylised code editor window and a small SSH key symbol; a hidden network tunnel runs from the computer into the depth of the composition. Restrained contrasting light, a clean technological composition, no logos, writing, letters or numbers.

Sources

SOURCES

  1. Inside a malicious Claude Code-branded extension and its persistent SSH backdoor
  2. Malicious Claude Code extension on Cursor planted SSH backdoors
  3. Official Claude Code Extension on Cursor Marketplace Trojanized with Persistent SSH Backdoor
← ALL ARTICLES