Skip to content

daily brief · Nov 20, 2026

Microsoft Agent Framework PyPI Package Hacked: Versions 1.26.1 and 1.26.2 Steal Credentials

Malicious agent-framework 1.26.1 and 1.26.2 on PyPI stole cloud and CI secrets. Pin 1.26.0, rebuild and rotate keys. What happened and what to check.

4 sources · 1 min read

What to do: if any machine, container or CI job installed agent-framework 1.26.1 or 1.26.2 from PyPI, treat it as exposed. Pin to 1.26.0, rebuild from a clean image, and rotate every secret it could reach, including cloud, GitHub Actions and AI API keys. Both bad releases went up on November 17 and were pulled the same day, per GitHub’s advisory.

Microsoft Agent Framework is the official Python toolkit for building AI agents, with roughly 200,000 downloads a month. For about an hour on Tuesday afternoon, the “official” package was a burglar. Version 1.26.1 landed at 20:35 UTC (12:35 p.m. PT) and 1.26.2 followed 33 minutes later, according to Wiz.

The sneaky part: the malware ran every time Python started in that environment, even if your code never imported the package. It hunted for tokens and passwords in environment variables, config files and cloud identity services, focusing on Azure, then sent them to an outside server. Version 1.26.2 also went after GitHub Actions tokens.

Wiz says the attacker appears to have used a stolen certificate for Microsoft’s internal publishing pipeline, and that the tooling identified itself as an open-source AI penetration-testing framework. How the credentials were obtained isn’t yet known, and GitHub’s advisory doesn’t attribute the attack to a known group.

Quick answers

How do I check if I installed a bad version?

Search lockfiles, CI logs, virtual environments and container images for agent-framework 1.26.1 or 1.26.2, and look in site-packages for `agent_framework_meta.pth` or `af_runtime_diag.pth`.

Is 1.26.0 safe?

Yes. GitHub's advisory says 1.26.0 and earlier are not affected.

agent-framework PyPI compromisesecurityMicrosoft Agent FrameworkPyPI supply chain attackcredential stealerGHSA-764m-3ppc-5m73AI agent securityAzure credentialsGitHub Actions OIDCPython malware

More on: Microsoft · AI agents · AI security · All Security briefings