4 Sources
[1]
Microsoft's official Python agent framework hijacked to distribute malware
In today's how-could-things-get-worse-for-Microsoft news, it seems someone's GitHub org admin creds have been compromised Microsoft's official agent framework package hosted on PyPI has been hijacked and now installs info-stealing malware, multiple security research firms have discovered. CEO
[2]
Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
Threat actors have compromised Microsoft's agent-framework package to push a credential stealer, according to reports from Aikido, Endor Labs, OX Security, SafeDep, Socket, StepSecurity, and Google-owned Wiz. The malicious versions, 1.26.1 and 1.26.2, were published 33 minutes apart on November
[3]
Attackers hijack Microsoft's agent-framework package to steal Azure and CI credentials
Two malicious versions of Microsoft's AI agent SDK on PyPI collected secrets and requested fresh cloud tokens from build pipelines before they were taken down. endif; ?> Attackers briefly hijacked Microsoft's official Agent Framework package on PyPI and used it to distribute credential-stealing
[4]
Microsoft's Agent Framework PyPI package compromised to steal credentials
Hackers compromised Microsoft's official Agent Framework Python package on PyPI, publishing two malicious versions designed to steal cloud credentials and other sensitive information from developers' systems. Microsoft Agent Framework is Microsoft's open-source toolkit for building AI agents and
Share
Copy Link
Attackers published two malicious versions of Microsoft's official agent-framework package on the PyPI repository on November 17, 2026, turning a package trusted by AI developers into a credential stealer
3
. Because it sat under Microsoft's own name, anyone or any build system that installed it during the window it was live could have been exposed3
.
Source: Hacker News
Agent Framework is Microsoft's open-source toolkit for developing and orchestrating AI agents in Python
2
. It draws roughly 190,000 to 200,000 downloads a month, per varying counts from the security firms2
. That download volume means the pool of potential victims is large, though the firms documenting the attack have not confirmed any actual infections2
. The two versions were live for roughly 45 minutes in total before PyPI took them down, per Aikido Security's timestamps3
.The malware was built to run whether or not a developer ever used the package. It hooked Python's startup process, so it executed every time Python started in an affected environment
3
. It also installed the genuine previous version of the package's code, so applications kept working normally and gave victims no obvious signal that anything was wrong4
.Once running, it harvested environment variables whose names matched words like token, secret, password, key, AWS, GitHub and OpenAI
2
. It read up to 60 credential files, from Azure CLI and Git configs to npm, pip and Hugging Face tokens, per OX Security3
. It also pulled secrets from up to 300 running processes, per OX Security3
. Then it went further and asked the cloud platforms to mint new tokens1
. It requested Azure DevOps federated identity tokens and Azure managed-identity tokens for services including Key Vault and Microsoft Graph, plus, in the second version, GitHub Actions tokens1
. "Besides reading credentials already on disk, the code asks the platform to issue new ones. Rotating stored secrets does not cover those," per SafeDep2
.
Source: InfoWorld
Everything went to a single hard-coded webhook.site endpoint, disguised as a diagnostics module, which gives defenders a concrete string to search their logs for
4
. Endor Labs assessed that the payload was written mainly for automated build systems rather than developer laptops: "Developer laptops are in scope, but the payload is written for CI runners and Azure workloads"3
.PyPI quarantined the first malicious version, and the attacker uploaded the second about two and a half minutes later with the payload hidden along a different file path
4
. Publishing access had survived the quarantine4
. OX Security called it "a planned, live and coordinated effort to reach as many victims as they can, while still being able to bypass blocks and restrictions"3
. At least seven security firms independently documented the compromise, including OX Security, Aikido, Endor Labs, SafeDep, Socket, StepSecurity and Google-owned Wiz2
.It is the second Microsoft-related PyPI package compromised this year, after three trojanized versions of the durabletask package appeared in May, though no researcher has linked the two attacks
2
.Related Stories
The malware was not persistent: it ran only while the malicious version remained installed. Researchers at OpenSourceMalware noted that immediate exfiltration makes even short-lived tokens useful to an attacker
1
. And deleting the package recovers nothing. "Removing the package stops future runs, but it doesn't undo anything that was already sent," per Aikido Security3
.The firms' guidance reflects that: isolate affected hosts, pin to the verified 1.26.0 release with hash checking, and block the webhook.site endpoint
4
. They also advise rotating Azure, GitHub, npm, PyPI and other credentials, then auditing Azure sign-in logs along with GitHub Actions workflows4
. Endor Labs warned that container images, continuous integration caches and lockfiles built during the window could still contain the malicious version, so cleaned-up repositories do not mean cleaned-up machines3
.OX Security believes attackers hijacked the wheel-file build process
3
; The Register reports it appears to involve a compromised administrator account on Microsoft's GitHub organization1
. Neither theory is confirmed; without knowing the entry point, Microsoft and its users cannot be sure the attack path is closed1
. Microsoft did not respond to press inquiries before publication4
. The agent-framework GitHub repository was offline as of The Register's writing, which suggests Microsoft was actively responding1
.
Source: BleepingComputer
Summarized by
Navi
[2]
[4]
24 Mar 2026•Technology

06 Jun 2026•Technology

21 Oct 2026•Technology
