Thursday 19 November 2026
Security

Microsoft Agent Framework packages on PyPI poisoned to steal credentials

Two malicious versions, 1.26.1 and 1.26.2, were uploaded November 17 and can harvest Azure, Azure DevOps and CI/CD secrets from developer systems.

Close-up of Microsoft signage at a company location
A Microsoft sign close-up, photographed at a Microsoft site. Photograph: Unknown/Wikimedia Commons (public domain)

Hackers uploaded two poisoned releases of Microsoft's Agent Framework Python package to PyPI on November 17, a supply chain attack that could expose cloud and CI/CD credentials, according to SecurityWeek. The package, used to build AI agents and multi-agent applications, has roughly 190,000 downloads a month. Malicious versions 1.26.1 and 1.26.2 appeared about 33 minutes apart and have been quarantined; version 1.26.0 remains the latest clean release.

Microsoft acknowledged the incident. An Agent Framework maintainer stated in a GitHub discussion that the compromised releases had been removed from PyPI and an investigation was in progress.

The tampered distributions retained the genuine framework code while adding credential-stealing routines, letting applications run as usual. The malware launches each time the Python interpreter starts, even if the application never imports the package. It seeks secrets in environment variables and configuration files, credentials from other running processes, and tokens for Azure managed identities and Azure DevOps. The second malicious release also went after GitHub Actions, according to analyses by OX Security, Wiz, Endor Labs, and SafeDep.

The publication method is still unknown. Unlike legitimate releases, which had both built and source distributions, the malicious versions had only built packages. Wiz saw no matching releases or harmful code in Microsoft's main source repository, suggesting the uploads may have bypassed the normal process. SafeDep found a PyPI maintainer account called vibiret, created the same day, with permission to publish the affected package and five related projects, but its role is unconfirmed.

Organizations should inspect developer machines, CI/CD pipelines, and container images for versions 1.26.1 and 1.26.2, swap affected installations for verified packages, rotate any credentials that may have been exposed, look into suspicious cloud activity, and rebuild compromised environments.

At the time of writing, Microsoft's Agent Framework repository on GitHub was not accessible. Several other Microsoft repositories, including ONNX Runtime projects, were likewise missing, though no link between the incidents has been established.

Update, November 18, 2026

Microsoft has made some repositories private while it investigates malicious content, a spokesperson told The Register on Wednesday. "Our priority is to protect customers and the broader ecosystem," the spokesperson said, adding that the company will take further action as needed. The Register also reported that OX Security saw the initial malicious release, version 1.26.1, reverted, but the attacker then uploaded version 1.26.2 through Microsoft's official PyPI publisher account, indicating the publishing credentials had not been locked down at the time.

Sources: SecurityWeek, theregister

Noor Haddad

Noor Haddad covers attacks, breach disclosures and exploited vulnerabilities for Five Nines. Noor writes from CISA and vendor advisories, SEC disclosures and published reporting.

Corrections. Report an error to corrections@thefivenines.com. We list substantive corrections on the corrections page.