Supply chain - Developer tooling - macOS, Linux, Windows
One release of the Claude Code editor extension shipped with an SSH backdoor
Version 2.1.313 of Anthropic's Claude Code extension, published through the Open VSX registry and mirrored into Cursor's marketplace on Oct. 29th, carried a loader that plants an attacker's SSH key, opens a reverse tunnel and installs persistence. Version 2.1.314 replaces it. Removing the extension does not remove what it installed.
What happened
The Claude Code extension is Anthropic's official integration for VS Code and the editors built on it. Microsoft's VS Code installs extensions from the Visual Studio Marketplace. Cursor, Windsurf, Devin Desktop and VSCodium install from Open VSX, an open registry run under the Eclipse Foundation. The 2.1.313 build appeared on Open VSX under the legitimate Anthropic publisher, then synced into Cursor's marketplace.
Phorion, a macOS endpoint vendor, published the technical analysis on Oct. 30th. StepSecurity and others confirmed the version and indicators independently. Cursor issued a security notice. The 2.1.313 release has been withdrawn from Open VSX, the VS Code Marketplace and npm, and the version lists now step from 2.1.312 to 2.1.314. At the time of writing, researchers report no malicious version reached the main VS Code Marketplace, and we have not seen a public statement from Anthropic on how the release was published.
How an extension gets this far
Most teams set editor extensions to update automatically, and for good reason: it is how security fixes arrive without anyone scheduling them. The same setting is what carried this release onto machines overnight.
The mechanism worth understanding is when the code runs. An editor extension is a Node.js program that runs with the full permissions of the developer who opened the editor. In this build, 66 lines were placed at the very top of the extension's main file, so they executed the moment the editor loaded the file. That happens before the extension's own start-up routine, and before the developer clicks anything. The editor itself is signed and trusted by the operating system. That signature says nothing about the extensions running inside it, which is why the file writes below came from a process every endpoint tool on the machine already trusts.
What the loader does
| Stage | Action | Detail |
|---|---|---|
| 1 | Plants a login key | Appends an Ed25519 public key with the comment svc-telemetry to ~/.ssh/authorized_keys, then tries to enable the local SSH service. |
| 2 | Opens a reverse tunnel | Connects out to 134.209.82[.]225 on port 22 and forwards a port on that server back to SSH on the developer's machine. Outbound SSH passes most firewalls. |
| 3 | Persists | macOS: a LaunchAgent named com.apple.sysmond. Linux: an @reboot cron entry. Windows: a scheduled task named SysMon or a Startup folder script. |
| 4 | Reports in | Sends hostname, username, Git email, public IP and the names of up to 40 environment variables matching KEY, TOKEN, SECRET, PASS, AWS or GCP. Names only, not values. |
Phorion found that on a Mac where the developer is a standard user and Remote Login is off, a faulty check means the loader never attempts to switch SSH on. The key and the persistence are still written, so the access is waiting for the day Remote Login is enabled. The Windows path has a similar fault. Neither is a reason to skip the check below.
What we are doing
We are checking the developer machines in our environments for the 2.1.313 folder and the artifacts below, and blocking 134.209.82[.]225 at the firewall. Where a machine is affected, removal follows the order below, and secrets reachable from that account are rotated.
Check one machine
Any output from the first block on a Mac or Linux machine means the machine is in scope. No output is the expected result.
# 1. Was the bad version installed in any editor? ls -d ~/.vscode/extensions/anthropic.claude-code-2.1.313* \ ~/.cursor/extensions/anthropic.claude-code-2.1.313* \ ~/.windsurf/extensions/anthropic.claude-code-2.1.313* \ ~/.vscode-oss/extensions/anthropic.claude-code-2.1.313* 2>/dev/null # 2. Is the planted key present? grep -n "svc-telemetry" ~/.ssh/authorized_keys 2>/dev/null # 3. Persistence and key files ls -la ~/.config/.smt ~/.config/.smtk \ ~/Library/LaunchAgents/com.apple.sysmond.plist \ "${TMPDIR:-/tmp}"/.stk_* /tmp/.stk_* 2>/dev/null crontab -l 2>/dev/null | grep ".smt" # 4. Is a tunnel running now? pgrep -fl "134.209.82.225"
Get-ChildItem "$env:USERPROFILE\.vscode\extensions","$env:USERPROFILE\.cursor\extensions","$env:USERPROFILE\.windsurf\extensions" -Filter "anthropic.claude-code-2.1.313*" -ErrorAction SilentlyContinue Select-String -Path "$env:USERPROFILE\.ssh\authorized_keys" -Pattern "svc-telemetry" -ErrorAction SilentlyContinue Get-ScheduledTask -TaskName "SysMon" -ErrorAction SilentlyContinue Test-Path "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\sysmon.cmd" Test-Path "$env:USERPROFILE\.config\smt.cmd"
Hunt on the key fingerprint as well as the comment, since a comment can be edited. Run ssh-keygen -lf ~/.ssh/authorized_keys and compare against the fingerprints in the indicator table.
If a machine is affected
- Isolate the machine from the network, or raise it with your MDR provider before touching it, so the evidence is preserved.
- Stop the tunnel: kill the /bin/sh retry loop and any ssh or autossh process connecting to 134.209.82[.]225.
- Remove persistence: on macOS run launchctl unload ~/Library/LaunchAgents/com.apple.sysmond.plist and delete the file. Remove the cron entry on Linux, or the SysMon task and Startup script on Windows. Delete ~/.config/.smt and ~/.config/.smtk.
- Remove the svc-telemetry line from authorized_keys, delete .stk_* files, and confirm SSH or Remote Login is in the state it should be.
- Check SSH logs for successful logins from 127.0.0.1 or ::1 using that key. Through the tunnel, the operator's sessions appear to come from the machine itself.
- Rotate every credential that account could read. Start with the variables the beacon listed by name: cloud keys, API tokens, and anything in shell profiles or .env files in the developer's repositories.
- Update the extension to 2.1.314 or later.
Uninstalling the extension alone leaves stages 1 to 3 in place.
Indicators
| Type | Value | Note |
|---|---|---|
| SHA-256 | ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 | Backdoored extension.js |
| Key fingerprint | SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk | Planted login key, comment svc-telemetry |
| Key fingerprint | SHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ | Tunnel key, comment svc-telemetry-tun |
| IP, SSH | 134.209.82[.]225:22 | Reverse tunnel server, user "tunnel" |
| IP, HTTP | 134.209.82[.]225:8099 | POST /beacon |
| File | ~/Library/LaunchAgents/com.apple.sysmond.plist | macOS persistence |
| File | ~/.config/.smt, ~/.config/.smtk | macOS, Linux |
| File | $TMPDIR/.stk_* | Initial tunnel key |
| Task | SysMon | Windows scheduled task |
Sources: Phorion technical analysis, Oct. 30th, 2026. StepSecurity analysis. Cursor security notice for anthropic.claude-code 2.1.313. Indicators are reproduced as published; the IP is defanged.
The extension that carried this was the official one, from the real publisher, installed by the editor's own update setting, so the inventory that matters here is the one listing what runs inside our developers' editors and who decided it could.