AI / ML

AI coding assistant security after the Claude Code backdoor

Qorinx Engineering · 8 min read · Updated 2026
AI coding assistant security after the Claude Code backdoor

AI coding assistant security stopped being a question about prompts last week and became a question about your supply chain. On October 29, a tampered copy of the Claude Code extension was served to developers through Cursor's extension marketplace, and it planted an attacker's SSH key on their machines. If you or your developers use Cursor, Claude Code or any AI tool that lives inside an editor, you need to do three things this week: check, rotate, and shrink what those tools can reach.

This is not a story about one vendor having a bad day. It is a story about where your keys actually live, and how many tools now sit next to them. Here is what happened, what to do today, and how we would set up a team so the next incident costs a morning instead of a quarter. Everything below is as of November 2, 2026, and the incident details were still being updated while we wrote this.

What happened with the Claude Code extension?

On October 29, Cursor's marketplace served tampered builds of Anthropic's Claude Code extension, versions 2.1.312 and 2.1.313. Write-ups of Cursor's notice put the exposure at about 11 hours. The tampered builds were the real extension with a small loader added in front, which is why they looked like a normal update. The loader added an attacker's SSH key to the developer's machine, set up persistence and sent host details out. Nobody had to open a chat or click anything, because an extension runs when the editor loads it.

Here is what is confirmed and what is not, because early coverage got parts of this wrong:

  • Not an Anthropic breach, according to Anthropic. Staff said in the public Hacker News thread that a malicious actor used access to Cursor's marketplace to publish a tampered copy, and that the versions on Anthropic's official channels are not affected.
  • The entry point was corrected. Early reports pointed at Open VSX. Later write-ups, citing Cursor's own notice and independent malware analyses, say the bad version was found only on Cursor's marketplace, and Microsoft said it was never on the Visual Studio Marketplace or npm.
  • The root cause is still open. As of this writing, how the attacker got publishing access to Cursor's marketplace has not been disclosed.
  • Updating does not clean you. The fixed version is 2.1.314, but security researchers noted that auto-updating to it does not remove the key or persistence the bad build left behind. That has to be removed by hand.

The lesson is narrower than the headlines and more useful. An extension name tells you who should have written the code. It does not tell you who last touched the bytes.

Why AI coding assistant security is a different problem now

A few years ago, a compromised editor extension was bad but bounded. Today the editor is where an AI agent reads your repository, runs your shell commands and holds the API keys it needs to do its job. VS Code's own documentation says the extension host has the same permissions as the editor itself, so an extension can read your files, use the network and start processes. Put an AI assistant in that seat and the machine in front of you holds your Git credentials, your cloud login, your `.env` files and the keys to your model provider.

The second pattern is just as important. The tools around your product are now targets, not only the product. Vercel's incident bulletin, closed on October 16, 2026, is a good primary source on this. Vercel says the April incident started with a compromise of Context.ai, a third-party AI tool used by a Vercel employee. The attacker used that access to take over the employee's Google Workspace account, then moved into a Vercel environment and decrypted environment variables that were not marked as sensitive. Read the Vercel bulletin for the full chain, because it shows how a small AI tool with broad access became the door.

Put those two together and the pattern is clear. Every AI tool you add is a new place your secrets can leak from, and most of them were adopted in an afternoon with no review. That is fine for speed. It is not fine as a default for anything that touches production.

Were you affected? What to check and rotate today

Start with the question that decides everything: did anyone on your team install or update the Claude Code extension through Cursor on October 29? If nobody uses Cursor, you can stop at step one and move on to the setup section below. If anyone did, work through this list in order.

  1. Check the installed version. Look for `anthropic.claude-code` at 2.1.312 or 2.1.313 in the extensions list. Also ask people who used Cursor that day, even if they have since updated, because the update does not undo the damage.
  2. Look for the attacker's key. Open `~/.ssh/authorized_keys` and look for a key labelled `svc-telemetry`. Treat any key you cannot explain as hostile.
  3. Follow the vendor's cleanup, not a blog post. Cursor updated its notice after the first publication, including the list of affected versions and indicators for more operating systems. Use the current notice for exact file names and hashes.
  4. Treat the machine as untrusted. Isolate it, remove unknown keys and persistence, and rotate credentials from a different, clean device. Rotating from the affected laptop defeats the point.
  5. Rotate what that machine could reach. Model provider keys, cloud credentials, database passwords, Git tokens and anything in a local `.env` file. Replace each secret at the service that issued it, then revoke the old one. Changing a value in a dashboard does not invalidate the old credential.
  6. Audit what that machine could change. Check recent commits, CI runs and deployments for anything nobody on the team recognizes. A stolen Git credential is a way to put code into your product, not only to read it.

If this feels like a lot of work for an incident that may not have touched you, that is the point. Most teams cannot answer step one in under an hour, because nobody keeps a list of who installed what, from where.

How to set up AI coding tools so the next incident hurts less

None of what follows needs a security team. It needs a few decisions made once and written down. This is what we recommend to founders and CTOs who build with AI tools.

  • Pick one install path per tool and write it down. The same extension ID can exist in several registries, and a trusted name in one tells you nothing about the copy in another. Know which registry each editor uses, and keep a short list of approved extensions.
  • Let updates wait. GitHub made a three-day cooldown the default for Dependabot version updates in July 2026, because malicious versions of popular packages tend to be caught within hours. Security updates still open immediately. The same logic applies to editor extensions on any machine that can reach production: install updates a day or two after release, and keep a documented way to pull a real security fix the same day. GitHub is also clear that a cooldown is one layer, not a defense on its own.
  • Keep production secrets off developer laptops. If an agent only needs a staging database and a test payment key, that is all it should ever see. Use separate keys per environment, with the narrowest scope that works, so a leak is a nuisance rather than a breach.
  • Run agents with a small blast radius. Give an agent access to the folder it works on, not your home directory. Ephemeral containers or a separate user account are cheap ways to do that. Do not mount every repository every time.
  • Mark environment variables as sensitive where your host supports it. In the Vercel incident, the variables at risk were the ones not marked sensitive. It is a setting, it takes minutes, and it changes what an attacker can read.
  • Turn on multi-factor authentication everywhere that holds a token. Git hosting, cloud, model providers, your hosting dashboard and Google Workspace. Prefer passkeys or an authenticator app.
  • Review third-party AI tools like you review vendors. If a small tool asks for broad access to your workspace account, someone should decide that on purpose. Remove the ones nobody uses.

None of this stops a determined attacker with a zero-day. It does turn a total compromise into a contained one, and it makes your answer to "were we affected" a five-minute check instead of a week of guessing.

What to ask the team that builds your product

If you work with an outside studio or freelancers, this incident is a good reason to ask a few direct questions. Ask any team, including us, the same things:

  • Which AI tools and extensions touch our code, and who approved them?
  • Whose accounts do you work in, and are the credentials named, scoped and revocable?
  • Where do our production secrets live, and which laptops can read them?
  • What happens to access when the engagement ends?

A good answer is specific and boring. A bad answer is "we are careful". We hand over full ownership of the code and infrastructure at the end of every project, which only works if access is clean from the first day, so we think teams should expect to be asked this.

If your product was built mostly with AI tools, there is a second question: what else did those tools leave behind? Keys in the repository, permissive database rules and endpoints without authorization checks are the usual finds, and we cover them in the vibe coding security checklist we run on every rescue. For the code itself, our post on how to review AI-generated code before production explains where a human needs to read line by line. A vibe code review is the fixed-price version of both: a senior engineer audits the code and the secrets around it, closes the critical holes and writes the report in plain English.

If the review turns up something worse than a leaked key, such as a backend nobody understands or a product that has outgrown its first build, that is rescue work, and our AI rescue service is where it goes next. Runtime and framework flaws are a separate class of problem, as we showed in PHP2Shell and what to patch today, but the habit is the same: know what you run, and know who can change it.

When you do not need outside help

Be honest about your situation. If you are a solo founder with a prototype, no paying users and no production credentials on your laptop, you do not need an audit. Do the checklist above, rotate any key that ever sat in a public repository, and move on.

You should bring in a senior engineer when real users, real payments or customer data depend on the product, when more than one person has access to production, or when you cannot say which AI tools wrote which parts of the code. In those cases the cost of an afternoon of review is small next to the cost of finding out the hard way.

On sul projekt, mis vajab seda mõtteviisi?

Too probleem. Fikseeritud pakkumine, päris tähtaeg, kogenud inseneritöö.

Broneeri tasuta 30-minutiline kõne