Microsoft Security Breach Exposes Developer Credentials and Cloud Authentication Tokens

Table of Content

Malicious versions 1.26.1 and 1.26.2 of Microsoft’s Python Agent Framework reportedly steal developer credentials, cloud authentication tokens and sensitive system information.

Microsoft’s official Python Agent Framework has been compromised, with attackers distributing information-stealing malware through malicious software updates uploaded to the Python Package Index (PyPI), potentially exposing developers’ passwords, access keys and cloud authentication tokens.

Security researchers discovered that attackers had compromised Microsoft’s publishing credentials and used the official PyPI publisher account to distribute malicious versions of the package. The affected releases are versions 1.26.1 and 1.26.2.

According to cybersecurity firm OX Security, the attackers initially uploaded version 1.26.1. Although the package was subsequently reverted to a safe version, another malicious release, version 1.26.2, was later published through Microsoft’s official publisher account. The development raised concerns that the compromised publishing credentials had not been secured following the initial incident.

The Microsoft Agent Framework enables developers to build and deploy artificial intelligence agents. The package receives nearly 200,000 downloads every month, potentially increasing the number of developers and systems exposed to the malicious releases.

Malware Targets Developer Credentials and Sensitive Information

Researchers found that the malicious versions collect sensitive information from infected systems, including environment variables, credential files and authentication details associated with Azure, Git, Docker, Hugging Face and other developer services.

The malware can activate without developers importing the compromised package into their projects. Simply installing the malicious package and starting a Python interpreter is sufficient to trigger its harmful code.

To maintain the framework’s normal functionality, the infected package also downloads the legitimate version 1.26.0. Meanwhile, the malware gathers sensitive information, encrypts it into a Base64-encoded JSON file and transmits the collected data to an external server through a hardcoded webhook.

Attack Also Targets Cloud Authentication Tokens

The campaign goes beyond collecting credentials already stored on developers’ computers. Researchers found that the malware also attempts to obtain fresh authentication tokens from GitHub Actions, Azure DevOps and Microsoft Azure.

These tokens are subsequently transmitted to the attackers’ server, potentially giving them access to cloud-based development services and infrastructure.

Researchers at OpenSourceMalware warned that combining the theft of existing credentials with attempts to obtain new authentication tokens significantly increases the potential risks. Even short-lived tokens could be exploited if attackers obtain and use them quickly.

The malware does not appear to establish permanent access to infected systems. Instead, it remains active while the compromised package is present in Python’s site-packages directory.

Microsoft Takes GitHub Repositories Offline

Following the discovery, Microsoft’s official Agent Framework GitHub repository became unavailable. The company’s ONNX Runtime repository, which supports AI acceleration, also went offline. However, researchers have not established a connection between the ONNX Runtime repository and the malware campaign.

A Microsoft spokesperson told The Register that the company had made some repositories private while investigating malicious content.

Microsoft said protecting customers and the wider software ecosystem was its priority and confirmed that it was reviewing the incident and would take further action if necessary.

Developers who installed versions 1.26.1 or 1.26.2 should treat their systems and credentials as potentially compromised. Recommended precautions include removing the affected package, investigating possible credential theft and rotating exposed passwords, access keys and authentication tokens.

About The Author

Latest News

Click Pakistan is a professional news-based digital platform led by Editor-in-Chief Syed Tanzil Gillani, delivering credible, timely, and fact-based journalism on national affairs and current events.

© 2026 All Right Reserved. Designed and Developed by Alphabetic Solutions