Malicious Releases of Microsoft's Agent Framework Poisoned With Credential Stealer
Seven Lights

Hackers published two malicious versions of Microsoft’s Agent Framework Python package on the Python Package Repository on November 17, in a supply-chain attack that could have exposed cloud and continuous-integration credentials belonging to everyone who installed them.
The affected package, agent-framework, is Microsoft’s supported library for building artificial-intelligence agents and multi-agent applications, and draws roughly 190,000 downloads a month. The malicious releases, versions 1.26.1 and 1.26.2, appeared about 33 minutes apart. Both were later quarantined on PyPI, where version 1.26.0 remains the latest clean release.
A maintainer for the framework confirmed in a GitHub discussion that the compromised releases had been removed and that an investigation was underway. Microsoft acknowledged the incident.
The malicious distributions kept the legitimate framework components intact, so applications continued to work normally. Hidden alongside them, however, was code that exploited a Python startup mechanism to execute automatically in any affected environment — running whenever the interpreter started, even if the application never imported the compromised package.
Researchers at OX Security, Wiz, Endor Labs and SafeDep, who analysed the malware independently, reported that it harvested secrets stored in environment variables and configuration files, along with credentials belonging to other running processes. It also attempted to obtain Azure managed identity tokens and Azure DevOps authentication tokens, either of which can grant access to cloud resources without a password. The second malicious release extended the theft to GitHub Actions, the continuous-integration service used by countless software teams.
SecurityWeek noted that the method used to publish the malicious packages had not been disclosed; attackers typically obtain such access by stealing a maintainer’s publishing credentials or by inserting a collaborator account.
Security firms advised organisations to audit any environment that installed either version since Tuesday, rotate Azure, Azure DevOps and GitHub credentials, and treat 1.26.0 as the last trustworthy release. Researchers said the incident was the latest in a string of attacks on open-source package repositories, where a single poisoned release can reach hundreds of thousands of machines within days.
Microsoft’s investigation continues. No count of affected installations has been published.