Skip to content
I read the news so you don't have to

PyPI package poisoned, steals creds and wipes Israeli systems

Mistralai package got compromised on PyPI. Attackers injected code that downloads a second-stage payload, steals credentials, and includes some wild geo-fenced logic: if it detects Israel or Iran, 1-in-6 chance it runs rm -rf / on the whole system. Deliberately named transformers.pyz to blend in with legit Hugging Face library. Pretty clever social engineering wrapped in code. Kill it on sight: block 83.142.209.194, hunt /tmp/transformers.pyz, pgmonitor.py, pgsql-monitor.service, rotate all exposed creds.
Image for: PyPI package poisoned, steals creds and wipes Israeli systems
Microsoft Threat Intelligence @MsftSecIntel
Microsoft is investigating mistralai PyPI package v2.4.6 compromise. Attackers injected code in mistralai/client/__init__.py that executes on import, downloads hxxps://83[.]142[.]209[.]194/transformers.pyz to /tmp/transformers.pyz, and launches a second-stage payload on Linux. The file name transformers.pyz appears deliberately chosen to mimic the widely used Hugging Face Transformers library and blend into ML/dev environments. The main payload is a credential stealer, but it also includes country-aware logic; it avoids Russian-language environments and contains a geo fenced destructive branch that has 1-in-6 chance of executing rm -rf / when the system appears to be in Israel or Iran. To mitigate this threat: isolate affected Linux hosts, block 83[.]142[.]209[.]194, hunt for /tmp/transformers.pyz, pgmonitor[.]py, and pgsql-monitor.service, and rotate exposed credentials.
Image from Microsoft Threat Intelligence
x.com Military Tech

Source

x.com