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
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 lessonTwo 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- Secrets management
API keys, tokens and passwords stop leaking from code, chat and configuration files.
- Endpoint detection and response (EDR and XDR)
Malware and hands-on-keyboard attackers on laptops and servers get spotted and stopped.
- Software supply chain security
Malicious and vulnerable open-source packages are caught before they ship.