Skip to content

AI Compass / News

Important

Microsoft agent-framework: two PyPI releases stole credentials

Automation

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),

Technical drawing: an hour axis on 17.11.2026 in UTC with two hatched time windows: version 1.26.1 from 20:35 to 21:06 and version 1.26.2 from 21:08 to 21:16. Next to it, version 1.26.0 is ticked.Technical drawing: an hour axis on 17.11.2026 in UTC with two hatched time windows: version 1.26.1 from 20:35 to 21:06 and version 1.26.2 from 21:08 to 21:16. Next to it, version 1.26.0 is ticked.

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):

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:

It sends the data to an address on the webhook.site service.

What you can do:

  1. Check without starting Python: every Python start can trigger the malware again, and that includes running pip. Search the file system for agent_framework_meta.pth, af_runtime_diag.pth and af_runtime_diag.py. Also look through lock files, CI logs and container images for versions 1.26.1 and 1.26.2.
  2. Rebuild if you find anything: set up the environment or image from scratch, pinned to version 1.26.0.
  3. 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.
  4. 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