Decode News AI
简体繁體

Attackers Compromise Microsoft Agent Framework PyPI Package to Steal Secrets

2026-11-19 14:37 EST · AI-compiled · 266 words · about 1 min · Views …
Photo: AI-generated illustration

SAN FRANCISCO - Threat actors hijacked Microsoft's official agent-framework Python package on PyPI on Nov. 17. They published malicious versions 1.26.1 and 1.26.2. Secrets were targeted. The packages were designed to steal developer cloud credentials and secrets.

Malicious startup hooks execute automatically on Python launch

Elastic Security Labs flagged version 1.26.1 at 20:41 UTC on Nov. 17. It went live six minutes earlier. The attacker pushed version 1.26.2 at 21:08 UTC. PyPI removed both releases within an hour.

According to Elastic Security Labs, "Versions 1.26.1 and 1.26.2 stole Azure, Azure DevOps and GitHub Actions tokens from a .pth hook that ran on every Python launch,". "so if either one touched a build agent or a laptop,". "assume every secret on that host is gone."

Credential stealer targets cloud providers and build pipelines

Both malicious packages kept core framework dependencies intact. They read environment variables from up to 300 running processes. They also read local configuration files. Those files covered Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI.

Version 1.26.2 added GitHub Actions OIDC token requests. It exfiltrated compressed payloads. The destination was an attacker-controlled webhook[.]site endpoint.

Security researchers urge secret rotation and clean rebuilds

The package averages roughly 196,000 downloads a month on PyPI. TechRadar reported around 150 downloads. They may have occurred before removal.

Security firms advised developers to pin the clean 1.26.0 release. They advised rebuilding affected environments. They advised rotating exposed credentials. Microsoft has not publicly explained how publishing access was breached.

Sources

Found a factual error or typo? Tell us

Follow Decode News AI on Telegram

Live updates: every new story is pushed the moment it publishes — dozens a day, no digest delay.

@decodenewsai · Subscribe now

Free · unsubscribe anytime

Comments