# Cursor removes malicious Claude Code extension after SSH backdoor attempt

DevFeed: [Cursor removes malicious Claude Code extension after SSH backdoor attempt](<https://devfeed.tech/articles/cursor-removes-malicious-claude-code-extension-after-ssh-backdoor-attempt-113148.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4243214/cursor-removes-malicious-claude-code-extension-after-ssh-backdoor-attempt-2.html>)

Author: Gyana Swain

Published: 2026-11-02T11:42:28Z

Content type: news

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [ssh](<https://devfeed.tech/topics/ssh.md>), [VS Code Extension](<https://devfeed.tech/topics/vscode-extension.md>), [malicious packages](<https://devfeed.tech/topics/malicious-packages.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [anthropic](<https://devfeed.tech/tags/anthropic.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-code-security-development-tools-security-software-development](<https://devfeed.tech/tags/artificial-intelligence-code-security-development-tools-security-software-development.md>), [backdoor](<https://devfeed.tech/tags/backdoor.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code-security](<https://devfeed.tech/tags/code-security.md>), [compromise](<https://devfeed.tech/tags/compromise.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cursor](<https://devfeed.tech/tags/cursor.md>), [developers](<https://devfeed.tech/tags/developers.md>), [development-tools](<https://devfeed.tech/tags/development-tools.md>), [extension](<https://devfeed.tech/tags/extension.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [key](<https://devfeed.tech/tags/key.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [macos](<https://devfeed.tech/tags/macos.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [malware](<https://devfeed.tech/tags/malware.md>), [marketplace](<https://devfeed.tech/tags/marketplace.md>), [remote](<https://devfeed.tech/tags/remote.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [shell](<https://devfeed.tech/tags/shell.md>), [software-development](<https://devfeed.tech/tags/software-development.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [storytype-news](<https://devfeed.tech/tags/storytype-news.md>)

## AI overview

Cursor removed Claude Code extension versions 2.1.312 and 2.1.313 after they were available in its marketplace for about 11 hours on October 29. The modified extensions ran malware when loaded, without user interaction, and attempted to plant an attacker-controlled SSH key, enable SSH access, create persistence, and send host information. Anthropic said its own systems and official extension channels were unaffected; the incident involved Cursor's marketplace and affected Windows and macOS users. Analyses found that privilege requirements and implementation errors could prevent SSH setup, but the malware could still leave keys or persistence mechanisms and transmit host data. Uninstalling alone might not remove them. Recommendations in the report include checking authorized SSH keys and their fingerprints, rotating potentially exposed credentials, and reviewing login logs. Cited enterprise measures include publisher and package checks, extension allowlisting, controlled updates, endpoint monitoring, and limits on outbound connections. Cursor said it removed the versions, audited access, rotated keys, and rebuilt its marketplace.

## Source excerpt

A malicious version of Anthropic's Claude Code extension distributed through the Cursor marketplace attempted to install a persistent Secure Shell (SSH) backdoor on developers' machines, potentially giving attackers remote access to systems holding source code, credentials and other sensitive information. "Between about 2:27am PT and 1:35pm PT today, a maliciously modified version of Anthropic's Claude Code extension was made available in the Cursor VS Code Extension Marketplace," Cursor said in a security notice. Cursor removed the compromised versions, 2.1.312 and 2.1.313, after discovering they had been available in its VS Code extension marketplace for approximately 11 hours on October 29. The company said the malicious code attempted to add an attacker-controlled SSH key, enable local SSH access, and establish a reverse tunnel to an attacker-controlled server. "These malicious versions of the extension were not developed by Anthropic," Cursor added in the notice. The affected versions were available for Windows and macOS. Anthropic subsequently clarified how the tampered extension had been distributed. In a post on X, Felix Rieseberg, a member of Anthropic's technical staff, said the incident did not involve a compromise of Anthropic's systems or employee laptops. A malicious actor had used access to Cursor's marketplace to publish the modified extension, he said. "The versions on our official channels are not affected, and this only impacts Cursor users," Rieseberg wrote. Anthropic said it was working with Cursor on the incident. Cursor and Anthropic had not responded to requests for comment by publication time. Malware ran without user interaction Security company Phorion, which analysed the compromised extension, found that malicious code had been inserted at the beginning of its JavaScript file. It ran as soon as the extension loaded, before its normal activation code. "The user doesn't need to interact with the extension for the payload to fire," Phorion s