Back to Feed
Supply ChainNov 18, 2026

Microsoft’s Agent Framework PyPI Package Hacked to Steal Azure and GitHub Credentials

Malicious versions of Microsoft's agent-framework PyPI package stole Azure and GitHub credentials.

Hackers published two malicious versions of Microsoft's agent-framework package on PyPI, versions 1.26.1 and 1.26.2, containing a credential stealer. The malware targeted Azure identities, GitHub credentials, and secrets used in automated builds by placing a .pth file in the site-packages directory, which Python processes during startup. Both malicious versions sent compressed, encoded data to a specific webhook[.]site address.

AI summary of the linked source. Not reviewed by an editor. How this works

Vendor Watch

Run Microsoft?

Get an email when a new story names Microsoft, usually within the hour.

Free. Your list stays private and never appears in a subject line. One click stops it. How Vendor Watch worksPrivacy

The lesson from this incident

Full lesson

Attackers hijacked or impersonated Microsoft's agent-framework PyPI package by publishing two trojanized versions (1.26.1 and 1.26.2) containing a credential stealer that executed automatically at Python startup via a .pth file. This technique is particularly dangerous because .pth files are processed before user code runs, making the malicious payload nearly invisible to developers who trust the package ecosystem. The malware silently exfiltrated Azure identities, GitHub tokens, and CI/CD secrets to an attacker-controlled webhook, meaning any automated build pipeline that pulled these versions could have handed over credentials without any user interaction. This incident illustrates how dependency on public package registries without integrity verification creates a silent, high-impact attack vector that bypasses most traditional security controls.

What helps against this

How we list vendors

Entities

agent-framework (product)Microsoft (vendor)PyPI (technology)Azure (technology)GitHub (technology)