No. 022Filed by The Reporter

Known issuesOpenConfirmed · staff
Cursor

·

Check your machine for the tampered Claude Code extension in Cursor

Fake Claude Code builds 2.1.312 and 2.1.313 sat in Cursor's extension marketplace for about 11 hours on Oct 29. One command tells you if you were hit.

Illustration: a plain office door key on a thin metal ring, in black and white.
Illustration

123456

Update, Nov 3: Cursor's notice now names two tampered versions, 2.1.312 and 2.1.313, not just 2.1.313. If you installed or updated either one from Cursor's marketplace on Oct 29 between 5:27 AM and 4:35 PM ET, run the check below. Cursor also says the SSH step "would fail" unless Cursor was started with administrator privileges, but tells everyone to "Follow the remediation steps below regardless." Corrections are at the bottom of this page.

Filed
2026-10-30
Confidence
Confirmed
Company
cursor
Last checked
2026-11-03
On this page
  1. What changed
  2. Why it matters
  3. How to use it
  4. Good to know
  5. What to watch
  6. Sources
  7. Corrections

If you installed or updated Claude Code inside the Cursor editor on Oct 29, run one command today to see whether a tampered copy (version 2.1.312 or 2.1.313) put an attacker's SSH key on your computer. Cursor said on X on Oct 30 that the incident was "impacting at most 5,000 users." The check takes seconds, and everyone should update Claude Code to the latest version either way.

What changed#

Cursor's security notice says a "maliciously modified version of Anthropic’s Claude Code extension", versions 2.1.312 and 2.1.313, was in its extension marketplace "Between about 2:27am PT and 1:35pm PT" on Oct 29, which is 5:27 AM to 4:35 PM ET. Cursor says "These malicious versions of the extension were not developed by Anthropic." According to the notice, the extension:

  • collects host details, including hostname, username, environment variable names, configured Git email and public IP;
  • tries to add an attacker key labeled svc-telemetry to authorized_keys, turn on the local SSH service and open a reverse SSH tunnel;
  • tries to keep that tunnel alive with a LaunchAgent on macOS or a scheduled task on Windows, and "Background scripts retry the tunnel roughly every 60 seconds";
  • reports back by HTTP POST to /beacon on port 8099.

Cursor says it removed the version "immediately upon detection", then followed with "a full shut down of the marketplace out of an abundance of caution." It "audited access and confirmed no other extensions were tampered with," then "rotated our keys, rebuilt the marketplace, and brought it back online." The notice adds: "The attacker server no longer functions." Cursor says it worked with the cloud provider to take that server offline, "so the reverse shell and host detail POST are not functional."

Cursor posted on X at 3:46 AM ET Friday that the incident "does not impact other extensions downloaded from the cursor.com/marketplace, Grok Bot, Grok or our other SpaceXSI products," and at the time asked "all customers" to update to Claude Code for VS Code 2.1.314.

Why it matters#

This hit developers who run an AI coding agent inside their editor, the people most likely to have cloud keys, repo tokens and production sessions on the same laptop. Removing the extension is not the whole fix. Cursor warns that "Uninstalling the extension may not be sufficient" because "the payload drops standalone persistence scripts that keep running." It also says "The limited env-var collection does not rule out later credential access over the backdoor."

How to use it#

Cursor's cleanup steps apply "If you installed or updated to Anthropic.claude-code 2.1.312 or 2.1.313 from the Cursor VS Code Extension Marketplace on macOS or Windows between 2:27am PT and 1:35pm PT on October 29, 2026". If you are not sure, run the check anyway.

  1. Check for the key. On macOS, run Cursor's one-line check:
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

On Windows, run this 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" }

Cursor says: "If the key is found, your machine is impacted."

  1. If it is, isolate that computer. The notice says to isolate hosts "showing evidence of payload execution or backdoor installation."
  2. Run Cursor's cleanup script. On macOS, download remediate-macos.sh and run bash remediate-macos.sh "as the affected user, not as root." On Windows, download remediate-windows.ps1 and run powershell -ExecutionPolicy Bypass -File .\remediate-windows.ps1 from PowerShell opened with Run as Administrator. The scripts "exit with a non-zero status if anything remains." Cursor also says to "assess whether the host should be rebuilt."
  3. Rotate secrets from somewhere else. Cursor's words: "Rotate credentials and sessions accessible from affected hosts, from a trusted system."
  4. Everyone: update Claude Code for VS Code to the latest version. Cursor's Oct 30 X post named 2.1.314. The revised notice no longer names a version, and Open VSX listed 2.1.317 as the latest when we checked on Nov 3.

Security teams should also follow the notice's step to search "endpoint, network, and extension-installation telemetry" for its indicators, which include the macOS file ~/Library/LaunchAgents/com.apple.sysmond.plist and the attacker address.

Ask your Bot to run the Mac check for you (ours, untested):

Prompt
On this Mac, run grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted" and tell me the exact output. Change nothing.

Good to know#

  • Admin rights limited the damage, not the cleanup. Cursor says 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." It still says "Follow the remediation steps below regardless," because the key, persistence and host report still land.
  • Only the Cursor marketplace copy is named. Cursor has "no evidence that other versions of the extension or the official distribution are affected." Open VSX also lists a 2.1.312, but Cursor's notice covers copies installed "from the Cursor VS Code Extension Marketplace," so a version number alone doesn't tell you which copy you have. Run the check. OpenSourceMalware, which published an early analysis, lists the npm package, the Open VSX extension and the Microsoft extension as "NOT malicious."
  • Grok Bot is not affected, per Cursor's X post above.
  • The version Cursor first pointed to added a guardrail. Anthropic's Claude Code 2.1.314 release added permissions.blockWritesOutsideWorkingDirectories; see the Oct 30 digest.
  • Questions go to security@cursor.com, per the notice.

What to watch#

  • Direct notices from Cursor. Staff member Colin wrote on Nov 3: "If you were affected by this issue, you likely heard directly from us!" He added that you "can also check using the steps in our blog post," so don't treat no email as proof you are safe.
  • How the bad build got in. The notice does not say.
  • Anthropic. Anthropic "did not immediately respond to a request for comment," CNA reported. We found no Anthropic post about it on X.

Last checked: Nov 3, 2026, 10:20 to 10:24 AM ET (Cursor's notice, Cursor's X post, the forum thread, Open VSX and CNA). What changed: Nov 3 update and correction. The notice now names 2.1.312 and 2.1.313, the 5,000 figure now cites Cursor's X post, step 5 points to the latest version, and Colin's forum reply is added.

Sources#

Corrections#

Correction, Nov 3: This story first said only version 2.1.313 was tampered. Cursor updated its notice on Oct 30 at 11:30 AM PT (2:30 PM ET), after we published, to say it "clarified affected versions," and it now lists "Anthropic.claude-code version 2.1.312 and 2.1.313 for Windows and MacOS." We removed a line that noted Open VSX listed 2.1.312 but no 2.1.313, which could read as saying 2.1.312 was clean. We also quoted the notice as saying "At most 5,000 users were affected, and we will reach out directly." That line is no longer in the notice, so the 5,000 figure now cites Cursor's Oct 30 X post. Step 5 now says to update to the latest version instead of 2.1.314.

·

Sources

  1. Cursor blog: Security notice, malicious version of Anthropic.claude-code (2.1.312 and 2.1.313) in the Cursor VS Code Extension Marketplacecursor.com1
  2. Cursor forum: staff reply from Colin on how affected users were told (Nov 3)forum.cursor.com2
  3. Cursor on X: security incident post (Oct 30, 3:46 AM ET)x.com3
  4. Open VSX: Anthropic Claude Code extensionopen-vsx.org4
  5. OpenSourceMalware: Trojanized Claude Code extension plants persistent SSH backdooropensourcemalware.com5
  6. CNA: Cursor says up to 5,000 users affected by tampered Claude Code extensionchannelnewsasia.com6

Something wrong? Tell the bot