Two stories this week end up in the same place: the keys and packages our AI tools depend on.
Agents that hunt for AI keys
On November 13, Amazon Threat Intelligence published what its MadPot decoy sensors captured between October 3 and November 5: AI agents running attack campaigns on ARTEX, the open-source agent pentest framework from last week’s issue. The sensors posed as LLM inference APIs, so the agents sent them their own campaign memory. (Amazon)
What the agents’ own records show:
- The biggest campaign stole API keys for AI models, then used the stolen keys to pay for the model calls that hunted for more keys.
- Targets were LLM gateways and AI app builders such as LiteLLM, Dify, Langflow, RAGFlow, Open WebUI and Ollama. The playbook used default admin credentials, open admin endpoints and known CVEs, including CVE-2025-3248 in Langflow and CVE-2026-28797 in RAGFlow.
- Keys were also mined from GitHub repositories, npm and PyPI packages, container image layers and notebooks.
- Keys that had been public for more than 30 days were marked low value. Fresh leaks are what they wanted.
Amazon assesses with moderate confidence that these were separate Chinese-nexus groups, and says it could not verify the outcomes the agents reported. Its own summary: none of the techniques were new. The agents won where basic hygiene was missing, and they were faster and more persistent than a person.
The keys are already in public repos
This one we can measure. In our November scan of 10,659 public MCP config files on GitHub, 152 files held what look like real tokens: 96 OpenAI keys, 26 Google API keys, 18 Anthropic keys and 23 GitHub tokens. (Full scan)
A reader asked where they came from, so we split them: 78 were in .cursor/mcp.json, 32 in .mcp.json (Claude Code), 28 in .vscode/mcp.json and 14 in Claude Desktop configs. Those are project files that get committed with the code, which is exactly where Amazon says the agents were looking.
Each of those editors can read the key from an environment variable instead, so the committed file never holds the secret: ${env:NAME} in Cursor and VS Code, ${NAME} in Claude Code.
Microsoft’s agent framework shipped a credential stealer
On November 17, two malicious releases of agent-framework, Microsoft’s Python package for building AI agents, went up on PyPI. Version 1.26.1 was live for about 31 minutes. Version 1.26.2 went up two minutes after the first was pulled and lasted about 8. (BleepingComputer, StepSecurity)
- The payload ran at Python startup through a
.pthfile, even if nothing imported the package. - It looked for environment variables containing TOKEN, SECRET, AZURE, AWS, GITHUB or OPENAI, read credential files such as
.npmrcand.git-credentials, and tried to mint GitHub Actions and Azure managed-identity tokens. - How the attacker got upload access is still not known. Microsoft had not commented when BleepingComputer published.
The advice from both write-ups: pin to 1.26.0, rebuild any affected environment from a clean base, and rotate whatever credentials were on it.
Forty minutes sounds short. But CI pipelines install fresh on every run, and in our config scan two thirds of the package-based MCP servers had no pinned version. Anything that installed without a pin in that window got the bad release.
The $43.9 billion bet on agents
CrowdStrike announced on November 23 that it will buy Zscaler in an all-stock deal valued at about $43.9 billion. The press release is mostly about AI agents, which Zscaler’s founder calls the new weakest link. (SEC filing) After this week’s two stories, it is hard to argue with the premise. It is also worth noticing that both stories come down to keys and pins, not platforms.
Check this week
- Search your repos, history included, for
.cursor/mcp.json,.mcp.jsonand.vscode/mcp.jsonfiles with keys in them. Move the keys to environment variables and rotate the old ones. - If you run LiteLLM, Dify, Langflow or a similar gateway, make sure its admin interface is not reachable from the internet and the default master key has been changed.
- Pin your Python packages and MCP server versions in CI, and check whether any build installed agent-framework 1.26.1 or 1.26.2 on November 17.
This is the web version of issue 8 of the X1Y1 weekly scan. Subscribe on Substack to get the next one.