Analysis

A key left in a public commit in May let attackers poison LiteLLM in October and hunt for AI API keys

Black October's two lessons for a researcher's laptop: a deleted secret stays in git history, and AI models now find decade-old flaws in hours. LiteLLM's malware went for inference keys.

AI Fin ResearchCovers Global
The attack on LiteLLM began with a key that sat in a public commit for four months after someone deleted the file. A researcher who commits after every step can make the same mistake in one keystroke.

October 2026 has been called “Black October” in information security, for a run of major incidents and disclosures in one month. Two of them bear on a finance researcher who works with agents: the compromise of LiteLLM, an open-source gateway that routes calls to many model providers, and PHP2Shell, flaws in the PHP language that an AI-assisted team found after they had survived for years.

4 monthsa LiteLLM admin key stayed valid after the file holding it was deleted from a public repository
About 2 hoursthe poisoned litellm 1.107.0 was live on PyPI, 11:39 to 13:23 UTC on 21 October
A decadeof PHP releases with at least one of the PHP2Shell flaws, back to version 5.4, per Wiz

One unrevoked key led to a poisoned release five months later

A configuration file with an admin key to an internal LiteLLM deployment is committed to a public repository.About three hours later a second commit deletes the file. The key is noted for revocation and, "because of human error", never revoked.
The attacker uses the key to take over the deployment and pulls the GitHub token configured in it.It is the GitHub CLI token of the organization's owner, which is not scoped to any repository.
The attacker collects more tokens, with a primary focus on upstream inference API tokens.Commits on internal branches run workflows built to send out the secrets available to CI.
litellm 1.107.0 goes out on PyPI and Docker with malware that steals credentials and loads remote-access tools.PyPI from 11:39 to 13:23 UTC, Docker images until 14:20 UTC.
The May commit leaves the repository's public history.LiteLLM says it is revoking every token for every internal system and vendor platform.

LiteLLM’s conclusion: “This incident has provided a strong illustration of the risks associated with failing to rotate a potentially exposed key.”

A researcher’s laptop holds the keys the attacker went looking for

Secret Where it usually sits What someone holding it can reach
Model provider API keys .env in the project, or the shell environment Model calls billed to your account, at your rate limits
WRDS password .pgpass in your home folder, written by the wrds package Licensed data under your name, and your school’s license
GitHub token from the gh command line Your user configuration Every repository you can push to, including private replication code
Cloud keys The cloud provider’s credentials file Machines and storage billed to you or your grant

None of these needs to be in a git repository for malware to read them. A poisoned package runs with the permissions of whoever installed it, and LiteLLM’s advice is to treat every secret the machine could reach as gone.

The fixes are habits a researcher can adopt this week

Rotate, do not deleteA key that reached a commit is public. Deleting the file leaves it in the history. Revoke it at the provider the same hour.
Pin every packageOnly unpinned installs in the two-hour window took the bad release. A lock file with exact versions and hashes would have refused it.
Scope every tokenThe owner's command-line token opened the whole organization. Use a token limited to one repository and one permission.

In Claude Code, a Read(./.env) deny rule stops the agent’s own file tools and the shell commands Claude Code recognizes from reading the key file. The documentation is plain that it does not stop “a Python or Node script that opens files itself,” which is how a poisoned package reads secrets. For that, the documentation points to the sandbox. The guide to each part of a finance paper has the deny rules.

AI models found decades-old flaws in PHP, and the time to patch shrank

Wiz Research announced PHP2Shell on 21 October, the day PHP released fixes. Wiz says every PHP release of the past decade has at least one of the flaws, and that turning them into a working attack required “an exceptionally complex chain of steps, at the edge of what human researchers could practically achieve.” Its team used Wiz Atlas, Gemini 4 Argon and GPT-5.6 Sol, and credits Gemini 4 Argon with “an invaluable contribution” to finding the flaws, building the exploit and checking the patch.

Frontier models now help find and exploit flaws that survived years of human review. Whatever a lab runs on a server (a project website, a survey tool, a shared notebook server) now faces attackers with the same help. Patch on the day a fix ships, because the people writing the exploit are not waiting either.

Sources

Related