Microsoft Agent Framework Supply-Chain Attack: Poisoned PyPI Packages Ran a Credential Stealer
Poisoned AI framework releases ran a credential stealer on Python startup.
AI-generated illustrationIn this article
A software update published under Microsoft’s own Python package name became a delivery vehicle for credential theft on 17 November 2026. Security researchers at Wiz say two releases of the Python package agent-framework, versions 1.26.1 and 1.26.2, contained a credential stealer aimed at cloud and CI secrets, including Azure and GitHub Actions. The malicious versions were removed from the Python Package Index in less than an hour. Their brief availability is not evidence that every installation was compromised, but it makes this a serious supply-chain incident for developers who installed them.
What the investigators found
Wiz’s timeline puts the first poisoned upload at 20:35 UTC, a second at roughly 21:08, and removal by about 21:30. The package is associated with Microsoft Agent Framework, software that helps developers build and coordinate AI agents. Wiz reported approximately 41,000 weekly package downloads as a measure of normal package popularity, not a count of poisoned downloads. Microsoft’s legitimate 1.26.0 release was published on 12 November; Wiz identified it as the latest safe release at the time of its advisory.
The malicious payload used an especially dangerous Python mechanism: a .pth file placed under site-packages. Python can process these files when the interpreter starts, which means code may run without the application ever importing agent-framework. That defeats a common but faulty assumption that an unused dependency cannot execute. According to Wiz, the two affected versions used different .pth filenames and associated modules.
What is known — and what is not
In a follow-up updated on 18 November, Wiz said the attacker appeared to have compromised a certificate and private key connected with Microsoft’s Engineering System Release Pipeline. One publishing attempt was blocked; a subsequent attempt succeeded. Wiz specifically said it did not know how the credentials had been obtained. That distinction matters: an observed publishing path is not a fully established account of the initial intrusion.
The research identified a public webhook for exfiltration and attacker telemetry; Wiz reported three unique successful victim exfiltrations, not a count of all affected installations. These details come from Wiz’s analysis and should not be treated as proof that the same data were taken from every organization that downloaded a malicious package. The number of affected environments and the final impact still require organization-by-organization investigation.
Why it matters to an ordinary developer
The incident connects two risks that are usually discussed separately: AI-agent software and traditional dependency trust. An agent framework can be entirely legitimate, while an attacker who controls a package-release step can smuggle malicious code into a routine installation. A trusted name is not a substitute for pinned versions, lockfiles, package verification and monitoring of build environments.
What affected teams should check
Teams that installed agent-framework on 17 November should check package manifests, lockfiles, CI logs, virtual environments and container build histories for versions 1.26.1 or 1.26.2. Wiz’s incident post lists the relevant .pth and module filenames, the observed outbound endpoint, and the identities and tokens worth reviewing. Affected organizations should follow their own incident-response process to isolate exposed runners, review unusual sessions, rotate potentially accessible credentials and inspect cloud audit logs. Simply uninstalling a malicious dependency does not invalidate credentials it may have accessed.
What this means for a WordPress site owner
WordPress itself is not affected, and no WordPress plugin or theme is named in Wiz’s report. The relevant exposure arises only when a developer, agency, plugin vendor or deployment pipeline runs an affected Python environment with access to website credentials, hosting tokens or production secrets. Ask your developer or hosting team whether the affected package and versions were ever installed. If they were, treat the build environment as a possible source of exposure and audit access to WordPress, GitHub, hosting and deployment keys. Keep backups independent of the affected CI environment.
A legitimate developer SDK can become dangerous when its publishing credentials are abused. Check exactly which package versions entered your own build environment before deciding which secrets and systems need investigation.
Sources
- Primary incident analysis, Wiz, published 17 November and updated 18 November 2026: Wiz — malicious version of Microsoft’s Agent Framework published to PyPI
- Python documentation, site module and .pth processing: docs.python.org — site module