Microsoft AI agent toolkit hijacked to spread malware stealing developer secrets

Picture for this story, with the CyberUnscripted cat hidden in it
Staged picture. The blue one is ours.

Versions 1.26.1 and 1.26.2 of Microsoft's official Python agent framework on PyPI install malware that steals credentials, security researchers found.

The package builds AI agents and gets nearly 200,000 downloads a month.

No import is needed. Starting Python with it installed is enough. It pulls in the genuine 1.26.0 to look legitimate, steals Azure, Git, Docker, Hugging Face and other secrets, and requests fresh GitHub Actions and Azure identity tokens.

An admin account on Microsoft's GitHub organisation appears to have been accessed without permission. OX Security says 1.26.1 was reverted, then 1.26.2 arrived through Microsoft's own PyPI publisher account. The shelf got cleaned. Did anyone change the locks?

The malware runs only while the bad version is installed. Removal stops theft, but in cloud build systems even short lived tokens were usable as soon as they were sent.

Discuss on TelegramAll stories

Based on reporting by The Register.