---
title: "[AUTO] Microsoft's Agent Framework Package Hijacked for Credential Theft"
pubDatetime: 2026-11-19T10:34:00.000Z
description: "Microsoft's official agent-framework package compromised to steal Azure and GitHub credentials"
tags: [ai-security, vulnerability, supply-chain, credentials, microsoft, 2026, 2026-q4, 2026-11, AUTO]
---
Two malicious versions (1.26.1 and 1.26.2) of Microsoft's agent-framework Python package hit PyPI on November 17 with [credential-stealing code embedded in .pth files](https://www.endorlabs.com/learn/agent-framework-compromised-software-supply-chain-attack) that executed automatically on Python startup, harvesting Azure managed identity tokens, GitHub Actions OIDC tokens, environment variables, and configuration files.

What makes this worse than a typical supply-chain attack is that [Endor Labs detected the first version within three minutes of release; PyPI removed it within 38 minutes; and the attacker published a second malicious version two minutes later while retaining publishing access](https://www.endorlabs.com/learn/agent-framework-compromised-software-supply-chain-attack). That either means weak account security on the Microsoft package or an ongoing breach window.

The .pth file mechanism is the core problem: it runs on Python startup regardless of whether anyone imports agent-framework, turning the package into a weapon targeting entire Python environments. With [roughly 190,000 monthly downloads](https://www.theregister.com/security/2026/11/18/microsofts_official_python_agent_framework_hijacked_to_distribute_malware/5310858), speed of detection meant little when the attacker could simply republish.

---

*Sources: [Endor Labs](https://www.endorlabs.com/learn/agent-framework-compromised-software-supply-chain-attack)  •  [OX Security](https://www.ox.security/blog/breaking-hijacked-releases-of-microsofts-official-agent-framework-steals-azure-and-ci-credentials/)*

*Coverage: [The Register](https://www.theregister.com/security/2026/11/18/microsofts_official_python_agent_framework_hijacked_to_distribute_malware/5310858)*

*Related on this blog: [[AUTO] Open-Source AI as a Supply-Chain Attack Tool](/posts/auto-open-source-ai-supply-chain)  •  [[AUTO] Microsoft's Agent Framework Compromised via Signing Keys](/posts/auto-agent-framework-signing-attack)  •  [[AUTO] MemTensor Worm Exploits GitHub Actions Token Interception](/posts/auto-memtensor-sckit-worm)*