Inside a malicious Claude Code-branded extension and its persistent SSH backdoor
A tampered Claude Code extension with an SSH backdoor was briefly available in the Cursor marketplace, though Microsoft confirmed its own platforms were not affected.
Overview
On October 29, 2026, a tampered copy of the Claude Code extensionA small add-on program installed inside a web browser to add features like ad blocking was served in the Cursor extension marketplace for a few hours. This malicious package attempted to install an attacker-controlled SSH keyA cryptographic key pair used to sign in to remote servers over SSH without a password and enable the local SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands service on user systems. The goal was to establish reverse SSH forwarding and configure persistenceThe tricks an attacker uses to keep access to a computer after a reboot or password change to maintain remote accessThe ability to log in to and control a computer or network from another location. Microsoft confirmed that the malicious packages were never published from the Microsoft Visual Studio Marketplace or npm, and Anthropic stated their systems were not compromised. The incident is limited to the Cursor marketplace, where the malicious code was live from about 2:27 AM to 1:35 PM Pacific Daylight Time. Users who installed or automatically updated to versions 2.1.313 or 2.1.312 from the Cursor marketplace are affected and must remove the malicious artifacts.
Terms in this story
- extension
- A small add-on program installed inside a web browser to add features like ad blocking. Because a browser extension can often read and change every web page you visit, attackers buy or hijack legitimate extensions to steal session cookies and passwords.
- SSH
- An encrypted network protocol that administrators and developers use to log in to remote servers and run commands. Attackers constantly scan the internet for servers with open SSH ports and weak passwords, while defenders protect SSH access with cryptographic keys instead of passwords.
- SSH key
- A cryptographic key pair used to sign in to remote servers over SSH without a password. Software engineers store a private SSH key on their laptop and place the matching public key on cloud servers, making stolen SSH keys a prime target for infostealers.
- key
- The secret value that locks or opens a message. Many breach and ransomware stories come down to who holds the cryptographic key, since strong encryption protects data only as long as the key stays secret. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- persistence
- The tricks an attacker uses to keep access to a computer after a reboot or password change. To maintain persistence on an infected laptop, malware might add itself to the startup folder or create a hidden scheduled task that runs every time the machine turns on.
- remote access
- The ability to log in to and control a computer or network from another location. Many workers and support technicians use remote access tools to work from home, and attackers target those same portals to enter a company network without being in the building. Security+ objective 3.2 lists the term
- backdoor
- A hidden way into a computer or program that skips the normal login check. Attackers plant a backdoor on a compromised server so they can return later even if the administrator changes passwords or fixes the original flaw. Security+ objective 2.4 lists the term
- remediate
- The steps taken to fix a security flaw or clean up a system after a breach. In incident reports, remediation includes installing patches, revoking stolen keys, removing backdoors, and changing configuration settings so the attacker cannot get back in.
- supply-chain attack
- Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term
- Threat Intelligence
- Collected evidence about attacker groups, their tools, and the servers or domains they use. Security teams share threat intelligence such as known malicious IP addresses and file hashes so other organizations can block the same attack before it hits them. Security+ objective 4.3 lists the term
- JavaScript
- The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.
- loader
- A stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads. Criminal groups specialize in spreading a stealthy loader through spam or fake downloads and then charge ransomware and infostealer operators to deliver their malware onto those infected PCs. Security+ objective 2.4 lists the term
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Microsoft Security Blog website. Cite the article, not this page.
Read the full article on Microsoft Security Blog (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Breach or attack
...attempt a supply-chain attack on Cursor... Found by reading the article; these words are close to its own - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Claude Code-branded extension and its persistent SSH backdoor..." Found in the headline - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......malicious Claude Code-branded extension and its persistent SSH backdoor..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Inside a malicious Claude Code-branded extension and its persistent SSH backdoor..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......Claude Code-branded extension and its persistent SSH backdoor..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of malware triage.
"Microsoft Threat Intelligence analyzed the injected JavaScript..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze identified malicious activity to determine weaknesses exploited, exploitation methods, effects on system and information.
"...attempts to add an attacker-controlled Secure Shell..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Cursor removes malicious Claude Code extension after SSH backdoor attempt
- Malicious Claude Code Extensions in Cursor Marketplace Install Persistent SSH Backdoors on Windows and macOS
- Cursor Confirms Malicious Claude Code Extension With SSH Backdoor Was Available for 11 Hours
- Hackers Distribute Malicious Claude Code Extension on Cursor Marketplace to Install Persistent SSH Backdoor
- Malicious Claude Code extension on Cursor planted SSH backdoors
- Claude Code extension poisoned with persistent SSH backdoor
- Official Claude Code VS Code Extension Compromised to Install Persistent SSH Backdoor
- Malicious Claude Code VS Code Extension Installs Persistent SSH Backdoor to Give Attackers Remote Access
- Weaponized Claude Code Extension Gives Hackers Persistent Remote Access to Developer Systems