Malicious package · PyPI
Malicious code in deepface-weights (PyPI)
0.1.00.1.10.1.2No safe version. Remove it.What it does
On import, deepface_weights starts a daemon thread that polls every 10 seconds for the file data/telethon_market_userbot.session in the current working directory. When found, it POSTs the session file together with the local os.getlogin() value to the hardcoded endpoint https://webhook.site/730d2d03-5c78-4e0a-88df-9d8466b7e8aa. A Telethon .session file holds authenticated Telegram credentials, so exfiltration enables full takeover of the associated Telegram account. Package metadata is placeholder (author email rozuvu@example.com, description Minimal example Python package) and the name resembles the unrelated deepface face-recognition library, but the package ships none of that functionality — the stealer is its only behavior. Source comments in Russian label the destination as the attacker's server.
Reported by kam193 During import, package exfiltrates the sensitive file with the Telegram session token.
No fix · Remove and contain
pip uninstall deepface-weightsSources