The Watch Log / Threat
Malicious Microsoft Agent Framework versions steal developer credentials
Two compromised PyPI releases ran credential-stealing code when Python started, even if developers did not import the package.

What happened
BleepingComputer and The Hacker News report that attackers uploaded malicious versions 1.26.1 and 1.26.2 of Microsoft's Agent Framework package to PyPI, the Python Package Index. The releases appeared on November 17, 2026, and PyPI later quarantined both.
The package is used to build AI agents with Python. The compromised releases were designed to collect credentials and other sensitive data from affected systems.
Who is affected
Developers and organisations that installed either version may have exposed credentials available to the affected environment. This includes secrets stored in files or environment variables, as well as some cloud identity tokens. The sources do not give a count of affected systems.
How the attack works
The releases added Python startup files that caused the stealer to run whenever Python started in an affected environment. The package did not need to be imported for this to happen. The malware collected data and sent it to a hard-coded webhook endpoint. The reports do not say how the attacker gained the ability to publish releases under Microsoft's PyPI project.
What to do now
- If either version was installed, isolate the affected environment and avoid running Python or pip until it is secured.
- Rebuild from a known-clean environment and use version 1.26.0, identified in the reports as the safe release.
- Rotate credentials and tokens that the affected environment could access, including cloud and developer-service secrets.
- Review network logs for connections to the reported webhook endpoint. Check whether requests were blocked or data was transferred.
Timeline
Worried about this?
HarborSOC watches systems like yours around the clock. If you think you're affected, our analysts can check and help you fix it. What to do in the first hour after a hack · How our 24/7 SOC works
Talk to an analystSources
- BleepingComputer: Microsoft’s Agent Framework PyPI package compromised to steal credentials
- The Hacker News: Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
This post was written by HarborSOC from the sources above, which we cross-check before publishing. Facts reported by only one outlet are attributed to it.