Claude Code extension poisoned with persistent SSH backdoor
A malicious version of the Claude Code extension on an open-source marketplace installed a persistent SSH backdoor on developers' machines.
Overview
Researchers at Phorion discovered a malicious version of the Claude Code extensionA small add-on program installed inside a web browser to add features like ad blocking for VS Code-compatible editors that installed a hidden SSHAn encrypted network protocol that administrators and developers use to log in to remote servers and run commands backdoorA hidden way into a computer or program that skips the normal login check on developers' machines. The tampered package, version 2.1.313, was found on Open VSX, a marketplace used by editors like Cursor and Windsurf that cannot access Microsoft's default store. The injected code runs immediately when the extension loads, adding the attacker's key to the user's authorized keysThe secret value that locks or opens a message file and opening a persistent tunnel to the attacker's serverA computer or program on a network that stores data and responds to requests from client devices. This malwareSoftware built to steal data, spy on users, lock files, or take control of a computer survives reboots by creating startup files or scheduled tasksAn operating system job set to run a program or script automatically at a chosen time or event on Mac, Linux, and Windows systems. It also sends the attacker a list of environment variablesA named setting stored in a program's running environment that often holds file paths or secret keys containing sensitive data such as cloud credentialsAccess keys, tokens, or login secrets that grant control over cloud servers and storage and passwords. Developers using these specific editors are at risk of having their machine compromised and their sensitive data inventoried by an attacker.
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.
- 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
- keys
- 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)
- server
- A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
- malware
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- scheduled task
- An operating system job set to run a program or script automatically at a chosen time or event. System administrators use scheduled tasks for routine backups and updates, while malware creates a hidden scheduled task so its payload restarts every time the computer boots.
- environment variables
- A named setting stored in a program's running environment that often holds file paths or secret keys. Cloud apps frequently store database passwords and API tokens in environment variables, so an attacker who tricks a server into printing its environment variables can steal those secrets.
- cloud credentials
- Access keys, tokens, or login secrets that grant control over cloud servers and storage. Attackers scan public code repositories and developer laptops for cloud credentials so they can spin up cryptominers or download company databases.
- credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- open-source
- Software whose source code is publicly available for anyone to inspect, use, modify, and share. Most websites and apps rely on hundreds of open-source code libraries, so a single security flaw or malicious update in a popular library can affect thousands of companies at once.
- codebase
- The complete collection of source code files used to build a software application or system. Security teams run automated scanners across a company's codebase to catch hardcoded passwords, outdated dependencies, and injection flaws before changes ship to production.
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 Help Net Security website. Cite the article, not this page.
Read the full article on Help Net Security (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: Research and reports
...researchers at macOS security firm Phorion have... Found by reading the article; these words are close to its own - Who is affected: "...developers' machines..." Organizations using the product
Copied word for word from the article - Security+ 2.2 Explain common threat vectors and attack surfaces.
"......Phorion have found. The company spotted the malicious package, version 2.1.313, on Open VSX, an..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"Claude Code extension poisoned with persistent SSH backdoor..." Found in the headline - CYBR 101 week 1: the course, logins and two-factor sign in, cyber roles and jobs
"......package, version 2.1.313, on Open VSX, an open-source marketplace for VS Code extensions run by..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"Claude Code extension poisoned with persistent SSH backdoor..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Claude Code extension poisoned with persistent SSH backdoor..." Found in the headline - CYBR 101 week 7: Linux, Windows, permissions and firewalls
"......SSH backdoor on developers' machines, researchers at macOS security firm Phorion have found. The company..." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"Claude Code extension poisoned with persistent SSH backdoor..." Found in the headline - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of threats to OPSEC when installing, using, modifying, and uninstalling tools.
"The company spotted the malicious package..." 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
- Inside a malicious Claude Code-branded extension and its persistent SSH backdoor
- Malicious Claude Code extension on Cursor planted SSH backdoors
- 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