Blog · 7 min read ·
ShareFake Claude Code Extension in Cursor: What IT Should Do
Installed or auto-updated anthropic.claude-code 2.1.312 or 2.1.313 from Cursor's marketplace on October 29, 2026? Check for the svc-telemetry SSH key. Uninstalling is not enough.
On October 29, 2026, a tampered copy of Anthropic's Claude Code extension sat in Cursor's extension marketplace for about eleven hours. Anyone who installed it or auto-updated to it got code that tried to open a back door into their machine. Cursor caught it, pulled it and published a notice the same day; Microsoft published a technical analysis the next day.
This is the AI-at-work problem in its developer form. Staff adopt AI tools before the company has a policy, and developers do it through editor extensions that run with their own permissions. If you don't know which AI tools your developers have installed, start with the check below.
What happened
- What: Cursor's
security notice:
versions 2.1.312 and 2.1.313 of
Anthropic.claude-code, for Windows and macOS. "These malicious versions of the extension were not developed by Anthropic." - When: "Between about 2:27am PT and 1:35pm PT" on October 29, 2026.
- What it did: Microsoft's analysis says the injected loader "attempts to add an attacker-controlled Secure Shell (SSH) key, enable the local SSH service, establish reverse SSH forwarding, configure persistence, and report host details." It also collected the names of environment variables containing words like KEY, TOKEN or SECRET; Microsoft notes it sent names, "not values."
- What it didn't touch: Microsoft says the packages "were never published nor distributed from Microsoft Visual Studio Marketplace and from npm @anthropic-ai/claude-code," and that "Anthropic confirmed to Microsoft that their systems were not compromised."
How far it got varied by machine. Cursor says turning on the local SSH service "requires admin rights, which the malicious extension does not have on most macOS and Windows hosts," so the remote login usually failed. But on those same hosts, "The extension added the attacker's SSH key, installed persistence, and sent host details to the attacker."
Check your machines
- Find who uses Cursor. Software inventory from Intune or your endpoint tool, plus a direct ask to
engineering. Then check extension-installation records for
anthropic.claude-code2.1.312 or 2.1.313 installed from Cursor's marketplace on October 29. - Look for the key. The attacker's public key is labeled
svc-telemetryin the user's~/.ssh/authorized_keys. On Windows, Microsoft says to check both%USERPROFILE%\.ssh\authorized_keysandC:\ProgramData\ssh\administrators_authorized_keys, where present. - If you run Microsoft Defender, use the advanced hunting queries and indicators in Microsoft's post.
- If a machine is affected, preserve evidence first, then remove the key, persistence and tunnel processes. Cursor published remediation scripts; read them before running them.
- Rotate credentials reachable from that machine, from a trusted device. Cursor: "The limited env-var collection does not rule out later credential access over the backdoor."
Don't stop at uninstalling. Cursor: "Uninstalling the extension may not be sufficient — the payload drops standalone persistence scripts that keep running." Microsoft: "Removing or updating the extension does not remove artifacts written outside its installation directory."
Not a one-off
A week earlier, Microsoft analyzed a compromised release of LiteLLM, a widely used library for calling AI models: "On October 21, 2026, a compromised LiteLLM 1.107.0 release was published to the Python Package Index (PyPI)." Microsoft says the collector "targeted authentication material across developer tools, AI applications, cloud environments, browsers, and infrastructure." Two incidents in eight days, both in AI developer tooling, both distributed through channels developers trust.
The controls that would have helped
Microsoft's own recommendation points to Cursor's security-hardening guidance: "restricting extensions to approved publishers and configuring an extension installation cooldown to delay installation of newly published versions." From that guide:
- Allowed extensions: "Allowlist trusted publishers; any entry blocks the rest unless you add "*": true."
- Install cooldown: "Defer extension installs and updates until a marketplace version has been public for a set number of hours (enforced fleet-wide)." An eleven-hour malicious window is exactly what a cooldown is for.
- No personal accounts on company devices: the guide's "Allowed Team IDs" setting lets you "Block personal accounts on corporate devices via MDM." This is the same rule we recommend for ChatGPT and Claude, applied to the editor.
VS Code has the equivalent: enterprise policies let you "Configure which extensions VS Code permits users to install and enable by publisher, extension ID, version, or platform." Push either through Intune or your MDM so it applies to every developer machine, not just the ones whose owners read the email.
Put it in the AI policy
Most AI acceptable-use policies we see cover chat tools and forget developer tooling. Add one line: AI coding tools, editor extensions and AI libraries come from an approved list, installed through managed channels, signed in with company accounts. Clause 7 of our AI acceptable use policy, mapped to controls covers the approval step. For the wider picture of AI already in use at your firm, see what IT does first.
If you'd like help finding what's installed and setting the controls, that's part of our AI usage review. For firms without a security lead to own this, see our virtual CISO engagement.
Questions we get asked
- What happened with the Claude Code extension in Cursor?
- On October 29, 2026, Cursor reported that maliciously modified versions 2.1.312 and 2.1.313 of the Anthropic.claude-code extension were available in the Cursor VS Code Extension Marketplace for Windows and macOS between about 2:27 a.m. and 1:35 p.m. Pacific. Microsoft's analysis says the injected code attempts to add an attacker-controlled SSH key, enable the local SSH service, set up reverse SSH forwarding, configure persistence and report host details.
- Was Anthropic or Microsoft's VS Code Marketplace compromised?
- No, according to both companies. Microsoft says the malicious packages were never published or distributed from the Visual Studio Marketplace or npm @anthropic-ai/claude-code, and that Anthropic confirmed its systems were not compromised and it did not develop the malicious package. Cursor says the malicious versions were not developed by Anthropic.
- How do I check whether a machine was affected?
- Look for an SSH public key labeled svc-telemetry in the user's authorized_keys file (on Windows, also C:\ProgramData\ssh\administrators_authorized_keys where present), and review extension-installation records for those two versions from the Cursor marketplace on October 29. Microsoft's post includes Defender advanced hunting queries and indicators of compromise, and Cursor published platform-specific check and remediation scripts.
- Is uninstalling the extension enough?
- No. Cursor says uninstalling may not be sufficient because the payload drops standalone persistence scripts that keep running, and Microsoft says removing or updating the extension does not remove artifacts written outside its installation directory. Collect evidence, remove the unauthorized key, persistence and tunnel processes, and rotate credentials accessible from the device.
Related service
AI Usage ReviewWritten by the team at Pro IT NW · Senior-led Microsoft project consultancy · Seattle and the Pacific Northwest, delivered USA-wide.