Microsoft AI agent package hijacked to steal cloud credentials

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

Two poisoned versions of agent-framework went up on the Python Package Index 33 minutes apart on 17 November.

Both have since been quarantined, and it is unclear how the attacker got publishing access.

The package is the meta-package for Microsoft Agent Framework, an open source framework for building AI agents in Python, and it gets about 190,000 downloads a month. Each bad version drops a file that Python runs on every start, so the stealer fires on any Python launch, whether or not anything uses the package. That includes pip, which means the command you would use to remove it runs it too.

It gathers cloud identity tokens, environment data and saved logins for Azure, Docker, git and more, then sends them to a webhook address.

It also asks Azure to issue fresh tokens. For anyone exposed between 8:35 and about 9:20pm UTC, changing stored secrets does not cover those.

Discuss on TelegramAll stories

Based on reporting by The Hacker News.