Skip to content
FA Ferdous Azad

Anthropic VS Code Extension Backdoored on Cursor: What Developers Need to Know

A malicious version of Anthropic’s Claude VS Code extension was distributed via Cursor’s marketplace for nearly 12 hours, threatening up to 5,000 developers. Learn the facts, impact, and how to protect yourself.

#Opening summary

A backdoored version of Anthropic’s Claude VS Code extension was published through Cursor’s marketplace for almost 12 hours on October 5, 2026, potentially compromising as many as 5,000 developers’ machines. The malicious package (v2.1.313) installed a persistent SSH key and attempted to open a reverse tunnel, giving an attacker remote access to local files and cloud credentials.

#What happened

  • Timeline – The compromised extension, version 2.1.313, went live on Cursor at 5:27 am ET on Thursday and was replaced by a clean version (2.1.314) at 4:35 pm ET the same day, a window of roughly 11 hours and 48 minutes.

  • Distribution channel – The malicious package was uploaded to the official Anthropic account on Cursor’s marketplace, superseding the legitimate v2.1.312 release. Cursor’s auto‑update feature caused the extension to be installed automatically for users who had not disabled updates.

  • Technical behavior – Once installed, the extension executed code that:

    1. Collected host metadata (hostname, username, OS, architecture, home directory, environment variables, working directory, Git email, public IP).
    2. Attempted to add an attacker‑controlled SSH public key to the user’s ~/.ssh/authorized_keys, enable the local SSH daemon, and open a reverse SSH tunnel to a command‑and‑control server listening on port 8099.
    3. Tried to make the tunnel persistent via a LaunchAgent on macOS or a scheduled task running as SYSTEM on Windows, retrying every 60 seconds.
    4. Sent the collected data and beacon status via an HTTP POST to /beacon on the C2 server.

    The malicious code was written for Windows, macOS, and Linux, but bugs prevented the backdoor from functioning on some platforms—particularly the persistence mechanisms on Windows and macOS.

  • Impact on developers – Because Cursor extensions run with the same permissions as the IDE, the backdoor could read source code, configuration files, and any credentials stored on the developer’s machine. Phorion’s analysis highlighted that harvested environment variable names allowed rapid inventory of cloud API tokens, enabling the attacker to prioritize follow‑up compromises.

  • Response – Cursor coordinated with the cloud provider hosting the C2 server to block further connections, removed the malicious package from the marketplace, and temporarily shut down the VS Code Marketplace to rotate signing keys and audit access controls. Anthropic has not issued a public advisory to its customers.

  • Indicators of compromise (IOCs) – Both Cursor and security firm Phorion published SHA‑256 hashes of the malicious extension, the IP address of the C2 server, and the attacker‑controlled SSH key fingerprint.

#Why it matters

#For developers

  1. Supply‑chain trust is fragile – Even a vetted extension from a reputable AI vendor can be compromised if the distribution account is hijacked. Developers who rely on auto‑updates may unwittingly install malicious code without any warning.
  2. Local development environments are high‑value targets – A developer’s workstation often contains source code, secrets, and access tokens that can be leveraged to breach production systems. The backdoor’s ability to exfiltrate environment variables underscores the need for secret‑management hygiene (e.g., never store raw API keys in .env files that are not encrypted).

#For founders and product teams

  1. Brand reputation risk – Anthropic’s silence on the incident could erode trust among enterprise customers who expect timely security notifications. Transparency is now a competitive differentiator for AI platform providers.
  2. Operational overhead – Responding to a supply‑chain breach requires rapid coordination across multiple teams (security, dev‑ops, legal, PR). Companies that lack an incident‑response playbook for third‑party component compromises will face longer remediation times and higher remediation costs.

#For the industry

  1. Marketplace security – The incident highlights the need for stricter vetting of extension publishers, mandatory two‑factor authentication for account access, and cryptographic signing of all packages.
  2. Regulatory scrutiny – As supply‑chain attacks become more common, regulators may demand proof of secure software‑supply processes, especially for tools that handle sensitive data.

#The bigger picture

#Comparison with recent supply‑chain attacks

Incident Vector Affected Scope Persistence Mechanism
SolarWinds (2020) Compromised build server ~18,000 customers Backdoor DLL loaded by Orion
event-stream (2020) Malicious npm version ~2,000 projects Crypto‑miner payload
Anthropic on Cursor (2026) Hijacked official marketplace account ≤5,000 developers SSH key injection + reverse tunnel

While the Anthropic incident is smaller in absolute numbers, its impact is amplified by the privileged access that IDE extensions enjoy. Unlike a typical npm package, a VS Code extension runs inside the developer’s IDE process, inheriting the same file‑system permissions and, in many cases, access to integrated terminals and Git credentials.

#Emerging threat patterns

  • Credential harvesting via environment variables – Attackers are increasingly targeting the “soft secrets” that developers leave in plain text. The Anthropic backdoor’s quick inventory of variable names demonstrates a shift from raw token theft to reconnaissance that informs later, more targeted attacks.
  • Cross‑platform malicious extensions – By supporting Windows, macOS, and Linux, the malicious code maximized its reach. Future supply‑chain defenses must therefore consider multi‑OS testing and verification.
  1. Zero‑trust extension ecosystems – Some IDE vendors are experimenting with sandboxed extensions that run in isolated containers, limiting file‑system access unless explicitly granted.
  2. Signed and notarized releases – Requiring extensions to be signed with hardware‑based keys and verified at install time can reduce the risk of account hijacking leading to unsigned payloads.
  3. Community‑driven monitoring – Open‑source tools that automatically compare published hashes against known‑good baselines can alert maintainers to unexpected changes.

#What developers can do right now

Bash
# Example: Verify the installed Claude extension hash
# Replace <path-to-extension> with the actual directory
shasum -a 256 /path/to/extension/anthropic-claire-2.1.313.vsix
# Compare the output with the known good hash published by Cursor/Phorion
  1. Audit installed extensions – Run the hash check above for any version of the Anthropic extension and remove any that match the malicious hash.
  2. Disable auto‑updates temporarily – In Cursor’s settings, turn off “auto‑update extensions” until you can verify the integrity of each package.
  3. Rotate SSH keys and revoke unknown keys – Delete any unauthorized entries from ~/.ssh/authorized_keys and generate a new key pair.
  4. Revoke and rotate cloud API tokens – Assume any token discovered on the compromised machine is compromised; issue new tokens and update CI/CD pipelines accordingly.
  5. Enable endpoint detection and response (EDR) – Modern EDR solutions can flag the creation of new scheduled tasks or LaunchAgents that attempt outbound connections on unusual ports (e.g., 8099).

#Key takeaways

  • A malicious version of Anthropic’s Claude VS Code extension was distributed through Cursor’s official marketplace for nearly 12 hours, affecting up to 5,000 developers.
  • The backdoor harvested host metadata, injected an attacker‑controlled SSH key, and attempted to maintain a reverse tunnel, giving the attacker persistent remote access.
  • Supply‑chain attacks on IDE extensions are especially dangerous because they inherit the IDE’s permissions, exposing source code and credentials.
  • Anthropic’s lack of public disclosure underscores the growing need for transparent breach communication and robust incident‑response processes.
  • Developers should verify extension hashes, rotate SSH keys and cloud credentials, and consider disabling auto‑updates until the supply chain can be trusted again.

Was this useful?

Get new posts by email

One short email a week with what I wrote. No spam, unsubscribe in one click.

Sources

Drafted with AI assistance from the sources above, then reviewed and published by Ferdous Azad. Spotted an error? Let me know.

Comments

No comments yet. Start the conversation.

Leave a comment

First-time comments are reviewed before they appear. Be kind and on topic.

More in Tech News

View all