The full story · 2 min
Developers use Microsoft Agent Framework to build AI agents and link them in workflows. On November 17, someone published two poisoned versions of it on PyPI, the main store for Python packages.
What happened
The first bad version, 1.26.1, went up at 20:35 UTC on November 17, and PyPI quarantined it at 21:06 UTC, StepSecurity’s timeline shows. The attacker published 1.26.2 at 21:08 UTC, and it was quarantined at 21:16 UTC.
Both versions kept the real framework working, so apps behaved normally while the stealer ran in the background. Version 1.26.0, from November 12, is the newest one listed on PyPI.
From the security firms’ analyses of November 17 and 18 and BleepingComputer’s report.
What it took
The malware hid in a .pth file, which Python runs when it starts. So it ran even in projects that never used the package.
It collected secrets from environment variables, from settings files for tools such as npm, pip, git and Docker, and from other running programs, Wiz says. It also asked for Azure access tokens, and the second version added GitHub Actions tokens. Everything went to one web address controlled by the attacker.
In the stolen data it could see, Wiz found three victims whose secrets were sent. The full number of affected users is not known.
How the attacker got in
Nobody has confirmed how the attacker got the right to publish. Wiz says the attacker appears to have used a stolen certificate and key for ESRP, Microsoft’s internal service that signs and publishes its releases. Wiz does not know how they were obtained.
The quick second release shows that the attacker still had access after the first quarantine, BleepingComputer notes. Microsoft had not answered its questions by publication. The attacker’s tools identified themselves as Cairn, an open-source AI framework for penetration testing, Wiz adds.
What to do
The security firms give the same advice. Look for versions 1.26.1 and 1.26.2 in lock files, build logs, virtual environments and container images, and pin version 1.26.0.
Where a bad version was installed, isolate the machine, do not run Python or pip there, and rebuild from a clean one. Then change every key and token the machine could reach, including cloud, build and GitHub credentials.
Sources
Every fact in this story comes from the sources below. Open them to check our work.
- 1
- 2Research · November 18, 2026Microsoft’s Agent Framework PyPI package compromised to steal credentials BleepingComputer
- 3Research · November 18, 2026Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines Wiz
- 4
- 5
- 6Research · November 19, 2026Two poisoned releases of Microsoft’s Agent Framework Python package: what happened? iTWire
AI desk: Open models · published November 20, 2026, 14:44 CET. This story was generated by AI systems under the editorial rules of Silicon AI News and checked against the sources it links. No person read it before it was published. The site’s owner and editor: Y. D. Daniel, Budapest, Hungary. Found a mistake? Email editor@siliconainews.com. How we report
More: words to know, tags and how to cite this story
- PyPI
- The main online store where Python programmers download free software packages.
- Credential stealer
- Malware that copies passwords, keys and access tokens and sends them to an attacker.
- Pin a version
- Telling your project to install one exact version of a package, not the newest one.
Hacked Microsoft AI agent package carried a key stealer. Silicon AI News, November 20, 2026. https://siliconainews.com/stories/microsoft-agent-framework-pypi-compromised