OrchestriAI
Back to the field guide
AI systemsExplainer6 min read

A tampered Claude Code extension reached Cursor users. Check your machines

A tampered Claude Code extension sat in Cursor's marketplace for 11 hours on October 29. The one-line check for each machine and what to do if it hits.

Which of your machines can an AI tool already reach?

Free. Three short fields, and we reply by email within one business day.

By Shariq Riaz

In this guide

A tampered Claude Code extension sat in Cursor's marketplace for 11 hours on October 29. The one-line check for each machine and what to do if it hits.

9 sections4 cited sources6 min read
On this page9 sections
  1. What the marketplace served
  2. What failed, and what still happened
  3. The check
  4. If the key is found
  5. What this incident was not
  6. Why machines got it without anyone clicking install
  7. What we would change on a small team
  8. When this is not worth doing
  9. Where we help

Before your team opens Cursor again, run one command on the Mac and Windows machines that have it. On October 29, 2026, a tampered copy of the Claude Code extension sat in Cursor's extension marketplace for about eleven hours, and it tried to leave a way back into the machines that installed it.

Everything below comes from Cursor's security notice and Microsoft's analysis of the injected code, which we read on November 11, 2026.

What the marketplace served

Versions 2.1.312 and 2.1.313 of `Anthropic.claude-code` for macOS and Windows were modified by someone other than Anthropic. Cursor says they were available between about 2:27am and 1:35pm Pacific time. Anthropic told Microsoft that its own systems were not compromised and that it did not build those packages.

When the extension loaded, the added code collected the machine's hostname, username, operating system, architecture, home folder, working folders, environment variable names, configured Git email and public IP address. It then tried to add an SSH key labelled `svc-telemetry` to the machine's authorised keys, switch on the local SSH service and hold a reverse tunnel open. On macOS it wrote a LaunchAgent, on Windows a scheduled task, so the tunnel would come back after a restart. Background scripts retried about every 60 seconds.

What failed, and what still happened

Two things limit the damage. Cursor says the attacker's server is offline, so the tunnel and the report of host details no longer reach anyone. Turning on the SSH service needs administrator rights, which the extension did not have on most machines, so that step failed on those.

The rest is still on the machine. The key was appended, the persistence was written and the host details were collected before any of that. Cursor says uninstalling the extension may not remove it, because the payload drops its own scripts that keep running. That is why both companies tell you to check and clean every machine that took the version rather than assume a failed login meant nothing.

The check

On a Mac, run this in Terminal:

`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" }`

A "key found" result means the machine was affected. A "No key found" result means this key is not on it.

We'll list the machines running AI tools, the extensions on each one, and what a vendor notice like this would put at risk.

If the key is found

Cursor's order is worth following as written:

  1. 1Run its validation script for the platform and search endpoint, network and extension-install records for the indicators it publishes.
  2. 2Isolate the machine from the network.
  3. 3Remove the unauthorised SSH key, the persistence entries and any running tunnel process.
  4. 4Decide whether to rebuild the machine.
  5. 5Rotate the credentials and sessions that machine could reach, from a different machine.

Cursor publishes a remediation script for macOS and for Windows, which remove the extension, the persistence and the key and exit with a non-zero status if anything is left.

On a machine that holds client records, finance access or stored passwords, our own call is a rebuild rather than a cleanup. A rebuild costs an afternoon. A backdoor nobody is sure about costs a lot more. We cover the same reasoning in our guide to trust boundaries for self-hosted agents.

What this incident was not

Microsoft confirmed the tampered packages were never published to the Visual Studio Marketplace or to npm as `@anthropic-ai/claude-code`. A team that installs Claude Code with `npm install -g @anthropic-ai/claude-code` or from the standard VS Code marketplace was not part of this incident. Cursor says it audited access and found no other extension tampered with, then rebuilt the marketplace and rotated its keys.

So the exposure is narrow: macOS and Windows machines that took version 2.1.312 or 2.1.313 from the Cursor marketplace during those eleven hours.

Why machines got it without anyone clicking install

The extension arrived through an automatic update. Microsoft's guidance names systems that installed or automatically updated to the version. Someone opened the editor and the extension changed in place, with no decision and no review.

That is how most software reaches staff machines, and it is the part worth fixing. The advice to install only what you trust assumes somebody chooses each install.

What we would change on a small team

  • Write down which editor and which extensions each machine runs, and who needs each one.
  • Turn off automatic extension updates on the machines that touch client records, then update on a set day after reading the vendor's release notes. Most editors leave that setting on.
  • Install Claude Code from Anthropic's own instructions first. Treat a marketplace copy as the second choice and check the version while you are there.
  • Give one person the job of reading security notices from the tools you depend on, with a way to reach every machine owner in one message.
  • Record what each machine can reach. That is the difference between a rebuild decision that takes ten minutes and one that takes a week.

When this is not worth doing

If nobody on the team uses Cursor, or the editor runs on a machine with no access to client records, mail or passwords, the check is a two-minute confirmation and nothing else is needed.

Where we help

If staff laptops run coding agents and AI assistants, the work that prevents this kind of morning is a list of machines, what each one can reach, and what happens when a vendor posts a notice like this one. Our AI agents service covers builds with those limits baked in, and the free automation audit is where we check what your current setup can already reach.

Two related posts cover the same question from other angles: the checks before you connect an MCP server and a planted AGENTS.md in the Downloads folder.

Run the key check on every Mac and Windows machine that runs Cursor, then decide which of them need a rebuild.

Free. Three fields. We reply within one business day.

Which of your machines can an AI tool already reach?

We'll list the machines running AI tools, the extensions on each one, and what a vendor notice like this would put at risk.

You'll talk to Shariq. Replies come from shariq@orchestriai.com. Leave out passwords and patient records.

What happens next

  1. 1.You send one line about the task.
  2. 2.Shariq reads every message and replies by email within one business day.
  3. 3.If it fits, you get a written plan or a short call. Your choice.
  4. 4.If it does not fit, we tell you and point you to a better option.
“Shariq built our Open Dental to GoHighLevel sync and our AI routing system for new patient inquiries. Both projects were delivered fast, worked right away, and he was responsive whenever we needed adjustments. He understands dental practice workflows and doesn't overcomplicate things.”
Michael Ling, Owner, Smile Again Dental

References used in this article

4 links
Shariq Riaz, founder of OrchestriAI

Written by

Shariq Riaz

Founder, OrchestriAI · CPHIMS · PMP · CBAP

11 years in enterprise IT at Fortune 500 companies. He founded OrchestriAI, an AI automation agency that builds and runs automations and AI agents for healthcare, real estate, financial services, and freight forwarding teams.

Free automation checklist

Free automation checklist for your industry

A one-page checklist of the manual work clinics, real estate teams, financial firms and freight forwarders most often automate. Pick your industry and tick what is still done by hand.

Or read it now, no email needed: Healthcare & dental automation checklist.

Your email comes only to us. No spam, and we never sell it. See the Privacy Policy.

Want this built for you? AI Agents: From $4,000/project

When your process has branches, decisions, and exceptions that need judgment, a linear automation breaks down. We build multi-agent systems where specialized AI agents handle different parts of a complex workflow, coordinating with each other like a well-run team.

Not sure it fits yet? Send us one manual task and we'll email back one specific way to automate it, free.

Keep reading