Microsoft Agent Framework PyPI package hijacked to steal Azure and CI credentials

3 min read
Source: BleepingComputer
Microsoft Agent Framework PyPI package hijacked to steal Azure and CI credentials
Photo: BleepingComputer
TL;DR

Attackers compromised Microsoft's official agent-framework Python package on PyPI, publishing malicious versions 1.26.1 and 1.26.2 on November 17, 2026. The malware steals cloud and CI credentials via automatic execution on Python startup. Security firms detected the breach, and PyPI quarantined the releases within minutes. Developers are advised to isolate affected environments and rotate exposed secrets immediately.

Key points

  • Malicious versions 1.26.1 and 1.26.2 of Microsoft's agent-framework were published to PyPI on November 17, 2026, containing credential-stealing malware.
  • The malware executes automatically on Python startup via .pth files, even if the package is not imported, targeting Azure, GitHub, and other cloud credentials.
  • PyPI quarantined the first malicious release within minutes, but the attacker published a second version shortly after, indicating continued access to publishing credentials.
  • Security firms including Socket, Step Security, and Ox Security identified the attack, while Wiz.io analyzed exfiltrated data and root cause.
  • Developers are advised to isolate affected environments, pin to the safe version 1.26.0, and rotate all potentially exposed credentials immediately.

Background

This incident follows a similar compromise of Microsoft's durabletask package earlier in 2026, highlighting ongoing risks to Microsoft's open-source supply chain. The agent-framework package, with approximately 200,000 monthly downloads, is widely used for building AI agents, making it a high-value target for attackers seeking cloud and CI credentials.

How outlets are covering it

BleepingComputer and The Register emphasize the rapid response by PyPI and Microsoft, noting the quarantine of malicious releases within minutes. Ox Security and Wiz.io provide detailed technical analysis, highlighting the malware's ability to execute on Python startup and its focus on Azure and CI pipeline credentials. Wiz.io further notes that the attacker used a compromised client certificate for Microsoft's Engineering System Release Pipeline, while The Register suggests potential compromise of GitHub organization admin credentials. All sources agree on the need for immediate credential rotation and environment isolation.

Why it matters

This incident underscores the critical risks of supply chain attacks on widely used open-source packages, particularly those integrated into AI and cloud development workflows. The automatic execution of malware on Python startup and the targeting of cloud credentials pose significant risks to developers and organizations relying on Microsoft's agent-framework. The incident highlights the need for robust security measures, including hash checking, credential rotation, and monitoring for suspicious activity in development environments.

What to watch

Microsoft is expected to investigate the breach and implement further security measures to prevent similar incidents. Developers are advised to monitor their environments for signs of compromise, rotate exposed credentials, and pin to the safe version 1.26.0. Security firms will continue to analyze the incident and provide guidance on mitigating similar risks in the future.

Share this article

Want the full story? Read the original reporting

Read on BleepingComputer