Anthropic Cursor Extension Compromised

Last Updated: 2026-10-31T23:33:00Z

What’s Happening

On 2026-10-29T07:00:00Z, a malicious version of the Claude Code extension was uploaded to the Cursor Marketplace. The Cursor marketplace is the default extension repository for the AI coding tool Cursor.

macOS Security firm Phorion appears to have been first to detect the compromise, followed closely by OpenSourceMalware, Socket, and Step Security. Kevin Beaumont also has a blog post about it. Cursor themselves have also published an advisory. Cursor establishes the compromise time window from 2026-10-29T09:27:00Z to 2026-10-29T20:35:00Z.

The compromised versions of the extension, versions 2.1.313 and 2.1.312, have been removed from the marketplace. In the time it was available, Socket puts the potential impact radius at up to 5000 users. Cursor and others confirm that only the Cursor Marketplace version of the extension was compromised.

The malicious package adds a new SSH public key to the victim’s authorized_keys file with the hostname svc-telemetry, and opens a reverse SSH tunnel to attacker infrastructure. Interestingly, the macOS variant seems to have a failure point when it attempts to enable SSH when the user does not have elevated privileges on the machine.

Anthropic uploaded a fixed version 2.1.314 to all extension marketplaces. This has led to some confusion about which ones were compromised. At this time, only the Cursor marketplace appears to have hosted the malicious extension, even though the “fixed” version was distributed everywhere.

Affected Versions

  • 2.1.312 and 2.1.313 from Cursor Marketplace only

Actions

The fastest way to determine impact, given the insanity of VS Code extensions, is to check for the presence of the svc-telemetry key in user authorized_keys files.

Per Cursors’s remediation recommendations:

macOS:

grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

Windows:

$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, engage further incident response, including host isolation, secret rotation, and system/network log analysis.

Cursor has provided remediation scripts for macOS and Windows. They do not have one for Linux.

Observables

Step Security’s IoC table appears to be the most comprehensive, which we have reposted here with defanging. These observables will also be in our MISP feed.

Type Value Description
Local beacon attempt 127.0.0.1:8099/beacon (HTTP POST, loopback) Loopback beacon attempt by the loader
Malicious version anthropic.claude-code@2.1.313 Presence confirms exposure; Open-VSX and Cursor channels
C2 134.209.82[.]225 Reverse tunnel (TCP 22, user tunnel) and HTTP beacon (8099); now offline
Beacon http://134.209.82[.]225:8099/beacon POST of host recon JSON
SSH key (authorized_keys) SHA256:0Z6R+DF64Do2nwQic8a7kkfDLNNk4IiK+2U2Rci4htk, comment svc-telemetry Interactive access implant
SSH key (tunnel identity) SHA256:KOAU57+ZG6u3MG4WwzPzPX2O5YEe9qdOC1Bl+6MVyDQ Embedded private key dropped as .stk_*
Malicious VSIX (darwin-arm64) 432ccdee3801f99e52b8fe31f69ea9870118e96ea7ef9ecabed1479621b5ab62 (MD5 da5469c4221775e9fe2e413e59ca7fd9) Per Cursor
Malicious VSIX (win32-x64) 3de1722901165769893bef57c72594e9a54459faa23f3091b136b79966edd081 (MD5 bd3b71ddf3d0cc3af76249afd2c0eda1) Per Cursor
Malicious extension.js ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15 (md5 f49bcd657ef1e626e85ce858958c1769) 3,692,922 bytes
On-disk detection extension folders anthropic.claude-code-2.1.313-darwin-arm64 / -win32-x64: extension.js contains 134.209.82.225 and svc-telemetry Fleet sweep: grep installed extension bundles for either string
Dropped smt.cmd 22f682d9ff55264e934d0f43fcfbb46d58be5cfb8fe1b3a7cbb38fe089c818b0 Windows persistence script, 330 bytes
Dropped tunnel key 7e0a52885fadee05544a9e99eb18c792bec05900a5e1a66d68f8383decb0e278 Written as .stk_
Modified authorized_keys 49d616941deb44840dc89061c617ad7a325aa32113819ddc14e9c8dc238c83d1 Post-implant hash
File paths ~/.config/.smt, ~/.config/.smtk, ~/.config/smt.cmd, $TMPDIR/.stk_*, ~/Library/LaunchAgents/com.apple.sysmond.plist, Startup\sysmon.cmd Persistence and key artifacts
Scheduled objects task SysMon (SYSTEM, onstart), LaunchAgent com.apple.sysmond, cron @reboot Persistence
Process / command-line ssh -N -R ‘*:0:localhost:22’, autossh -M 0 (StrictHostKeyChecking=no, UserKnownHostsFile=/dev/null, ServerAliveInterval=30, IdentitiesOnly=yes), schtasks /create /tn SysMon, systemsetup -setremotelogin on, Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Tunnel and enablement

Notes

Step Security’s post claims that the Open VSX marketplace was compromised, but that is not supported by evidence.

A supposed Anthropic employee writes on Hacker News that no Anthropic assets/employees were involved in this breach. If so, and Cursor itself was compromised, more questions arise about the nature of the compromise and if other packages could have been impacted. Cursor’s report claims their audit found no other affected packages, making the specifics of the attack even more curious.

There is speculation this attack is related to the Binance hack, but so far that is pure speculation.

2 Likes