5 min read
The Visual Studio Code welcome screen with its sidebar icons for files, search, source control and extensions
Image credits · Screenshot: Microsoft / Public domain, via Wikimedia Commons

AI Supply Chain Attack: How Poisoned Tools Hit Cursor and LiteLLM

Two poisoned releases within eight days put credential-stealing code inside tools that developers trust. Here is what happened and how to check your own machines.

In short

An AI supply chain attack compromises software that AI developers install, such as a library, container image or editor extension, to steal their keys. In October 2026, a poisoned LiteLLM release on 21 October and a tampered Claude Code extension at Cursor on 29 October both aimed to take credentials.

Table of contents 6 sections
Key takeaways
  • LiteLLM 1.107.0 was poisoned on 21 October and ran credential-stealing code every time Python started.
  • A tampered Claude Code extension, version 2.1.313, was in Cursor's marketplace for about 11 hours on 29 October.
  • Cursor says at most 5,000 users were affected, and uninstalling the extension does not remove the SSH backdoor.
  • If you ran either one, rotate every secret the machine could reach and check for the svc-telemetry SSH key.
  • Pin dependency versions, delay new releases and use short-lived, scoped keys to limit the damage next time.

An AI supply chain attack hit developers twice in October. On 21 October, a poisoned release of the LiteLLM library, 1.107.0, was pushed to PyPI and container registries, and on 29 October a tampered Claude Code extension, version 2.1.313, appeared in Cursor's extension marketplace. Both were built to reach the keys and tokens that AI developers keep on their machines.

What is an AI supply chain attack?

The term covers any attack that reaches developers through software they install or update: a library, a container image, an editor extension. The code arrives through a channel people already trust, so nothing looks wrong. It does not mean that an AI wrote the attack. In most of this month's incidents, as Anadolu Agency's October timeline notes, authorities have not shown that AI was used or that the cases form a single campaign. What links them is the target: AI developers hold cloud credentials, model API keys and access tokens in one place.

What happened with LiteLLM?

LiteLLM is a widely used gateway that lets applications talk to many AI providers through one interface. It draws about 92 million downloads a month on PyPI, according to BleepingComputer's report.

The maintainers said their release pipeline was compromised on 21 October. The attacker did not alter LiteLLM's own code. Instead, the poisoned release added three files, cook.pth, cook.py and sitecustomize.py, to Python's library directory. Python runs those on startup, so the malware executed every time Python launched in that environment, including when someone ran pip to investigate.

According to the report, the malware collected cloud credentials, AI provider keys, GitHub, npm and PyPI tokens, SSH keys, .env files and browser data, then encrypted the haul and sent it out. A second stage checked a GitHub-hosted pointer every hour for more code to run. The malicious wheels were live on PyPI from 11:39 to 13:23 UTC, and some Docker tags also pointed to compromised images for a time. LiteLLM said its private enterprise version was not affected, and it recommends version 1.106.2, the last clean release. It was the project's second hijack this year, after a breach in March tied to a different supply chain compromise.

How the attacker got into the pipeline is described differently in early reports, and the investigation is not finished.

What happened with the Cursor extension?

On 29 October, a modified Claude Code extension, version 2.1.313, was available for about 11 hours, according to Help Net Security. Cursor says it was not developed by Anthropic and that at most 5,000 users were affected. The macOS security firm Phorion found it.

The injected code ran as soon as the editor loaded the extension, with no click needed. It added the attacker's SSH key to the user's authorized keys file, opened an outbound SSH tunnel that retried about every 60 seconds, and set itself up to survive reboots on macOS, Linux and Windows. It also reported the machine's hostname, username, public IP, Git email and the names, not the values, of up to 40 environment variables that looked like keys.

Cursor says enabling an SSH server normally needs administrator rights the extension would lack. Phorion points out that this is no protection if remote login was already on or is switched on later. Cursor removed the version, shut the marketplace down for a while, audited access, rotated keys and worked with the hosting provider to take the attacker's server offline. Where the package was published is disputed: Phorion found it on Open VSX, Cursor says it was in its own marketplace, and that question is unresolved.

How to check whether you are affected

  1. LiteLLM: look for version 1.107.0 in your environments, Docker images and CI caches. If you ran it, treat the host as compromised and rotate every secret it could reach. Inspect machines without launching Python, since the malware runs on start.
  2. Cursor extension: search your SSH authorized_keys file for an entry labelled svc-telemetry and check your SSH logs for logins using that key. Uninstalling the extension does not remove the backdoor, so follow the cleanup commands Cursor published, and consider rebuilding the machine.
  3. Credentials: rotate cloud keys, AI provider keys, GitHub and package registry tokens from a machine you trust, and check provider dashboards for unfamiliar usage or charges.

How to reduce the risk of the next AI supply chain attack

  • Pin and verify. Lock dependency versions and use hash checking, which pip supports in its secure installs guide. A new release then cannot slip into a build by itself.
  • Wait a few days before adopting a brand-new release. Both incidents were live for hours, not weeks.
  • Keep secrets small and short-lived. Give each tool its own scoped API key with a spending limit, so one theft costs less. Our report on distillation attacks shows why stolen model keys are valuable.
  • Treat extensions as software with full access. They run with your permissions. Install only what you need from publishers you trust, and protect the accounts that publish code with a security key or app-based two-factor authentication.
  • Maintainers: publish with short-lived credentials, for example PyPI's trusted publishers, rather than long-lived tokens that can leak.

Why AI agents raise the stakes

Coding assistants and agents often hold broad permissions: they read files, run commands and call cloud APIs. That makes the machine they run on a richer target. Our explainer on AI agents versus chatbots describes why those permissions matter. A sensible rule for now is to keep production credentials off the laptop where you try new extensions and brand-new packages.

Frequently asked

Written by Said Dulevic

Our international desk covers the infrastructure, policy and people behind the technology shaping the world. Tips and corrections: newsroom@globalpulsedaily.com

More from this author

0 comments

Never published.
A quick check that you are not a script.
Comments are moderated. Links, contact details and abuse are removed.

No comments yet — be the first.