International Edition
Latest News
Technology

Microsoft Agent Framework PyPI Package Compromised to Steal Cloud Credentials

Two malicious versions of Microsoft’s Agent Framework Python package were published to PyPI on Nov. 17, 2026, exposing cloud credentials for developers and CI/CD pipelines that installed them. The releases, versions 1.26.1 and 1.26.2, arrived 33 minutes apart…

Two malicious versions of Microsoft’s Agent Framework Python package were published to PyPI on Nov. 17, 2026, exposing cloud credentials for developers and CI/CD pipelines that installed them.

The releases, versions 1.26.1 and 1.26.2, arrived 33 minutes apart and both contained credential stealers that executed automatically whenever the Python interpreter started — even if the package was never imported, BleepingComputer reported. The malware harvested secrets from environment variables, local configuration files, and running processes, targeting Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI credentials.

Both versions retained the legitimate agent-framework-core 1.26.0 dependency, allowing the framework to function normally while the malicious code ran in the background, according to analyses by Socket, StepSecurity, and Ox Security cited by BleepingComputer. Stolen data was exfiltrated to the same attacker-controlled webhook.site endpoint.

Attack chain used Python startup hooks

The first malicious release used agent_framework_meta.pth to launch a stealer in agent_framework_meta/_telemetry.py during Python startup, BleepingComputer reported. In the second release, the original package initializer was reinstated and the malicious code was relocated to af_runtime_diag.pth and af_runtime_diag.py.

“Each wheel adds a .pth file to site-packages,” Endor Labs said.

Supply chain attack
Photo: securityweek.com

Version 1.26.2 expanded the attack to GitHub Actions, adding OIDC token requests and scanning GitHub runner directories, BleepingComputer reported. The Hacker News, citing SafeDep, noted the malware also requested Azure managed identity tokens and Azure DevOps OIDC tokens, potentially granting access to additional cloud resources beyond stored secrets.

“Besides reading credentials already on disk, the code asks the platform to issue new ones,” SafeDep said. “Rotating stored secrets does not cover those.”

PyPI quarantined both releases; publishing access persisted

PyPI quarantined version 1.26.1, but the attacker published version 1.26.2 roughly 2.5 minutes later, BleepingComputer reported. The second version was isolated about eight minutes afterward, indicating the attacker retained publishing access after the initial quarantine.

It remains unclear how the attacker gained access to Microsoft’s official PyPI project, BleepingComputer reported. Microsoft has not responded to requests for comment on the breach vector.

SecurityWeek reported that a PyPI maintainer account named vibiret, created on the day of the attack, held publishing permissions for the affected package and five related projects, though its involvement in the malicious uploads has not been confirmed. Wiz discovered no matching releases or malicious code in Microsoft’s primary source repository, suggesting the packages may have been uploaded outside the normal release process.

Microsoft acknowledges incident; GitHub repositories inaccessible

A Microsoft Agent Framework maintainer confirmed in a GitHub discussion that the compromised releases were removed from PyPI and an investigation was underway, SecurityWeek reported. As of Nov. 18, Microsoft’s Agent Framework repository on GitHub was inaccessible, along with several other Microsoft repositories including ONNX Runtime projects, though it is unclear whether the incidents are related, SecurityWeek reported.

Microsoft Agent Framework PyPI Package Compromised to Steal Cloud Credentials
Photo: thehackernews.com

Remediation steps for affected users

Developers who installed either malicious version should isolate affected environments and avoid running Python or pip until secured, BleepingComputer reported. The safe version to use is 1.26.0.

Organizations should rebuild from a known-clean environment, rotate all potentially exposed credentials, and search egress logs for requests to the webhook.site endpoint to distinguish blocked requests from successful exfiltration, BleepingComputer reported. SecurityWeek advised checking developer environments, CI/CD pipelines, and container images for the compromised versions.

FAQ

What versions of the Microsoft Agent Framework package are compromised?
Versions 1.26.1 and 1.26.2, published on Nov. 17, 2026, contain the credential-stealing malware. Version 1.26.0 is the latest clean release.

How does the malware execute if I don’t import the package?
The malicious .pth files placed in the site-packages directory are executed automatically by the Python interpreter on every startup, regardless of whether the package is imported.

What credentials are at risk?
The stealer targets Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI credentials stored in environment variables and configuration files, according to Hwupgrade. It also actively requests Azure managed identity tokens and Azure DevOps OIDC tokens, and in version 1.26.2, GitHub Actions OIDC tokens.

Has Microsoft explained how the attacker gained publishing access?
No. As of Nov. 18, Microsoft had not responded to inquiries about the breach vector, BleepingComputer reported. The method used to publish the malicious packages remains unknown.

PyPI, the official third-party software repository for Python, is run by the Python Software Foundation and has operated under the python.org domain since its launch in November 2002. On 16 April 2018, all PyPI traffic migrated to a modern platform called Warehouse, preserving existing package histories. As of March 2025, it hosted more than 614,339 packages and serves as the default source for package managers such as pip.

What should I do if I installed a compromised version?
Isolate the affected environment, stop running Python or pip, rebuild from a clean environment using version 1.26.0, rotate all credentials accessible from the compromised system, and check logs for connections to the attacker’s webhook.site endpoint.

About the author: Technology Desk

Technology Desk at Archynewsy.