The Hacker News
Attackers compromise Microsoft Agent Framework PyPI package
Part of the Microsoft Agent Framework story · since 17 Nov
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package. This article, 3rd of 5.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
Threat actors compromised the Microsoft agent-framework PyPI package to deploy a credential stealer, according to multiple researchers and security teams. Malicious releases 1.26.1 and 1.26.2 appeared 33 minutes apart on 17 November 2026 and were quarantined on PyPI as investigators work to determine how publishing access was obtained. The campaign targets Python environments that install agent-framework, a meta-package for Microsoft Agent Framework used to orchestrate AI agents.
The payload relies on Python startup hooks installed via the compromised wheel packages. In version 1.26.1, a .pth file named agent_framework_meta.pth is dropped in site-packages and executed on interpreter start, silently loading a credential stealer. Version 1.26.2 uses a .pth file named af_runtime_diag.pth and, in addition, imports a new top‑level module af_runtime_diag.py.
The stealer captures environment variables, credential files (including Azure CLI, .npmrc, pip.conf, .netrc, .git-credentials, .docker/config.json, and various cloud-related tokens), Azure DevOps tokens, GitHub Actions OIDC tokens, and Azure instance metadata, then exfiltrates the data as a JSON document, compressed and base64-encoded, to a hard-coded webhook endpoint. Both versions claim to steal cloud credentials and tokens, with 1.26.2 expanding search patterns for credential-related environment variables.
Recommendations reported by researchers include isolating affected hosts, pinning agent-framework to a safe version (1.26.0) and cleaning environments, reviewing access logs for the time window, inspecting proxy and DNS logs for requests to the webhook endpoint, rotating exposed credentials, and auditing Azure identities and GitHub Actions workflows.
The incident underscores the risk to AI development pipelines and the broader CI ecosystem, with researchers from Endor Labs, SafeDep, Socket, OX Security and others attributing the attack to the hijacking of Microsoft’s official package. Microsoft’s agent-framework PyPI package remains the second Microsoft project compromised this year.
How the story developed
5 articles from 5 outlets since 17 Nov. Still developing; the latest report was 6 hours ago. This was the 3rd report, 9 hours after the first.
- Tue 17 Nov, 22:39 UTC. cybersixt, first report. Microsoft Agent Framework on PyPI compromised to steal secrets.
- Wed 18 Nov, 03:00 UTC. StepSecurity, its first report on the story. Microsoft Agent Framework PyPI Releases Steal Credentials.
- Wed 18 Nov, 07:30 UTC. The Hacker News, its first report on the story. Attackers compromise Microsoft Agent Framework PyPI package. This article, 3rd of 5.
- Wed 18 Nov, 11:30 UTC. SecurityWeek, its first report on the story. Malicious Microsoft Agent Framework Releases Steal Credentials.
- Wed 18 Nov, 13:01 UTC. SecurityOnline, its first report on the story. Attackers Compromise Microsoft Agent Framework PyPI Packages.
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 5 articles as a listHide the list
- Tue 17 NovDay 01
- Microsoft Agent Framework on PyPI compromised to steal secrets22:39 · cybersixt · First report
- Wed 18 NovDay 14
- Microsoft Agent Framework PyPI Releases Steal Credentials03:00 · StepSecurity
- Attackers compromise Microsoft Agent Framework PyPI package07:30 · The Hacker News · This article, 3rd of 5
- Malicious Microsoft Agent Framework Releases Steal Credentials11:30 · SecurityWeek
- Attackers Compromise Microsoft Agent Framework PyPI Packages13:01 · SecurityOnline