Flash

Flash·Safety & Risk·2026-11-20 20:15

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.

A bright security operations center, a developer at a laptop showing Python code and a package-manager warning
AI-generated illustration

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

  1. Malicious versions: 1.26.1 and 1.26.2, published November 17 at 20:35 and 21:08 UTC
  2. Removal: Quarantined by PyPI after about 45 minutes; the last safe version is 1.26.0
  3. Payload: A .pth startup hook that runs every time Python starts; steals environment variables and cloud credentials and sends them to webhook.site
  4. Stolen data: Credentials for Azure, AWS, GitHub, OpenAI, Hugging Face and others
  5. Intrusion: Wiz said the attacker apparently stole a client certificate and private key from Microsoft's ESRP release pipeline
  6. Scale: Unclear; Wiz observed only the 50 outbound requests retained in the webhook service's free tier
  7. 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.
Useful Tap if this story helped you
Send to a friendMakes a share image for X, WeChat, Telegram and more

SourcesWiz (Nov 18, 2026); BleepingComputer (Nov 18, 2026). This article is compiled from public information and does not constitute investment advice.

From HIMIAO Horizon · himiao.ai

Grab todayAdobe Creative Cloud Pro: 57% off first yearHIMIAO Picks →

Follow HIMIAO Horizon

No sign-up · Unsubscribe any time

Email

Notifications

A ping on your phone or computer when the brief is out. No email needed.

HIMIAO PicksWeekly freebies: one email every Friday, a 5-minute read

Comments

  1. Loading comments…
Ask the cat