Rank #1 of 65·Security·17 Nov 2026·Attack tooling that called itself Cairn, an AI pentest framework
Microsoft's AI agent framework shipped two poisoned releases that stole cloud keys from every machine that ran them
“The agent framework got an agent of its own. Unfortunately it worked for someone else.”
- 17 Nov, 20:35 UTC: malicious agent-framework 1.26.1 appears on PyPI
- A .pth hook runs the stealer on every Python start, no import needed
- Takes env secrets, credential files, Azure managed-identity and DevOps OIDC tokens
- 1.26.2 lands 2 minutes after the first quarantine and adds GitHub Actions OIDC theft
- Attacker appears to have used a stolen Microsoft publishing certificate and key
- Tooling called itself Cairn, an open-source AI pentest framework; 3 confirmed victims in logged data
Microsoft's toolkit for building AI agents shipped a release that quietly robbed the machines that installed it. And the break-in seems to have been run with an AI hacking tool.
What happened
On 17 November at 20:35 UTC, version 1.26.1 of agent-framework, the umbrella package for Microsoft Agent Framework for Python, appeared on PyPI with a credential stealer bolted on. PyPI quarantined it 31 minutes later. Two minutes after that, 1.26.2 landed with renamed files and extra tricks, and stayed up for about eight more minutes. Researchers say the attacker appears to have held a client certificate and private key for the internal Microsoft pipeline that signs and publishes the package. A first upload attempt from AWS was rejected; a second from Microsoft-owned IP space went through.
The damage
Each bad wheel added a .pth startup hook, so the stealer ran every time Python started in that environment, no import needed. It grabbed secret-looking environment variables, scraped other processes' environments, copied credential files for Azure, npm, git, Docker and Hugging Face, and requested Azure managed-identity tokens. 1.26.2 also went after GitHub Actions OIDC tokens. Everything was posted to a free public webhook. Of the 50 requests that webhook logged, researchers count three real victims.
How it was caught, and what happened next
Both versions are gone and 1.26.0 is the last clean release. The tooling called itself Cairn, an open-source AI penetration-testing framework, and reported its own progress to the same public webhook, which let researchers watch part of the job. How the signing credentials were stolen is still unknown.
Pin your dependencies, delay brand-new releases, and treat any CI job that installed 1.26.1 or 1.26.2 as burned: rotate everything it could reach.

