# Inside a malicious Claude Code-branded extension and its persistent SSH backdoor

DevFeed: [Inside a malicious Claude Code-branded extension and its persistent SSH backdoor](<https://devfeed.tech/articles/inside-a-malicious-claude-code-branded-extension-and-its-persistent-ssh-backdoor-109876.md>)

Original publisher: [Read original article](<https://www.microsoft.com/en-us/security/blog/2026/10/30/inside-malicious-claude-code-branded-cursor-extension-persistent-ssh-backdoor/>)

Author: Microsoft Security Research

Published: 2026-10-31T01:02:57Z

Content type: news

Language: en

Sources: [Microsoft Security](<https://devfeed.tech/sources/microsoft-security-blog.md>)

Topics: [software supply-chain attack](<https://devfeed.tech/topics/software-supply-chain-attack.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [malware protection](<https://devfeed.tech/topics/malware-protection.md>), [VS Code Extension](<https://devfeed.tech/topics/vscode-extension.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [backdoor](<https://devfeed.tech/tags/backdoor.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [extension](<https://devfeed.tech/tags/extension.md>), [frontier-ai-models](<https://devfeed.tech/tags/frontier-ai-models.md>), [malicious](<https://devfeed.tech/tags/malicious.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [supply-chain-attack](<https://devfeed.tech/tags/supply-chain-attack.md>)

## AI overview

Microsoft's analysis says a tampered Claude Code extension (versions 2.1.312 and 2.1.313) was available in Cursor's marketplace for several hours; the evidence described points to Cursor, while Microsoft's Visual Studio Marketplace, npm, and Anthropic systems were not affected. Its injected JavaScript collected host details, attempted to add an SSH authorization key, open outbound reverse SSH forwarding to local port 22, establish platform-specific startup persistence, and later report host details plus matching environment-variable names--not their values. Successful access depended on host privileges and SSH configuration, and attempted steps could leave artifacts even when tunneling failed. The excerpt recommends identifying affected installs, preserving evidence, reviewing endpoint, network, and authentication telemetry, then removing verified keys, scripts, identities, and startup entries separately. It also gives platform-specific artifact locations and Defender XDR hunting queries, whose matches are investigative leads rather than proof of compromise.

## Source excerpt

Microsoft analyzes a malicious Claude Code-branded extension, its persistent SSH backdoor, and guidance to detect and remediate it. The post Inside a malicious Claude Code-branded extension and its persistent SSH backdoor appeared first on Microsoft Security Blog.