thethreatdeskFiled from the front lines of cybersecurity
BreachesHigh

Poisoned releases of Microsoft's Agent Framework on PyPI stole cloud credentials

Two malicious versions of the agent-framework package, which gets about 190,000 downloads a month, harvested Azure, GitHub and other secrets for under an hour.

Attackers published two malicious versions of agent-framework, Microsoft's Python package for building AI agents, to the PyPI registry on Nov 17. The versions, 1.26.1 and 1.26.2, went up 33 minutes apart and have since been quarantined.

What the malware did

Both versions planted a .pth file. Python runs these automatically every time it starts, so the code ran even if the package was never imported. It collected:

Version 1.26.2 also grabbed GitHub Actions OIDC tokens, which can be swapped for cloud access in CI pipelines. The stolen data was sent to a webhook.site address.

Exposure window

The malicious versions were live for about 45 minutes, roughly 8:35 to 9:20 p.m. UTC on Nov 17. The package is downloaded about 190,000 times a month, and automated builds that fetch the latest version are the most likely victims.

It is not yet known how the attackers got permission to publish the package, and no one has been publicly blamed.

Why it matters

AI agent tooling is a growing target for supply chain attacks because it usually runs with broad cloud access. A single bad install on a build server can expose credentials for production systems.

Who's affected

Developers and CI/CD pipelines that installed agent-framework 1.26.1 or 1.26.2 on Nov 17.

What to do

Pin agent-framework to 1.26.0, search build logs and lockfiles for 1.26.1 or 1.26.2, and if found, rotate every cloud, GitHub, npm and Docker credential the affected machine could reach.