Home / Blog / The backdoored Claude Code 2.1.313 build in Cursor's…
Tech News

The backdoored Claude Code 2.1.313 build in Cursor's marketplace, explained

Cursor removed a backdoored Claude Code 2.1.313 build that planted SSH keys and persistence across up to 5,000 developer machines during an 11-hour window.

By Dillip Chowdary • Oct 31, 2026 • Source: theainewsreport.com

The backdoored Claude Code 2.1.313 build in Cursor's marketplace, explained

Cursor disclosed that a modified, malicious release of the Anthropic Claude Code extension, marked as version 2.1.313, was distributed directly through Cursor's extension marketplace on October 29, 2026. According to theainewsreport.com's report, the unauthorized build remained accessible for approximately 11 hours between 09:27 and 20:35 UTC, reaching an estimated maximum of 5,000 developers before being removed. Cursor confirmed that Anthropic did not author the build, and Cursor subsequently shut down its marketplace, audited access logs, rotated keys, and worked with the remote hosting provider to take down the attacker command server.

This teardown examines the exact mechanics of the planted backdoor loader, its operational footprint across Linux, macOS, and Windows workstations, and the containment steps required for developer teams. Engineering leads and security teams evaluating workstation integrity can follow the indicators, registry verification gaps, and remediation measures outlined below to assess whether developer machines running AI coding tooling were exposed to unauthorized persistence mechanisms or telemetry extraction during the incident window.

What shipped in Backdoored Claude Code 2.1.313 build

The unauthorized package shipped with a 66-line malicious loader prepended to extension.js, bearing a SHA-256 file hash of ecb58cb29078d9646ad1dcdbe51526f2d9cfea06be5fb2ab183e8ecc3ab6bf15. This script executes immediately when the editor loads the extension file, operating automatically prior to any Claude conversation or user prompt. The loader appends an attacker Ed25519 public key labeled svc-telemetry directly to the user authorized_keys file, attempting to grant persistent remote shell access to anyone possessing the matching private key.

Once the key is staged, the payload attempts to enable local SSH services using systemsetup on macOS, systemctl on Linux, or PowerShell on Windows. It establishes an outbound SSH connection to remote host 134.209.82.225 under user tunnel, requesting a reverse tunnel back to local port 22 and retrying every 60 seconds to bypass inbound firewalls. The loader also issues an unencrypted HTTP JSON payload over port 8099 reporting host data, including username, hostname, operating system, home folder, global Git email, public IP, and up to 40 variable names matching patterns like KEY, TOKEN, SECRET, PASS, AWS, or GCP.

What improved in Backdoored Claude Code 2.1.313 build

Public registry coordination improved immediately following the discovery, as Anthropic jumped directly over the compromised version number to ship clean 2.1.314 releases across verified distribution points. Open VSX, Microsoft Visual Studio Marketplace, and npm all omit version 2.1.313, moving cleanly from 2.1.312 up to official 2.1.314 artifacts published between 00:12 and 01:20 UTC on October 30, 2026. This deliberate version gap provides automated systems and security auditors a clear indicator of whether any workstation installation originated outside legitimate channels.

AttributePrior Official Release (2.1.312)Compromised Marketplace Build (2.1.313)Verified Patch Release (2.1.314)
npm publication timestamp2026-10-27 18:36 UTCNot listed (Skipped)2026-10-30 00:12 UTC
Open VSX availabilityAvailableNot listed (Skipped)2026-10-30 01:07 UTC
Microsoft marketplace statusAvailableNot listed / 4042026-10-30 01:16–01:20 UTC
Attack payload code0 lines66 lines prepended0 lines
Exposed users0At most 5,0000

The release jump established unambiguous boundary conditions across registries, enabling rapid detection. If an audit reveals an active installation of anthropic.claude-code matching 2.1.313, administrators can confirm without ambiguity that the artifact did not originate from official public index snapshots.

What you gain from Backdoored Claude Code 2.1.313 build

The backdoored Claude Code 2.1.313 build in Cursor's marketplace, explained
Illustration · Pexels

Auditing affected workstations provides infrastructure teams with full visibility into the persistence mechanisms installed outside the extension sandbox. On macOS, the payload creates a LaunchAgent plist named com.apple.sysmond.plist alongside hidden marker files in ~/.config/.smt, ~/.config/.smtk, and temporary files matching $TMPDIR/.stk_*. On Linux systems, it drops an @reboot cron task invoking a hidden script, while Windows hosts receive a SYSTEM scheduled task named SysMon, a sysmon.cmd script in the user Startup folder, and ~/.config/smt.cmd.

Because these persistence artifacts live outside the editor extension folder, uninstalling the extension inside Cursor leaves the backdoor components operational. Systems where SSH was disabled generally blocked the reverse tunnel because the loader lacked administrative privileges to enable services, and Phorion noted a bug in the macOS path where systemsetup exited on error rather than enabling Remote Login. However, developer machines where SSH was already active must be treated as compromised, requiring credential rotation from a separate, uncompromised system.

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

How to get Backdoored Claude Code 2.1.313 build

Developers must replace any unverified builds by fetching authentic releases directly through official package managers, pinning authorized models, and updating default configuration flags. To install or update the clean Anthropic package across system environments, run the standard package manager update command:

Command
npm install -g @anthropic-ai/claude-code

To update an existing installation using the built-in vendor mechanism, execute:

Command
claude update

Within an active interactive session, developers can switch execution to the designated model directly using:

Command
/model claude-fable-5-1

Alternatively, operators can launch pinned command-line sessions specifying the target model directly:

Command
claude --model fable

To establish a persistent default across terminal invocations without passing manual flags, set the default model parameter:

Command
claude config set --global model claude-fable-5-1

What to watch after Backdoored Claude Code 2.1.313 build

Workstations require immediate local scanning to verify whether persistence files or rogue authorized keys remain present. Operators can search for the injected public key by executing grep -qs svc-telemetry ~/.ssh/authorized_keys in terminal sessions. Windows administrators must inspect both $HOME\.ssh\authorized_keys and C:\ProgramData\ssh\administrators_authorized_keys for the svc-telemetry tag, while checking scheduled tasks for entries named SysMon.

Remediation requires running Cursor official cleanup scripts, executing remediate-macos.sh under standard user permissions or remediate-windows.ps1 in an elevated PowerShell prompt. Teams must also inspect perimeter and local network logs for historical connections to IP address 134.209.82.225 over port 22 or port 8099. Because telemetry packets transmitted environment variable names matching AWS, GCP, KEY, TOKEN, SECRET, or PASS, teams must rotate all corresponding operational secrets from known clean hardware.

Developer Action Items

  • ☐ Diff the official changelog for Anthropic / Claude / Microsoft 2.1.313 before you bump — APIs, defaults, and removed flags only.
  • ☐ Install through the vendor's documented channel in staging; keep a one-command rollback and time-box the canary.
  • ☐ Grep your repo for old flag names, lockfile pins, and plugin versions that the notes mark as breaking.
  • ☐ Prefer the first patch cut over the day-zero tag unless you have a reason to be on the leading edge.
  • ☐ If HN Claude/Codex/Fable did not name a region, plan, or SKU, screenshot the official availability line before you promise it to users.

Backdoored Claude Code 2.1.313 build FAQ

How many developers were affected by the malicious Claude Code build?

Cursor stated that at most 5,000 users received the unauthorized 2.1.313 package during its 11-hour window on October 29, 2026.

Does uninstalling the extension inside Cursor remove the backdoor?

No, uninstalling only removes the extension files while leaving dropped persistence scripts, scheduled tasks, and the svc-telemetry SSH key intact.

Which registries contained the verified Claude Code 2.1.314 release?

Open VSX, npm, and the Microsoft marketplace all published verified 2.1.314 builds on October 30, skipping version 2.1.313 entirely.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →