Microsoft's PyPI Package Compromised to Steal Cloud Credentials
Attackers hijacked Microsoft's agent-framework PyPI package to deploy credential stealers. Organizations using Python-based cloud tools should audit their environments immediately.
TL;DR
- Malicious versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package were published on PyPI.
- The package runs a credential stealer every time Python starts.
- Compromise occurred on November 17, 2026; both versions remain live as of reporting.
- Multiple security vendors including Wiz, Socket, and Aikido confirmed the breach.
- Organizations should check for unauthorized usage and rotate cloud credentials.
Threat actors successfully compromised Microsoft's official agent-framework package hosted on the Python Package Index (PyPI), injecting malicious code designed to harvest cloud credentials. The breach impacts any organization using Python-based automation or development workflows that pull packages from public repositories.
Security researchers from multiple firms including Aikido, Endor Labs, and Wiz identified two malicious versions—1.26.1 and 1.26.2—published just 33 minutes apart on November 17, 2026. These versions execute a credential-stealing payload each time a Python process is initiated, potentially giving attackers broad access to cloud infrastructure and developer accounts.
How the Attack Works
- The malicious PyPI package hooks into Python’s startup process to initiate credential theft automatically.
- Once installed, it silently exfiltrates authentication tokens and secrets stored in common locations like environment variables and cloud metadata services.
- Because the package mimics a legitimate Microsoft tool, it may evade detection by developers and basic security controls.
What Dev Teams Should Do Now
- Audit all systems where the agent-framework package might have been installed, especially CI/CD pipelines and developer workstations.
- Immediately revoke and rotate cloud provider credentials that could have been exposed.
- Implement stricter dependency management policies such as private registries and automated scanning tools.
- Monitor logs for unusual activity related to credential use or outbound network connections from affected systems.
Sources
Sources
Security email updates
One digest email when we publish new security articles (TL;DR plus links to read more). Unsubscribe anytime from the message footer. See our Privacy Policy.