AI Compass / News
ImportantMicrosoft agent-framework: two PyPI releases stole credentials
On the evening of 17 November, versions 1.26.1 and 1.26.2 of Microsoft's Python package agent-framework were on PyPI with malware, for just under 40 minutes in total. If you installed them, replace your credentials.
Source: Microsoft Agent Framework Releases Poisoned With Credential Stealer (SecurityWeek),


What happened: agent-framework is Microsoft’s official Python package for building AI agents. According to SecurityWeek, it gets around 190,000 downloads a month. On 17 November 2026, two versions containing malware appeared on PyPI, the central package index for Python. According to StepSecurity, this is how long they were available (times in UTC):
- 1.26.1: uploaded at 20:35, quarantined at 21:06
- 1.26.2: uploaded at 21:08, quarantined at 21:16
The last clean version is 1.26.0 from 12 November. SecurityWeek reports that a project maintainer confirmed in a GitHub discussion that the versions have been removed and the incident is being investigated. How the attacker got the rights to publish is still unclear. There is no CVE number yet.
What it means: This is a supply-chain attack: it doesn’t target you directly, but a package you trust. The malware sits in a .pth file. Python reads these files every time it starts and runs any line in them that begins with import. So the malware runs as soon as Python starts in the affected environment, even if your program never uses the package. According to StepSecurity and Socket, it collects:
- environment variables with names like TOKEN, SECRET or KEY, including those of other running processes
- credential files for Azure, Git, Docker, npm and pip, Hugging Face tokens and
.envfiles - fresh sign-in tokens from Azure and Azure DevOps, and in version 1.26.2 from GitHub Actions too
It sends the data to an address on the webhook.site service.
What you can do:
- Check without starting Python: every Python start can trigger the malware again, and that includes running
pip. Search the file system foragent_framework_meta.pth,af_runtime_diag.pthandaf_runtime_diag.py. Also look through lock files, CI logs and container images for versions 1.26.1 and 1.26.2. - Rebuild if you find anything: set up the environment or image from scratch, pinned to version 1.26.0.
- Replace credentials: issue new keys and passwords for everything that could be reached from there, and revoke the old ones. Connections to webhook.site in your network logs are a warning sign. StepSecurity points out, though, that a connection on its own doesn’t prove any data left.
- Prevent it next time: pin packages to a fixed version, and don’t pick up new versions in the first few hours after release.
Context: This is the second case of its kind in a month. On 21 October, LiteLLM 1.107.0 stole credentials, also through a .pth file. According to StepSecurity and SecurityWeek, it’s still unclear how the attackers got access to the package this time. According to SecurityWeek, the poisoned versions contained only ready-built install packages and no source code, unlike the genuine releases. The security firm Wiz found no matching version in Microsoft’s repository. My take: if you were pinned to 1.26.0, you weren’t affected. The risk was for anyone who automatically pulled the latest version on the evening of 17 November, for example in a CI pipeline.
My workshops show you how to bring AI into your team. See the workshops