Malicious package · PyPI
Malicious code in onsokets (PyPI)
0.1.0No safe version. Remove it.What it does
onsokets/run.py walks the Android primary storage path /storage/emulated/0/, collects files ending in.json,.py,.pyrubi, and.txt, zips them by extension, and POSTs each archive to https://tapi.bale.ai/bot<token>/sendDocument with chat_id 5263487757. The Bale bot token is hardcoded in the source as the default for BALE_BOT_TOKEN, so installing or running this package exfiltrates installer-owned source, configuration, and text files to an author-controlled Bale chat. The destination is not caller-configurable in any meaningful sense and does not relate to any declared purpose of the package.
Reported by kam193 The package contains code for automated files exfiltration.
No fix · Remove and contain
pip uninstall onsoketsSources