Skip to content
    ← All news

    A trusted extension in Cursor shipped an SSH backdoor. How do you check if your machine was hit?

    · Zero Agency

    Share

    You did nothing wrong. You opened your editor on Thursday, it updated an extension you already trusted, and you went back to work.

    That is the whole attack. No phishing link, no strange download. Just an update from a publisher name you have seen a hundred times.

    TL;DR

    • On October 29, 2026, tampered builds of the Anthropic.claude-code extension, versions 2.1.312 and 2.1.313, were served by the Cursor extension marketplace from about 2:27am to 1:35pm Pacific time, according to Cursor's security notice.
    • The code tried to plant an attacker's SSH key, open a reverse SSH tunnel, survive reboots, and send host details home. WIRED reports Cursor said at most 5,000 users downloaded it.
    • The fastest check is one command that looks for a key labelled svc-telemetry in your SSH authorized keys.
    • Uninstalling the extension is not enough. The payload leaves separate startup scripts behind.
    • If you were hit, rotate credentials from a different, clean machine.

    What actually happened in the Cursor marketplace?

    For roughly 11 hours, anyone who installed or updated Claude Code from Cursor's marketplace on macOS or Windows could get a modified build. Cursor says these versions were not developed by Anthropic.

    Microsoft Threat Intelligence confirmed the bad packages were never on the Visual Studio Marketplace or in the npm package @anthropic-ai/claude-code. All evidence points to the Cursor marketplace only.

    How the attacker got in is still open. Ars Technica reports that neither company has explained it, and quotes Phorion CTO Luke Roberts saying the malicious build was posted to the official Anthropic account on Cursor and that extensions auto-update in Cursor by default.

    Cursor says it pulled the version, shut the whole marketplace down, audited access, found no other tampered extensions, rotated its keys and rebuilt the marketplace. It also worked with the hosting provider to take the attacker's server offline.

    What did the malicious extension do to my machine?

    The bad code sat at the top of the extension's main file and ran as soon as the editor loaded it. You did not have to open Claude Code. MATT's write-up, based on Phorion's analysis, lists the steps in order:

    1. It appended an attacker's public SSH key, labelled svc-telemetry, to your authorized_keys file. That file decides who may log in to your machine over SSH.
    2. It tried to switch on the local SSH service.
    3. It opened an outbound SSH tunnel to the attacker's server, retrying about every 60 seconds.
    4. It installed a startup item so the tunnel comes back after a reboot.
    5. It sent your hostname, username, OS, Git email, public IP and the names of environment variables that look like secrets.

    The names, not the values. But a list of variable names tells an attacker which machines hold cloud keys and tokens worth coming back for.

    Was the attacker actually able to log in?

    On most machines, probably not. Cursor says turning on SSH needs admin rights, which the extension lacks on most Mac and Windows setups, and errors in the malicious code made that step fail unless Cursor was started as administrator.

    That is good news with a catch. Microsoft notes the loader may still write the key and the persistence files even when the tunnel fails. So your machine can carry a planted key and a startup script that nobody used yet. If SSH ever gets turned on later, for any reason, that key works.

    Treat "the attack probably failed" as a reason to stay calm, not a reason to skip the check.

    How do I check if my machine was hit?

    Cursor published a one-line check. On macOS:

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

    On Windows, 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 you manage a team, do not stop at one laptop. Cursor's notice lists the file names, scheduled tasks, network endpoint and file hashes to search for across your fleet. Two easy ones: a LaunchAgent named com.apple.sysmond on macOS, and a scheduled task named SysMon on Windows. Neither is a real Apple or Microsoft component.

    If the key is there, what order should I clean up in?

    Order matters, because the thing you are cleaning may still be watching.

    1. Isolate the machine. Take it off the network before you change anything sensitive from it.
    2. Run Cursor's remediation script for your platform. It removes the extension, the startup items, the tunnel processes and the key, and exits with an error if anything remains.
    3. Do not hand-edit the key out with a quick filter. Per Vibelocked's guide, Cursor's script notes the key was appended without a newline, so it can share a line with one of your real keys.
    4. Rotate from a different, trusted machine. SSH keys, Git tokens, cloud and database credentials, AI provider keys, and anything in .env files that laptop could read. Cursor says the limited data collection does not rule out later access through the backdoor.
    5. Decide whether to rebuild. If you see signs the tunnel actually ran, a clean reinstall is cheaper than wondering.

    We covered why you stop what is running before you rotate anything in our npm worm cleanup guide. Same logic here.

    Why are editor extensions such a good target?

    Because an extension runs with the same permissions as your editor. Ars Technica points out that a backdoored extension likely gets access to local files, source code and developer tooling.

    And a developer laptop is the place where everything meets. Production keys, the repo, the deploy token, the session to your cloud console. An attacker who lands there skips a lot of steps.

    The uncomfortable part is that the usual advice did not help. "Only install trusted extensions" was followed. The publisher name was right. The trust was in the channel, and the channel was what broke.

    We wrote about a similar problem a week ago with config files that hijack coding agents. Your tools now read and run more things on your behalf than you ever review.

    What should I change after this?

    A few habits that cost little:

    • Turn off automatic extension updates on machines that hold production credentials, and update on purpose. Ars notes users can configure this in Cursor's settings.
    • Keep long-lived secrets off the laptop. Short-lived tokens and a secrets manager mean a stolen machine leaks less.
    • Check authorized_keys now and then. On most developer laptops it should be empty or hold keys you can name.
    • Watch for new startup items. Persistence is the part of most attacks that is easiest to spot.

    If you ship apps built with AI tools and want a second pair of eyes on what reached your code, that is the kind of review we built Liquid for. A review is not a guarantee, and it does not replace the checks above on your own machines.

    FAQ

    Which versions were malicious? Anthropic.claude-code 2.1.312 and 2.1.313, installed from the Cursor marketplace on macOS or Windows on October 29, 2026, between about 2:27am and 1:35pm Pacific time, per Cursor.

    Was I affected if I use VS Code or the Claude Code CLI? Microsoft says the bad packages were never on the Visual Studio Marketplace or in the official npm package. The incident was limited to the Cursor marketplace.

    Is the attacker's server still running? No. Cursor says it worked with the hosting provider to take it offline. The planted key and startup items can still be on your machine, so run the check anyway.

    Does uninstalling the extension fix it? No. Cursor says the payload drops standalone persistence scripts that keep running after the extension is gone. Use the remediation script.

    Share this post