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.
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.
One unrevoked key led to a poisoned release five months later
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
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
- LiteLLM, canonical incident record docs.litellm.ai
- LiteLLM, security incident of 21 October 2026 docs.litellm.ai
- Wiz Research, PHP2Shell wiz.io
- Wikipedia, Black October (information security) en.wikipedia.org
- Claude Code documentation, configure permissions code.claude.com
- wrds, Python package source pypi.org