Two malicious releases of Microsoft’s Agent Framework Python package were uploaded to the Python Package Index (PyPI), adding code that steals credentials from developer environments and build systems. Security researchers said versions 1.26.1 and 1.26.2 contained the payload and were removed from PyPI after the activity was reported.

According to Wiz, version 1.26.1 appeared on November 17, followed by version 1.26.2 less than an hour later. The malicious packages installed a Python .pth file in the environment’s site-packages directory. Python processes execute these files during startup, allowing the added code to run even when a developer does not directly import the Agent Framework package.

The payload searched for environment variables, credential files and cloud access tokens, including information that could expose Azure accounts and continuous-integration pipelines. The Microsoft project maintainers said the malicious releases did not correspond to a release or tag in the official source repository. The precise cause of the unauthorized uploads has not been confirmed, although the evidence points to a package publication outside the normal release process.

The clean release identified by the researchers is version 1.26.0. The malicious versions may still be present in local package caches, CI caches or internal mirrors even though they are no longer available from PyPI. The maintainers’ issue tracker also notes that the upload credential’s status had not been confirmed when the incident was reported.

The incident was documented by Wiz’s analysis and in the Microsoft Agent Framework repository issue. It is another example of how exposed developer credentials and build pipelines can become targets, a risk also examined in Abijita’s report on malware stealing CI secrets from GitHub repositories.


Buy ExpressVPN with PayPal or Credit Card
READ
Microsoft 365 Restores Services After Global Outage
Advertisement