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 .pth file, even if nothing imported the package.
  • It looked for environment variables containing TOKEN, SECRET, AZURE, AWS, GITHUB or OPENAI, read credential files such as .npmrc and .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

  1. Search your repos, history included, for .cursor/mcp.json, .mcp.json and .vscode/mcp.json files with keys in them. Move the keys to environment variables and rotate the old ones.
  2. 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.
  3. 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.

Questions people ask

What did Amazon find about ARTEX AI agents?

On November 13, 2026, Amazon Threat Intelligence said its MadPot decoy sensors, posing as LLM inference APIs, captured AI agents running attack campaigns on the ARTEX framework between October 3 and November 5. The biggest campaign stole AI API keys and used them to pay for the model calls that hunted for more keys. Amazon says it could not verify the outcomes the agents reported.

Where were the attacker agents looking for API keys?

Per Amazon, in LLM gateways and AI app builders such as LiteLLM, Dify, Langflow, RAGFlow, Open WebUI and Ollama, using default admin credentials, open admin endpoints and known CVEs, and in GitHub repositories, npm and PyPI packages, container image layers and notebooks. Keys public for more than 30 days were marked low value.

How many public MCP config files contain real-looking API keys?

In our November 2026 scan of 10,659 public MCP config files on GitHub, 152 held what look like real tokens: 96 OpenAI keys, 26 Google API keys, 18 Anthropic keys and 23 GitHub tokens. 78 were in .cursor/mcp.json, 32 in .mcp.json, 28 in .vscode/mcp.json and 14 in Claude Desktop configs.

Which agent-framework versions were malicious?

Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI, published November 17, 2026 and live for about 31 and 8 minutes. The payload ran at Python startup through a .pth file. BleepingComputer and StepSecurity advise pinning to 1.26.0, rebuilding affected environments and rotating credentials.

How do I keep API keys out of a committed MCP config?

Read the key from an environment variable instead of writing it in the file: ${env:NAME} in Cursor and VS Code, ${NAME} in Claude Code. Then search your repos, history included, for MCP config files that already hold keys, and rotate those keys.

From the team that wrote this

X1Y1 builds security into the architecture

  • Zero Trust network architecture and identity-first access controls
  • WAF, DDoS protection, and bot mitigation at the edge
  • Security posture reviews and compliance-ready infrastructure
Schedule a Call See Engineering Services