Microsoft's official PyPI package Agent Framework hijacked with credential-stealing malware

Microsoft's official Agent Framework package on PyPI was hijacked by hackers who planted malware that steals login credentials and cloud platform tokens, TechRadar reported on November 19; fortunately, the malware-laced version was removed after only 31 minutes. Microsoft Agent Framework for Python is an open-source toolkit with nearly 200,000 monthly downloads that helps developers build AI agents capable of calling tools, following instructions, interacting with other agents, and carrying out more complex tasks. On November 17, hackers hijacked Agent Framework and published version 1.26.1, whose malware auto-executes when Python starts, even in environments where the Agent Framework package is never imported. The package is designed to steal credentials for Azure, AWS, GitHub, Docker, and Hugging Face.
ITHome, Nov 19 - Per tech media TechRadar today, Agent Framework, an official Microsoft package on PyPI, was hijacked by hackers who planted malware that steals login credentials and cloud platform tokens. Fortunately, the malware-laced version was removed within just 31 minutes.
ITHome learned that Microsoft Agent Framework for Python is an open-source toolkit with nearly 200,000 monthly downloads that helps developers build AI agents able to call tools, follow instructions, interact with other agents, and carry out more complex tasks.
On Nov 17, hackers hijacked Agent Framework and published version 1.26.1, whose malware executes automatically when Python starts - even in environments where the Agent Framework package is never imported.
The package is designed to steal login credentials for services including Azure, AWS, GitHub, Docker, Hugging Face, and OpenAI, and to collect information from local configuration files and other processes.
PyPI spotted the intrusion within 31 minutes and quarantined the malicious version. But two minutes later, a second attack (1.26.2) followed. The new release added GitHub Actions OIDC token request functionality and could automatically search GitHub Runner directories; it was removed 8 minutes after publication.
It remains unclear whether the attack exposed any developer information. If you downloaded 1.26.1 or 1.26.2, delete it immediately, carefully check your system for suspicious files, revoke existing credentials, and check services such as Azure or AWS for unauthorized access.