Microsoft Agent Framework Hit by PyPI Supply Chain Attack

Original title: 微软官方 PyPI 包 Agent Framework 遭劫持,攻击者植入窃取登录凭据的恶意软件
78AI Score

Microsoft's official PyPI package Agent Framework was hijacked on November 17, with attackers publishing malicious versions 1.26.1 and 1.26.2 that stole credentials and cloud tokens for Azure, AWS, GitHub and OpenAI, executing automatically on Python startup. PyPI quarantined the first version within 31 minutes and removed the second after 8 minutes, though it remains unclear whether any developer data was compromised.

Full Report

IT之家 November 19 news: According to a report from tech media TechRadar today, Microsoft's official Agent Framework package published on PyPI was hijacked by hackers, who implanted malware designed to steal login credentials and cloud platform tokens. Fortunately, the version implanted with malware existed for only 31 minutes before being removed.

Python

IT之家 has learned that Microsoft Agent Framework Python is an open-source toolkit with nearly 200,000 monthly downloads, helping developers build AI agents that can call tools, follow instructions, interact with other agents, and perform more complex tasks.

On November 17, hackers hijacked Agent Framework and released version 1.26.1, in which the malware automatically executes when Python starts, even if the runtime environment does not import the Agent Framework package.

At the same time, the package is designed to steal login credentials for services such as Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI, and to obtain local configuration files and information from other processes.

PyPI detected the intrusion in just 31 minutes and quarantined the malicious version. But two minutes later, a second attack (1.26.2) followed. The new package added a GitHub Actions OIDC token request capability and could also automatically search the GitHub Runner directory, but it was removed 8 minutes after release.

At present, it is still unclear whether this attack resulted in the leakage of developer information. If you have ever downloaded 1.26.1 or 1.26.2, please delete them immediately, carefully check your system for suspicious files, revoke existing login credentials, and check services such as Azure or AWS for unauthorized access.