Attackers put a credential stealer in a Microsoft agent package
A host that got agent-framework version 1.26.1 or 1.26.2 on 17 November 2026 is exposed, and you must replace its cloud tokens.
Attackers put 2 bad versions of agent-framework, a Microsoft Python package for AI agents, on the Python package site PyPI on 17 November 2026. The 2 versions came 33 minutes apart. They operate a credential stealer each time Python starts, and the package gets about 190,000 downloads each month. PyPI has quarantined the 2 versions.
How it works
The package adds a small file that Python operates at each start. Python does this also if no code uses the package. The stealer collects environment variables, key files and Azure cloud tokens. It sends them to one web address.
The numbers
7 security firms report the attack, and Socket and Wiz are two of them. The last safe version is 1.26.0. SafeDep tells that a change of the secrets on the disk is not sufficient. The code also gets new tokens from the cloud platform.
What is not known
It is not known how the attacker got publishing access. OX Security tells that the attackers seem to have hijacked the step that makes the package files. In May 2026, an equivalent attack hit durabletask, a different Microsoft Python package.
Insight: Attackers target the keys that AI tools hold
Reports from October and November 2026 tell of malware that copies login files of 7 AI tools. They also tell of more than 575 bad agent skills. At this time, a Microsoft package does the same work through the package chain. This reads as a fight to own the developer machine, because it holds the keys to cloud and AI tools. Monitor the pipeline, not only the agent.
Sources
Posted