Hackers poisoned Microsoft’s package and hunted developer secrets
Two malicious versions of Microsoft Agent Framework appeared on PyPI. They launched a stealer whenever Python started and collected developers’ access keys.
AI news faster than on the site — on Telegram KARMAZIN MEDIA

On November 17, malicious versions of Microsoft Agent Framework, 1.26.1 and 1.26.2, were uploaded to PyPI. The first appeared at 20:35 UTC and the second at 21:08. The package gets about 41,000 downloads a week. By 21:30, both versions had been removed from PyPI, leaving 1.26.0 as the safe release.
The malicious code installed a file with the .pth extension. Python runs these files whenever the interpreter starts, so the stealer did not even need Microsoft Agent Framework to be imported. It collected cloud credentials, environment variables and secrets from local configuration files, including access to Azure, AWS, GitHub, Docker, Hugging Face and OpenAI.
Developers who installed either version must isolate the environment, rebuild it with 1.26.0 and immediately rotate every credential the stealer could have reached.
Tools
AI agents
Tools