Microsoft's official AI agent toolkit carried a password stealer for 55 minutes
Two fake versions of Microsoft's agent-framework Python package were published with Microsoft's own release system and grabbed cloud keys from any machine that installed them.
In brief
Fake versions of a Microsoft AI toolkit stole passwords and cloud keys for 55 minutes
For 55 minutes, two fake versions of Microsoft's agent-framework Python package stole passwords and cloud keys from any machine that installed them. The attacker published them through Microsoft's own release system and used AI hacking tools.

On the evening of November 17, someone published two poisoned versions of agent-framework, Microsoft's official Python package for building AI agents, to PyPI, the main public library store for Python. The security firm Wiz found them and reported them to Microsoft the same day.
What happened
Version 1.26.1 went up at 20:35 UTC. Version 1.26.2 followed at 21:08. By 21:30 both were gone, about 55 minutes in total. The package is downloaded around 41,000 times a week, so even a short window matters.
The poisoned versions added a small file that Python runs every time it starts. That means the stealer ran on any machine where the package was installed, even if the program never actually used agent-framework. The file names were made to look like normal "telemetry" code.
The stealer went after secrets: passwords and access keys stored on the machine, login files for tools like npm, pip, Git and Docker, .env files, and tokens for Microsoft's Azure cloud and its DevOps system. The second version also targeted GitHub Actions, the service many teams use to build and ship code automatically.
How the attacker did it
According to Wiz, the attacker appears to have stolen a certificate and private key for Microsoft's internal release system, the one Microsoft uses to sign and publish this package. A first attempt from Amazon's cloud was blocked. A second attempt from Microsoft-owned internet addresses worked. How the credentials were stolen is not yet known.
The attacker leaned on AI along the way. Their tooling called itself Cairn, an open-source AI hacking framework, and a test run on the attacker's own computer captured the setup of an AI coding agent backed by a GLM-family model.
Why the damage may be small
The stolen data was sent to webhook.site, a free public testing service. Its free tier only logs 100 requests and refuses the rest. Wiz could read 50 stored requests. Most came from the attacker or from test machines, and only three were real victims. Wiz can't see anything that was refused, so the full count is unclear.
What to do
If you don't write Python, this attack didn't touch you directly. If you or your team do:
- Search your projects, build logs and containers for agent-framework 1.26.1 or 1.26.2, and pin to 1.26.0
- Look for the files agent_framework_meta.pth or af_runtime_diag.pth in your Python packages folder
- Change every password and access key on any affected machine or build server. Stolen Azure tokens can work for up to 24 hours
Sources
Source: wiz.io