Microsoft's Agent Framework PyPI Package Hijacked to Steal Credentials
Malicious code that steals cloud credentials was planted in versions 1.26.1 and 1.26.2 of Microsoft's official Python package agent-framework on PyPI on November 17 and pulled about 45 minutes later; environments that installed either version should treat their credentials as compromised.

What happened
The malicious versions appeared on PyPI on November 17 at 20:35 UTC (1.26.1) and 21:08 UTC (1.26.2) and were quarantined around 21:20 UTC, surviving about 45 minutes; the last safe version is 1.26.0. Agent-framework is Microsoft's official Python package, downloaded nearly 200,000 times a month.
The malicious code was planted as a .pth startup hook that runs every time Python starts, even if the package is never imported; the payload steals environment variables and credentials for Azure, AWS, GitHub, OpenAI, Hugging Face and others, and sends them to webhook.site. Wiz said the attacker apparently stole a client certificate and private key from Microsoft's ESRP release pipeline.
The scale of the damage is unclear. Wiz observed only the 50 outbound requests retained in the webhook service's free tier, which cannot establish how many environments were affected; Microsoft had not responded to requests for comment as of publication.
Key facts
- Malicious versions: 1.26.1 and 1.26.2, published November 17 at 20:35 and 21:08 UTC
- Removal: Quarantined by PyPI after about 45 minutes; the last safe version is 1.26.0
- Payload: A .pth startup hook that runs every time Python starts; steals environment variables and cloud credentials and sends them to webhook.site
- Stolen data: Credentials for Azure, AWS, GitHub, OpenAI, Hugging Face and others
- Intrusion: Wiz said the attacker apparently stole a client certificate and private key from Microsoft's ESRP release pipeline
- Scale: Unclear; Wiz observed only the 50 outbound requests retained in the webhook service's free tier
- Microsoft response: Had not responded to requests for comment as of publication
Why it matters
the official package release pipeline was hijacked, so environments that installed a malicious version should treat credentials as compromised, rotate them and roll back to 1.26.0.
CompaniesMicrosoft
Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →Follow HIMIAO Horizon
No sign-up · Unsubscribe any timeNotifications
A ping on your phone or computer when the brief is out. No email needed.
Comments
Related
- Nov 15Microsoft 365 Outage Lasts Over 24 Hours After Network Upgrade Fault
- Nov 14A Typo in an AI Site's Name Can Lead to Malware, Island Finds
- Oct 22Microsoft Says China-Linked Storm-0940 Used AI Pentest Tool Against Hundreds of Organizations
- Oct 22eMudhra CA Weak-Key Incident: Eight Intermediate Certificate Keys Found Recoverable
- Oct 11Nadella Calls for an 'Emergency Brake' on AI Models: Assume Compromise, Let Humans Hit Stop
Today
Nov 23 Monday- Brief
- GitHubGitHub Weekly Vol.7: 7 Projects Worth a Look This Week
Tested or read — weeklyAll →
- Quiz
- Call
Latest news
All →- Nov 23GitHub Weekly Vol.7: 7 Projects Worth a Look This Week
- Nov 23Alibaba Qwen4-Max Review: Intelligence Index 43, Task Costs Down 58%, Terminal Coding Trails Kimi
- Nov 23US Intel Chief Confirms China Obtained Nvidia's Top AI Chips
- Nov 23OpenAI Chief Scientist: Perplexity Tracks Intelligence, Calls for Shared Limits
- Nov 23AI Agents Breached a Medical Imaging Server in 11 Minutes; MONAI Label Zero-Day Now Fixed
- Nov 23Tampered DeepSeek Model Served for 53 Hours; Refusals Fell From 98% to 1%
™