This is a consequential software-supply-chain incident because a familiar coding-agent extension, running with the editor user’s access, was used to attempt persistent remote access. It shows how a compromised distribution channel can turn routine extension updates into a route to developer machines and potentially accessible credentials or project infrastructure. The reported ceiling is 5,000 users, not a confirmed infection count; Cursor says the attacker’s server was taken offline and that SSH access would fail on most macOS and Windows machines without administrator privileges. Even so, Cursor says the key, persistence and host-data reporting could remain relevant, so updating or uninstalling alone may not clean an affected host.
Cursor says a malicious Claude Code extension package, version 2.1.313, was available in its marketplace for roughly 11 hours on October 29, 2026, and that at most 5,000 users were affected. The package attempted to collect host details, add an SSH key, establish persistent access and open a reverse tunnel; Cursor says it took the attacker server offline, audited and rebuilt the marketplace, and rotated keys. Cursor says the SSH access step would fail on most macOS and Windows hosts without administrator privileges, but persistence and host-data reporting could still matter; uninstalling alone may not clean an affected host. OpenSourceMalware’s technical findings are consistent with the package analysis, but its initial attribution to Open VSX was corrected. The evidence does not establish compromise of Anthropic’s systems or other official distribution channels. Actual execution and compromise counts, and how the tampered package entered Cursor’s marketplace, remain unclear. New social claims about other affected versions or channels lack primary corroboration. Engagement is now effectively zero, so the case remains significant but warrants low-heat monitoring.
| source | object | author | score | comments |
| 🟧 hn | Trojanized Claude Code Extension Plants an SSH BackdoorRetrieved article excerptOpen article · Retrieved 2026-10-30T05:26:01.468786+00:00 BLOG
# Trojanized Claude Code Extension Plants an SSH Backdoor
v 2.1.313 contains a loader that runs ahead of the real extension code adds an attacker key, opens a reverse tunnel, and sets persistence
By c0a15726-c5b1-4b0d-85e6-fe15553df9e2 · 2026-10-30T09:42:00.000Z
Trojanized Claude Code Extension Plants an SSH Backdoor
The official Claude Code VSCode extension was compromised today. Yes, you heard that right.
A malicious version, 2.1.313 was published to the Open-VSX registry,. The VSCode extension identifies itself as `anthropic.claude-code` version `2.1.313`, but its main JavaScript bundle contains a malicious 66-line loader inserted before the legitimate extension code. The extension we analyzed was from Open VSX, so we only can confirm that version is malicious. However, in an abundance of caution for our community, we have created threat reports for version 2.1.313 of the Microsoft VSCode marketplace extension as well:
- [Open VSX version](https://opensourcemalware.com/openvsx/anthropic.claude-code)
- [VS Code version](https://opensourcemalware.com/vscode/anthropic.claude-code)
## How did this happen?
We don't know yet. The owner of the Open-VSX extension that was affected is Igor Kofman, an Anthropic employee. We don't know if Igor himself was compromised, or some other publishing function was involved.
## What does it do?
The unpacked extension is exactly like the normal version, and the bundled binary is the official binary as well. The only thing that's different is the extension.js file.
The extension activates after VS Code startup and when its webview opens and runs the extension.js file. It adds an attacker-controlled key to the user’s SSH configuration, attempts to enable the local SSH service, establishes a reverse tunnel to `134.209.82.225`, installs platform-specific persistence, and transmits host reconnaissance over an unencrypted HTTP beacon.
Static inspection of the main entry point quickly paints a picture: The first line starts a standalone, immediately invoked function that imports Node.js process, filesystem, operating-system, HTTP, and cryptographic modules. That function ends at line 66. Only after it finishes does the expected bundled extension begin. This placement matters: the user doesn't need to begin a Claude conversation. Loading the extension module is enough. The package declares no install, build, prepare, preinstall, or postinstall scripts, so the malicious behavior occurs at extension runtime rather than through a package-manager lifecycle hook.
The provenance of the analyzed directory is not established. These findings show that this specific artifact is malicious; they do not, by themselves, demonstrate that Anthropic’s official Marketplace release or distribution infrastructure was compromised.
## TL;DR
- **Threat Type:** Trojanized developer-tool extension and persistent SSH backdoor
- **Affected Ecosystem:** Visual Studio Code extensions
- **Claimed Package:** `[email protected]`
- **Impact:** Persistent remote access through an authorized SSH key and reverse SSH tunnel
- **C2:** `134.209.82.225` over SSH and HTTP port 8099
- **Key Finding:** Malicious code is prepended to the normal extension bundle and executes before legitimate initialization
- **Additional Payloads:** None downloaded by the injected stage; its `curl` requests retrieve only public-IP text
## Technical Analysis
### Immediate reconnaissance
At load time, the implant collects:
- Hostname and local username
- Operating system and CPU architecture
- Home directory and current working directory
- Global Git email from `git config --global user.email`
- Names of up to 40 environment variables containing `KEY`, `TOKEN`, `SECRET`, `PASS`, `AWS`, or `GCP`
Environment-variable values are not placed directly in the initial beacon. Their names can still reveal which cloud providers, CI systems, and credential types are configured. More importantly, successful SSH access would allow the operator to inspect the account directly.
Nearly every exception is suppressed. This lets the legitimate extension continue loading when malicious operations fail, reducing visible signs of compromise.
### Authorized-key installation
If a home directory is available, the implant creates `~/.ssh`, changes it to mode `0700`, and appends an Ed25519 key to `~/.ssh/authorized_keys`. The key is labeled `svc-telemetry`, an innocuous-looking comment intended to resemble an administrative account.
```
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry
```
Its fingerprint is:
```
SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk
```
The implant sets `authorized_keys` to mode `0600`. If the marker already exists, it records that fact instead of adding a duplicate.
### SSH service enablement
The next branch attempts to make the victim reachable through SSH:
- **macOS:** checks Remote Login and, if disabled, runs `sudo -n systemsetup -setremotelogin on`
- **Linux:** checks `sshd` or `ssh` with `systemctl`, then tries several service-start commands
- **Windows:** uses PowerShell to install OpenSSH Server, configure automatic startup, and start `sshd`
These operations may fail without sufficient privileges, but failure does not stop the remaining attack chain.
### Reverse SSH tunnel
The implant embeds a base64-encoded OpenSSH private key and decodes it into a temporary file named `.stk_<identifier>`. The identifier derives from the hostname and home directory. The decoded private key has SHA-256:
```
7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278
```
It repeatedly connects to:
```
[email protected][.]225
```
The core forwarding request is:
```
-N -R '*:0:localhost:22'
```
This asks the remote SSH server to allocate a port and forward connections through the tunnel to port 22 on the victim. Whether that port is reachable beyond the C2 host depends on the server’s SSH configuration, but the operator controlling the server can use the tunnel directly.
The connection disables host-key verification, ignores the user’s known-hosts file, uses the embedded identity exclusively, and reconnects after 60 seconds. On Unix-like systems it prefers `autossh` and otherwise uses `ssh`.
### Platform-specific persistence
The loader implements three platform branches.
On macOS it writes:
```
~/.config/.smt
~/.config/.smtk
~/Library/LaunchAgents/com.apple.sysmond.plist
```
`.smt` reconstructs the private key and continuously launches the tunnel. The LaunchAgent uses `RunAtLoad` and `KeepAlive`, then loads with `launchctl load -w`. The `com.apple.sysmond` name is deceptive; this user LaunchAgent is not an Apple component.
On Linux, the same files are written under `~/.config`, and the script is added to the user’s crontab with an `@reboot` entry.
On Windows, the malware writes `.config\smt.cmd` and `.config\smtk`, then attempts to create an on-start scheduled task named `SysMon` running as `SYSTEM`. If that cannot be confirmed, it copies `sysmon.cmd` into the user’s Startup folder.
### Reconnaissance beacon
After 1.5 seconds, the malware obtains the public IP using:
```
curl -s --max-time 4 ifconfig.me
curl -s --max-time 4 https://api.ipify.org
```
It sends the collected JSON to:
```
http://127.0.0.1:8099/beacon
http://134.209.82.225:8099/beacon
```
The response is discarded. There is no response-to-code behavior in the injected stage, and returned data is not saved as a payload or configuration.
## Does It Download More Malware?
No additional executable or script is downloaded by the injected loader. Its network behaviour consists of public-IP text lookups, JSON beacon uploads, and an interactive SSH tunnel.
The shell and batch scripts and tunnel keys are generated or decoded from content already inside the extension. They are not secondary downloads. That distinction does not reduce the severity: the tunnel provides an operator-controlled route to the victim’s SSH service. Follow-on commands or files transferred after access would not appear in this static artifact.
No blockchain addresses, RPC endpoints, contracts, wallets, or blockchain-resolved payload locations were found.
## Attack Chain
Stage
Trigger
Behavior
Outcome
Execution
VS Code loads `extension.js`
Prepended IIFE runs before legitimate code
Confirmed
Access
Home directory exists
Adds `svc-telemetry` authorized key
Confirmed
Service setup
Platform branch
Attempts to enable SSH or Remote Login
Conditional on OS and privileges
Tunnel
No matching Unix tunnel
Drops embedded key and launches reverse SSH loop
Confirmed code path
Persistence
Platform branch
LaunchAgent, cron, scheduled task, or Startup item
Conditional on OS
Reconnaissance
1.5-second timer
Queries public IP and sends two beacons
Confirmed
C2 response
Beacon completes
Response drained and ignored
No execution path
Additional download
Any injected path
No downloader identified
None
## Indicators of Compromise (IOCs)
### Package Identity
```
[email protected]
```
### Network Indicators
```
134.209.82.225
134.209.82.225:22
http://134.209.82.225:8099/beacon
http://127.0.0.1:8099/beacon
ifconfig.me
https://api.ipify.org
```
### SSH Indicators
```
[email protected]
svc-telemetry
SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk
```
### Files and Persistence
```
~/.config/.smt
~/.config/.smtk
~/Library/LaunchAgents/com.apple.sysmond.plist
${TMPDIR}/.stk_*
~/.config/smt.cmd
~/.config/smtk
SysMon
sysmon.cmd
```
### File Hashes (SHA-256)
```
extension.js
ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15
embedded tunnel private key
7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278
deterministic aggregate digest of analyzed directory
18756b75afedee74bbf49832a1b1dada4961672c41d595be5c1bbe75709de927
```
## Detection and Response
Search endpoints for the file paths, SSH key comment, LaunchAgent label, task name, IP address, and hashes above. On macOS, inspect loaded LaunchAgents and each user’s `authorized_keys`. Process telemetry may show long-running `ssh` or `autossh` commands containing `-R *:0:localhost:22`.
If the artifact was loaded, disconnect the system, preserve forensic evidence, and block `134.209.82.225` on ports 22 and 8099. Remove the extension and persistence only after collecting evidence. Rotate credentials accessible to the affected account from a known-clean system.
Because this implant creates an interactive path to SSH, its observable files may not represent the full compromise. Review SSH, shell, process, VS Code, authentication, and network logs for follow-on activity. Rebuilding the host is safer than assuming removal of known artifacts restores trust.
## Conclusion
This sample demonstrates an effective way to weaponize a trusted developer tool: place a compact backdoor before a large legitimate bundle, suppress errors, and let the expected application continue. The extension retains its normal interface while quietly establishing durable SSH access.
The evidence supports conclusions about the analyzed artifact only. Distribution source, attacker identity, infrastructure ownership, and the status of any official release remain unverified and should not be inferred from package branding. | elffjs | 19 | 2 |
| 🟧 echo.blog | The analyzed Open VSX artifact labeled [email protected] contains a loader that adds an SSH key, attempts to establish a reverse | OpenSourceMalware.com | — | — |
| 🟧 hn | Official Claude Code extension compromise | _chall | 1014 | 514 |
| 🟧 hn ⭐ | Malicious Claude Code Extension Found in Cursor MarketplaceRetrieved article excerptOpen article · Retrieved 2026-10-30T08:22:49.208704+00:00 [Blog](https://cursor.com/blog) / [company](https://cursor.com/blog/topic/company)
Oct 29, 2026·[company](https://cursor.com/blog/topic/company)
# Security notice — malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension Marketplace
5 min read
Today we identified a security incident involving a specific extension package in the Cursor VS Code extension Marketplace: **Anthropic.claude-code version 2.1.313**. This malicious version of the extension was not developed by Anthropic. At most 5,000 users were affected, and we will reach out directly.
## [#](https://cursor.com/blog/claude-code-extension-security-notice#what-happened)What happened
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. The extension runs malicious code that attempts to install a persistent SSH backdoor. Specifically, it:
- Collects host and user information: hostname, username, OS, architecture, home directory path, environment variable names, working directories, configured Git email, and public IP.
- Attempts to add an attacker-controlled SSH key to `authorized_keys`, enable the local SSH service, and open a reverse SSH tunnel. Outside of highly unusual circumstances where Cursor was started with administrator privileges, due to errors in the malicious code, this step would fail.
- Attempts to make the reverse SSH tunnel persistent via a LaunchAgent (macOS) or a scheduled task that attempts to run as SYSTEM with a Startup-script fallback (Windows). Background scripts retry the tunnel roughly every 60 seconds.
- Reports host details and backdoor status via HTTP POST to `/beacon` on port 8099.
**Note: The attacker server no longer functions.**
- We worked with the cloud provider that was hosting it to take it offline, so the reverse shell and host detail POST are not functional.
- These findings concern the identified package. We have no evidence that other versions of the extension or the official distribution are affected.
- Additionally, turning on the local SSH service requires admin rights, which the malicious extension does not have on most macOS and Windows hosts. On those hosts the step fails and the attacker could not have logged in through the tunnel. The extension still adds the attacker’s SSH key, installs persistence, and sends host details to the attacker. Follow the remediation steps below regardless.
## [#](https://cursor.com/blog/claude-code-extension-security-notice#what-we-did)What we did
- Removed the malicious version from the marketplace immediately upon detection and blocked further distribution. We followed with a full shut down of the VSCode Marketplace out of an abundance of caution.
- We audited access and confirmed no other extensions were tampered with.
- We rotated our keys, rebuilt the marketplace, and brought it back online
- We worked with the hosting provider to take the malicious server offline, disrupting the attack by blocking the connection to that server.
## [#](https://cursor.com/blog/claude-code-extension-security-notice#what-you-should-do)What you should do
If you installed or updated to Anthropic.claude-code 2.1.313 from Cursor VS Code extension marketplace between 2:27am PT and 1:35pm PT on October 29, 2026:
1. Run the check below to validate if you are impacted.
2. Search across endpoint, network, and extension-installation telemetry for the indicators below.
3. Isolate hosts showing evidence of payload execution or backdoor installation.
4. Remove the unauthorized SSH key, persistence mechanisms, and running tunnel processes using the remediation scripts below, and assess whether the host should be rebuilt. Uninstalling the extension may not be sufficient — the payload drops standalone persistence scripts that keep running.
5. Rotate credentials and sessions accessible from affected hosts, from a trusted system. The limited env-var collection does not rule out later credential access over the backdoor.
## [#](https://cursor.com/blog/claude-code-extension-security-notice#check-whether-you-are-impacted)Check whether you are impacted
The malicious extension appends the attacker's public key, labeled `svc-telemetry`, to your SSH authorized keys. To check for it:
On macOS, run:
```
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"
```
On Windows, run in PowerShell:
```
$files = "$HOME\.ssh\authorized_keys", "C:\ProgramData\ssh\administrators_authorized_keys" | Where-Object { Test-Path $_ }
if ($files -and (Select-String svc-telemetry $files)) { "svc-telemetry key found" } else { "No key found; machine not impacted" }
```
If the key is found, your machine is impacted. Follow steps 3 to 5 above, and run the remediation script for your platform below.
## [#](https://cursor.com/blog/claude-code-extension-security-notice#remediate-affected-machines)Remediate affected machines
These scripts remove the malicious extension, the persistence mechanisms, the running tunnel processes, and the attacker's SSH key. They exit with a non-zero status if anything remains.
On macOS, download [remediate-macos.sh](https://cursor.com/static/security/claude-code-extension/remediate-macos.sh) and run it as the affected user, not as root, from the folder you saved it to:
```
bash remediate-macos.sh
```
On Windows, download [remediate-windows.ps1](https://cursor.com/static/security/claude-code-extension/remediate-windows.ps1) and run it from PowerShell opened with **Run as Administrator**, in the folder you saved it to:
```
powershell -ExecutionPolicy Bypass -File .\remediate-windows.ps1
```
## [#](https://cursor.com/blog/claude-code-extension-security-notice#indicators-of-compromise)Indicators of compromise
### [#](https://cursor.com/blog/claude-code-extension-security-notice#package)Package
- Modified VSIX SHA-256 (darwin-arm64): 432ccdee3801f99e52b8fe31f69ea9870118e96ea7ef9ecabed1479621b5ab62 (MD5 da5469c4221775e9fe2e413e59ca7fd9)
- Modified VSIX SHA-256 (win32-x64): 3de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd081 (MD5 bd3b71ddf3d0cc3af76249afd2c0eda1)
- Modified code: extension.js in the anthropic.claude-code-2.1.313-darwin-arm64 (macOS) or anthropic.claude-code-2.1.313-win32-x64 (Windows) extension folder contains 134[.]209[.]82[.]225 and svc-telemetry
### [#](https://cursor.com/blog/claude-code-extension-security-notice#network)Network
- Attacker endpoint: 134[.]209[.]82[.]225
- Reverse SSH: tunnel@134[.]209[.]82[.]225, TCP 22
- External beacon: hxxp://134[.]209[.]82[.]225:8099/beacon (HTTP POST)
- Local beacon attempt: 127[.]0[.]0[.]1:8099/beacon (HTTP POST, loopback)
- Public IP lookups to ifconfig[.]me / api[.]ipify[.]org — legitimate services; access alone is not an indicator
### [#](https://cursor.com/blog/claude-code-extension-security-notice#ssh)SSH
- Unauthorized public key: `ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDdvylCEJ/k2TpezcTfedrkHyFSK9IZ3vmP6vhY4Ss0P svc-telemetry`
- Unauthorized key fingerprint: `SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk`
- Reverse-tunnel key fingerprint: `SHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ`
- Key comment: `svc-telemetry`
### [#](https://cursor.com/blog/claude-code-extension-security-notice#files-and-persistence)Files and persistence
- macOS: unauthorized key in `~/.ssh/authorized_keys`; `~/.config/.smt`, `~/.config/.smtk`; `$TMPDIR/.stk_<10 hex>`; `~/Library/LaunchAgents/com.apple.sysmond.plist` (label `com.apple.sysmond`)
- Windows: `%USERPROFILE%\.ssh\authorized_keys`, `%USERPROFILE%\.config\smt.cmd`, `%USERPROFILE%\.config\smtk`, `%TEMP%\.stk_<10 hex>`; scheduled task `SysMon` (attempts to run as SYSTEM); fallback `%APPDATA%\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd`
### [#](https://cursor.com/blog/claude-code-extension-security-notice#process-command-line)Process / command-line
- `ssh -N -R '*:0:localhost:22'`, `autossh -M 0`
- SSH options: `StrictHostKeyChecking=no`, `UserKnownHostsFile=/dev/null`, `ServerAliveInterval=30`, `ServerAliveCountMax=3`, `ExitOnForwardFailure=yes`, `IdentitiesOnly=yes`
- `schtasks /create /tn SysMon`
- `systemsetup -setremotelogin on`
- `Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0`
If you have further questions, reach out to [email protected]. | meetpateltech | 12 | 1 |
| 🟧 hn | Backdoors in official Claude Code extensions | dsr_ | 663 | 17 |
| 🟠 reddit | A backdoored Claude Code extension hit up to 5,000 Cursor users ClaudeAI Retrieved article excerptOpen article · Retrieved 2026-10-30T13:22:26.539453+00:00 MACCUS chart: timeline of October 29 and 30, 2026, the tampered Claude Code extension 2.1.313 available on Cursor's marketplace from 2:27 a.m. to 1:35 p.m. PT, then version 2.1.314 published on npm, Open VSX and Microsoft's marketplace that evening
NewsAI
# A backdoored Claude Code extension hit up to 5,000 Cursor users
For 11 hours, version 2.1.313 on Cursor's marketplace added the attacker's SSH key and a persistent script. Cursor asks users to update to 2.1.314.
Marc Winer
[Marc Winer](https://maccus.fr/en/author/marcwiner/)
Published October 30, 2026, 1:52 PM8 min read
October 30, 2026 by [Marc Winer](https://maccus.fr/en/author/marcwiner/ "View all posts by Marc Winer")
On October 29, 2026, Cursor pulled from its own extension marketplace a tampered build of Claude Code for VS Code, the extension that brings Anthropic’s coding agent into the code editor. Listed under the identifier Anthropic.claude-code as version 2.1.313, it was available there from about 2:27 a.m. to 1:35 p.m. Pacific Time for Apple silicon Macs and x64 Windows PCs. According to the security notice Cursor posted the same day, the build tried to install a persistent SSH backdoor and “was not developed by Anthropic.” At most 5,000 users were affected, and Cursor says it will contact them directly.
Early on October 30, Cursor posted on X asking all customers to update to version 2.1.314. The pattern resembles what happened with [Rank Math PRO, whose publisher shipped backdoored updates for 11 hours](https://maccus.fr/en/rank-math-pro-backdoor/) from its own website on October 15 and 16. In both cases, the tampered version reached users through their usual update channel: the publisher’s site for Rank Math PRO, Cursor’s extension marketplace for Claude Code.
**Read also**[12% fewer US undergrads are studying computer science this fall, after an 8% drop in 2025](https://maccus.fr/en/computer-science-enrollment-drop/)
## Eleven hours on Cursor’s marketplace
Cursor, an AI coding editor built by Anysphere, runs its own marketplace of VS Code extensions. Its notice says the tampered version was available “between about 2:27am PT and 1:35pm PT” on October 29, or 9:27 a.m. to 8:35 p.m. UTC. The notice covers anyone who installed 2.1.313 from that marketplace during the window or received it as an update. Two packages are involved: darwin-arm64 for macOS and win32-x64 for Windows.
OpenSourceMalware, a malware-tracking site that analyzed the package, found it identical to the original except for one file, official bundled binary included. In extension.js, 66 lines of malicious code had been inserted ahead of the legitimate code. They run as soon as the editor loads the extension; the user never has to start a conversation with Claude.
Version 2.1.313 does not appear in any other Claude Code distribution channel. Anthropic’s changelog on GitHub jumps from 2.1.312 to 2.1.314, and none of the npm registry, Open VSX or Microsoft’s Visual Studio Marketplace listed a 2.1.313 on October 30. Version 2.1.314 showed up on those registries on the evening of October 29, around 5:12 p.m. PT on npm, then between 6:07 and 6:20 p.m. PT on Open VSX and Microsoft’s marketplace, according to their timestamps.
Excerpts from Cursor's October 29, 2026 security notice: the title, the statement that at most 5,000 users were affected, and the list of what the tampered Claude Code extension 2.1.313 does
Screenshot (excerpts): Cursor security notice on version 2.1.313, October 29, 2026
## A planted SSH key, a persistent script and a report to the attacker
According to Cursor, the tampered extension starts by collecting information about the machine and its user: hostname, username, operating system, architecture, home directory path, environment variable names, working directories, configured Git email and public IP address. OpenSourceMalware adds that the code keeps the names of up to 40 variables containing KEY, TOKEN, SECRET, PASS, AWS or GCP, but not their values. Those names alone can reveal which cloud providers and credential types are set up on the machine, the site notes.
The code then appends an attacker-controlled SSH key to the user’s authorized\_keys file. It tries to turn on the machine’s SSH service and open a reverse SSH tunnel to the attacker’s server: an outbound connection held open from the machine, which the attacker could use to connect back in if the SSH service is running.
To make the tunnel persistent, it installs a LaunchAgent named com.apple.sysmond.plist on macOS. The name mimics Apple’s naming, but the file is not an Apple component, OpenSourceMalware points out. On Windows, it tries to create a scheduled task called SysMon that runs as SYSTEM and, if that fails, drops a script in the user’s Startup folder. Background scripts restart the tunnel roughly every 60 seconds.
The extension also sends the collected information and the backdoor’s status to the attacker’s server in an HTTP request to port 8099. According to OpenSourceMalware, the code downloads no additional malware and ignores whatever the server sends back.
## SSH access failed on most machines
Enabling the SSH service requires administrator rights, which the extension does not have on most macOS and Windows machines, Cursor writes. On those machines the step fails and “the attacker could not have logged in through the tunnel,” except in “highly unusual circumstances” where Cursor was launched with administrator privileges. Cursor also cites “errors in the malicious code.” Security firm Phorion describes one on macOS: run as a standard user, the command that checks Remote Login status prints an error instead of “Off,” so the script skips the step that would turn it on.
The failed tunnel does not stop the rest of the code: the extension still adds the attacker’s key, sets up persistence and sends the machine’s details, Cursor says. It warns that “uninstalling the extension may not be sufficient,” because the persistence scripts keep running. The attacker’s server no longer responds; Cursor got the hosting provider to take it offline.
Several questions remain open. Cursor does not explain how the tampered version got into its marketplace, and OpenSourceMalware only reports that Cursor told it the Claude Code extension in its marketplace “experienced some form of compromise.” The 5,000 figure is a ceiling: Cursor does not say how many machines actually ran the code. OpenSourceMalware’s first post attributed the tampered build to the Open VSX registry; the site corrected it after Cursor got in touch.
As of early afternoon Paris time on October 30, Anthropic had posted no statement on its news page, its status page or the security advisories of the Claude Code GitHub repository.
## Cursor rebuilds its marketplace and publishes cleanup scripts
Cursor says it removed the version as soon as it was detected and blocked further distribution, then shut down its entire extension marketplace “out of an abundance of caution.” An access audit found no other tampered extensions, the company adds. It rotated its keys, rebuilt the marketplace and brought it back online. Cursor reports “no evidence that other versions of the extension or the official distribution are affected,” and OpenSourceMalware says the npm package and the Open VSX and Microsoft marketplace extensions are not malicious.
To check whether a machine is affected, Cursor advises searching for the string svc-telemetry, the label of the attacker’s key, in ~/.ssh/authorized\_keys on macOS and, on Windows, in the user’s copy of that file and in the one under ProgramData. If the string shows up, Cursor provides cleanup scripts, meant to be run as the affected user on macOS and from an elevated PowerShell window on Windows.
The notice recommends isolating the machine, deciding whether it should be rebuilt and rotating the credentials and sessions reachable from it, working from a trusted system. The limited collection of environment variables “does not rule out later credential access over the backdoor,” Cursor notes. It also lists indicators of compromise: the server address, package hashes and the files created.
In its post on X, Cursor adds that the incident does not affect other extensions in its marketplace or “Grok Bot, Grok or our other SpaceXSI products.” Cursor is owned by SpaceX, which acquired it in August, according to BusinessToday.
## What it means
On Cursor’s marketplace, the attacker reused the extension’s official identifier, Anthropic.claude-code, and the version number right after that of the last genuine release (2.1.312). According to OpenSourceMalware, the extension kept its usual interface while the malicious code ran. To a user, 2.1.313 looked like a routine update.
Since mid-October, several makers of professional software have seen their own infrastructure turned against their customers. After Rank Math PRO, keys stolen from TeamUpdraft were used to [install malicious plugins on WordPress sites running UpdraftPlus](https://maccus.fr/en/updraftplus-breach/) on October 18 and 19, and an intrusion at [OpenCode, disclosed on October 17, may have exposed OpenAI and Anthropic API keys](https://maccus.fr/en/opencode-breach-api-keys/). Cursor’s case adds a code editor’s own extension marketplace to the list: a single point of failure for everyone who installs from it.
The announced scope is limited to version 2.1.313 as served by Cursor’s marketplace: neither the notice nor the post on X mentions VS Code users who install from Microsoft’s marketplace, or people using Claude Code in the terminal. The risk comes from what these tools can reach: an extension runs with the permissions of the code editor and its user, Phorion notes, and a coding agent works amid source code, SSH keys and access to cloud services.
Even where the SSH access failed, the attacker’s key and the persistent scripts stay on disk until someone removes them, and machine details went to the server for as long as it was up. Three things are still missing: Cursor’s explanation of how the tampered version got into its marketplace, any response from Anthropic, whose name served as cover, and the number of machines where the svc-telemetry key was actually found.
## Sources
- [Security notice: malicious version of Anthropic.claude-code (2.1.313) identified in the Cursor Extension Marketplace](https://cursor.com/blog/claude-code-extension-security-notice), Cursor, October 29, 2026
- [We identified a security incident affecting a modified Claude Code VS Code extension](https://x.com/cursor_ai/status/2116074289053175808), Cursor (@cursor\_ai) on X, October 30, 2026
- [Trojanized Claude Code Extension Plants an SSH Backdoor](https://opensourcemalware.com/blog/trojanized-claude-code-extension-plants-persistent-ssh-backdoor), OpenSourceMalware, October 30, 2026
- [Official Claude Code Extension Compromise: Security Advisory](https://phorion.io/blog/offical-claude-code-vsx-compromise/), Phorion, October 30, 2026
- [Claude Code, CHANGELOG.md](https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md), Anthropic on GitHub, read October 30, 2026
- [Claude Code for VS Code](https://marketplace.visualstudio.com/items?itemName=anthropic.claude-code), Visual Studio Marketplace (Microsoft), version history read October 30, 2026
- [Claude Code for VS Code](https://open-vsx.org/extension/Anthropic/claude-code), Open VSX, version history read October 30, 2026
- [Cursor flags malicious Claude Code extension, up to 5,000 users affected](https://www.businesstoday.in/technology/news/story/cursor-flags-malicious-claude-code-extension-up-to-5000-users-affected-564778-2026-10-30), Business Today, October 30, 2026
Header image: MACCUS chart. Data: Cursor, npm, Open VSX and Visual Studio Marketplace registries, read October 30, 2026
## More in this section
[### 12% fewer US undergrads are studying computer science this fall, after an 8% drop in 2025
October 30, 2026](https://maccus.fr/en/computer-science | mawcopolow | 57 | 10 |
| 🟧 hn | The backdoored Claude Code 2.1.313 build in Cursor's marketplace, explained | titusblair | 2 | 0 |
| 🟠 reddit | Here's a one-line check to see if you were affected by yesterday's Claude Code Extension breach ClaudeAI | adamsthws | 1 | 5 |
| 🟧 hn | Postmortem on Claude Code Cursor extension hack | soundworlds | 8 | 1 |
| 🟠 reddit | If you run the Claude Code extension inside Cursor, check for this key (Oct 29) ClaudeAI | WhichCardiologist800 | 2 | 2 |
| 🟠 reddit | Official Claude Code Extension Compromise: Security Advisory ClaudeAI | dalepo | 90 | 21 |
2026-11-06T08:24:24Z
A brief Reddit velocity spike adds discussion, not corroboration: the newer claims about affected versions and distribution channels remain unsupported by primary evidence. The established Cursor marketplace incident remains consequential, but attention has cooled and no material new fact changes the assessment.
2026-11-03T00:25:45Z
The incident is now well-framed as a contained compromise of Cursor’s extension marketplace, not evidence of an Anthropic or Open VSX breach. New discussion repeats the established account and introduces conflicting claims about affected versions without substantiation; attention has cooled sharply from its peak, though the unresolved entry route and actual number of affected hosts remain worth tracking.
2026-11-02T15:41:44Z
audience grounding: high — This is a consequential software-supply-chain incident because a familiar coding-agent extension, running with the editor user’s access, was used to attempt persistent remote access. It shows how a compromised distribution channel can turn routine extension updates into a route to developer machines and potentially accessible credentials or project infrastructure. The reported ceiling is 5,000 users, not a confirmed infection count; Cursor says the attacker’s server was taken offline and that SSH access would fail on most macOS and Windows machines without administrator privileges. Even so, Cursor says the key, persistence and host-data reporting could remain relevant, so updating or uninstalling alone may not clean an affected host.
2026-11-02T15:41:02Z
A newer Reddit post claims the affected Cursor package may have included versions 2.1.312 as well as 2.1.313, while saying other distribution channels were unaffected. This is an unverified expansion of the affected-version question, not evidence that Anthropic’s systems or other marketplaces were compromised; the postmortem title supplies no assessable findings, and attention has cooled sharply from its peak.
2026-11-02T03:23:56Z
The core incident is now corroborated by Cursor’s first-party notice: the malicious 2.1.313 package was distributed through Cursor’s marketplace, not shown to be an Anthropic release or compromise of Anthropic systems. A newer item titled as a postmortem may add reporting, but the supplied evidence contains no article text establishing new findings; attention has cooled sharply from the earlier surge, and no ongoing distribution is evidenced.
2026-10-31T04:23:57Z
Cursor’s first-party notice establishes that a tampered 2.1.313 package was distributed through its marketplace for about 11 hours, shifting this from an unverified artifact report to a confirmed marketplace incident. The attacker server is offline and Cursor says it removed the package and rebuilt the marketplace; the high measured attention is cooling from its peak and does not itself indicate ongoing spread or confirmed host compromise.
2026-10-30T16:35:50Z
Cursor’s incident notice materially confirms that the same maliciously modified 2.1.313 build was distributed through Cursor’s marketplace for roughly 11 hours, with potential exposure of up to 5,000 users; it also reports containment and remediation steps. The episode is now a confirmed marketplace supply-chain incident, but the affected-user count, actual compromises, and any exposure through other distribution channels remain unresolved; attention is cooling from its peak despite fast discussion.
2026-10-30T13:29:46Z
Cursor’s first-party notice confirms the malicious package was distributed through its marketplace for about 11 hours, provides indicators and remediation steps, and says the attacker server is offline. A later secondary report says version 2.1.314 appeared across npm, Open VSX and Microsoft’s marketplace; that is a claim about the update’s distribution, not confirmation that those channels carried the malicious build. The case is now a documented, high-consequence developer supply-chain incident, while actual compromises and the full exposure remain unknown.
2026-10-30T11:28:46Z
Cursor’s security notice independently confirms that the modified 2.1.313 package was distributed through its marketplace and describes the backdoor behavior, turning an initially single-researcher report into a corroborated marketplace incident. The scope remains bounded: Cursor says at most 5,000 users were exposed, the attacker server is offline, and there is no evidence of compromise to Anthropic’s official distribution; actual infections and affected-user count are unknown.
2026-10-30T08:25:02Z
Cursor’s security notice materially corroborates that version 2.1.313 was malicious and establishes that it was available in Cursor’s extension marketplace, with a stated exposure window and response actions. This strengthens the incident beyond the original researcher’s analysis, but does not establish compromise of Anthropic’s official distribution or how many users’ machines were actually compromised.
2026-10-30T07:26:35Z
The additional Claude Code compromise post adds no artifact analysis or independent confirmation, so it does not change the report’s key limitation: only the Open VSX artifact has been analyzed, and its provenance remains unknown. Attention has cooled from its peak; the high peer percentile and serious potential impact warrant continued monitoring, but do not establish broader compromise.
2026-10-30T05:27:45Z
audience grounding: high — A trojanized coding-tool extension could turn routine editor use into persistent remote access to a developer’s machine. This matters beyond Claude Code: developer workstations may hold source code and access to cloud, CI, and production systems. The reported loader runs when the extension module loads, before normal initialization, and the extension may otherwise continue working. That makes this a serious software-supply-chain warning, but the evidence concerns one analyzed Open VSX artifact—not a confirmed compromise of Anthropic’s official release.