Security Operations, SOC, Malware, Threat Intelligence, Identity

Microsoft agent-framework package compromised to steal credentials

Microsoft Azure company logo on a website with blurry stock market developments in the background, seen on a computer screen through a magnifying glass.

Threat actors recently compromised the official Microsoft agent-framework package on the Python Package Index to distribute a credential-stealing payload, with further coverage provided by The Hacker News.

The attack involved two malicious versions, 1.26.1 and 1.26.2, published on Nov. 17, 2026. These versions utilized a .pth file to execute malicious code automatically whenever the Python interpreter started, even if the package was not explicitly imported. The malware was designed to harvest environment variables, cloud identity tokens, and various configuration files, including those for Azure CLI, Docker and GitHub Actions. Stolen data was compressed and exfiltrated to a remote server. Security researchers noted that the payload could request new tokens from Azure managed-identity endpoints, meaning that rotating existing secrets may not be sufficient to mitigate the risk. With the package seeing approximately 190,000 downloads monthly, the incident highlights significant risks to the artificial intelligence developer ecosystem and continuous integration pipelines. Users are advised to isolate affected systems, audit Azure and GitHub identity logs, and rotate all potentially exposed credentials from a clean environment. This event marks the second time this year that a Microsoft-related package on the Python Package Index has been targeted by threat actors.

Source: The Hacker News

Get daily email updates

SC Media's daily must-read of the most current and pressing daily news

By clicking the Subscribe button below, you agree to SC Media Terms of Use and Privacy Policy.

You can skip this ad in 5 seconds