Microsoft’s AI Agent Framework Hijacked to Steal Cloud Credentials

2 min read
Source: The Register
Microsoft’s AI Agent Framework Hijacked to Steal Cloud Credentials
Photo: The Register
TL;DR

Attackers compromised Microsoft’s official agent-framework Python package, publishing malicious versions 1.26.1 and 1.26.2 to PyPI. The malware uses startup hooks to steal Azure, GitHub, and Docker credentials, exfiltrating them to a public webhook. Microsoft has quarantined the packages, but users must rotate secrets immediately.

Key points

  • Malicious versions 1.26.1 and 1.26.2 of Microsoft’s agent-framework were published on November 17, 2026, and later removed from PyPI.
  • The malware executes automatically on every Python interpreter start via .pth files, requiring no explicit import of the package.
  • It harvests environment variables, credential files, and active Azure managed identity tokens, exfiltrating them to a hardcoded webhook.site address.
  • Version 1.26.2 added specific theft of GitHub Actions OIDC tokens and expanded the scope of collected environment variables.
  • Microsoft confirmed the compromise, stating they made repositories private to investigate malicious content and are working to secure their publishing credentials.

Background

This incident is the second major PyPI compromise involving a Microsoft package this year, following the May 2026 attack on the durabletask package. It highlights growing risks in the AI developer ecosystem, where supply chain attacks target frameworks used to build and deploy AI agents. The agent-framework package, which has nearly 200,000 monthly downloads, is central to Microsoft’s open-source strategy for AI orchestration.

How outlets are covering it

OX Security and Wiz identified the technical mechanism, noting the malware uses .pth files to run on startup and targets Azure DevOps pipelines. Wiz further analyzed exfiltrated data, finding only three unique successful victim cases due to webhook.site’s free-tier limits. The Register emphasized the potential compromise of Microsoft’s GitHub admin credentials, while The Hacker News highlighted the coordinated nature of the attack across multiple security firms. All sources agree on the immediate need to rotate credentials and pin to version 1.26.0.

Why it matters

This attack demonstrates how attackers are targeting the AI supply chain to steal cloud access tokens. Because the malware runs on every Python start, it can compromise CI/CD pipelines and developer environments without user interaction. The use of active token requests means that even rotating stored secrets may not fully mitigate the risk, as the malware can request fresh tokens from Azure and GitHub Actions.

What to watch

Microsoft is investigating the breach and securing its publishing credentials. Security teams are advised to audit their environments for the malicious versions, rotate all exposed credentials, and monitor Azure sign-in logs for unauthorized use of managed identities. The agent-framework GitHub repository remains offline as Microsoft reviews its security posture.

Share this article

Want the full story? Read the original reporting

Read on The Register