Back to Feed
Supply ChainNov 19, 2026

Credential stealer slipped into Microsoft’s official Python agent framework

Microsoft's Python agent framework package on PyPI contained credential-stealing malware.

Two versions of Microsoft's agent-framework package on PyPI, 1.26.1 and 1.26.2, were found to contain credential-stealing malware. The malware, installed as a .pth startup hook, steals cloud and CI/CD credentials by collecting environment variables and .env files. PyPI has quarantined the malicious releases, and users are advised to isolate affected hosts and pin the agent-framework to version 1.26.0.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run Microsoft?

Get an email when a new story names Microsoft, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

Two versions of Microsoft's agent-framework package on PyPI were compromised to include credential-stealing malware, demonstrating that even packages from reputable publishers can be weaponized through supply chain attacks. The malware used a .pth startup hook—a subtle Python mechanism that executes code at interpreter startup—to silently harvest cloud and CI/CD credentials from environment variables and .env files. This incident matters because developers often implicitly trust packages from well-known vendors, making supply chain poisoning an especially effective attack vector. The theft of CI/CD credentials in particular can cascade into full pipeline compromise, enabling attackers to inject malicious code into downstream software builds.

What helps against this

How we list vendors
Get Microsoft news in your morning briefingA few minutes of audio on the vendors you pick, every morning. Free to try.

Entities

Microsoft (vendor)agent-framework (product)Python (technology)PyPI (technology)