Malicious Microsoft Agent Framework Releases Put Developer and Cloud Credentials at Risk
November 18, 2026
Two malicious versions of Microsoft’s Agent Framework Python package, 1.26.1 and 1.26.2, were uploaded to PyPI on November 17, potentially putting credentials at risk for anyone who installed them; PyPI quarantined both, and 1.26.0 is the latest clean release.
The package is used to build and deploy AI agents and receives about 192,534 downloads per month, widening the potential exposure across developer environments and cloud build systems.
The compromised releases retained legitimate framework components, so applications could appear to work normally while malicious code ran automatically when Python started—even if the package was not explicitly imported.
The first release used agent_framework_meta.pth to run code during Python startup; 1.26.2 moved the payload to af_runtime_diag.pth and af_runtime_diag.py.
The malware searched environment variables, configuration files, accessible processes and host details for secrets, targeting credentials for Azure, AWS, GitHub, Docker, Hugging Face, OpenAI and other services, as well as Azure managed identity and DevOps OIDC tokens.
Version 1.26.2 also attempted to obtain GitHub Actions OIDC tokens and searched GitHub runner directories.
The collected data was compressed with zlib, encoded in base64 and sent as JSON to an attacker-controlled webhook.site address.
The releases appeared within 33 minutes, and 1.26.2 was published about two and a half minutes after 1.26.1 was quarantined; researchers said the timing suggested publishing access may not have been revoked immediately, though its current status was unknown.
Microsoft confirmed the releases had been removed and said an investigation was underway; researchers from OX Security, Wiz, Endor Labs and SafeDep independently analyzed the malware.
How the attacker published the packages remains unknown; the malicious releases contained only built distributions, and Wiz found no corresponding releases or malicious code in Microsoft’s main source repository.
SafeDep identified a PyPI maintainer account named vibiret, created on the attack date with publishing permissions for the affected package and five related projects, but its involvement has not been confirmed.
Microsoft said it had made some repositories private while investigating malicious content; its Agent Framework GitHub repository was offline, but the relationship between that status and the incident was unclear.
Summary based on 5 sources
Get a daily email with more Tech stories
Sources

theregister • Nov 18, 2026
Microsoft's official Python agent framework hijacked to distribute malware
BleepingComputer • Nov 18, 2026
Microsoft’s Agent Framework PyPI package compromised to steal credentials
SecurityWeek • Nov 18, 2026
Microsoft Agent Framework Releases Poisoned With Credential Stealer
OX Security • Nov 17, 2026
BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials