Attackers compromise Microsoft’s AI package with almost 200,000 monthly downloads.
Wiz found evidence of just three unique successful data thefts in the attacker’s retained webhook logs, suggesting the number of victims was small.
Two tampered versions of ’s Agent Framework Python package were released on ; the package had almost 200,000 monthly downloads, while the malicious versions were potentially downloaded around 150 times.
The first version’s malware ran automatically when Python started, even if the framework was not imported, and sought login credentials, secrets and other information from developers’ systems.
PyPI removed the first malicious version in exactly 31 minutes, but a second attack followed two minutes after its removal; anyone who installed either version was told to treat the environment as potentially compromised and replace exposed secrets.
Sources 2
- L
Latest from TechRadar AU
Attackers compromised Microsoft’s Agent Framework package on PyPI and inserted malware designed to steal credentials and cloud tokens
↗ - L
Latest from TechRadar AU
monthly downloads reaching almost 200,000 these days
↗ - L
Latest from TechRadar AU
Therefore, the malicious versions were potentially downloaded around 150 times
↗
- L
Latest from TechRadar AU
containing an infostealer that executed automatically when Python boots up, even in environments where the Agent Framework package was not imported
↗ - L
Latest from TechRadar AU
The tool was designed to steal login credentials and other secrets from environment variables
↗ - L
Latest from TechRadar AU
as well as to nab local configuration files and other running processes
↗
- L
Latest from TechRadar AU
PyPI took exactly 31 minutes to spot the intrusion and quarantine the malicious version
↗ - L
Latest from TechRadar AU
However, two minutes later, a second attack took place
↗ - L
Latest from TechRadar AU
PyPI removed the second version approximately eight minutes after upload
↗ - L
Latest from TechRadar AU
If you were among those who downloaded versions 1.26.1 or 1.26.2, remove it immediately and treat the system it was installed on as potentially compromised
↗ - L
Latest from TechRadar AU
all passwords should be considered exposed, including API keys, access tokens, and other secrets - make sure to revoke and replace them
↗
About
Microsoft Corporation is an American multinational technology conglomerate headquartered in Redmond, Washington. The company became influential in the rise of personal computers through software like Windows and has since expanded into areas such as Internet services, cloud computing, artificial intelligence and video gaming among others. A Big Tech company, Microsoft is the largest software company by revenue, one of the most valuable public companies, and one of the most valuable brands globally.
About
The Python Package Index, abbreviated as PyPI and also known as the Cheese Shop, is the official third-party software repository for Python. It is analogous to the CPAN repository for Perl and to the CRAN repository for R. PyPI is run by the Python Software Foundation, a charity. Some package managers, including pip, use PyPI as the default source for packages and their dependencies.
More on OpenAI · Microsoft Corporation