# Hackers compromised Microsoft Agent Framework Python package on PyPI

Digest AI · Agents & Tools · published 2026-11-19T02:50:01Z

Canonical: https://digestai.news/story/hackers-compromised-microsoft-agent-framework-python-package-on-pypi

## Summary

Hackers compromised Microsoft's official Agent Framework Python package on PyPI, publishing two malicious versions (1.26.1 and 1.26.2) on November 17, 2026. The toolkit, which has roughly 200,000 monthly downloads, is used for building AI agents. The malicious releases contained a credential stealer that executed automatically during Python startup, even if the package was not imported. Security firms Socket, Step Security, and Ox Security documented the attack, noting that the malware targeted secrets from environment variables and configuration files for Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI. It also attempted to steal Azure managed identity and DevOps OIDC tokens.

PyPI quarantined the first malicious release, but the attacker published a second version approximately 2.5 minutes later, indicating they retained publishing access. Both versions exfiltrated data to a specific attacker-controlled webhook endpoint. It remains unclear how the attacker gained access to Microsoft's official PyPI project. Microsoft has not responded to inquiries about the breach point. Developers who installed these versions are advised to isolate affected environments, avoid running Python or pip until secured, and rotate any potentially exposed credentials immediately.

## Key points

- Hackers published malicious versions 1.26.1 and 1.26.2 of Microsoft's Agent Framework on PyPI on November 17, 2026.
- The malware stole cloud credentials for Azure, AWS, GitHub, and OpenAI, exfiltrating data to an attacker-controlled endpoint.
- PyPI quarantined the releases, but the attacker published a second version minutes later, retaining access to the project.

## Why it matters

This supply chain attack compromises the security of a popular AI development toolkit, exposing developers' cloud credentials and potentially disrupting AI agent workflows. It highlights the risks of third-party package dependencies in AI infrastructure.

## Sources

1. [Hackers compromised Microsoft's Agent Framework Python package on PyPI, publishing two versions designed to steal cloud credentials and other information](https://bleepingcomputer.com/news/security/microsofts-agent-framework-pypi-package-compromised-to-steal-credentials) (bleepingcomputer.com, 2026-11-19)
2. [Microsoft's official Python agent framework hijacked to distribute malware](https://theregister.com/security/2026/11/18/microsofts-official-python-agent-framework-hijacked-to-distribute-malware/5310858) (theregister.com, 2026-11-18)

## Cite

Digest AI, "Hackers compromised Microsoft Agent Framework Python package on PyPI", 19 November 2026, https://digestai.news/story/hackers-compromised-microsoft-agent-framework-python-package-on-pypi

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/hackers-compromised-microsoft-agent-framework-python-package-on-pypi.json
