DriftLock

A tampered Claude Code extension tried to open a back door. Here's what it left on disk.

On 29 October 2026, a tampered build of the Claude Code extension, version 2.1.313, was published on Cursor's extension marketplace for about 11 hours. It ran as soon as Cursor loaded it, added an attacker's SSH key named svc-telemetry, set up a startup item to keep it running, and tried to open SSH access through a reverse tunnel. Only Cursor's marketplace was affected; VS Code and the Claude Code terminal app were not. To check a machine, look for an svc-telemetry key in ~/.ssh/authorized_keys and update the extension to 2.1.314. DriftLock, coming soon, alerts on both: a known-tampered AI extension, and any new SSH login key.

What happened

On 29 October 2026, a tampered copy of the Claude Code extension, version 2.1.313, was published on Cursor’s extension marketplace. It was live for about 11 hours, from 2:27 am to 1:35 pm Pacific, and Cursor says up to 5,000 people could have installed it. Cursor pulled it, took its whole marketplace offline to audit the rest, and asked everyone to update to 2.1.314.

The attacker didn’t rewrite the extension. They added a short loader to the top of its main file and left everything else working, so Claude Code behaved normally. The loader ran as soon as Cursor loaded the extension. Nobody had to open Claude Code or ask it anything.

According to the researchers who took it apart, the loader:

  • added the attacker’s SSH key, named svc-telemetry, so they could log in later;
  • set itself to run at every login (a LaunchAgent on Mac, a scheduled task or Startup script on Windows);
  • tried to turn on SSH and open a reverse tunnel back to the attacker, retrying every minute;
  • sent the username, computer name, public IP, Git email and the names of credential-related environment variables to the attacker’s server.

Bugs in the code meant the SSH step often failed. The key and the startup item were still installed.

Only Cursor’s marketplace was affected. Microsoft’s VS Code marketplace and the Claude Code terminal app were not. Anthropic said it did not publish the tampered build, and as of the first reports neither company had said how it got onto Cursor’s marketplace under Anthropic’s name.

Check your machines

  1. In Cursor, update Claude Code to 2.1.314 or later.
  2. Open ~/.ssh/authorized_keys and look for a key ending in svc-telemetry. On Windows, also check C:\ProgramData\ssh\administrators_authorized_keys. Remove any key you don’t recognize.
  3. Look for login items you didn’t add: ~/Library/LaunchAgents on Mac, Task Scheduler and the Startup folder on Windows.
  4. If you find the key, treat the machine as compromised: take it off the network, rotate the credentials it held, sign out its sessions, and rebuild it from a known-good backup.

Why this one is different

Most AI security talk is about what an agent might do once it’s running. This attack never needed the agent. It rode in on the extension that installs it, from a marketplace developers trust, and did its work before anyone typed a prompt.

The AI tools developers use are now some of the most privileged software on a work computer, and they update themselves. That makes them a good place to hide.

What DriftLock does about it

DriftLock is coming soon. Every minute it checks two things on each computer, and raises an alert when either changes:

  • AI extensions in code editors. It keeps a list of the AI extensions installed in Cursor, VS Code and Windsurf (Claude Code, Copilot, ChatGPT, Cline and others) and logs when one is added or updated. A version known to be tampered, starting with Claude Code 2.1.313 in Cursor, raises a critical alert, even if it was installed before DriftLock was.
  • SSH login keys. Any new key that can log in to the computer raises an alert, and the svc-telemetry key from this attack always does.

The alert appears on the computer straight away, and with the Console it reaches IT from every machine in one place, so you know which laptops to check rather than asking everyone.

Join the waitlist to get DriftLock when it launches.

What it doesn’t do

DriftLock doesn’t scan extension code or block installs, and it won’t stop an extension that runs the moment the editor loads it. It tells you an attack like this happened, on which computer and when, so cleanup starts in hours instead of whenever someone notices.

DriftLock is launching soon for Windows and macOS. Join the waitlist to be first to get it.

Questions

Was I affected?

Only if you use Cursor and it installed Claude Code extension version 2.1.313 between about 2:27 am and 1:35 pm Pacific on 29 October 2026. VS Code's marketplace and the Claude Code terminal app were not affected. Check ~/.ssh/authorized_keys (and C:\ProgramData\ssh\administrators_authorized_keys on Windows) for a key named svc-telemetry.

Would DriftLock have stopped it?

No. The extension ran inside Cursor the moment it loaded, before any AI agent did anything. DriftLock is built to notice what it left behind: a known-tampered AI extension in the editor, and a new SSH key that can log in to the computer. That tells you which machines to clean up, and with the Console, IT sees it from every machine in one place.

Does DriftLock read my code or my extensions' traffic?

No. It reads each AI extension's name and version from the editor's extension folder, and the list of SSH keys allowed to log in. Nothing is sent anywhere unless your company connects the Console. DriftLock is coming soon; join the waitlist at agentdriftlock.com to get it first.

Sources

Related