TechBroz · techbroz.com65 incidents on record · updated as they happen
← Hall of Shame

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

Stacked cardboard, for illustration; not Microsoft's systems or the package (edited).
Stacked cardboard, for illustration; not Microsoft's systems or the package (edited). Photo: Henry Söderlund, CC BY 2.0, via Wikimedia Commons; cropped, text overlaid.

“The agent framework got an agent of its own. Unfortunately it worked for someone else.”

Incident reportSecurityPyPI, the official agent-framework package; payload ran on any machine or CI runner that installed it
Agent / toolAttack tooling that called itself Cairn, an AI pentest framework
CompanyMicrosoft (agent-framework on PyPI)
DamageStealer in a package with ~41,000 weekly downloads; 3 confirmed victim exfiltrations
Time to detectAbout 31 minutes: 1.26.1 was quarantined at 21:06 UTC, 1.26.2 at 21:16 UTC
StatusVerified: GitHub and PyPI advisories plus independent analyses by Wiz and StepSecurity; initial access still unknown
Chaos8.0 / 10
  • 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.

Lesson for builders

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.

Fail card: Microsoft's AI agent framework shipped two poisoned releases that stole cloud keys from every machine that ran them
The fail card

This story in one shareable card. Tap to open it full size.

Share on X All fail cards →

More fails

Get TechBroz Weekly free → All 65 fails