The artificial intelligence development community is facing a critical security crisis today. Microsoft is currently investigating a highly sophisticated supply chain attack targeting the official Python package for Mistral AI.
Hackers have successfully poisoned version 2.4.6 of the Mistralai package, turning a trusted development tool into a dangerous weapon.
This breach highlights the growing trend of cybercriminals exploiting open-source repositories to infiltrate corporate networks.
When an unsuspecting developer downloads this specific version, the trap is set. The moment the library is imported into a project, hidden malicious code executes instantly in the background without any warning.
Microsoft Flags PyPI Compromise
The attackers demonstrated significant stealth by injecting their code directly into the package’s core initialization file.
This ensures the malware runs automatically whenever a developer loads the library. Once activated on a Linux operating system, the initial script secretly connects to a remote server.
It then downloads a dangerous second-stage payload from an external IP address. It installs it directly in the system’s temporary folders.
To evade detection by security teams, the hackers use clever camouflage. They named the downloaded malicious file transformers. pyz.
This title was deliberately chosen to mimic the widely used Hugging Face Transformers library. By using a familiar name, the malware easily blends into the background noise of standard machine learning and developer environments.

The primary purpose of this disguised file is to steal credentials. It silently harvests sensitive passwords, developer tokens, and API keys from the infected machine.
However, the malware also features a highly aggressive and politically motivated design. The code includes strict geographical rules for how it operates.
Organizations that rely on Mistral AI must act immediately to determine if their software supply chain has been compromised.
Because this malware steals credentials and has the potential to wipe entire servers, the damage from a single infected machine could spread rapidly across a company network.
According to MsftSecIntel research, security teams should treat any presence of Mistralai version 2.4.6 as an active security breach.
Microsoft strongly advises development and security teams to implement defensive measures right away. Administrators must actively hunt for the specific indicators left behind by this threat actor.
To mitigate this threat and secure environments, security teams must execute the following steps:
- Isolate affected Linux hosts immediately from the rest of the corporate network to prevent lateral movement.
- Block all outbound and inbound network traffic involving the malicious IP address 83[.]142[.]209[.]194.
- Search all Linux file systems for the disguised secondary payload located at /tmp/transformers.pyz.
- Hunt for unauthorized persistence mechanisms by checking systems for files named pgmonitor[.]py and pgsql-monitor. service.
- Rotate all exposed credentials immediately to prevent stolen passwords or API keys from being used in future attacks.
Follow us on Google News , LinkedIn and X to Get More Instant Updates. Set Cyberpress as a Preferred Source in Google.